linux-mtd.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: Artem Bityutskiy <dedekind1@gmail.com>
To: Arno Steffen <arno.steffen@googlemail.com>
Cc: linux-mtd@lists.infradead.org
Subject: Re: error!: "/dev/ubi0" is not a character device ?!?
Date: Tue, 24 Aug 2010 12:33:53 +0300	[thread overview]
Message-ID: <1282642433.24044.153.camel@localhost> (raw)
In-Reply-To: <AANLkTikidFJWVGVp-y2kzat7+PxVFx6e3-ozYx_wP=vZ@mail.gmail.com>

> May I ask you to have a look at it. I can't really interpet some
> messgages.

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@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.

-- 
Best Regards,
Artem Bityutskiy (Артём Битюцкий)

  reply	other threads:[~2010-08-24  9:35 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-07-26 12:00 error!: "/dev/ubi0" is not a character device ?!? Arno Steffen
2010-07-26 13:14 ` Artem Bityutskiy
2010-07-26 13:49   ` Arno Steffen
2010-07-27 15:25     ` Artem Bityutskiy
2010-07-28 11:04       ` Arno Steffen
2010-07-30  6:35         ` Artem Bityutskiy
2010-08-05 11:55           ` Arno Steffen
2010-08-05 13:23             ` twebb
2010-08-05 13:36             ` Artem Bityutskiy
     [not found]             ` <AANLkTikkRNqnEX0PkHigv=zT+Z36J52DEtoVeMGbBExf@mail.gmail.com>
2010-08-16 11:27               ` Arno Steffen
2010-08-23 12:34                 ` Artem Bityutskiy
2010-08-23 14:13                   ` Arno Steffen
2010-08-23 14:41                     ` Artem Bityutskiy
2010-08-24  8:32                       ` Arno Steffen
2010-08-24  8:53                         ` Artem Bityutskiy
2010-08-24  9:19                           ` Arno Steffen
2010-08-24  9:33                             ` Artem Bityutskiy [this message]
2010-07-30  6:23     ` Artem Bityutskiy

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1282642433.24044.153.camel@localhost \
    --to=dedekind1@gmail.com \
    --cc=arno.steffen@googlemail.com \
    --cc=linux-mtd@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).