Where is my shell ?

Levend Sayar levend.sayar at karel.com.tr
Mon Apr 2 09:05:22 UTC 2007


Hi, all
I am trying to port Linux 2.4.32 to 386ex based embedded board. This is my
very first attempt. I am using 4MB initrd image as root fs. Everything goes
fine. I compiled busybox as a static image and install to my initrd image. I
want to get a shell but nothing written to my console from busybox. AFAIK,
/sbin/init is loaded by the kernel successfully, since I added some printk
messages to trace what's going on. I deleted that lines from the log below
for clearity. But somehow I couldn't get a user space app to write anything
to the console.

gcc 3.3.3
Busybox 1.1.0
glibc 2.4

etc/inittab content :
::sysinit:/etc/init.d/rcS
::respawn:-/bin/sh

etc/init.d/rcS content :
#!/bin/sh
/bin/mount -t proc proc /proc

console output :

Uncompressing Linux... Ok, booting the kernel.
Linux version 2.4.32 (root at ds300)(gcc version 3.3.3 (SuSE Linux)) #35 Wed
Mar 28 15:13:39 EEST 2007
BIOS-provided physical RAM map:
 BIOS-e801: 0000000000000000 - 000000000009f000 (usable)
 BIOS-e801: 0000000000100000 - 0000000000a00000 (usable)
10MB LOWMEM available.
On node 0 totalpages: 2560
zone(0): 2560 pages.
zone(1): 0 pages.
zone(2): 0 pages.
DMI not present.
Kernel command line: root=/dev/ram rw
Initializing CPU#0
Calibrating delay loop... 4.04 BogoMIPS
Memory: 4832k/10240k available (507k kernel code, 5020k reserved, 93k data,
40k
init, 0k highmem)
Checking if this processor honours the WP bit even in supervisor mode... No.
Dentry cache hash table entries: 2048 (order: 2, 16384 bytes)
Inode cache hash table entries: 1024 (order: 1, 8192 bytes)
Mount cache hash table entries: 512 (order: 0, 4096 bytes)
Buffer cache hash table entries: 1024 (order: 0, 4096 bytes)
Page-cache hash table entries: 4096 (order: 2, 16384 bytes)
CPU: 386
Checking 'hlt' instruction... disabled
Checking for popad bug... OK.
POSIX conformance testing by UNIFIX
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
Starting kswapd
pty: 256 Unix98 ptys configured
Serial driver version 5.05c (2001-07-08) with no serial options enabled
ttyS00 at 0x03f8 (irq = 4) is a 16450
ttyS01 at 0x02f8 (irq = 3) is a 16450
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
RAMDISK: ext2 filesystem found at block 0
RAMDISK: Loading 4096 blocks [1 disk] into ram disk... done.
Freeing initrd memory: 4096k freed
EXT2-fs warning: mounting unchecked fs, running e2fsck is recommended
VFS: Mounted root (ext2 filesystem).
Freeing unused kernel memory: 40k freed

--Nothing written anymore from this point ...


_lvnd_
 (^_^)



-----------------------------------------------------------------------
Bu mesaj Karel MailScanner ile tehlikeli icerik ve virus kontrolunden gecirilmistir.
KAREL A.S. - Bilgi Teknolojileri Bolumu
This message has been scanned for viruses and dangerous content by Karel MailScanner, and is believed to be clean.
KAREL A.S. - Information Technologies Department




More information about the busybox mailing list