LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 08-04-2005, 06:21 PM   #1
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,695

Rep: Reputation: 56
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
 
Old 08-04-2005, 10:30 PM   #2
kjordan
Member
 
Registered: Jul 2004
Distribution: LFS, I felt the itch and scratched it
Posts: 227

Rep: Reputation: 31
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).
 
Old 08-05-2005, 04:42 AM   #3
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,695

Original Poster
Rep: Reputation: 56
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
 
Old 08-05-2005, 05:13 AM   #4
kjordan
Member
 
Registered: Jul 2004
Distribution: LFS, I felt the itch and scratched it
Posts: 227

Rep: Reputation: 31
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.
 
Old 08-05-2005, 11:08 AM   #5
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,695

Original Poster
Rep: Reputation: 56
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
 
Old 08-05-2005, 01:17 PM   #6
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,695

Original Poster
Rep: Reputation: 56
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

Last edited by satimis; 08-05-2005 at 01:27 PM.
 
Old 08-05-2005, 02:12 PM   #7
kjordan
Member
 
Registered: Jul 2004
Distribution: LFS, I felt the itch and scratched it
Posts: 227

Rep: Reputation: 31
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
 
Old 08-05-2005, 10:06 PM   #8
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,695

Original Poster
Rep: Reputation: 56
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
 
Old 08-05-2005, 10:42 PM   #9
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,695

Original Poster
Rep: Reputation: 56
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
 
Old 08-06-2005, 02:39 AM   #10
kjordan
Member
 
Registered: Jul 2004
Distribution: LFS, I felt the itch and scratched it
Posts: 227

Rep: Reputation: 31
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.
 
Old 08-06-2005, 04:23 AM   #11
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,695

Original Poster
Rep: Reputation: 56
Hi kjordan,

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

B.R.
satimis
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to make initrd.img for your kernel without boot disk? donaldtalbert Linux - Software 1 06-19-2005 10:30 PM
Kernel initrd.img? microsoft/linux Debian 15 10-29-2004 12:35 PM
initrd.img GONE after kernel instal?!?! denniz Debian 5 08-17-2004 03:55 PM
no initrd.img after install of new kernel? denniz Linux - General 1 08-17-2004 09:25 AM
no initrd.img after upgrading kernel buknoy Linux - General 1 10-10-2003 04:22 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 02:31 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration