From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.nokia.com ([192.100.122.230] helo=mgw-mx03.nokia.com) by bombadil.infradead.org with esmtps (Exim 4.69 #1 (Red Hat Linux)) id 1NhIlz-0003pb-6d for linux-mtd@lists.infradead.org; Tue, 16 Feb 2010 08:27:15 +0000 Subject: Re: ubifs errors for BeagleBoard From: Artem Bityutskiy To: Shivdas Gujare In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Date: Tue, 16 Feb 2010 10:25:48 +0200 Message-ID: <1266308748.11659.183.camel@localhost> Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Cc: beagleboard@googlegroups.com, 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: , On Mon, 2010-02-15 at 00:53 -0800, Shivdas Gujare wrote: > Hi All, Good morning, > I am trying to use UBIFS on Omap3 BeagleBoard (kernel version 2.6.33) > I am quite new to flash filesystems & ubifs. > > currently for ubiattach I am getting following error, > > uncorrectable error : > UBI error: ubi_io_read: error -74 while reading 512 bytes from PEB > 198:512, read 512 bytes > [] (unwind_backtrace+0x0/0xdc) from [] > (ubi_io_read+0x20c/0x2ec) > [] (ubi_io_read+0x20c/0x2ec) from [] > (ubi_io_read_vid_hdr+0x94/0x294) > [] (ubi_io_read_vid_hdr+0x94/0x294) from [] > (ubi_scan+0xa50/0x1094) > [] (ubi_scan+0xa50/0x1094) from [] > (ubi_attach_mtd_dev+0x624/0xd6c) > [] (ubi_attach_mtd_dev+0x624/0xd6c) from [] > (ctrl_cdev_ioctl+0xe8/0x1a4) > [] (ctrl_cdev_ioctl+0xe8/0x1a4) from [] > (vfs_ioctl+0x2c/0x70) > [] (vfs_ioctl+0x2c/0x70) from [] (do_vfs_ioctl+0x518/0x55c) > [] (do_vfs_ioctl+0x518/0x55c) from [] (sys_ioctl+0x34/0x54) > [] (sys_ioctl+0x34/0x54) from [] (ret_fast_syscall+0x0/0x2c) -74 is -EBADMSG, which means an non-correctable ECC error. > > and for "mount -t ubifs /dev/ubi0_0 /mnt" it gives following error, > > uncorrectable error : > UBI error: ubi_io_read: error -74 while reading 188 bytes from PEB > 220:8304, read 188 bytes > [] (unwind_backtrace+0x0/0xdc) from [] > (ubi_io_read+0x20c/0x2ec) > [] (ubi_io_read+0x20c/0x2ec) from [] > (ubi_eba_read_leb+0x2e4/0x3e8) > [] (ubi_eba_read_leb+0x2e4/0x3e8) from [] > (ubi_leb_read+0x100/0x15c) > [] (ubi_leb_read+0x100/0x15c) from [] > (ubifs_read_node+0x1b4/0x340) > [] (ubifs_read_node+0x1b4/0x340) from [] > (ubifs_load_znode+0xd0/0x5c0) > [] (ubifs_load_znode+0xd0/0x5c0) from [] > (ubifs_lookup_level0+0x114/0x2dc) > [] (ubifs_lookup_level0+0x114/0x2dc) from [] > (ubifs_tnc_locate+0x40/0x170) > [] (ubifs_tnc_locate+0x40/0x170) from [] > (ubifs_iget+0xb0/0x7e4) > [] (ubifs_iget+0xb0/0x7e4) from [] > (ubifs_fill_super+0x15d4/0x1664) > [] (ubifs_fill_super+0x15d4/0x1664) from [] > (ubifs_get_sb+0x288/0x2fc) > [] (ubifs_get_sb+0x288/0x2fc) from [] > (vfs_kern_mount+0x4c/0xd0) > [] (vfs_kern_mount+0x4c/0xd0) from [] > (do_kern_mount+0x34/0xd8) > [] (do_kern_mount+0x34/0xd8) from [] (do_mount+0x5ec/0x64c) > [] (do_mount+0x5ec/0x64c) from [] (sys_mount+0x84/0xc4) > [] (sys_mount+0x84/0xc4) from [] (ret_fast_syscall+0x0/0x2c) The same symptoms. > Does anyone encountered similar kind of error? Yes in general, dunno if for beagleboard. Please, start with validating your flash using mtd-tests. You have issues somewhere on the NAND driver level. Please, find the tests here: http://www.linux-mtd.infradead.org/doc/general.html#L_mtd_tests > Also would like to know, does user space - ubitools read only 64 bytes > each from mtd drivers(while scan or format) Yes. -- Best Regards, Artem Bityutskiy (Артём Битюцкий)