[U-Boot-Users] initrd.cramfs.gz.image works?
wd at denx.de
Sun Feb 16 18:54:24 CET 2003
In message <000a01c2d485$873cc1c0$3cabfe81 at bgjung13> you wrote:
> I'd like to boot linux kernel and initrd with "bootm" command.
> I made initrd with "dd, mkfs -t ext2, gzip and mkimage", it works well.
...as it should :-)
> But I made initrd with "mkcramfs, gzip, and mkimage", it dose not work -
> 'Wrong magic" error message.
> Have you ever been to do like this?
It doesn't work that way. "mkcramfs" creates a cramfs image. This is
NOT a ramdisk image, and cannot be used the same way. You have to
write your cramfs image to a flash partition (according to your
partition scheme set by the MTD driver, and mount it in Linux as
You will use a bootm <kernel_addr>" command in combination with
appropriate settings of the "bootargs" variable (i.e. make sure it
contains "root=/dev/mtdblock<N> rw").
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: wd at denx.de
See us @ Embedded World, Nuremberg, Feb 18-20, Hall 12.0 Booth 12-442
More information about the U-Boot