SliTaz SliTaz Forum

You are not logged in.

#126 2024-05-27 17:47:33

shann
Administrator
Registered: 2011-04-01
Posts: 1,296
Website

Re: UEFI only Laptop - Trouble booting

Hi Maybl8,

I check, infact on april efitest iso, kernel have pinctrl built-in.

Sorry for issue sad, check for push and rebuild kernel.

Offline

#127 2024-05-27 20:35:47

shann
Administrator
Registered: 2011-04-01
Posts: 1,296
Website

Re: UEFI only Laptop - Trouble booting

Rebuild kernel done and iso rebuild also.

ISOs available on mirror

https://mirror.slitaz.org/iso/current/slitaz-current-core64.iso

Offline

#128 2024-05-28 12:20:48

maybl8
Member
Registered: 2024-03-06
Posts: 63

Re: UEFI only Laptop - Trouble booting

OK Downloaded the iso.

The newer kernel is there.

I didn't notice my wireless ucode in there.

So do I just install like I did before with the scripts and add my wireless ucode manually?

Then try the update and see what happens?

Offline

#129 2024-05-28 19:02:34

shann
Administrator
Registered: 2011-04-01
Posts: 1,296
Website

Re: UEFI only Laptop - Trouble booting

Hi maybl8,

Yes new kernel 5.10.217.

In case you can reinstall on usb key if you don't have datas on partition and retry update (5.10.215 to 5.10.217) and wifi should work.

Infact i don't include firmware on iso

Offline

#130 2024-05-28 21:28:05

maybl8
Member
Registered: 2024-03-06
Posts: 63

Re: UEFI only Laptop - Trouble booting

Reinstalled to harddrive.

I am on .217 kernel.

There is no updates.

Is this current iso a rolling release iso?

If not can I change something to make it a rolling release?

I still need to figure out how to get grub on flash drive and then perform the slitaz install to it.

Also How do I change the screen brightness on this laptop. The Function keys don't work.

Offline

#131 2024-05-30 05:57:36

shann
Administrator
Registered: 2011-04-01
Posts: 1,296
Website

Re: UEFI only Laptop - Trouble booting

Hi Maybl8,

Infact, because iso is build with packages on tank / mirror, always up to date.

In case, current could be considered as rolling release, updates are pushed on it.

I hope also to provide stable version.

For grub efi install, check to take time this evening after work to poc them.

Concerning Fn keys, maybe miss tools or kernel options hmm.

Offline

#132 2024-05-30 12:22:20

maybl8
Member
Registered: 2024-03-06
Posts: 63

Re: UEFI only Laptop - Trouble booting

Another thing now that I can use the sytem is connect to my network shares. I Have a NAS drive on my local network that has windows shares setup on it.

Thanks

Offline

#133 2024-05-30 19:38:27

shann
Administrator
Registered: 2011-04-01
Posts: 1,296
Website

Re: UEFI only Laptop - Trouble booting

Hi Maybl8,

Minus few tests, add file not present on package i have successfully install slitaz with grub2-efi on my qemu env smile

Need to adjust grub2-efi-x64-modules to have kernel.img modinfo.sh file and write procedure.

Below my poc

Create two partitions first 512Mo vfat for /boot/efi, second for / ext4

Use tazinst-stable to install slitaz (with sda2 as /).

After install mount partitions

/dev/sda2 to /mnt

/dev/sda1 to /mnt/boot/efi

Install grub2-x64-efi-modules, grub2-x64, grub2 inside new system with [c]--root=/mnt[/c]

Manually add miss file grub-install complain (kernel.img and modinfo.sh)

prepare chroot

mount --bind /dev /mnt/dev

mount --bind /proc /mnt/proc

mount --bind /sys /mnt/sys

Install grub and gen grub.cfg

grub-install --target=x86_64-efi --efi-directory=/boot/efi --boot-directory=/boot/efi/EFI --directory=/boot/grub/x86_64-efi --recheck --removable --bootloader-id=grub /dev/sda

grub-mkconfig -o /boot/efi/EFI/grub/grub.cfg

[attachment=52358,3541] [attachment=52358,3542]

Offline

#134 2024-05-30 20:50:34

shann
Administrator
Registered: 2011-04-01
Posts: 1,296
Website

Re: UEFI only Laptop - Trouble booting

I push fix for grub2-x64-efi-modules (available tomorrow on mirror when sync)

