[U-Boot-Users] mkimage parameters for cramfs.img

Wayne Lee wnlee at cad.csie.ncku.edu.tw
Fri May 6 06:45:44 CEST 2005


Hi, u-boot users,

I use uClinux with cramfs filesystem.
The uClinux works when zImage is put at 0x8000 and cramfs.img is put at
0x02000000.

For uClinux kernel, I create linux.bin.gz and make uImage by mkimage.
mkimage -A arm -O linux -T kernel -C gzip -a 0x8000 -e 0x8000 -n "uClinux
2.6.5 Kernel Image" -d linux.bin.gz uImage
Image Name:   uClinux 2.6.5 Kernel Image
Created:      Fri May  6 12:30:15 2005
Image Type:   ARM Linux Kernel Image (gzip compressed)
Data Size:    547132 Bytes = 534.31 kB = 0.52 MB
Load Address: 0x00008000
Entry Point:  0x00008000

uClinux filesystem is encapsulated with mkimage.
mkimage -A arm -O linux -T ramdisk -C none -n "Cramfs Image" -a 0x02000000
-d cramfs.img ucramfs Image Name:   Cramfs Image
Created:      Fri May  6 12:31:51 2005
Image Type:   ARM Linux RAMDisk Image (uncompressed)
Data Size:    655360 Bytes = 640.00 kB = 0.62 MB
Load Address: 0x02000000
Entry Point:  0x02000000

I copy uImage and ucramfs to 0x00400000 and 0x00500000.
After bootm 0x00400000 and 0x00500000, the uClinux kernel is launched.
However, the uClinux kernel cannot find the filesystem to mount.

The message is as follows,
RAMDISK driver initialized: 16 RAM disks of 8192K size 1024 blocksize
loop: loaded (max 8 devices)
NET: Registered protocol family 2
IP: routing cache hash table of 512 buckets, 4Kbytes
TCP: Hash tables configured (established 4096 bind 4096)
NET: Registered protocol family 1
NET: Registered protocol family 17
RAMDISK: Couldn't find valid RAM disk image starting at 0.
Kernel panic: VFS: Unable to mount root fs on ram0

What is the correct mkimage parameters for cramfs.img ?

Thanks.
Wayne







More information about the U-Boot mailing list