On Thu, 21 Aug 2014 21:59:08 +0800 Patrick Kennedy <[email protected]> wrote:
> Okay, it crashed and burned gloriously, and I botched the grub to > boot. ;-) > > After some studies on grub, I can now boot my distro Debian from the > primary hard drive via grub commands...very cool. I can also attempt > to boot my LFS from auxiliary hard drive, and it starts to boot up, > and I see four penguins, a screen's worth of boot messages, and then > it freezes up. > > Questions: > > Firstly, there is /dev, but it only has console and null in it, which > was created earlier per the book. Is that sufficient? Is /dev > populated more as the boot progresses? Seems deficient. No, that should be sufficient. udev should make the other devices as the kernel detects the hardware. But you need the kernel's DEVTMPFS to be set to "y". > > Secondly, I don't see any initrd.img file. Do I need one? Here's > what I see in /boot: > > config-3.13.3 > grub > System-map-3.13.3 > vmlinuz-3.13.3-lfs-7.5 > Normally you only need an initrd for a stock kernel. When you build your own, you should compile in the necessary disk drivers rather than building them as modules, so that nothing needs to be loaded at boot. > I just did "make defconfig" when building the kernel. I figure that > would be the easiest way to test...and just to see if it works. > Maybe I need to load a better driver for auxiliary USB hard drives, > etc., and somehow make that apart of the kernel building, but I would > need to study more on that aspect. The defconfig kernel should contain all the drivers you need but I don't know which ones it compiles in. You can check by looking in the config file in /boot. The SATA and ext4 drivers should definitely be compiled in, not as modules. -- http://lists.linuxfromscratch.org/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page
