All of lore.kernel.org
 help / color / mirror / Atom feed
* UBINIZE and UBIFS
@ 2009-08-18  3:08 Jacky Lam
  0 siblings, 0 replies; 3+ messages in thread
From: Jacky Lam @ 2009-08-18  3:08 UTC (permalink / raw)
  To: linux-mtd Mailing List

Dear all,

	I have a problem of embedding a UBIFS image by ubinize. Here is the
config file I am using:
===============================================================
[rootfs]
mode=ubi
image=rfs.bin
vol_id=0
vol_size=10485760
vol_type=dynamic
vol_name=rootfs

[areatest]
mode=ubi
image=test.bin
vol_id=1
vol_size=15728640
vol_type=dynamic
vol_name=areatest

[areauser]
mode=ubi
image=areauser.bin
vol_id=2
vol_size=47185920
vol_type=dynamic
vol_name=areauser
================================================================================

	areauser.bin is created by:

	mkubifs -v -g 1 -r areauser -o areauser.bin -m 4096 -e 516096 -c 92 -x none

	The final image is created by:

	ubinize -o final.raw.2 -m 4096 -p 512KiB ubinize_all.cfg	


	After burning the raw image to nand flash, everything works fine and
ubifs can be mount successfully. All the files are readable. But after I
unmount the ubifs and want to mount again. The following error is happened:
------------------------------------------------------------------------
...
<Many ECC errors reported>
...
UBI error: ubi_io_read: error -74 while reading 516096 bytes from PEB
55:8192, read 516096 bytes
UBIFS error (pid 42): ubifs_scan: corrupt empty space at LEB 1:4691
UBIFS error (pid 42): ubifs_scanned_corruption: corrupted data at LEB 1:4691
UBIFS error (pid 42): ubifs_scanned_corruption: first 4096 bytes from
LEB 1:4691
UBIFS error (pid 42): ubifs_scan: LEB 1 scanning failed
...
<Many ECC errors reported>
...
UBI error: ubi_io_read: error -74 while reading 516096 bytes from PEB
55:8192, read 516096 bytes
UBIFS error (pid 42): ubifs_recover_master_node: failed to recover
master node
mount: mounting ubi0:areauser on /mnt/areauser failed: Invalid argument

-------------------------------------------------------------------------

	However, if I runtime update the areauser.bin by ubiupdatevol, there is
no such problem.

	I have no cue on this, could anyone give me some suggestion?

	Thanks.

BR,
Jacky


Disclaimer: This email and attachments are confidential. If you are not the intended recipient, you must not pursue, use, disseminate, distribute or copy this message, whether in whole or in part. If you have received this message in error, please notify us immediately by email or telephone us at (852) 2832 8228 and delete this message from your system. We do not represent that this email may not be interfered with, may not contain computer viruses or other defects and may not be successfully replicated on other system. 

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: UBINIZE and UBIFS
  2009-08-18  2:27 Jacky Lam