https://cook.slitaz.org/current/cooker.cgi?pkg=grub2-efi-x64-modules

Below procedure :

Create two partitions first 512Mo vfat for /boot/efi, second for / ext4

/!\ Ensure to replace sdX1 / sdX2 by disk to use /!\

fdisk /dev/sdX

mkfs.vfat /dev/sdX1

mkfs.ext4 /dev/sdX2

Create installer file

tazinst-stable new installer

Edit them and set TGT_PARTITION="/dev/sda2" TGT_FS="ext4", adjust stuff for TGT_HOSTNAME, TGT_ROOT_PWD, TGT_USER and TGT_USER_PWD.

keep TGT_GRUB="no" (install grub4dos and we want grub2-efi)

After installation done, we are ready to do stuff for grub2-efi bootloader

mount root partition

mount /dev/sdX2 /mnt

Create efi folder for esp partition

mkdir /mnt/boot/efi

mount esp parition

mount /dev/sdX1 /mnt/boot/efi

Install grub2-efi-x64, grub2, grub2-efi-x64-modules on new root

# Edit thanks maybl8 for found typo (i miss ; done) sad

for pkg in 'grub2' 'grub2-efi-x64' 'grub2-efi-x64-modules'; do tazpkg -gi $pkg --root=/mnt; done

prepare to chroot on new root

mount --bind /dev /mnt/dev

mount --bind /proc /mnt/proc

mount --bind /sys /mnt/sys

Chroot on new root and install grub2

chroot /mnt

grub-install --target=x86_64-efi --efi-directory=/boot/efi --boot-directory=/boot/efi/EFI --directory=/boot/grub/x86_64-efi --recheck --removable --bootloader-id=grub /dev/sdX

grub-mkconfig -o /boot/efi/EFI/grub/grub.cfg

quit chroot umount partition

exit

umount /mnt/dev /mnt/proc /mnt/sys

umount /mnt

reboot

Enjoy

Offline

#135 2024-05-31 06:47:24

shann
Administrator
Registered: 2011-04-01
Posts: 1,296
Website

Re: UEFI only Laptop - Trouble booting

Hi Maybl8,

For information, i force sync for current (no wait this noon for sync) mirror is now up to date.

Offline

#136 2024-05-31 12:44:44

maybl8
Member
Registered: 2024-03-06
Posts: 63

Re: UEFI only Laptop - Trouble booting

Current says May 27th. Is that correct?

Offline

#137 2024-05-31 15:12:23

shann
Administrator
Registered: 2011-04-01
Posts: 1,296
Website

Re: UEFI only Laptop - Trouble booting

When i say mirror sync it's for grub2-efi-x64-modules packages.

Infact i don't rebuild iso since May 27th wink

Offline

#138 2024-05-31 15:44:04

maybl8
Member
Registered: 2024-03-06
Posts: 63

Re: UEFI only Laptop - Trouble booting

So to be clear I use the same iso to install with?

Can I use the rolling iso for this?

Offline

#139 2024-05-31 15:54:03

shann
Administrator
Registered: 2011-04-01
Posts: 1,296
Website

Re: UEFI only Laptop - Trouble booting

yes you can use same iso current build on May 27th.

grub2 and other packages related (grub2-efi-x64, grub2-efi-x64-modules) not include on iso

rolling and current has not the same stack.

cooking/rolling

glibc 2.14.1

kernel 3.16.55

Xorg 1.12.4

current

glibc 2.28

kernel 5.10.217

Xorg 1.20.14

Offline

#140 2024-05-31 19:56:43

maybl8
Member
Registered: 2024-03-06
Posts: 63

Re: UEFI only Laptop - Trouble booting

After this line I Get the following:

root@slitaz:/home/demo# for pkg in 'grub2''grub2-efi-x64''grub2-efi-x64-modules'

; do tazpkg -gi $pkg --root=/mnt

>

Offline

#141 2024-05-31 20:09:45

shann
Administrator
Registered: 2011-04-01
Posts: 1,296
Website

Re: UEFI only Laptop - Trouble booting

shit miss write line yesterday, sorry sad.

should be :

[c]for pkg in 'grub2' 'grub2-efi-x64' 'grub2-efi-x64-modules'; do tazpkg -gi $pkg --root=/mnt; done[/c]

I edit my previous post to fix it, thanks to found miss.

Offline

#142 2024-05-31 20:17:58

maybl8
Member
Registered: 2024-03-06
Posts: 63

