From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.nokia.com ([192.100.122.233] helo=mgw-mx06.nokia.com) by bombadil.infradead.org with esmtps (Exim 4.69 #1 (Red Hat Linux)) id 1M9hLe-0000So-JT for linux-mtd@lists.infradead.org; Thu, 28 May 2009 15:16:57 +0000 Subject: Re: UBIFS ubimkvol issue and some others... From: Artem Bityutskiy To: Stanislav Popov In-Reply-To: <4A1E8740.9050208@rsc.bg> References: <4A1E8740.9050208@rsc.bg> Content-Type: text/plain; charset="UTF-8" Date: Thu, 28 May 2009 18:16:40 +0300 Message-Id: <1243523800.11172.63.camel@localhost.localdomain> Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Cc: linux-mtd@lists.infradead.org Reply-To: dedekind@infradead.org List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Thu, 2009-05-28 at 15:44 +0300, Stanislav Popov wrote: > Hi all, > > I am trying to use UbiFS but having some issues. > I read the documentations and FAQs for UBI and UbiFS. > My kernel is pretty old (2.6.21) (I am not able to update it now) > but I successfully added UbiFS in it! How? It is not trivial. Did you use my old 2.6.21 backport tree? > I have problems with some of the coomands: > ------------------------------------------------------ > # /mtdinfo > Count of MTD devices: 6 > Present MTD devices: > mtdinfo: error!: libmtd failed get MTD device 0 information > error 2 (No such file or directory) > ------------------------------------------------------ > The following is one of the main issues: > # /ubiformat /dev//mtd5 > ubiformat: error!: cannot get information about "/dev//mtd5" > error 2 (No such file or directory) Do you have /dev/mtd* devices? What is in /proc/mtd? > [] (ubi_eba_unmap_leb+0x0/0xac) from [] > (ubi_change_vtbl_record+0xb0/0x114) > r8:c3289e68 r7:c1d6dbd0 r6:00000000 r5:c1d6d800 r4:c3289d70 > [] (ubi_change_vtbl_record+0x0/0x114) from [] > (ubi_create_volume+0x510/0x640) > r7:00000000 r6:00000000 r5:c3289d70 r4:c29b9140 > [] (ubi_create_volume+0x0/0x640) from [] > (ubi_cdev_ioctl+0x26c/0x3dc) > [] (ubi_cdev_ioctl+0x0/0x3dc) from [] > (do_ioctl+0x7c/0x90) > [] (do_ioctl+0x0/0x90) from [] (vfs_ioctl+0x2d4/0x2f4) > r7:00000036 r6:bee7cb78 r5:c28dd280 r4:c2975d40 > [] (vfs_ioctl+0x0/0x2f4) from [] (sys_ioctl+0x40/0x64) > r9:c3288000 r8:c0023744 r6:40986f00 r5:fffffff7 r4:c2975d40 > [] (sys_ioctl+0x0/0x64) from [] > (ret_fast_syscall+0x0/0x2c) > r6:bee7cc40 r5:bee7cf97 r4:00000003 > Code: e5931004 e24b202c e50b302c e5832004 (e5812000 > > Set volume siznote: ubimkvol[705] exited with preempt_count 2 > e to 64329216 > BUG: scheduling while atomic: ubimkvol/0x40000002/705 > Segmentation fault Not sure. Probably related to your back-port. You'll have to debug this yourself. -- Best regards, Artem Bityutskiy (Битюцкий Артём)