From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-fx0-f49.google.com ([209.85.161.49]) by bombadil.infradead.org with esmtp (Exim 4.72 #1 (Red Hat Linux)) id 1Onpud-0003rO-By for linux-mtd@lists.infradead.org; Tue, 24 Aug 2010 09:35:24 +0000 Received: by fxm12 with SMTP id 12so4440048fxm.36 for ; Tue, 24 Aug 2010 02:35:21 -0700 (PDT) Subject: Re: error!: "/dev/ubi0" is not a character device ?!? From: Artem Bityutskiy To: Arno Steffen In-Reply-To: References: <1280150054.14917.108.camel@localhost> <1280244340.3021.38.camel@localhost.localdomain> <1280471755.2838.29.camel@localhost.localdomain> <1282566891.24044.32.camel@localhost> <1282574489.24044.74.camel@localhost> <1282640035.24044.149.camel@localhost> Content-Type: text/plain; charset="UTF-8" Date: Tue, 24 Aug 2010 12:33:53 +0300 Message-ID: <1282642433.24044.153.camel@localhost> Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Cc: linux-mtd@lists.infradead.org Reply-To: dedekind1@gmail.com List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , > 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 (Артём Битюцкий)