Re: UEFI only Laptop - Trouble booting

root@slitaz:/home/demo# for pkg in 'grub2' 'grub2-efi-x64' 'grub2-efi-x64-module

s'; do tazpkg -gi $pkg --root=/mnt; done

grub2-2.04.tazpkg    100% |********************************| 5180k  0:00:00 ETA

Tracking dependencies for package "grub2"

================================================================================

Missing package "grep"

Missing package "libdevmapper"

Missing package "libusb"

Missing package "libusb-compat"

================================================================================

4 missing packages to install.

grep-3.7.tazpkg      100% |********************************| 86256  0:00:00 ETA

Installation of package "grep"

================================================================================

GNU Global Regular Expression Print.

--------------------------------------------------------------------------------

Copying package...                                                   [ Done ]

Extracting package...                                                [ Done ]

Remember modified packages...                                        [ Done ]

Installing package...                                                [ Done ]

Removing all tmp files...                                            [ Done ]

Execute post-install commands...                                     [ Done ]

================================================================================

Package "grep" (3.7) is installed.

libdevmapper-2.03.15 100% |********************************|  803k  0:00:00 ETA

Tracking dependencies for package "libdevmapper"

================================================================================

Missing package "readline"

================================================================================

1 missing package to install.

readline-8.1.tazpkg  100% |********************************|  109k  0:00:00 ETA

Installation of package "readline"

================================================================================

GNU readline.

--------------------------------------------------------------------------------

Copying package...                                                   [ Done ]

Extracting package...                                                [ Done ]

Remember modified packages...                                        [ Done ]

Installing package...                                                [ Done ]

Removing all tmp files...                                            [ Done ]

================================================================================

Package "readline" (8.1) is installed.

Installation of package "libdevmapper"

================================================================================

Linux device mapper library.

--------------------------------------------------------------------------------

Copying package...                                                   [ Done ]

Extracting package...                                                [ Done ]

Remember modified packages...                                        [ Done ]

Installing package...                                                [ Done ]

Removing all tmp files...                                            [ Done ]

Execute post-install commands...                                      Execute post-install commands...                                               [ Done ]

                                                                     [ Done ]

================================================================================

Package "libdevmapper" (2.03.15) is installed.

libusb-1.0.25.tazpkg 100% |********************************| 41644  0:00:00 ETA

Installation of package "libusb"

================================================================================

USB access library.

--------------------------------------------------------------------------------

Copying package...                                                   [ Done ]

Extracting package...                                                [ Done ]

Remember modified packages...                                        [ Done ]

Installing package...                                                [ Done ]

Removing all tmp files...                                            [ Done ]

================================================================================

Package "libusb" (1.0.25) is installed.

libusb-compat-0.1.7. 100% |********************************|  8308  0:00:00 ETA

Installation of package "libusb-compat"

================================================================================

Compatibility layer to convert libusb 0.1 calls into 1.0 equivalents.

--------------------------------------------------------------------------------

Copying package...                                                   [ Done ]

Extracting package...                                                [ Done ]

Remember modified packages...                                        [ Done ]

Installing package...                                                [ Done ]

Removing all tmp files...                                            [ Done ]

================================================================================

Package "libusb-compat" (0.1.7) is installed.

Installation of package "grub2"

================================================================================

GRUB2 boot loader.

--------------------------------------------------------------------------------

Copying package...                                                   [ Done ]

Extracting package...                                                [ Done ]

Remember modified packages...                                        [ Done ]

Saving configuration files...                                        [ Done ]

Installing package...                                                [ Done ]

Removing all tmp files...                                            [ Done ]

Execute post-install commands...

# To install grub to MBR on device sda enter:

grub-install /dev/sda

# To modify GRUB defaults, edit

/etc/default/grub

# To generate a configuration file enter:

grub-mkconfig -o /boot/grub/grub.cfg

# You can learn from /boot/grub/example-grub.cfg too.

                                                                     [ Done ]

================================================================================

Package "grub2" (2.04) is installed.

grub2-efi-x64-2.04.t 100% |********************************|  271k  0:00:00 ETA

Installation of package "grub2-efi-x64"

================================================================================

GRUB2 boot loader.

--------------------------------------------------------------------------------

Copying package...                                                   [ Done ]

Extracting package...                                                [ Done ]

Remember modified packages...                                        [ Done ]

Saving configuration files...                                        [ Done ]

Installing package...                                                [ Done ]

Removing all tmp files...                                            [ Done ]

