CRAMFS: Error -3 while decompressing!
IGOR LURI
iluri at fagorautomation.es
Tue May 23 20:15:25 EST 2006
>What's /dev/rw ???
Is a mistake, the correct argument is root=/dev/ram.
We would want to use a Compact Flash card with VFAT file system to boot our system, so we need to store a linux kernel image and an initrd image on it.
/boot/initrd.img
/boot/vmlinux.img
/custom/ (custom applications)
The contents of this initrd is basically busybox,libraris and device files:
/bin/busybox (and simbolik links to busybox)
/etc/*
/lib/lib*.so
/dev/*
/proc
/mnt/(here goes mounted Compact Flash card )
U-Boot can load linux kernel image and initrd from Compact Flash to RAM. Then, when linux boots, we can mount the Compact flash card and execute our custom applications.
We haven't choose already the initrd file system type, but CRAMFS is an option. However, as I mentioned in the previos message, a CRAMFS initrd doesn´t boot in our board.
Thanks in advance.
-----Mensaje original-----
De: wd at denx.de [mailto:wd at denx.de]
Enviado el: lunes, 22 de mayo de 2006 22:59
Para: IGOR LURI
CC: linuxppc-embedded at ozlabs.org
Asunto: Re: CRAMFS: Error -3 while decompressing!
In message <44718702.1070809 at fagorautomation.es> you wrote:
>
> We have a mpc5200liteB evaluation board with u-boot 1.1.4 and linux
> 2.4.25 from Denx. We have grabed a cramfs root fs on a mtd partition
> and we are able to boot linux without problems:
...
> However, we are not able to boot linux with the same rootfs image (with
> the u-boot header) loaded from RAM.
>
> setenv bootargs root=/dev/rw rw console=ttyS0 console=ttyS0
> init=/sbin/init ip=on
What's /dev/rw ???
> and CRAMFS image is built with correct endianess:
Ummm.. Why would you want to use a cramfs file system in a ramdisk
image? This iseems to be a truely pessimal combination of features to
me. Please see
http://www.denx.de/wiki/view/DULG/RootFileSystemDesignAndBuilding for
some hints...
Best regards,
Wolfgang Denk
--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
"Life sucks, but it's better than the alternative."
- Peter da Silva
More information about the Linuxppc-embedded
mailing list