[uClinux-dev] uClinux kernel with ramdisk FS can work?

lnys.tw lnys.tw at yahoo.com.tw
Mon Mar 17 22:56:25 EST 2003


Hi all,

I'm a newbie with unclinux. I can run uClinux kernel
with romfs FS on Samsung 4510 eval board well. But
now, I want to change romfs FS (root) to ramdisk FS
and I fail. (like linux booting with compressed
ramdisk on x86 platform). I check the related
discussions on this mail list before and can't find
the answer to boot uClinux kernel with ramdisk FS
correctly. So I want to ask if it is hard to boot
uClinux with ramdisk FS (I mean need modify a lot of
code or architecture)? Or I miss something (I disable
blkmem driver and enable initial RAM disk (initrd)
support and add fixup function codes to set up ramdisk
start address and size in arch.c)?

my booting output as follows :

Linux version 2.4.20-uc0 (lnys at miracle.avamax.com)
(gcc version 2.95.3 20010315
(release)(ColdFire patches - 20010318 from
http://fiddes.net/coldfire/)(-msep-da
ta patches)) #295 Mon Mar 17 17:53:31 CST 2003
Processor: Samsung S3C4510B revision 6
Architecture: SNDS100
On node 0 totalpages: 4096
zone(0): 0 pages.
zone(1): 4096 pages.
zone(2): 0 pages.
Kernel command line: root=/dev/ram0
Calibrating delay loop... 3.30 BogoMIPS
Memory: 16MB = 16MB total
Memory: 15052KB available (879K code, 197K data, 44K
init)
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)
POSIX conformance testing by UNIFIX
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society
NET3.039
Initializing RT netlink socket
ttyS00 at 0x3ffd000 (irq = 5) is a S3C4510B
ttyS01 at 0x3ffe000 (irq = 7) is a S3C4510B
RAMDISK driver initialized: 16 RAM disks of 2048K size
1024 blocksize
loop: loaded (max 8 devices)
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP
IP: routing cache hash table of 512 buckets, 4Kbytes
TCP: Hash tables configured (established 1024 bind
1024)
RAMDISK: Compressed image found at block 0
Freeing initrd memory: 3072K
VFS: Mounted root (ext2 filesystem).
Freeing init memory: 44K
Warning: unable to open an initial console.
Kernel panic: Attempted to kill init!


-----------------------------------------------------------------
每天都 Yahoo!奇摩
該換工作了嗎? - 幫你算出最合適的求職方向
http://fate.yahoo.com.tw/



More information about the uClinux-dev mailing list