Bug#1035477: installation-reports: grub or kernel of D-I image hangs on Thinkpad X13s after "EFI stub: Exiting boot services..."
On Wednesday, 11 October 2023 20:05:43 CEST Emanuele Rocca wrote: > To triple-check that the needed module is in there: > > zstdcat /initrd.img | cpio -itv | grep qnoc-sc8280xp.ko ICYDK: there's also an `lsinitramfs` command signature.asc Description: This is a digitally signed message part.
Bug#1035477: installation-reports: grub or kernel of D-I image hangs on Thinkpad X13s after "EFI stub: Exiting boot services..."
Hi Emanuele, Emanuele Rocca wrote: > On 2023-10-10 01:45, Axel Beckert wrote: > > I tried that, installer ran through fine, grub boots from disk after > > installation, kernel loads initramfs and then falls into the initramfs > > prompt and fractions of a second later (sometimes even beforehand) the > > whole screen goes black and then nothing helps then pressing the power > > button for about 10 seconds. > > This sounds like you might have missed the wiki step "Add qnoc-sc8280xp > module to initramfs": > https://wiki.debian.org/InstallingDebianOn/Thinkpad/X13s I indeed missed that first, but fixed it via rescue mode of the d-i image. > OK then once you chroot into the installed system you should be able to > check if qnoc-sc8280xp is in /etc/initramfs-tools/modules. If not, > > echo qnoc-sc8280xp >> /etc/initramfs-tools/modules Was already in there. > To triple-check that the needed module is in there: > > zstdcat /initrd.img | cpio -itv | grep qnoc-sc8280xp.ko Was also already in there. Additionally there are quite some messages about things being pending due to waiting for something else from that kernel module seconds before the screen blanks. Can send pictures I made of it, in case they could be helpful. And since you've mentioned /initrd.img instead of /boot/initrd.img (as I have a single filesystem installation for now), I also added a symlink at /initrd.img pointing to /boot/initrd.img. But it didn't change anything either. (I later noticed that this likely was unnecessary as GRUB also looks for kernel and initrd.img under /boot and for a versioned file anyways.) > In any case, the daily netinst image should now work! Indeed. Had to use that to check the above today as the mini.iso no more works due to the updated kernel in sid. > There's no need to manually copy any firmware and similar > shenanigans. Well, still quite some shenanigans left for now. > If you have the time, please follow the > InstallingDebianOn/Thinkpad/X13s page again from the begingging to > the end (quite a few things have changed) and let me know if that > works for you. Haven't done a reinstallation for now. (And I'm actually not that keen on it currently, but I will have to do it at some point, because I forgot to enable disk encryption. But I'd first like to understand what's wrong as I seem to have followed all steps.) Via d-i's rescue mode I have also updated the kernel to 6.5.0-2, but the symptoms stay: Lots of "pending/waiting for" message by qnoc-sc8280xp and then a dark, blank screen and nothing happens anymore. Regards, Axel -- ,''`. | Axel Beckert , https://people.debian.org/~abe/ : :' : | Debian Developer, ftp.ch.debian.org Admin `. `' | 4096R: 2517 B724 C5F6 CA99 5329 6E61 2FF9 CD59 6126 16B5 `-| 1024D: F067 EA27 26B9 C3FC 1486 202E C09E 1D89 9593 0EDE
Bug#1035477: installation-reports: grub or kernel of D-I image hangs on Thinkpad X13s after "EFI stub: Exiting boot services..."
Hi Axel, On 2023-10-10 01:45, Axel Beckert wrote: > I tried that, installer ran through fine, grub boots from disk after > installation, kernel loads initramfs and then falls into the initramfs > prompt and fractions of a second later (sometimes even beforehand) the > whole screen goes black and then nothing helps then pressing the power > button for about 10 seconds. This sounds like you might have missed the wiki step "Add qnoc-sc8280xp module to initramfs": https://wiki.debian.org/InstallingDebianOn/Thinkpad/X13s > And I can easily install tons of packages when I boot from the > installer USB stick into the rescue mode and chroot into the > installation on disk. OK then once you chroot into the installed system you should be able to check if qnoc-sc8280xp is in /etc/initramfs-tools/modules. If not, echo qnoc-sc8280xp >> /etc/initramfs-tools/modules update-initramfs -u -k all To triple-check that the needed module is in there: zstdcat /initrd.img | cpio -itv | grep qnoc-sc8280xp.ko In any case, the daily netinst image should now work! There's no need to manually copy any firmware and similar shenanigans. If you have the time, please follow the InstallingDebianOn/Thinkpad/X13s page again from the begingging to the end (quite a few things have changed) and let me know if that works for you. Thanks, Emanuele
Bug#1035477: installation-reports: grub or kernel of D-I image hangs on Thinkpad X13s after "EFI stub: Exiting boot services..."
Hi Emanuele, Axel Beckert wrote: > Emanuele Rocca wrote: > > On 2023-05-04 11:53, Axel Beckert wrote: > > > Sure. I intend to run Debian Unstable on it anyway > > > > Now you can. :-) > > Hmmm, I tried a few days ago (October 1st) with the image from > https://cdimage.debian.org/cdimage/daily-builds/sid_d-i/current/arm64/iso-cd/ > and it hang with a message saying something about "generating empty > device tree" or so. And that image didn't contain the dtb files to copy while the mini.iso from d-i.d.o did. > > https://wiki.debian.org/InstallingDebianOn/Thinkpad/X13s > > Ah, I see, there's much more than just the installer image needed. I tried that, installer ran through fine, grub boots from disk after installation, kernel loads initramfs and then falls into the initramfs prompt and fractions of a second later (sometimes even beforehand) the whole screen goes black and then nothing helps then pressing the power button for about 10 seconds. The same happens if I start the recovery mode from the grub menu when booting from the disk. arm64.nopauth is in there. And I can easily install tons of packages when I boot from the installer USB stick into the rescue mode and chroot into the installation on disk. Even installing the recommended packages did not change anything with regards to the screen going black about 12 seconds after booting. I also tried to disable any console font changes via dpkg-reconfigure -plow console-setup console-setup-linux but to no avail. Any ideas what could have gone wrong or how I can fix this? I feel I'm _s_ close. :-) Regards, Axel -- ,''`. | Axel Beckert , https://people.debian.org/~abe/ : :' : | Debian Developer, ftp.ch.debian.org Admin `. `' | 4096R: 2517 B724 C5F6 CA99 5329 6E61 2FF9 CD59 6126 16B5 `-| 1024D: F067 EA27 26B9 C3FC 1486 202E C09E 1D89 9593 0EDE
Bug#1035477: installation-reports: grub or kernel of D-I image hangs on Thinkpad X13s after "EFI stub: Exiting boot services..."
Hi Emanuele, Emanuele Rocca wrote: > On 2023-05-04 11:53, Axel Beckert wrote: > > Sure. I intend to run Debian Unstable on it anyway > > Now you can. :-) Hmmm, I tried a few days ago (October 1st) with the image from https://cdimage.debian.org/cdimage/daily-builds/sid_d-i/current/arm64/iso-cd/ and it hang with a message saying something about "generating empty device tree" or so. > https://wiki.debian.org/InstallingDebianOn/Thinkpad/X13s Ah, I see, there's much more than just the installer image needed. Thanks for that hint! Regards, Axel -- ,''`. | Axel Beckert , https://people.debian.org/~abe/ : :' : | Debian Developer, ftp.ch.debian.org Admin `. `' | 4096R: 2517 B724 C5F6 CA99 5329 6E61 2FF9 CD59 6126 16B5 `-| 1024D: F067 EA27 26B9 C3FC 1486 202E C09E 1D89 9593 0EDE
Bug#1035477: installation-reports: grub or kernel of D-I image hangs on Thinkpad X13s after "EFI stub: Exiting boot services..."
Hi Emanuele, Emanuele Rocca wrote: > On 2023-05-03 08:16, Axel Beckert wrote: > > Machine: Thinkpad X13s (ARM) > > Sorry, I've realized only after sending my previous message and having a > coffee that this is about the X13s. :) :-) > The X13s is unfortunately not supported by Linux 6.1 that Bookworm will > ship with. Oh, ok. I see. > Hopefully 6.4 will include all the needed patches. xnox's image uses 6.2 so far, i.e. also something newer than 6.1. > > But Dimitri's Ubuntu Installer Live image lunar-desktop-arm64.iso from > > https://people.canonical.com/~xnox/ubuntu-concept/full/daily-live/current/ > > as of 2023-03-07 20:08 booted fine without these issues. > > > > It would be nice if Dimitri (xnox@d.o, Cc'ed) could tell us which fix > > has been applied by him (or Ubuntu) to this image so that we can fix > > this issue also in Debian, maybe even before the release of Bookworm. > > If that image works, then it includes quite a few of out of tree kernel > patches. I see. I kinda hoped it would just be some not enabled drivers or bugs in the .dtb file or so as the D-I RC2 announcement mentioned the X13s explicitly (admittelly only with flash-kernel having gotten support for it). > As per [1] they are unfortunately not going to be applied to > the Debian kernel, we have to wait for upstream inclusion. Sure. I intend to run Debian Unstable on it anyway, so I can wait. :-) Regards, Axel -- ,''`. | Axel Beckert , https://people.debian.org/~abe/ : :' : | Debian Developer, ftp.ch.debian.org Admin `. `' | 4096R: 2517 B724 C5F6 CA99 5329 6E61 2FF9 CD59 6126 16B5 `-| 1024D: F067 EA27 26B9 C3FC 1486 202E C09E 1D89 9593 0EDE
Bug#1035477: installation-reports: grub or kernel of D-I image hangs on Thinkpad X13s after "EFI stub: Exiting boot services..."
Hi again, On 2023-05-03 08:16, Axel Beckert wrote: > Machine: Thinkpad X13s (ARM) Sorry, I've realized only after sending my previous message and having a coffee that this is about the X13s. :) The X13s is unfortunately not supported by Linux 6.1 that Bookworm will ship with. Hopefully 6.4 will include all the needed patches. > But Dimitri's Ubuntu Installer Live image lunar-desktop-arm64.iso from > https://people.canonical.com/~xnox/ubuntu-concept/full/daily-live/current/ > as of 2023-03-07 20:08 booted fine without these issues. > > It would be nice if Dimitri (xnox@d.o, Cc'ed) could tell us which fix > has been applied by him (or Ubuntu) to this image so that we can fix > this issue also in Debian, maybe even before the release of Bookworm. If that image works, then it includes quite a few of out of tree kernel patches. As per [1] they are unfortunately not going to be applied to the Debian kernel, we have to wait for upstream inclusion. Emanuele [1] https://wiki.debian.org/DebianKernelPatchAcceptanceGuidelines
Bug#1035477: installation-reports: grub or kernel of D-I image hangs on Thinkpad X13s after "EFI stub: Exiting boot services..."
Hi Axel, On 2023-05-03 08:16, Axel Beckert wrote: > After choosing either "expert install" (first and prefered try) or > "graphical expert install" (second try and second choice) I saw these > three lines and then nothing more happened: > > EFI stub: Booting Linux Kernel... > EFI stub: Using DTB from configuration table > EFI stub: Exiting boot services... > > Waited 10 minutes at least, i.e. left it alone, did something else and > came back later. Even adding the "debug" kernel parameter didn't bring > up any more details on what's happening. Perhaps we can get some more output by adding 'earlycon=efifb keep_bootcon' after 'debug' to the kernel CLI. Additionally, please try adding 'set debug=linux' to grub's configuration as well -- after the setparams directive for example. See attached screenshot. Thanks, Emanuele
Bug#1035477: installation-reports: grub or kernel of D-I image hangs on Thinkpad X13s after "EFI stub: Exiting boot services..."
Package: installation-reports Severity: normal Tags: d-i X-Debbugs-Cc: Axel Beckert , Dimitri Ledkov , Debian ARM Mailing List , Manuel Traut Boot method: USB Image version: https://cdimage.debian.org/cdimage/bookworm_di_rc2/arm64/iso-cd/debian-bookworm-DI-rc2-arm64-netinst.iso Date: 2023-05-03, several times between noon and evening (CEST) Machine: Thinkpad X13s (ARM) Partitions: didn't come that far Base System Installation Checklist: [O] = OK, [E] = Error (please elaborate below), [ ] = didn't try it Initial boot: [E] Detect network card:[ ] Configure network: [ ] Detect media: [ ] Load installer modules: [ ] Clock/timezone setup: [ ] User/password setup:[ ] Detect hard drives: [ ] Partition hard drives: [ ] Install base system:[ ] Install tasks: [ ] Install boot loader:[ ] Overall install:[ ] Comments/Problems: [Note: Had to disable Secure Boot, to be able to boot from my USB 3.0 stick (plugged into the Thinkpad USB-C docking station). Before disabling Secure Boot I could choose it as boot device but I was always immediately returned to the device's boot device selection menu.] After choosing either "expert install" (first and prefered try) or "graphical expert install" (second try and second choice) I saw these three lines and then nothing more happened: EFI stub: Booting Linux Kernel... EFI stub: Using DTB from configuration table EFI stub: Exiting boot services... Waited 10 minutes at least, i.e. left it alone, did something else and came back later. Even adding the "debug" kernel parameter didn't bring up any more details on what's happening. Ubuntu seems to have had the same problem with Kinetic according to https://www.reddit.com/r/thinkpad/comments/vh1xse/comment/is1pq78/ But Dimitri's Ubuntu Installer Live image lunar-desktop-arm64.iso from https://people.canonical.com/~xnox/ubuntu-concept/full/daily-live/current/ as of 2023-03-07 20:08 booted fine without these issues. It would be nice if Dimitri (xnox@d.o, Cc'ed) could tell us which fix has been applied by him (or Ubuntu) to this image so that we can fix this issue also in Debian, maybe even before the release of Bookworm. (I only read in the recent D-I RC2 annoucement that there is already some support for the X13s, so I haven't tried it beforehand.) -- Package-specific info: [Stripped as — for obvious reasons — the bug report has been written on a different device.]