SliTaz SliTaz Forum

You are not logged in.

#1 2018-04-20 18:28:29

Mich-C
Member
Registered: 2016-01-01
Posts: 23

My attempts to install Slitaz on a UEFI tablet / pc

Hello everyone! Maybe someone of you remembers some of my questions on this forum about installing Slitaz on UEFI.

Well, I have this Windows 10 Tablet with a 64bit cpu but with a 32bit UEFI.

Microsoft makes everything to avoid the installation of any O.S. on devices like this... (even windows 7 or 8.1 grrr) So imagine trying this with Slitaz! Our Developers are supporting uefi just recently!

Anyway I learned that to boot a linux distro from a usb drive we need at least a "bootia32.efi" or "bootx64.efi" file inside the "efi/boot" directory of the iso/usb.

Debian fully support uefi so I resulted to boot and install it (it runs very good)

The problem is that Slitaz doesn't even have these efi files... so I had the idea of copying Slitaz files on my tablet flash memory and then trying to work from Windows with softwares like "Easy uefi" or "EasyBCD" to make it bootable. Well, nothing worked.

I also resulted to install "Grub2Win" and "Refind" on the device, they both allow me to dual-boot windows and linux.

(I don't excatly know the difference between them because somewhere I read that one is a bootmanager and the other is a bootloader...)

I wanted to win this challenge but especially help this community doing something useful.

I contacted both the Grub2Win and Refind developers... They helped me, we finally booted Slitaz in uefi mode but we got a black screen, we figured out that Slitaz can just run in Bios mode.

I don't know if Devs just need to add uefi parameters during the Slitaz generation or if it's a more complex matter...

If anyone is interested (https://sourceforge.net/p/refind/discussion/general/thread/13e66fc4/

https://sourceforge.net/p/grub2win/discussion/general/thread/78e5dbf5/ )

Greeting from Italy, Michele smile

Offline

#2 2018-04-20 21:04:55

Ceel
Administrator
Registered: 2011-04-02
Posts: 1,424

Re: My attempts to install Slitaz on a UEFI tablet / pc

Hi Michele,

If you are trying to install Rolling, this can be the reason. The best I've done is to boot in console mode sad

But Next runs on a recent hp computer.

If you have a 32bit UEFI, you'll find a bootia32.efi in the grub2-efi package. Create a /efi/slitaz repertory, copy bootia32.efi (you can rename it if you want but keep the.efi extension) in it and create a grub.cfg configuration file in the same directory. So, rEFInd should find it.

Or you can add an entry for SliTaz in the Debian's config file.

Offline

#3 2018-04-20 22:30:32

Mich-C
Member
Registered: 2016-01-01
Posts: 23

Re: My attempts to install Slitaz on a UEFI tablet / pc

Hi @Ceel thanks for the reply. First of all I think I didn't grasp your steps (what do you mean with grub2-efi package and where is located? Where should I create that efi/slitaz directory?)

I'm sorry for my ignorance XD

Anyway I configured Grub2win to find Slitaz kernel but the distro didn't boot because it can't work in uefi mode, so I presume that even following your steps and making Slitaz bootable from Refind instead of grub2win, I'll get another black screen anyway... What do you think?

Offline

#4 2018-04-21 17:36:06

lm2
Member
Registered: 2017-02-16
Posts: 155

Re: My attempts to install Slitaz on a UEFI tablet / pc

sorry for comin' back on the road, linuxians;

but i'm still wondering if you're trying to launch slitaz using uefi WITHOUT legacy/CSM mode.. which should not be possible as a snap fingers...

Offline

#5 2018-04-21 18:54:55

Ceel
Administrator
Registered: 2011-04-02
Posts: 1,424

Re: My attempts to install Slitaz on a UEFI tablet / pc

Hi Michele,

the distro didn't boot because it can't work in uefi mode

SliTaz Rolling core (32bit) and SliTaz Next boot well both on EFI computers.

SliTaz Rolling core64 has a problem; boot only in cosole mode (@devs, any ideas about this?).

Which SliTaz ISO did you use?

I presume that even following your steps and making Slitaz bootable from Refind instead of grub2win, I'll get another black screen anyway... What do you think?

You're right. I think your problem comes from the way you installed SliTaz. You told in your discussion on the rEFInd site "I copyed its 2 necessary files (vmlinuz and .img) into the ESP and in an empty ext4 partition"

Do you mean the [c]efi.img[/c] file by ".img? This is not the good file.

Seems you want to do a frugal install more than a full install. This is possible too and you don't need a separate partition (unless you want persistence).

I didn't grasp your steps [...] I'm sorry for my ignorance XD

I only started to look at EFI only for 7 months; as you, I learn thing every day.

You already know that UEFI computers have a hidden partition (ESP); this partition is used for the boot loaders and the boot manager.

The boot manager is in the /efi/boot repertory and has always the name [c]bootia32.efi[/c] for EFI 32bit or [c]bootx64.efi[/c].

The boot loaders of the OSs are in repertories in /efi; probably you have then a /efi/debian for Debian.

If you want to install SliTaz on your tablet, I can help you.

I think all distros, as well as 32bit than 64bit, can run on EFI computers (@lm2, of course with [c]UEFI Boot Mode= Enabled[/c] and not in BIOS Legacy, only the [c]Secure Boot[/c] needs to be [c]Disabled[/c]).

P.S. I've modified the second link (add a space at the end) in you first post because it didn't work.

Offline

#6 2018-04-22 16:01:28

lm2
Member
Registered: 2017-02-16
Posts: 155

Re: My attempts to install Slitaz on a UEFI tablet / pc

>SliTaz Rolling core (32bit) and SliTaz Next boot well both on EFI computers.

using rufus?

exfat as filesystem for UEFI, with formatted GPT?

Offline

#7 2018-04-22 21:24:41

Mich-C
Member
Registered: 2016-01-01
Posts: 23

Re: My attempts to install Slitaz on a UEFI tablet / pc

Hi Ceel thanks again, well

>Which SliTaz ISO did you use?

I don't remember if I used Slitaz 32 bit 5.0rc3 or Slitaz 32 bit rolling. Maybe we can determine it from the name of the kernel (it was vmlinuz_.53_)

>Do you mean the efi.img file by ".img? This is not the good file.

Seems you want to do a frugal install more than a full install.

Now I can't check it on my tablet but Actually I don't remember which file I copyed XD

Yeah to simplify things I tought to make Slitaz bootable from the tablet just as a live medium and then doing a proper install from the live booted version

>If you want to install SliTaz on your tablet, I can help you.

Yes Ceel! It would be awesome if you could provide us a quick summary of the steps needed for booting Slitaz on devices like mine smile It would be even better if we also figure out how to boot Slitaz from a usb.

I'm going to factory-reset my tablet in the next days. So for now we have a clean Win10 without refind or grub2win residues.

Offline

#8 2018-04-24 17:48:24

Ceel
Administrator
Registered: 2011-04-02
Posts: 1,424

Re: My attempts to install Slitaz on a UEFI tablet / pc

Hi Michele,

Doing a frugal install first is probably the best solution. You don't need to create a separate partition for it.

Create a folder (say slitaz) in your main partition (c:\) and copy the rootfs.gz and bzImage files of the last Rolling-core ISO in it.

You could also use SliTaz Next; its kernel is the most recent but the ISO dates from 2017-09-30, most of the packages have been udated since.

Then I propose GRUB 2 or rEFInd (or rEFInd + GRUB 2) to boot SliTaz.

GRUB 2: here 2 ways.

[*]The simplest: start GRUB 2 using the Multiboot (press F12 or F9 or... key when the computer starts or reboots) but I don't know if tablets have also this possibility (I don't know anything about tablets, I don't like them sad )

Or start it with rEFInd you already know.

[*]Or rEFInd that will propose to choose between Windows and SliTaz (and eventual other OSs) at boot.

rEFInd should allow to run SliTaz without we need to install a boot loader (I never done it because I don't have any EFI computers to test it, I work on friends's computers but I do not allow myself to modify the configuration or install software on a PC that is not mine, excepeted the Secure Boot)

As you already successfully installed rEFInd a few month ago, I guess you know how to access to the ESP partition of your computer; if not, this is what I do in Win 8/10... for a computer:

[*]Right click on the Home button in the left bottom corner of the screen and select Windows Power Shell (admin).

The Users account control asks to accept modifications; click [YES].

[*]In the terminal, type [c]mountvol s: /s[/c] to mount the ESP partition.

[*]Check the ESP partition is mounted: [c]dir s:\[/c]

Note that Windows uses "\" and "/" where Linux respectively uses "/" and "-".

To install GRUB 2:

[*]Create a \grub repertory in \efi:

[c]mkdir s:\efi\grub[/c]

[*]Copy the bootia32.efi file from the grub2-efi package (see my post above) in the (ESP)\efi\grub directory...

[c]copy <<em>path\to\your</em>>\bootia32.efi s:\efi\grub\grubia32.efi[/c]

[*]... and the GRUB 2 modules:

[c]copy <<em>path\to\your\rep</em>>\i386-efi s:\efi\grub\[/c]

[*]Create a \boot\grub directory for the configuration file of GRUB 2:

[c]mkdir s:\boot\grub[/c]

[*]Create the configuration file:

[c]notepad s:\boot\grub\grub.cfg[/c]

- example -

[c]### CONFIGURATION FILE FOR GRUB 2 ###

#

# Comment the line if you want SliTaz start immediately or

# change the value to define the time (seconds) to wait before booting.

set TIMEOUT=-1

# Menu 0: boot SliTaz Rolling

menuentry "SliTaz Rolling (frugal install - kernel 3.16.55)" {

   insmod ntfs

   set root=(hd0,4)

   linux /slitaz/bzImage ro root=/dev/null video=-32 kmap=it autologin

   initrd /slitaz/rootfs.gz

}[/c]

According to your screenshot in the Grub2Win discussion, your main partition (c:\) is (hd0,4).

Note also the [c]insmod ntfs[/c] line; GRUB 2 cannot read NTFS partition natively, you must load this module.
[*]Save and quit.

IMPORTANT! If you didn't do it before, disable the fast startup of Windows (see my comment in section 6. of the linked page below). In the admin terminal of Windows, type [c]powercfg /h off[/c]

You can now close the terminal and reboot.

Hope I didn't forget anything. Don't hesitate to ask questions if something is not clear or doesn't work for you.

If you think to do it, please take notes during you install SliTaz. It would be interesting to complete the UEFI guide with HOWTOs for tablets.

It would be even better if we also figure out how to boot Slitaz from a usb.

I've already started this a few weeks ago; I have some comments to modify but nothing in the way to realize the Live. I'll do it when the second part -HOWTO install in frugal mode on a UEFI computer- will be finished (for the end of may I hope)

I think all distros, as well as 32bit than 64bit, can run on EFI computers

OK, I'm probably wrong. I tested slitaz-rc3 you tried to install a few months ago with the same result you had: black screen (so, you probably did things correctly, you haven't had any luck in choosing this ISO, like me with core64 sad ). There are things I need to deepen. But later, rc3 is really to old now.

@lm2,

I didn't use Rufus and kept the system in its initial state (GPT). For the full install, I resized c: and create an ext3 partition for SliTaz (now ext4 since I've overwritten it when installing Debian).

Offline

#9 2018-04-25 00:06:05

lm2
Member
Registered: 2017-02-16
Posts: 155

Re: My attempts to install Slitaz on a UEFI tablet / pc

regarding UEFI, just know a latest thing, learned with fedora /toshiba /uefi:

when you move the hard drive from an uefi-well-booting computer, you have to reinstall grub -at least with fedora-

when you want to install grub, you SHOU/DMUST install it in UEFI to have grub installed in uefi (like a declaration, something is "connected" between uefi and hard drive).

you must have a full-uefi/class3 bootloader to be able of starting slitaz in uefi (no csm/legacy of course)

btw, it's highly better and simple to use grub instead of grub2.

Offline

#10 2018-05-01 19:55:22

Ceel
Administrator
Registered: 2011-04-02
Posts: 1,424

Re: My attempts to install Slitaz on a UEFI tablet / pc

Hi Michele,

Sorry, my mistake. I've writen Something wrong in my previous post: the grub.cfg mustn't be in [c]s:\efi\grub[/c] but in [c]s:\boot\grub[/c] :-/

I've edited the post.

Hope you didn't waste your time with this. Sorry again.

Offline

#11 2018-05-02 13:46:27

Mich-C
Member
Registered: 2016-01-01
Posts: 23

Re: My attempts to install Slitaz on a UEFI tablet / pc

No problem Ceel. Thanks for the update. I'm pretty busy in this period, I' ll report back after the test smile

Offline

#12 2018-08-03 18:32:06

Mich-C
Member
Registered: 2016-01-01
Posts: 23

Re: My attempts to install Slitaz on a UEFI tablet / pc

Well guys I don't know if developers read this thread, but I on 5th may 2018 I dowloaded the last rolling iso (32 bit) and I recived a plesant surprise: finally new isos come with the bootia32.efi file!

With that file my uefi tabet can start Linux distros (and now also Slitaz) even from a usb like any other Bios computer, so I didn't have to work on partitions ecc (@Ceel @lm2 wink many thanks anyway)

I flashed and started the iso, the problem is that I got an error during the boot... can you help me? https://drive.google.com/open?id=1UKPejOk2ijQgxB9d6mcm-Pe8ioXESylV

Could this error be generated from a wrong flash? My usb contains JUST this: efi/boot/bootia32.efi   it's strange...

I'm not very familiar with dd, flashing rufus on usbs from dedicated programs on Windows ALWAYS gave me errors, but Rufus (used with the right settings) always worked for me, so I used rufus also this time

UPDATE I will try with the latest iso as it worked for another user (http://forum.slitaz.org/topic/slitaz-rolling-32-works-on-uefi-1) I hope it won't get that error again

Offline

#13 2018-08-03 20:50:55

Mich-C
Member
Registered: 2016-01-01
Posts: 23

Re: My attempts to install Slitaz on a UEFI tablet / pc

NEW update---

Tryed with the latest iso from usb.

It worked and it booted extremely fast! (just a few seconds!)

Wifi doesn't work but it's not a problem, I've compiled and installed software from source in the past.

The main lack is that the touchescreen doesn't work and I can't even use my Wacom pen do draw and take notes. (with Debian and MX linux they work both)

The problem is that I don't know at all how to identify the correct driver for my touchscreen sad

Offline

#14 2018-08-03 21:42:20

Mich-C
Member
Registered: 2016-01-01
Posts: 23

Re: My attempts to install Slitaz on a UEFI tablet / pc

oops duplicated

Offline

#15 2018-08-04 16:11:55

kultex
Administrator
Registered: 2011-03-28
Posts: 1,175

Re: My attempts to install Slitaz on a UEFI tablet / pc

can you post the output from lsmod from debian or mx linux?

Offline

#16 2018-08-05 16:33:39

Mich-C
Member
Registered: 2016-01-01
Posts: 23

Re: My attempts to install Slitaz on a UEFI tablet / pc

Hi kultex. This is the result of lsmod from a live version of mxlinux: https://drive.google.com/folderview?id=1aL177zn1q4oFMPP04pUS5YPbGWALZFTp (I'm sorry for the photos but I had poblems with ctrl +c in the terminal)

P.S. The 32bit uefi that comes with this tablet should allow to boot just 32bit distros, but if I'm not wrong it booted MX also in 64bit mode. Does It change something in this case?

Offline

#17 2018-08-07 06:17:47

kultex
Administrator
Registered: 2011-03-28
Posts: 1,175

Re: My attempts to install Slitaz on a UEFI tablet / pc

Normally you can boot both, 32 and 64 bit.....

But please don’t post fotos, connect with your tablet to the forum and copy the text

Offline

#18 2018-08-07 06:34:33

kultex
Administrator
Registered: 2011-03-28
Posts: 1,175

Re: My attempts to install Slitaz on a UEFI tablet / pc

It seems to be a Wacom tablet....

https://wiki.archlinux.org/index.php/wacom_tablet

You have to install the following packages

linux-input-tablet and linux-input-touchscreen

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.017 seconds, 7 queries executed - Memory usage: 1.58 MiB (Peak: 1.77 MiB) ]