@ 2009-08-18  3:19 ` Jason Liu
  0 siblings, 0 replies; 3+ messages in thread
From: Jason Liu @ 2009-08-18  3:19 UTC (permalink / raw)
  To: Jacky Lam; +Cc: linux-mtd

Your image burning tool has issues. You can try the ubi flasher tool
from the mtd-utility.
Anyway, you should drop program the page with all 0xff if you are
using MLC nand flash.

2009/8/18 Jacky Lam <jackylam.gsl@gmail.com>:
> Dear all,
>
>        I have a problem of embedding a UBIFS image by ubinize. Here is the
> config file I am using:
> ===============================================================
> [rootfs]
> mode=ubi
> image=rfs.bin
> vol_id=0
> vol_size=10485760
> vol_type=dynamic
> vol_name=rootfs
>
> [areatest]
> mode=ubi
> image=test.bin
> vol_id=1
> vol_size=15728640
> vol_type=dynamic
> vol_name=areatest
>
> [areauser]
> mode=ubi
> image=areauser.bin
> vol_id=2
> vol_size=47185920
> vol_type=dynamic
> vol_name=areauser
> ================================================================================
>
>        areauser.bin is created by:
>
>        mkubifs -v -g 1 -r areauser -o areauser.bin -m 4096 -e 516096 -c 92 -x none
>
>        The final image is created by:
>
>        ubinize -o final.raw.2 -m 4096 -p 512KiB ubinize_all.cfg
>
>
>        After burning the raw image to nand flash, everything works fine and
> ubifs can be mount successfully. All the files are readable. But after I
> unmount the ubifs and want to mount again. The following error is happened:
> ------------------------------------------------------------------------
> ...
> <Many ECC errors reported>
> ...
> UBI error: ubi_io_read: error -74 while reading 516096 bytes from PEB
> 55:8192, read 516096 bytes
> UBIFS error (pid 42): ubifs_scan: corrupt empty space at LEB 1:4691
> UBIFS error (pid 42): ubifs_scanned_corruption: corrupted data at LEB 1:4691
> UBIFS error (pid 42): ubifs_scanned_corruption: first 4096 bytes from
> LEB 1:4691
> UBIFS error (pid 42): ubifs_scan: LEB 1 scanning failed
> ...
> <Many ECC errors reported>
> ...
> UBI error: ubi_io_read: error -74 while reading 516096 bytes from PEB
> 55:8192, read 516096 bytes
> UBIFS error (pid 42): ubifs_recover_master_node: failed to recover
> master node
> mount: mounting ubi0:areauser on /mnt/areauser failed: Invalid argument
>
> -------------------------------------------------------------------------
>
>        However, if I runtime update the areauser.bin by ubiupdatevol, there is
> no such problem.
>
>        I have no cue on this, could anyone give me some suggestion?
>
>        Thanks.
>
> BR,
> Jacky
>
> ______________________________________________________
> Linux MTD discussion mailing list
> http://lists.infradead.org/mailman/listinfo/linux-mtd/
>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* UBINIZE and UBIFS
@ 2009-08-18  2:27 Jacky Lam
  2009-08-18  3:19 ` Jason Liu
  0 siblings, 1 reply; 3+ messages in thread
From: Jacky Lam @ 2009-08-18  2:27 UTC (permalink / raw)
  To: linux-mtd

Dear all,

	I have a problem of embedding a UBIFS image by ubinize. Here is the
config file I am using:
===============================================================
[rootfs]
mode=ubi
image=rfs.bin
vol_id=0
vol_size=10485760
vol_type=dynamic
vol_name=rootfs

[areatest]
mode=ubi
image=test.bin
vol_id=1
vol_size=15728640
vol_type=dynamic
vol_name=areatest

[areauser]
mode=ubi
image=areauser.bin
vol_id=2
vol_size=47185920
vol_type=dynamic
vol_name=areauser
================================================================================

	areauser.bin is created by:

	mkubifs -v -g 1 -r areauser -o areauser.bin -m 4096 -e 516096 -c 92 -x none

	The final image is created by:

	ubinize -o final.raw.2 -m 4096 -p 512KiB ubinize_all.cfg	


	After burning the raw image to nand flash, everything works fine and
ubifs can be mount successfully. All the files are readable. But after I
unmount the ubifs and want to mount again. The following error is happened:
------------------------------------------------------------------------
...
<Many ECC errors reported>
...
UBI error: ubi_io_read: error -74 while reading 516096 bytes from PEB
55:8192, read 516096 bytes
UBIFS error (pid 42): ubifs_scan: corrupt empty space at LEB 1:4691
UBIFS error (pid 42): ubifs_scanned_corruption: corrupted data at LEB 1:4691
UBIFS error (pid 42): ubifs_scanned_corruption: first 4096 bytes from
LEB 1:4691
UBIFS error (pid 42): ubifs_scan: LEB 1 scanning failed
...
<Many ECC errors reported>
...
UBI error: ubi_io_read: error -74 while reading 516096 bytes from PEB
55:8192, read 516096 bytes
UBIFS error (pid 42): ubifs_recover_master_node: failed to recover
master node
mount: mounting ubi0:areauser on /mnt/areauser failed: Invalid argument

-------------------------------------------------------------------------

	However, if I runtime update the areauser.bin by ubiupdatevol, there is
no such problem.

	I have no cue on this, could anyone give me some suggestion?

	Thanks.

BR,
Jacky

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-08-18  3:20 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-08-18  3:08 UBINIZE and UBIFS Jacky Lam
  -- strict thread matches above, loose matches on Subject: below --
2009-08-18  2:27 Jacky Lam
2009-08-18  3:19 ` Jason Liu

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.