Open zacharied opened 6 years ago
For more information, the kernel panic log is as follows:
[ 0.213356] dw_dmac INTL9C60:00: Missing DT data
[ 0.386275] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[ 0.386349] Kernel Offset: 0x2d000000 from 0xffffffff81000000 (relocation range: 0xffffffff80000000-0xffffffffbfffffff)
[ 0.386414] ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
I am able to boot fine into vanilla Linux installed from the Arch repos as well as vanilla Linux built from source on this device, which leads me to believe that it is not a GRUB issue.
I've had similar problems in the past that were resolved by one or both of the following:
mkinitcpio -g /boot/initramfs-linux-samus4.img -k /boot/vmlinuz-linux-samus4
grub-mkconfig -o /boot/grub/grub.cfg
Would you mind giving these a shot?
Indeed, using an initramfs is one possible solution.
This is an issue of not having the proper drivers built into the kernel. This Gentoo wiki explains it well.
We should probably have AHCI (likely the core issue here) and all filesystem drivers built into the kernel in the default config rather than requiring an initramfs for the sake of better compatibility. The way I configure my Gentoo system, I would not use an initramfs at all if I weren't using full disk encryption.
EDIT: @zacharied So, if you don't want to opt for an initramfs, you could try enabling CONFIG_SATA_AHCI
as a built-in driver and ensure that whatever FS driver you use for the root FS is also built-in.
@ehegnes Do you think it might be worthwhile for us to add CONFIG_SATA_AHCI
to the default config to prevent the initramfs requirement?
Sorry for the delay. Creating an initramfs as @christianbundy suggested indeed fixed the boot problems. The compilation warnings remain slightly unsettling though, along with the fact that compilation took upwards of an hour on my machine - could someone confirm that that's normal on a CBP2 LS? I could have sworn it was less than half that time last time I used this kernel.
At least since 4.15 (I stopped using this kernel after distrohopping around 4.12, but came back upon returning to Arch), building the kernel has resulted in a large amount of
objtool
warnings following the same format:Furthermore, the kernel crashes immediately with a kernel panic on boot. I lack enough experience with the kernel to know if these issues are related, but because both problems began at the same time, I can't help but assume so.
I have found related information on the Gentoo forums but it doesn't seem like the mentioned are applicable here.