On 11/26/19 12:11 PM, JackMacWindows wrote:
Hello,
I've just finished setting up an x86_64 LFS installation on a flash drive. I have followed the LFS 9.0 book almost exactly, except that I upgraded the kernel to 5.2.21, and I'm using UEFI instead of BIOS for GRUB using the hint given in Chapter 8.4. To test the new setup, I ran a QEMU VM using the OVMF EFI, booting from the drive via -hda. It worked fine, booting to the Bash prompt and everything. I then tested the installation on real hardware, but the kernel panicked saying it couldn't find init. But even after setting init=/sbin/init, Linux still panicked saying "Requested init /sbin/init failed (error -2)". I have tried reinstalling sysvinit to no avail, and I have been unable to reproduce the issue in any VM (QEMU, VirtualBox). Loading the kernel manually in QEMU (-kernel) works too, which bypasses the UEFI entirely. I've also tried using different computers, but they still have the same problem. Does anybody have any idea why this may be happening?

Hi Jack,

It seems that you're getting your system to initialize the kernel, so that's a good sign. At this point, this normally leads to a driver problem (although I only have legacy systems, I have UEFI/secure boot disabled on my newer equipment). I'm assuming that you have another distro on your real hardware, but if you don't, you can boot something like SystemRescueCD off a CD or USB drive to check this. At a terminal, execute the following:

lspci -vv | grep driver


The next thing you're going to want to do is run 'make menuconfig' in your kernel sources, and then press the "/" key (shortcut for "Find"), and type in the name of each driver (it'll be in the output of "kernel driver in use:"). Make sure that each one is enabled (built in, not modules), especially the driver for your SATA controller.

After that, make sure that you have the proper filesystem support built in. I know you've got it to boot in a VM though, so I'm sure this is redundant, but it's important to make sure it's enabled anyway :-)

-- 
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Do not top post on this list.

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

http://en.wikipedia.org/wiki/Posting_style

Reply via email to