================================================================================

Package "grub2-efi-x64" (2.04) is installed.

grub2-efi-x64-module 100% |********************************|  698k  0:00:00 ETA

Installation of package "grub2-efi-x64-modules"

================================================================================

GRUB2 EFI boot loader modules.

--------------------------------------------------------------------------------

Copying package...                                                   [ Done ]

Extracting package...                                                [ Done ]

Remember modified packages...                                        [ Done ]

Installing package...                                                [ Done ]

Removing all tmp files...                                            [ Done ]

================================================================================

Package "grub2-efi-x64-modules" (2.04) is installed.

root@slitaz:/home/demo#

Offline

#143 2024-05-31 21:09:42

maybl8
Member
Registered: 2024-03-06
Posts: 63

Re: UEFI only Laptop - Trouble booting

It all looked good until I tried to boot to the flash drive.

Got a kernel panic.

Not syncing: VFS: Unable to mount root far on unknown-block(0,0)

Offline

#144 2024-06-01 07:33:22

shann
Administrator
Registered: 2011-04-01
Posts: 1,296
Website

Re: UEFI only Laptop - Trouble booting

Hi maybl8,

For usb need rootdelay option, without infact i have same issue

Got a kernel panic.

Not syncing: VFS: Unable to mount root far on unknown-block(0,0)

On boot edit "SliTaz GNU/Linux" entry to add rootdelay=10.

To be permanent, edit /etc/default/grub

uncomment #GRUB_CMDLINE_LINUX_DEFAULT="" and edit as :

[c]GRUB_CMDLINE_LINUX_DEFAULT="rootdelay=10"[/c]

Rebui

Offline

#145 2024-06-01 07:33:22

shann
Administrator
Registered: 2011-04-01
Posts: 1,296
Website

Re: UEFI only Laptop - Trouble booting

Hi maybl8,

For usb need rootdelay option, without infact i have same issue

Got a kernel panic.

Not syncing: VFS: Unable to mount root far on unknown-block(0,0)

On boot edit "SliTaz GNU/Linux" entry to add rootdelay=10.

To be permanent, edit /etc/default/grub

uncomment #GRUB_CMDLINE_LINUX_DEFAULT="" and edit as :

[c]GRUB_CMDLINE_LINUX_DEFAULT="rootdelay=10"[/c]

Before rebuild config, ensure /dev/sda1 is mounted (infact no fstab entry)

[c]mount /dev/sdX1 /boot/efi[/c]

Rebuild config

[c]grub-mkconfig -o /boot/efi/EFI/grub/grub.cfg[/c]

Edit /etc/fstab to ensure /boot/efi is mounted at boot smile

add this entry at end

[c]/dev/sdX1 /boot/efi vfat defaults 0 2[/c]

Below my hp work laptop under SliTaz usb

[attachment=52372,3543]

Offline

#146 2024-06-01 14:06:57

maybl8
Member
Registered: 2024-03-06
Posts: 63

Re: UEFI only Laptop - Trouble booting

I am proud to announce that after all of these posts we have finally achieved what I was wanting to achieve.

I have a working slitaz system mounted on a usb flash drive that I can modify and save the changes to the flash drive on my efi laptop with a GRUB menu.

Quite a few steps installed which I am going to try to summarize in a note file of some kind.

Also I am going to try to automate as much of this as possible.

Here is the overall steps ( I hope I get them in the correct order) all details will not be listed.

1, Download a current iso and burn that to a flash drive.

2. Boot to the flash drive.

     Change language to US.

     Change screen resolution if needed.

3. Depending on what media you want to install to ssd drive, hard drive or flash drive.

    Create 2 partitions on the drive (one for efi/boot one for root

4. Create an install script with the variables needed for your particular setup.

5. After you get a successful root install then you can install GRUB

6. Next is to install the files needed for the boot loader

7. Now you can install GRUB files a chroot is required for this step.

8. You should now be able to boot to the new slitaz install.

After booting in you might have to change screen resolution and install ucode to get wireless working depending on your hardware.

That is pretty high level instruction.

Exact commands needed for above instructions can be found in previous posts on this thread.

Thanks to the slitaz team for taking the time to get this accomplished.

I hope to work further with the team to make the install easier but if I can do it anyone should be able to to this.

Thanks again

Dan

Offline

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

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.023 seconds, 11 queries executed - Memory usage: 1.62 MiB (Peak: 1.77 MiB) ]