LinuxQuestions.org
Register a domain and help support LQ
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 10-28-2005, 06:04 AM   #1
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,415

Rep: Reputation: 53
Problem on booting LFS LiveCD


Hi folks,

Following;
http://www.linuxfromscratch.org/hint...-udev-nptl.txt

I finished building BLFS LiveCD and burned it on CD-RW, all files not being compressed except /usr which was compressed with squashfs; (ISO image size about 430MB)

compressed /usr as usr.sqfs
removed /usr
mkdir /usr
mount usr.sqfs /usr/
all went through without complaint

Now the adventure started. On booting it popup

Verify DM1 Pool Data
Boot from CD
ISOLINUX 3.11 2005-09-02-Copyright(0)
1994-2005 H.Peter Anviin
Missing parameter in Config file
Could not find kernel image : lfskernel
Boot:

It hung here.

Which Config file was referred? If .config of /usr/src/linux-2.6.11/ the directory has been removed including .config. If it needs the .config file where I shall I put it? (I have it saved on another partition)

Which kernel image it referred? At the end of recompiling kernel, I ran;
# cp arch/i386/boot/bzImage /boot/lfscdkernel && cp System.map /boot/

# cat /mnt/livecd/boot/grub/menu.lst
Code:
default 0
timeout 30
color green/black light-green/black

title LFS LiveCD
# root (hd0,5)
root
kernel /boot/lfscdkernel root=/ vga=795
title Windows
# rootnoverify (hd0,0)
chainloader +1
Remark: also tried "kernel /boot/lfskernel root=/ vga=795"

# cat /mnt/livecd/etc/fstab
Code:
# file system  mount-point    type    options                              dump  fsck
       		                                                             order

proc           /proc          proc    defaults                                0  0
sysfs          /sys           sysfs   defaults                                0  0
devpts         /dev/pts       devpts  gid=4,mode=620                          0  0
shm            /dev/shm       tmpfs   defaults                                0  0
/dev/fd0       /mnt/floppy    auto    noauto,owner,kudzu                      0  0
usbfs          /proc/bus/usb  usbfs   devgid=14,devmode=0660                  0  0
Please shed me some advise where shall I check. TIA

BR
satimis
 
Old 10-28-2005, 10:53 AM   #2
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,415

Original Poster
Rep: Reputation: 53
Hi folks,

Further to my previous posting. After making following changes

1)
on /isolinux/
renamed "lfscdkernel" to "lfskernel"

2)
/isolinux/isolinux.cfg
adding "vga=795 desktop=twm" after "kernel lfskernel"


Re-burned CD-RW

Now this time PC started to boot but the warning "Missing parameter in config file" still there.

The PC continued to boot until after following lines;
VFS : Mounted root (ext2 filesystem readonly)
Freeing unused kernel memory : 216K freed
Warning unable to open an initial console
Kernel panic - not syncing : No init found
Trying passing init = option to kernel

Then it hung here. Please advise where shall I check. TIA

BR
satimis
 
Old 10-29-2005, 07:08 AM   #3
mr_demilord
Member
 
Registered: Sep 2005
Posts: 244

Rep: Reputation: 30
1st try to check if you have /dev/console and /dev/null, if not create it by entering
cd /dev
mknod -m 660 console c 5 1
mknod -m 660 null c 1 3

If that doesn't work it could be that the cd-rw is bad, try to burn it on a cd-r

Last edited by mr_demilord; 10-29-2005 at 07:18 AM.
 
Old 10-29-2005, 08:09 AM   #4
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,415

Original Poster
Rep: Reputation: 53
Hi mr_demilord,

Tks for your advice.

Quote:
1st try to check if you have /dev/console and /dev/null, if not create it by entering
# ls -l /mnt/livecd/dev/
Code:
total 8
crw-------  1 root root 5, 1 Oct 26 21:30 console
lrwxrwxrwx  1 root root   11 Oct 26 21:38 core -> /proc/kcore
lrwxrwxrwx  1 root root   13 Oct 26 21:38 fd -> /proc/self/fd
crw-rw-rw-  1 root root 1, 3 Oct 26 21:30 null
drwxr-xr-x  2 root root 4096 Oct 26 21:38 pts
drwxr-xr-x  2 root root 4096 Oct 26 21:39 shm
lrwxrwxrwx  1 root root   15 Oct 26 21:38 stderr -> /proc/self/fd/2
lrwxrwxrwx  1 root root   15 Oct 26 21:38 stdin -> /proc/self/fd/0
lrwxrwxrwx  1 root root   15 Oct 26 21:38 stdout -> /proc/self/fd/1
It is there.

I also checked follows;

# ls -l /mnt/livecd/sbin/ | grep init
Code:
-rwxr-xr-x  1 root root  31240 Aug  5 18:57 init
lrwxrwxrwx  1 root root      4 Oct 26 21:19 telinit -> init
About the configure file;
The original ".config" and the kernel source tree have been already deleted. However there is a "Config-2.6.11.12" on /isolinux. Its version number is the same but inside all items previously compiled changed.

