kernel from own built package won't boot
Hi, I have made a thread on the forum: https://bbs.archlinux.org/viewtopic.php?id=293601 But I did not get much help. I don't know if it is appropriate to post here. I have dug a bit into my issue, and when I build an official PKGBUILD for a kernel, be it linux or linux-zen (pkctl repo clone linux); makepkg --skippgpcheck; sudo pacman-U linux-...), the kernel is not booting with an error. At first, I was thinking it was related to either Secure Boot or shim, or the UKI, but later tests in VMs using BIOS revealed the problem was still there. And I got an error message from the kernel: "ZSTD-compressed data is corrupt" (when booting with limine in BIOS) I found that very string in ./lib/decompress_unzstd.c. in the kernel source. I even rebuilt the kernel inside the VM to rule out host issue (?). I later used an initramfs with no compression (COMPRESSION="cat") and using uncompressed modules in it (MODULES_DECOMPRESS="yes"). But the problem remained. I tried to boot the kernel with the same package on another machine. Still the same. How could this happen? Is it my installation of archlinux? The compilation of the kernel ? Is it something else? What? mkinitcpio? but why does it work with the official package, then? Could you reproduce it? Thanks
Hi, Google offers countless threads related to "ZSTD-compressed data is corrupt". Maybe one of those threads is helpful. I can't help with this. While it might not be helpful in your case, it doesn't harm to build in a clean chroot. https://wiki.archlinux.org/title/DeveloperWiki:Building_in_a_clean_chroot#Se... https://wiki.archlinux.org/title/DeveloperWiki:Building_in_a_clean_chroot#Bu... Regards, Ralf
participants (2)
-
Ralf Mardorf
-
solsTiCe d'Hiver