On Sun, Jun 29, 2003 at 11:25:01AM +0300, Michael Sternberg wrote:
> Hello
> 
> I'm mounting my root filesystem (cramfs) from mtd block device.
> With small images (2Mb) everything works just fine.
> With large images (8+Mb) I can create image, copy it to the flash
> and even mount it as loop device or directly from flash - no errors
> at all.
> 
> Hovewer, when I trying to start kernel with root=/dev/mtdblock1 it
> gives me a lot of errors (like "Error -3 while decompressing!"
> or "Illegal instruction" etc..).

Can you try to mount it from a small initrd? Maybe even as a permanent
solution. At the end of it do pivot_root. A good article about this can
be found by googling for 'pivot_root shoelace'. It will also be easier
to debug.
BTW, if you suspect cramfs, you might consider cloop (from knoppix).
It's more wasteful, though.

> 
> Tried to google a little - the single advice that I've found was to
> perform eraseall to flash before copying the image. I did - it did not
> help.

I also had problems with flashes (both DiskOnKey-style and a digicam
with SmartMedia) on the first use, that a complete 'dd if=/dev/zero
of=/dev/something' solved.
This dd was also much slower than further ones - I guess a first write
to a flash does something special (like a low-level format).
-- 
Didi

> 
>                       Thanks for any tips.
>                               Michael
> 
> -- 
> 
> 
> 
> =================================================================
> To unsubscribe, send mail to [EMAIL PROTECTED] with
> the word "unsubscribe" in the message body, e.g., run the command
> echo unsubscribe | mail [EMAIL PROTECTED]

=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]

Reply via email to