LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 08-01-2022, 07:12 PM   #4651
Aeterna
Senior Member
 
Registered: Aug 2017
Location: Terra Mater
Distribution: VM Host: Slackware-current, VM Guests: Artix, Venom, antiX, Gentoo, FreeBSD, OpenBSD, OpenIndiana
Posts: 1,011

Rep: Reputation: Disabled

kernel 5.19
elilo
no initrd


boots fine (custom kernel).
 
1 members found this post helpful.
Old 08-01-2022, 08:36 PM   #4652
garpu
Senior Member
 
Registered: Oct 2009
Distribution: Slackware
Posts: 1,566

Rep: Reputation: 904Reputation: 904Reputation: 904Reputation: 904Reputation: 904Reputation: 904Reputation: 904Reputation: 904
Yep. 5.19.0 boots just fine on my laptop with regular LILO, no uefi, huge kernel, no initrd. (Desktop is uefi, elilo, and won't boot.)
 
Old 08-01-2022, 08:42 PM   #4653
garpu
Senior Member
 
Registered: Oct 2009
Distribution: Slackware
Posts: 1,566

Rep: Reputation: 904Reputation: 904Reputation: 904Reputation: 904Reputation: 904Reputation: 904Reputation: 904Reputation: 904
I'm also not finding anything in logs for the failed boot. Shutdown, minute later, the boot when I switched back to 5.18.15.
 
Old 08-01-2022, 09:11 PM   #4654
Aeterna
Senior Member
 
Registered: Aug 2017
Location: Terra Mater
Distribution: VM Host: Slackware-current, VM Guests: Artix, Venom, antiX, Gentoo, FreeBSD, OpenBSD, OpenIndiana
Posts: 1,011

Rep: Reputation: Disabled
Quote:
Originally Posted by garpu View Post
Yep. 5.19.0 boots just fine on my laptop with regular LILO, no uefi, huge kernel, no initrd. (Desktop is uefi, elilo, and won't boot.)
Maybe see if there is a difference between 5.18.15 and 5.19 config? It seems that this is not an issue with elilo and 5.19 because I can boot 5.19 with elilo just fine.
 
1 members found this post helpful.
Old 08-02-2022, 07:58 AM   #4655
rwm_lq
LQ Newbie
 
Registered: Aug 2022
Distribution: Slackware
Posts: 4

Rep: Reputation: 0
vmlinuz-huge-5.19.0 works on my Systems (slackware64-current) with lilo, but does not work on my Systems with uefi/elilo and nvme-root (instant reboot).
Older Versions until 5.18.15 did without any problems.

If I change booting to classic and lilo instead of elilo/uefi the same Systems boot with without any problems to vmlinuz-huge-5.19.0.
So I am not sure, if there is a new feature/setting missing only for uefi/nvme or this may too apply to uefi and sata-HDD/SSD
 
Old 08-02-2022, 09:15 AM   #4656
rogan
Member
 
Registered: Aug 2004
Distribution: Slackware
Posts: 216

Rep: Reputation: 117Reputation: 117
There seems to be a problem related to "uefi stub support". I disabled that and now 5.19.0 boots normally from elilo. Anyone using a boot loader won't have much use for it anyway.

Last edited by rogan; 08-02-2022 at 09:17 AM. Reason: spelling
 
6 members found this post helpful.
Old 08-02-2022, 09:22 AM   #4657
LuckyCyborg
Senior Member
 
Registered: Mar 2010
Posts: 3,527

Rep: Reputation: 3357Reputation: 3357Reputation: 3357Reputation: 3357Reputation: 3357Reputation: 3357Reputation: 3357Reputation: 3357Reputation: 3357Reputation: 3357Reputation: 3357
Quote:
Originally Posted by rogan View Post
There seems to be a problem related to "uefi stub support". I disabled that and now 5.19.0 boots normally from elilo. Anyone using a boot loader won't have much use for it anyway.
BUT, this "uefi stub support" is needed by those who uses rEFInd as EFI boot-loader.

Because technically the rEFInd treats a Linux kernel as an ordinary EFI binary.

So, we should chose what we broke in Slackware? ELILO or rEFInd?

Last edited by LuckyCyborg; 08-02-2022 at 09:38 AM.
 
Old 08-02-2022, 10:24 AM   #4658
Chuck56
Member
 
Registered: Dec 2006
Location: Colorado, USA
Distribution: Slackware
Posts: 930

Rep: Reputation: 479Reputation: 479Reputation: 479Reputation: 479Reputation: 479
Quote:
Originally Posted by rogan View Post
There seems to be a problem related to "uefi stub support". I disabled that and now 5.19.0 boots normally from elilo. Anyone using a boot loader won't have much use for it anyway.
Is there a kernel append entry to disable efi stub support or does the kernel have to rebuilt with CONFIG_EFI_STUB not set?

I tried to append 'efi=noruntime' but no joy.
 
Old 08-02-2022, 10:35 AM   #4659
LuckyCyborg
Senior Member
 
Registered: Mar 2010
Posts: 3,527

Rep: Reputation: 3357Reputation: 3357Reputation: 3357Reputation: 3357Reputation: 3357Reputation: 3357Reputation: 3357Reputation: 3357Reputation: 3357Reputation: 3357Reputation: 3357
Quote:
Originally Posted by Chuck56 View Post
Is there a kernel append entry to disable efi stub support or does the kernel have to rebuilt with CONFIG_EFI_STUB not set?

I tried to append 'efi=noruntime' but no joy.
The EFI stub is like its name says, a stub which transforms the kernel in a EFI binary - just like is the PE stub for the programs and DLLs of the operating system loved by everybody and invented by Bill Gates. In fact, from what I heard, the EFI binaries are some kind of PE programs too.

When there's a problem in the EFI stub, I guess that the kernel did not even start, so no kernel parameters will help you.

But the Grub2 will do. Tested myself.

Last edited by LuckyCyborg; 08-02-2022 at 10:38 AM.
 
1 members found this post helpful.
Old 08-02-2022, 10:37 AM   #4660
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,062

Rep: Reputation: Disabled
Quote:
Originally Posted by Chuck56 View Post
Is there a kernel append entry to disable efi stub support or does the kernel have to rebuilt with CONFIG_EFI_STUB not set?
As far as now you need to re-configure and re-build your kernel. Doing this indeed will deprive your kernel of the ability to bootstrap itself, with possibly a bundled initrd, making of it a live system packed in a single EFI binary as well as an EFI OS loader, thus not needing any external boot loader (lilo, elilo, syslinux, grub2, systemd-boot, rEFInd, whatever). In other words, you can't eat your lunch and have it. Using this features means that every time you install a new kernel you have to rebuild it, so that that's just a use case among others.

Last edited by Didier Spaier; 08-02-2022 at 10:57 AM.
 
1 members found this post helpful.
Old 08-02-2022, 10:39 AM   #4661
kjhambrick
Senior Member
 
Registered: Jul 2005
Location: Round Rock, TX
Distribution: Slackware64 15.0 + Multilib
Posts: 2,159

Rep: Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512
Quote:
Originally Posted by Chuck56 View Post
Is there a kernel append entry to disable efi stub support or does the kernel have to rebuilt with CONFIG_EFI_STUB not set?

I tried to append 'efi=noruntime' but no joy.
Chuck56 --

There is a new Kernel Commandline Parameter in /usr/src/linux-5.19.0/Documentation/admin-guide/kernel-parameters.txt that claims to do what you suggest:
Code:
        efi=            [EFI]
                        Format: { "debug", "disable_early_pci_dma",
                                  "nochunk", "noruntime", "nosoftreserve",
                                  "novamap", "no_disable_early_pci_dma" }
                        debug: enable misc debug output.
                        disable_early_pci_dma: disable the busmaster bit on all
                        PCI bridges while in the EFI boot stub.
                        nochunk: disable reading files in "chunks" in the EFI
                        boot stub, as chunking can cause problems with some
                        firmware implementations.
                        noruntime : disable EFI runtime services support
                        nosoftreserve: The EFI_MEMORY_SP (Specific Purpose)
                        attribute may cause the kernel to reserve the
                        memory range for a memory mapping driver to
                        claim. Specify efi=nosoftreserve to disable this
                        reservation and treat the memory by its base type
                        (i.e. EFI_CONVENTIONAL_MEMORY / "System RAM").
                        novamap: do not call SetVirtualAddressMap().
                        no_disable_early_pci_dma: Leave the busmaster bit set
                        on all PCI bridges while in the EFI boot stub
And it appears to match the syntax that you tried.

I'm not ready to try 5.19.y in my Slackware64 15.0 system yet so I can't say whether it actually works for me or not ...

HTH

-- kjh

p.p.s. I run GRUB2 and I won't be reverting so I can't help here ...

p.s. reading Didier's Post ... here is a blurb from /usr/src/linux-5.19.0/Documentation/admin-guide/efi-stub.rst
Code:
=================
The EFI Boot Stub
=================

On the x86 and ARM platforms, a kernel zImage/bzImage can masquerade
as a PE/COFF image, thereby convincing EFI firmware loaders to load
it as an EFI executable. The code that modifies the bzImage header,
along with the EFI-specific entry point that the firmware loader
jumps to are collectively known as the "EFI boot stub", and live in
arch/x86/boot/header.S and arch/x86/boot/compressed/eboot.c,
respectively. For ARM the EFI stub is implemented in
arch/arm/boot/compressed/efi-header.S and
arch/arm/boot/compressed/efi-stub.c. EFI stub code that is shared
between architectures is in drivers/firmware/efi/libstub.

For arm64, there is no compressed kernel support, so the Image itself
masquerades as a PE/COFF image and the EFI stub is linked into the
kernel. The arm64 EFI stub lives in arch/arm64/kernel/efi-entry.S
and drivers/firmware/efi/libstub/arm64-stub.c.

By using the EFI boot stub it's possible to boot a Linux kernel
without the use of a conventional EFI boot loader, such as grub or
elilo. Since the EFI boot stub performs the jobs of a boot loader, in
a certain sense it *IS* the boot loader.

The EFI boot stub is enabled with the CONFIG_EFI_STUB kernel option.

Last edited by kjhambrick; 08-02-2022 at 10:52 AM. Reason: p,s,p.p.s.
 
1 members found this post helpful.
Old 08-02-2022, 10:41 AM   #4662
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,062

Rep: Reputation: Disabled
Quote:
Originally Posted by LuckyCyborg View Post
When there's a problem in the EFI stub, I guess that the kernel did not even start, so no kernel parameters will help you.
Better know which kernel parameters you need in the embedded command line, else you are good for a rebuild
 
Old 08-02-2022, 10:43 AM   #4663
Chuck56
Member
 
Registered: Dec 2006
Location: Colorado, USA
Distribution: Slackware
Posts: 930

Rep: Reputation: 479Reputation: 479Reputation: 479Reputation: 479Reputation: 479
Quote:
Originally Posted by LuckyCyborg View Post
...
But the Grub2 will do. Tested myself.
Yep, I've got grub2 installed and functioning with 5.19.0. I was hoping for something simple to enable elilo & Pat's 5.19.0. Thanks!
 
Old 08-02-2022, 10:44 AM   #4664
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,062

Rep: Reputation: Disabled
Quote:
Originally Posted by kjhambrick View Post
noruntime : disable EFI runtime services support
I doubt this will work, as we are speaking about boot time support, not run time. Further that's not a good idea IMHO as this probably disallow you to edit the NVRAM variables from a running system......

Last edited by Didier Spaier; 08-02-2022 at 11:16 AM.
 
2 members found this post helpful.
Old 08-02-2022, 11:24 AM   #4665
rogan
Member
 
Registered: Aug 2004
Distribution: Slackware
Posts: 216

Rep: Reputation: 117Reputation: 117
This is pure speculation, but I suspect elilo uses the efi stub by default and acts as a boot loader if it has to. That would explain why it works with a kernel without the stub.
Has anyone tried using rEFInd with the 5.19.0 ?
 
2 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux.conf.au: Latest Linux kernel release due early March DragonSlayer48DX Linux - News 0 01-18-2010 10:43 PM
No video on latest kernel release Tralce Linux - Kernel 3 11-30-2006 07:48 AM
What is the latest Redhat release TILEMANN Linux - Software 5 11-20-2006 10:48 PM
LXer: News: OpenVZ To Release Support, Patches for Latest Kernel LXer Syndicated Linux News 0 11-01-2006 10:54 PM
latest debian release? doralsoral Linux - Software 5 12-25-2004 12:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 12:12 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration