Where to find initrd .img and kernel parameter
Hi folks,
Installation of LFS 6.1 has been finished. Now I'm going to edit /etc/grub.conf of the FC3 Host making dual boot at starting the PC. I found LFS Kernel = lfskernel-2.6.11.12 Under The path to the kernel image........ On 8.3. Linux-2.6.11.12 http://www.linuxfromscratch.org/lfs/...08/kernel.html Where can I find its initrd .img and the kernel parameter. TIA B.R. satimis |
There is no initrd image for LFS by default.
Here's what an LFS entry looks like: title LFS 6.1 root (hd0,3) kernel /boot/lfskernel-2.6.11.12 root=/dev/hda4 On the kernel line you can add something like: vga=795 for a framebuffer that's 1280x1024 (but you have to enable framebuffer support in the kernel). |
Hi kjordan,
Tks for your advice. Hereunder is /etc/grub.conf of FC3 Host Code:
#boot=/dev/hda Code:
#boot=/dev/hda If I'm wrong, please correct me. Tks Quote:
Quote:
B.R. satimis |
Yes, hd(0,5) is correct as long as you have a folder called boot on there and there is a kernel image named lfskernel-2.6.11.12 in there.
Quote:
|
Hi kjordan,
Finally I finished the building of LFS 6.1. Having edited FC3 Host /etc/grub.con manually and with command "shutdown -r now" to reboot the PC. LFS 6.1 booted but can't login. local.localdomain login: (I suppose it is LFS login) Tried Login = root/LFS/lls Password = lfs_password/host_password Always mentioning "Login incorrect" On Host's console I can login LFS with $ su - lfs password = lfs_password lfs~:# Repeated following steps and met with failure; 1) 8.3. Linux-2.6.11.12 http://www.linuxfromscratch.org/lfs/...08/kernel.html and 8.4. Making the LFS System Bootable http://www.linuxfromscratch.org/lfs/...er08/grub.html Recompiled kernel and then ran root:/sources/linux-2.6.11.12# dd if=/boot/grub/stage1 of=/dev/fd0 bs=512 count=1 Code:
1+0 records in Code:
198+1 records in 2) root:/sources/linux-2.6.11.12# grub grub> root (hd0,5) [Enter] Error 21: Selected disk does not exist grub> setup (hd0) [Enter] Error 12: Invalid device requested grub> root Pressing Tab no function 3) root:/sources/linux-2.6.11.12# shutdown -r now LFS kernel not found on the boot loader. I have to start FC3 Host to edit /etc/grub.conf manually. Kindly advise. TIA B.R. satimis |
LFS 6.1 is now running
Hi kjordan,
Finally LFS 6.1 is up running: After booting it prompted localhost.localdomain login: root password: -bash-3.0# ls /boot/ Code:
Config-2.6.11.12.grub lfskernel-2.6.11.12 system.map-2.6.11.12 SOLUTION ========= Copied Root password of FC3 Host on /etc/shadow to /mnt/lfs/etc/shadow Lot of tks for your assistance in the past. B.R. satimis |
Well, the real root password before you overwrote it with your FC3 password was what you would have set in the shadow chapter when it prompted you to "passwd root", although I suppose if you wanted the passwords the same copying the shadow file is alright too. Good luck and have fun with BLFS ;)
|
Hi kjordan,
Quote:
Up to now I still could not have a breakthroungh on creating a rescure floppy according to the instruction. B.R. satimis |
Re colour depth and framebuffer support
Hi kjordan,
Further questions : - re "vga=795" and "for a framebuffer that's 1280x1024 (but you have to enable framebuffer support in the kernel)." If I want 1024 x 768, 24 bit colour depth, how to set it On compiling kernel - "make menuconfig" under which item I can find "framebuffer support" to get it enabled. TIA B.R. satimis |
vga=0x318 for 1024x768 16M colors
Device Drivers -> Graphics Support -> Console Display Driver Support Enable Video mode selection support and Framebuffer console support and compiled-in fonts and vga 8x8 and 8x16 fonts. |
Hi kjordan,
Quote:
B.R. satimis |
All times are GMT -5. The time now is 06:14 PM. |