linux-mtd.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* ubi_io_read error after ubiattach
@ 2011-05-11  8:37 Fabio Mauri
  2011-05-12 11:58 ` Artem Bityutskiy
  0 siblings, 1 reply; 2+ messages in thread
From: Fabio Mauri @ 2011-05-11  8:37 UTC (permalink / raw)
  To: linux-mtd


Hi there,
  i have a problem using ubifs on a NAND flash.

I follow this procedure in order to format a MTD partition:

mkfs.ubifs -g 3 -r home/boot -m 2048 -e 129024 -c 32 -o ubifs_kernel.img
ubinize -o kernel.ubi -m 2048 -p 128KiB -s 512 ubi.cfg
ubiformat /dev/mtd3 -s 512 -f kernel.ubi
ubiattach /dev/ubi_ctrl -m 3
mount -t ubifs ubi:kernel /home/bticino/cfg/extra

ubi.cfg is:
[ubifs]
mode=ubi
image=ubifs_kernel.img
vol_id=0
vol_size=4MiB
vol_type=dynamic
vol_name=kernel
vol_flags=autoresize

and the mtdinfo output is:
mtd3
Name:                           kernel_copy
Type:                           nand
Eraseblock size:                131072 bytes, 128.0 KiB
Amount of eraseblocks:          40 (5242880 bytes, 5.0 MiB)
Minimum input/output unit size: 2048 bytes
Sub-page size:                  512 bytes
OOB size:                       64 bytes
Character device major/minor:   90:6
Bad blocks are allowed:         true
Device is writable:             true


Everything is working fine at this point.
I can successfully read/write files into the filesystem.

But if I umount the fs, detach and reattach the volume, I start to get these errors:

UBI error: ubi_io_read: error -74 while reading 512 bytes from PEB 32:512, read 512 bytes
UBI error: ubi_io_read: error -74 while reading 512 bytes from PEB 2:512, read 512 bytes
UBI: run torture test for PEB 2
UBI: PEB 2 passed torture test, do not mark it a bad
UBI error: ubi_io_read: error -74 while reading 512 bytes from PEB 32:512, read 512 bytes
UBI error: ubi_io_read: error -74 while reading 512 bytes from PEB 2:512, read 512 bytes
UBI: run torture test for PEB 2
UBI: PEB 2 passed torture test, do not mark it a bad
UBI error: ubi_io_read: error -74 while reading 512 bytes from PEB 32:512, read 512 bytes
UBI error: ubi_io_read: error -74 while reading 512 bytes from PEB 2:512, read 512 bytes
UBI: run torture test for PEB 2
UBI: PEB 2 passed torture test, do not mark it a bad
UBI error: ubi_io_read: error -74 while reading 512 bytes from PEB 32:512, read 512 bytes
UBI error: ubi_io_read: error -74 while reading 512 bytes from PEB 2:512, read 512 bytes
UBI: run torture test for PEB 2
UBI: PEB 2 passed torture test, do not mark it a bad
UBI error: ubi_io_read: error -74 while reading 512 bytes from PEB 32:512, read 512 bytes
UBI error: ubi_io_read: error -74 while reading 512 bytes from PEB 2:512, read 512 bytes
UBI: run torture test for PEB 2
UBI: PEB 2 passed torture test, do not mark it a bad
UBI error: ubi_io_read: error -74 while reading 512 bytes from PEB 32:512, read 512 bytes
UBI error: ubi_io_read: error -74 while reading 512 bytes from PEB 2:512, read 512 bytes
UBI: run torture test for PEB 2

It makes the UBIFS very slow (not usable).. maybe I did something wrong in the procedure?

Any help would be appreciated.

Regards,
Fabio

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

end of thread, other threads:[~2011-05-12 12:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-05-11  8:37 ubi_io_read error after ubiattach Fabio Mauri
2011-05-12 11:58 ` Artem Bityutskiy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).