error!: "/dev/ubi0" is not a character device ?!?
Arno Steffen
arno.steffen at googlemail.com
Mon Aug 23 10:13:19 EDT 2010
2010/8/23 Artem Bityutskiy <dedekind1 at gmail.com>:
> On Mon, 2010-08-16 at 13:27 +0200, Arno Steffen wrote:
>> Sorry for delay, have been out of office.
>> Haven't found neither /etc/udev nor /lib/udev on my embedded system.
>> udev is not mention in dmesg | grep udev
>> But after creating /etc/udev/rules/10-udev.rules I could see this in
>> cat /dev/udev/rules.d/10-udev.rules
>> As I don't have any idea what rule I have to write in I left it blank.
>> So no success with this method
>
> OK, anyway, I believe this is not related to UBI. I gave you several
> other ideas, cannot help more than that.
>
>> ubimkvol /dev/ubi0 -N test -m
>> Set volume size to 9805824UBI error: ubi_io_write: error -5 while
>> writing 512 bytes to PEB 81:512, written 0 bytes
>>
>> UBI warning: ubi_eba_write_leb: failed to write VID header to LEB
>> 2147479551:0, PEB 81
>
> This is independent problem, I think. Your driver returns EIO when UBI
> writes to the flash. Looks like you have issues in the driver or HW
> level.
>
> Did you run mtd tests? Please run and validate your flash. Take a look
> here, for reference:
>
> http://www.linux-mtd.infradead.org/doc/ubifs.html#L_how_send_bugreport
>
> --
> Best Regards,
> Artem Bityutskiy (Артём Битюцкий)
>
>
My results are: (other will follow next day)
[root at or:/opt/configs]# insmod mtd_nandecctest.ko
mtd_nandecctest: ok - nand-ecc-256
mtd_nandecctest: ok - nand-ecc-512
[root at Visor:/opt/configs]# insmod mtd_oobtest.ko
=================================================
mtd_oobtest: MTD device: 0
mtd_oobtest: MTD device size 262144, eraseblock size 131072, page size
2048, count of eraseblocks 2, pages per eraseblock 64, OOB size 64
mtd_oobtest: scanning for bad eraseblocks
mtd_oobtest: scanned 2 eraseblocks, 0 are bad
mtd_oobtest: test 1 of 5
mtd_oobtest: erasing whole device
mtd_oobtest: error -30 while erasing EB 0
mtd_oobtest: error -30 occurred
=================================================
insmod: cannot insert 'mtd_oobtest.ko': Read-only file system
[root at or:/opt/configs]# insmod mtd_pagetest.ko
=================================================
mtd_pagetest: MTD device: 0
mtd_pagetest: MTD device size 262144, eraseblock size 131072, page
size 2048, count of eraseblocks 2, pages per eraseblock 64, OOB size
64
mtd_pagetest: scanning for bad eraseblocks
mtd_pagetest: scanned 2 eraseblocks, 0 are bad
mtd_pagetest: erasing whole device
mtd_pagetest: error -30 while erasing EB 0
mtd_pagetest: error -30 occurred
=================================================
insmod: cannot insert 'mtd_pagetest.ko': Read-only file system
[root at or:/opt/configs]# insmod mtd_readtest.ko
=================================================
mtd_readtest: MTD device: 0
mtd_readtest: MTD device size 262144, eraseblock size 131072, page
size 2048, count of eraseblocks 2, pages per eraseblock 64, OOB size
64
mtd_readtest: scanning for bad eraseblocks
mtd_readtest: scanned 2 eraseblocks, 0 are bad
mtd_readtest: testing page read
uncorrectable error :
uncorrectable error :
uncorrectable error :
mtd_readtest: error: read failed at 0x0
uncorrectable error :
uncorrectable error :
uncorrectable error :
uncorrectable error :
mtd_readtest: error: read failed at 0x800
uncorrectable error :
More information about the linux-mtd
mailing list