# cat /mnt/livecd/isolinux/config-2.6.11.12 | grep BLK_DEV_LOOP
# CONFIG_BLK_DEV_LOOP is not set
# cat /mnt/livecd/isolinux/config-2.6.11.12 | grep SND_PCM
CONFIG_SND_PCM=y
CONFIG_SND_PCM_OSS=y

I copied its orginal ".config" overwriting it and burned another CD. Problem remained the same with the same warnings popup.

# ldd /mnt/livecd/bin/bash
Code:
        linux-gate.so.1 =>  (0x00fbb000)
        libreadline.so.5.0 => not found
        libhistory.so.5.0 => not found
        libncurses.so.5 => /usr/lib/libncurses.so.5 (0x06018000)
        libdl.so.2 => /lib/libdl.so.2 (0x009d3000)
        libc.so.6 => /lib/tls/libc.so.6 (0x00882000)
        /lib/ld-linux.so.2 (0x00868000)
# ls /mnt/livecd/lib | grep linux-gate.so.1
(No printout)
# ls /mnt/livecd/lib | grep libreadline.so.5.0
libreadline.so.5.0
# ls /mnt/livecd/lib | grep libhistory.so.5.0
libhistory.so.5.0
# ls /mnt/livecd/lib | grep libncurses.so.5
libncurses.so.5
libncurses.so.5.4
# ls /mnt/livecd/lib | grep libdl.so.2
libdl.so.2
# ls /mnt/livecd/lib | grep libc.so.6
libc.so.6
# ls /mnt/livecd/lib | grep libdl.so.2
libdl.so.2

Quote:
If that doesn't work it could be that the cd-rw is bad, try to burn it on a cd-r
I'm worring burning dozen of cd-r. So I use cd-rw first. If it works then I'll burn cd-r.

B.R.
satimis
 
Old 10-29-2005, 08:42 AM   #5
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,415

Original Poster
Rep: Reputation: 53
Hi mr_demilord,

Further to my previous posting, I made further test by mounting the BLFS LiveCD

# ls -l /mnt/cdrom/boot/
Code:
total 13792
-r--r--r--  1 root root    2048 Oct 29 17:11 boot.cat
-rw-r--r--  1 root root 1960044 Sep 28 15:21 bzImage-2.6.11.12-sound
-rw-r--r--  1 root root 2115610 Aug 28 22:33 bzImage-2.6.11.12-try2
-rw-r--r--  1 root root   29848 Oct 29 16:28 config-2.6.11.12
-rw-r--r--  1 root root   29442 Oct 29 16:06 config-2.6.11.12.original
drwxr-xr-x  2 root root    2048 Aug  6 23:06 grub
-rw-r--r--  1 root root    3028 Oct 28 11:58 initrd.gz
-rw-r--r--  1 root root   10648 Oct 29 16:57 isolinux.bin
-rw-r--r--  1 root root     148 Oct 28 23:12 isolinux.cfg
-rw-r--r--  1 root root     128 Oct 28 23:07 isolinux.cfg.original
-rw-r--r--  1 root root 1978931 Oct 26 23:36 lfscdkernel
-rw-r--r--  1 root root 1978931 Oct 28 22:25 lfskernel
-rw-r--r--  1 root root 2090310 Aug  5 20:24 lfskernel-2.6.11.12
-rw-r--r--  1 root root  948040 Oct 26 23:36 System.map
-rw-r--r--  1 root root 1009134 Aug  5 20:25 System.map-2.6.11.12
-rw-r--r--  1 root root  944178 Sep 28 15:22 System.map-2.6.11.12-sound
-rw-r--r--  1 root root 1015507 Aug 28 22:34 System.map-2.6.11.12-try2
I suppose "isolinux.cfg" is the config file at booting

# cat /mnt/cdrom/boot/isolinux.cfg
Code:
default livecd

label livecd
  kernel lfskernel vga=795 desktop=twm
  append initrd=initrd.gz root=/dev/ram0 init=/linuxrc
ramdisk_size=16384

EOF
Remark: "vga=795 desktop=twm" were added later

Please advise whether its content is correct? TIA

BR
satimis
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Booting LFS LiveCD in Old World Mac tuxdev Linux From Scratch 4 06-12-2007 03:24 PM
Own LFS LiveCD <100MB? rocknarl Linux From Scratch 1 10-13-2005 08:15 AM
What I should do with LFS LiveCD files? golden_warrior Linux From Scratch 7 10-04-2005 02:57 PM
A question on LFS LiveCD satimis Linux From Scratch 7 08-17-2005 07:22 AM
LFS LiveCD 6.1-2 satimis Linux From Scratch 6 07-25-2005 09:32 PM


All times are GMT -5. The time now is 08:55 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration