You are not logged in.

#1 2022-12-18 23:43:04

tombenko
Member
From: Balassagyarmat
Registered: 2013-08-24
Posts: 137

Can't change efistub boot order

Hail!
On my HP 250G8 laptop the sound is gone. Reading the forum I found that the cause may be the very new kernel, so I installed the LTS version. Created  the correct efi register, then tried to change the boot order. It seemed to be OK, but after reboot the system booted with the current kernel, and the boot order was the original. Manually was I able to load the LTS kernel, so there is no problem with it. In the wiki there is a section about a similar problem, but I have no other pre-exist boot option.

Offline

#2 2022-12-19 00:52:07

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,178

Re: Can't change efistub boot order

tombenko wrote:

On my HP 250G8 laptop the sound is gone. Reading the forum I found that the cause may be the very new kernel, so I installed the LTS version.

Please link. 'Somewhere on the forum' is a big place.

tombenko wrote:

Created  the correct efi register, then tried to change the boot order.

What command did you execute?

tombenko wrote:

It seemed to be OK,

What was the output? Did you check with efibootmgr to get the list output?

tombenko wrote:

but after reboot the system booted with the current kernel, and the boot order was the original.

What is the output of efibootmgr now?

tombenko wrote:

In the wiki there is a section about a similar problem,

The wiki is also a big place. You do not specify even a page, let alone a section.

tombenko wrote:

but I have no other pre-exist boot option.

??? What are you/were you booting then?

How is your system configured? Which bootloader are you using? Where is your EFI partition mounted? Was the linux-lts kernel correctly installed and was the initramfs generated? (Or if you are using the combined method, was the/were the appropriate combined EFIs generated?) Is secure boot enabled?

Do you have a boot option for the LTS kernel? Can you boot it by bringing up your firmware's boot menu?

Some firmware doesn't like software changing the boot order (or, for that matter, creating boot entries). Were you able to add boot entries and alter the boot order when installing Arch or did you have to configure them in your firmware and/or do something more complicated?


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#3 2022-12-19 19:45:08

tombenko
Member
From: Balassagyarmat
Registered: 2013-08-24
Posts: 137

Re: Can't change efistub boot order

Please link. 'Somewhere on the forum' is a big place.

Here

What command did you execute?

# sudo efibootmgr --create --disk /dev/sda --part 1 --label "Arch Linux LTS" --loader /vmlinuz-linux-lts --unicode "root=/dev/sda3 resume=/dev/sda2 rw initrd=intel-ucode.img initrd=initramfs-linux-lts.img"
# efibootmgr --bootorder 0000,0003,3003
# efibootmgr --unicode

BootCurrent: 0003
Timeout: 3 seconds
BootOrder: 0000,0003,3003
Boot0000* Arch Linux LTS	HD(1,GPT,61d97585-3738-4b8b-bb99-511c96f0089b,0x800,0x100000)/File(\vmlinuz-linux-lts)root=/dev/sda3 resume=/dev/sda2 rw initrd=intel-ucode.img initrd=initramfs-linux-lts.img
Boot0003* Arch Linux	HD(1,GPT,61d97585-3738-4b8b-bb99-511c96f0089b,0x800,0x100000)/File(vmlinuz-linux)root=/dev/sda3 resume=/dev/sda2 rw initrd=intel-ucode.img initrd=initramfs-linux.img
Boot3003* Internal Hard Disk or Solid State Disk

Now, after the reboot:

# efibootmgr --unicode

BootCurrent: 0003
Timeout: 3 seconds
BootOrder: 0003,3003,0000
Boot0000* Arch Linux LTS	HD(1,GPT,61d97585-3738-4b8b-bb99-511c96f0089b,0x800,0x100000)/File(\vmlinuz-linux-lts)root=/dev/sda3 resume=/dev/sda2 rw initrd=intel-ucode.img initrd=initramfs-linux-lts.img
Boot0003* Arch Linux	HD(1,GPT,61d97585-3738-4b8b-bb99-511c96f0089b,0x800,0x100000)/File(vmlinuz-linux)root=/dev/sda3 resume=/dev/sda2 rw initrd=intel-ucode.img initrd=initramfs-linux.img
Boot3003* Internal Hard Disk or Solid State Disk

The wiki is also a big place. You do not specify even a page, let alone a section.

EFISTUB/Troubleshooting

??? What are you/were you booting then?

The original (Boot 0003) line was the only line.

How is your system configured? Which bootloader are you using? Where is your EFI partition mounted? Was the linux-lts kernel correctly installed and was the initramfs generated? (Or if you are using the combined method, was the/were the appropriate combined EFIs generated?) Is secure boot enabled?

# lsblk

NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINTS
sda      8:0    0 238,5G  0 disk 
├─sda1   8:1    0   512M  0 part /boot
├─sda2   8:2    0     8G  0 part [SWAP]
├─sda3   8:3    0    62G  0 part /
└─sda4   8:4    0   168G  0 part /home

Using EFISTUB, kernels were installed by pacman. In the BIOS I didn't remember to change Secure Boot option, so it is on the factory default.

Do you have a boot option for the LTS kernel? Can you boot it by bringing up your firmware's boot menu?

Upper you can see the option. Yes, I can load it from the firmware boot menu, but it has no choice menu by default, I have to get it by pressing ESC before boot.

Some firmware doesn't like software changing the boot order (or, for that matter, creating boot entries). Were you able to add boot entries and alter the boot order when installing Arch or did you have to configure them in your firmware and/or do something more complicated?

Yes, when installed, I created with efibootmgr the correct entry, what was totally bootable. And still is. The LTS bootable too, and still is. I can create boot entries, and they bootable, but I can't change boot order, not even in the BIOS, as I tried today. It's strange. Yah, and sound still out of order. hmm Even with the LTS kernel. hmm
Can I missed anything else?

Offline

#4 2022-12-19 20:22:45

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,259

Re: Can't change efistub boot order

The sound issues are still expected, the broken patch was backported to all stable releases, I've seen reports of it fixed with 6.0.12 but to be sure you'd need to use either one of the patched kernels loqs provided or 6.0.10 or LTS 5.15.80

For the boot order issue, this is probably a case of HP having a buggy EFI implementation, check their firmware menu on whether there's an option to change.

Last edited by V1del (2022-12-19 20:24:18)

Offline

#5 2022-12-19 22:41:51

tombenko
Member
From: Balassagyarmat
Registered: 2013-08-24
Posts: 137

Re: Can't change efistub boot order

I've seen reports of it fixed with 6.0.12

# uname -r
6.0.12-arch1-1

I don't think yet.

but to be sure you'd need to use either one of the patched kernels loqs provided or 6.0.10 or LTS 5.15.80

Is there a link or I have to look for them?

For the boot order issue, this is probably a case of HP having a buggy EFI implementation, check their firmware menu on whether there's an option to change.

Feared of that, Boa.

Thanks for the help!

Offline

#6 2022-12-19 23:13:44

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,259

Re: Can't change efistub boot order

The literal thread and literal post you linked has them. FWIW this only fixes a regression in sound drivers based on SoF firmware is that the case here? What's your

aplay -l

A looks like the links expired/loqs dropped them, you can also simply test 6.0.10: https://archive.archlinux.org/packages/ … kg.tar.zst https://archive.archlinux.org/packages/ … kg.tar.zst

Last edited by V1del (2022-12-19 23:18:40)

Offline

#7 2022-12-19 23:32:37

tombenko
Member
From: Balassagyarmat
Registered: 2013-08-24
Posts: 137

Re: Can't change efistub boot order

# aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: ALC236 Analog [ALC236 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 7: HDMI 1 [HDMI 1]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 8: HDMI 2 [HDMI 2]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 9: HDMI 3 [HDMI 3]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 10: HDMI 4 [HDMI 4]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

Thanks for the links.

Offline

#8 2022-12-19 23:40:10

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,259

Re: Can't change efistub boot order

No SoF HW here so I don't expect this to get fixed, but assuming it's from a kernel regression you should test an older kernel.

Offline

#9 2022-12-19 23:46:33

tombenko
Member
From: Balassagyarmat
Registered: 2013-08-24
Posts: 137

Re: Can't change efistub boot order

Still some quiet ticking, but I have noticed them right after turning on the laptop, before loading the system. Maybe harware error?

Offline

Board footer

Powered by FluxBB