elilo, booting with BIOS options decode above 4g + resize BAR
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
elilo, booting with BIOS options decode above 4g + resize BAR
I am unable to boot Slackware using elilo when the BIOS has enabled the Decode Above 4GB and the Resize BAR support. I can boot it with grub and with UEFI stub, but not with elilo.
Well, I don't know. Maybe someone will look into the source code of elilo? That could be Patrick Volkerding, who somehow adopted this orphan, certainly not me.
Meanwhile (sorry to state the obvious), if you are a gamer don't use elilo, else disable these features in you cards' firmware menu.
This being said I fail to see how allowing a better sharing of VRAM between the CPU and the GPU can impact the OS loader, but maybe it does?
I think I am going to use uefi to boot the kernel directly, for this and other reasons (like the uefi framebuffer console).
On the other hand, it does not work with my particular set up, it might work for others. it can be a problem with my PC, not with elilo :?
Anyway, what I was trying to achieve posting it here is that someone might have a similar situation in the future and can find an alternate way of booting Slackware, and also for getting feedback from others that might be able to try it on their systems.
I am not familiar with the bootloader code, so I don't know. The fact that kernel does not load and hang without any message besides loading linux with elilo, but loads as expected using grub or uefi seems to me like something between elilo and the kernel is not working for this setup.
You can boot a Linux kernel without a bootloader. Just with add a boot entry with efibootmgr pointing to a Linux kernel (with its initrd) in the EFI partition. To choose what to boot, use your UEFI boot selection.
To elaborate a bit an EFI stub is a kernel wrapped in an EFI OS loader. Then the kernel is seen by the firmware just as an EFI OS loader, hands over the system to it and the EFI code in the EFI stub bootstraps the kernel. You can also embed an initrd in the stub, but then of course you will need to rebuild the stub (including the kernel) every time you modify the initrd. This is a safe way to boot in EFI mode but can be a maintenance burden as if your distribution provides a new kernel you will have to re-build it yourself. Not an issue for the Gentoo/Funtoo and maybe Arch users, probably one for most Slackware users, and I won't even mention users or Ubuntu or Mint
Last edited by Didier Spaier; 01-26-2021 at 08:38 AM.
Reason: Reworded.
I checked and I have Decode Above 4GB enabled in my Asus z97 EFI settings (no Resize BAR option), elilo and kernel boot just fine...
Did you try with the vga kernel parameter removed in your elilo.conf?
Thanks! I switched to an EFI mainboard only a few weeks ago, and it seems I'm still not at the bottom of the pit...
Make sure you have a media installer ready somewhere to repair boot issues, it can happen if you have a multiboot setup or update EFI motherboard firmware etc
I do not need to rebuild the kernel nor to rebuild the efi boot entry, just copy vmlinuz and initrd distributed by slackware into the EFI partition. If you use a custom initrd, then on each update you need to uptade it as you will need with a boot loader :? I don't see why it is a bad option for a slacker too.
Quote:
Originally Posted by Didier Spaier
To elaborate a bit an EFI stub is a kernel wrapped in an EFI OS loader. Then the kernel is seen by the firmware just as an EFI OS loader, hands over the system to it and the EFI code in the EFI stub bootstraps the kernel. You can also embed an initrd in the stub, but then of course you will need to rebuild the stub (including the kernel) every time you modify the initrd. This is a safe way to boot in EFI mode but can be a maintenance burden as if your distribution provides a new kernel you will have to re-build it yourself. Not an issue for the Gentoo/Funtoo and maybe Arch users, probably one for most Slackware users, and I won't even mention users or Ubuntu or Mint
Yes..I tried without vga parameter and with vga=current. It can be totally related to my bios/motherboard
Quote:
Originally Posted by keefaz
I checked and I have Decode Above 4GB enabled in my Asus z97 EFI settings (no Resize BAR option), elilo and kernel boot just fine...
Did you try with the vga kernel parameter removed in your elilo.conf?
Yes..I tried without vga parameter and with vga=current. It can be totally related to my bios/motherboard
Please tell the motherboard / Bios version numbers as it can always be usefull as a future thread reference in case of anyone searches same exact issue
Please tell the motherboard / Bios version numbers as it can always be usefull as a future thread reference in case of anyone searches same exact issue
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.