On 21.1.2015 14:50, [email protected] wrote:
You managed to get lubuntu booting by using the rescue disk, so I suggest
you get back to that situation, boot lubuntu, then _copy_ the LFS kernel
(only) to your lubuntu system and add the menu entry to lubuntu's grub.cfg.
Then, try booting LFS again. Getting a grub rescue prompt is not common,
perhaps the LFS and lubuntu grub files conflicted with each other.
*************
As described above, I copied vmlinuz-3.16.2-lfs-7.6 to lubuntu's sda1 /boot
dir. Then modified lubuntu's grub.cfg (section 40_custom) as shown below:
menuentry "GNU/Linux, Linux 3.16.2-lfs-7.6" {
insmod part_msdos
insmod ext2
set root=(hd0,1)
linux /boot/vmlinuz-3.16.2-lfs-7.6 root=/dev/sda3 ro
}
When powering up grub allows me to select which kernel to load. However,
when I select the LFS option the kernel appears to start but then delivers a
kernel panic and recommends adding an init file. I then copied the
System.map-3.16.2 file to lubuntu's /boot dir also but that made no
difference. My understanding is that even if the initramfs source is ""
(empty) like below, the kernel will still produce one. Just don't seem to
be able to get it working.
kernel .config contains these settings:
Generic Driver Settings:
#CONFIG_UEVENT_HELPER is not set
CONFIG_DEVTMPFS=y
Also....
CONFIG_BLK_DEV_INITRD=y
CONFIG_INITRAMFS_SOURCE=""
CONFIG_DEVTMPFS_MOUNT=y
Richard
*************
Kernel panic like that comes from kernel not being able to mount the
rootfs or being able to mount rootfs, but not being able to execute
/sbin/init for some reason.
To solve the first problem, you need to reconfigure your kernel to
include (include, not as module) disk and filesystem drivers that your
root partition resides on. The following document may help you achieve
that, as well as your host's lsmod output:
http://www.linuxfromscratch.org/~krejzi/basic-kernel.txt
If the second part is true, which is not very likely, you need to check
whether the /sbin/init in your LFS installation is a valid executable
and is linked to valid libraries. Not so long ago I've managed to get
"could not execute /sbin/init" because I've built 64 bit system but
somehow managed to deselect the "64 bit" in the kernel configuration,
thus building a 32 bit kernel while the userspace was 64 bit.
--
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