[Techtalk] problem loading a kernel

Rajiv Saxena raj_linux at yahoo.com
Mon Sep 3 13:58:06 EST 2001


Hi,

I am trying to load a kernel using a ramdisk.
But it hangs trying to load the init process.

Here's the error text:

PMON> g root=/dev/ram init=/bin/init
.....
.....
Determined physical RAM map:
 memory: 04000000 @ 00000000 (usable)
 memory: 04000000 @ 04000000 (usable)
Initial ramdisk at: 0x80285000 (1152612 bytes)
On node 0 totalpages: 32768
zone(0): 4096 pages.
zone(1): 28672 pages.
zone(2): 0 pages.
Kernel command line: root=/dev/ram init=/bin/init 
Calibrating delay loop... 299.82 BogoMIPS
Memory: 125160k/131072k available (1393k kernel code,
5912k reserved, 1209k data, 72k init)
Dentry-cache hash table entries: 16384 (order: 5,
131072 bytes)
Inode-cache hash table entries: 8192 (order: 4, 65536
bytes)
Buffer-cache hash table entries: 8192 (order: 3, 32768
bytes)
Page-cache hash table entries: 32768 (order: 5, 131072
bytes)
Checking for 'wait' instruction...  available.
POSIX conformance testing by UNIFIX
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society
NET3.039
Initializing RT netlink socket
Starting kswapd v1.8
pty: 256 Unix98 ptys configured
Serial driver version 5.05a (2001-03-20) with
MANY_PORTS SHARE_IRQ SERIAL_PCI enabled
ttyS00 at 0x0000 (irq = 4) is a ST16650
block: queued sectors max/low 83093kB/27697kB, 256
slots per queue
RAMDISK driver initialized: 16 RAM disks of 4096K size
1024 blocksize
SCSI subsystem driver Revision: 1.00
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP, IGMP
IP: routing cache hash table of 1024 buckets, 8Kbytes
TCP: Hash tables configured (established 8192 bind
16384)
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
After do_basic_setup
before calling initrd_load()..
Inside initrd_load...
Inside rd_load_image...
Before blkdev_open...
Before identify_ramdisk_image...
Before checking for compressed image..
RAMDISK: Compressed image found at block 0
After identify_ramdisk_image...
Freeing initrd memory: 1125k freed
Before mount_root..
EXT2-fs warning: checktime reached, running e2fsck is
recommended
VFS: Mounted root (ext2 filesystem).
Freeing unused kernel memory: 72k freed
Kernel panic: No init found.  Try passing init= option
to kernel.

This is how I have built the ramdisk:
# dd if=/dev/zero of=ramdisk bs=1k count=4096 
# mke2fs -Fvm0 ramdisk 4096 
# mount -o loop ramdisk /tmp/ram 

I populated the file system with the following files:
/bin/init(actually sash)
/etc/all files
/dev - console,ram,tty[0-5],tty[S0-S1]
/lib - ld-2.0.6.so,libc-2.0.6.so
/sbin/init

Do I need to have all the libraries in /lib?

Any ideas?

Rajiv



__________________________________________________
Do You Yahoo!?
Get email alerts & NEW webcam video instant messaging with Yahoo! Messenger
http://im.yahoo.com




More information about the Techtalk mailing list