error!: "/dev/ubi0" is not a character device ?!?
dedekind1 at gmail.com
Tue Aug 24 05:33:53 EDT 2010
> May I ask you to have a look at it. I can't really interpet some
I can't give you that level of support, sorry. You need to look into the
source code and debug stuff, or ask for support from your kernel or HW
verndor. Just quick notes: when module insmods without error, it is
success. Otherwise - failure.
On Tue, 2010-08-24 at 11:19 +0200, Arno Steffen wrote:
> mtd_subpagetest: MTD device: 0
> mtd_subpagetest: MTD device size 262144, eraseblock size 131072, page
> size 2048, subpage size 512, count of eraseblocks 0, pages per
> eraseblock 0, OOB size 64
> mtd_subpagetest: scanning for bad eraseblocks
> mtd_subpagetest: scanned 2 eraseblocks, 0 are bad
> mtd_subpagetest: erasing whole device
> mtd_subpagetest: erased 2 eraseblocks
> mtd_subpagetest: writing whole device
> mtd_subpagetest: error: write failed at 0x200
> mtd_subpagetest: write size: 0x200
> mtd_subpagetest: written: 0x0
> mtd_subpagetest: error -5 occurred
> insmod: cannot insert 'mtd_subpagetest.ko': Input/output error
> [root at or:/opt/configs]# insmod mtd_stresstest.ko
Your flash driver reports it supports sub-pages, but this is a lie and
it does not. Writing a sub-page results in an error. Dig the driver.
> mtd_torturetest: Warning: this program is trying to wear out your
> flash, stop it if this is not wanted.
> mtd_torturetest: MTD device: 0
> mtd_torturetest: torture 32 eraseblocks (8-39) of mtd0
> mtd_torturetest: write verify enabled
> mtd_torturetest: block_isbad() returned -22 for EB 8
> mtd_torturetest: finished after 0 erase cycles
> mtd_torturetest: error -22 occurred during torturing
> insmod: cannot insert 'mtd_torturetest.ko': invalid parameters
Dunno, you need to debug your driver.
Artem Bityutskiy (Артём Битюцкий)
More information about the linux-mtd