LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   Where to find initrd .img and kernel parameter (https://www.linuxquestions.org/questions/linux-from-scratch-13/where-to-find-initrd-img-and-kernel-parameter-350058/)

satimis 08-04-2005 06:21 PM

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

kjordan 08-04-2005 10:30 PM

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).

satimis 08-05-2005 04:42 AM

Hi kjordan,

Tks for your advice.

Hereunder is /etc/grub.conf of FC3 Host
Code:

#boot=/dev/hda
default=0
timeout=15
splashimage=(hd0,0)/grub/splash.xpm.gz
# hiddenmenu
title Fedora Core (2.6.12-1.1372_FC3)
        root (hd0,0)
        kernel /vmlinuz-2.6.12-1.1372_FC3 ro root=LABEL=/ rhgb quiet
        initrd /initrd-2.6.12-1.1372_FC3.img
title Fedora Core (2.6.11-1.35_FC3)
        root (hd0,0)
        kernel /vmlinuz-2.6.11-1.35_FC3 ro root=LABEL=/ rhgb quiet
        initrd /initrd-2.6.11-1.35_FC3.img

If I understand your advice correctly the new /etc/grub.conf of FC3 Host should look like;
Code:

#boot=/dev/hda
default=0
timeout=15
splashimage=(hd0,0)/grub/splash.xpm.gz
# hiddenmenu
title Fedora Core (2.6.12-1.1372_FC3)
        root (hd0,0)
        kernel /vmlinuz-2.6.12-1.1372_FC3 ro root=LABEL=/ rhgb quiet
        initrd /initrd-2.6.12-1.1372_FC3.img
title Fedora Core (2.6.11-1.35_FC3)
        root (hd0,0)
        kernel /vmlinuz-2.6.11-1.35_FC3 ro root=LABEL=/ rhgb quiet
        initrd /initrd-2.6.11-1.35_FC3.img
title LFS 6.1 (2.6.11.12)
        root (hd0,5)
        kernel /boot/lfskernel-2.6.11.12 ro root=/dev/hda6 vga=795

/dev/hda6 is for LFS. Is "root (hd0,5)" correct?

If I'm wrong, please correct me. Tks

Quote:

There is no initrd image for LFS by default.
Noted.

Quote:

for a framebuffer that's 1280x1024 (but you have to enable framebuffer support in the kernel).
On configuring LFS kernel, I selected all items.

B.R.
satimis

kjordan 08-05-2005 05:13 AM

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:

On configuring LFS kernel, I selected all items.
Wow, that must have been tedious...it would have been easier just to find out what modules you needed.

satimis 08-05-2005 11:08 AM

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
1+0 records out

root:/sources/linux-2.6.11.12# dd if=/boot/grub/stage2 of=/dev/fd0 bs=512 seek=1
Code:

198+1 records in
198+1 records out

Rescue floppy can't be created. Tested on PCs to boot, not working

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

satimis 08-05-2005 01:17 PM

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
Only a black screen displayed because no desktop package installed. Editor -vim

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

kjordan 08-05-2005 02:12 PM

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 ;)

satimis 08-05-2005 10:06 PM

Hi kjordan,

Quote:

Well, the real root password....
There was root password enty on /mnt/lfs/etc/shadow file. It did not work. It was the same password as lfs-user on FC3 Host. I copied it from /etc/shadow to /mnt/lfs/etc/shadow making it as the root password of LFS 6.1 then it worked. It differed from the root password of the Host.

Up to now I still could not have a breakthroungh on creating a rescure floppy according to the instruction.

B.R.
satimis

satimis 08-05-2005 10:42 PM

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

kjordan 08-06-2005 02:39 AM

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.

satimis 08-06-2005 04:23 AM

Hi kjordan,

Quote:

vga=0x318 for 1024x768 16M colors.....
Noted with thanks

B.R.
satimis


All times are GMT -5. The time now is 06:14 PM.