* 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
* Re: ubi_io_read error after ubiattach
2011-05-11 8:37 ubi_io_read error after ubiattach Fabio Mauri
@ 2011-05-12 11:58 ` Artem Bityutskiy
0 siblings, 0 replies; 2+ messages in thread
From: Artem Bityutskiy @ 2011-05-12 11:58 UTC (permalink / raw)
To: Fabio Mauri; +Cc: linux-mtd
On Wed, 2011-05-11 at 10:37 +0200, Fabio Mauri wrote:
> 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
Please, run mtd tests on your device and validate your flash:
http://www.linux-mtd.infradead.org/doc/general.html#L_mtd_tests
--
Best Regards,
Artem Bityutskiy (Артём Битюцкий)
^ 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).