linux-mtd.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* ubifs errors for BeagleBoard
@ 2010-02-15  8:53 Shivdas Gujare
  2010-02-16  8:25 ` Artem Bityutskiy
  0 siblings, 1 reply; 4+ messages in thread
From: Shivdas Gujare @ 2010-02-15  8:53 UTC (permalink / raw)
  To: linux-mtd; +Cc: beagleboard

Hi All,

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
[<c002e444>] (unwind_backtrace+0x0/0xdc) from [<c0217ddc>]
(ubi_io_read+0x20c/0x2ec)
[<c0217ddc>] (ubi_io_read+0x20c/0x2ec) from [<c0218048>]
(ubi_io_read_vid_hdr+0x94/0x294)
[<c0218048>] (ubi_io_read_vid_hdr+0x94/0x294) from [<c021cbf4>]
(ubi_scan+0xa50/0x1094)
[<c021cbf4>] (ubi_scan+0xa50/0x1094) from [<c02122f4>]
(ubi_attach_mtd_dev+0x624/0xd6c)
[<c02122f4>] (ubi_attach_mtd_dev+0x624/0xd6c) from [<c0212cd8>]
(ctrl_cdev_ioctl+0xe8/0x1a4)
[<c0212cd8>] (ctrl_cdev_ioctl+0xe8/0x1a4) from [<c00aa590>]
(vfs_ioctl+0x2c/0x70)
[<c00aa590>] (vfs_ioctl+0x2c/0x70) from [<c00aacc4>] (do_vfs_ioctl+0x518/0x55c)
[<c00aacc4>] (do_vfs_ioctl+0x518/0x55c) from [<c00aad3c>] (sys_ioctl+0x34/0x54)
[<c00aad3c>] (sys_ioctl+0x34/0x54) from [<c0028de0>] (ret_fast_syscall+0x0/0x2c)

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
[<c002e444>] (unwind_backtrace+0x0/0xdc) from [<c0217ddc>]
(ubi_io_read+0x20c/0x2ec)
[<c0217ddc>] (ubi_io_read+0x20c/0x2ec) from [<c0216fd4>]
(ubi_eba_read_leb+0x2e4/0x3e8)
[<c0216fd4>] (ubi_eba_read_leb+0x2e4/0x3e8) from [<c0214c24>]
(ubi_leb_read+0x100/0x15c)
[<c0214c24>] (ubi_leb_read+0x100/0x15c) from [<c015d604>]
(ubifs_read_node+0x1b4/0x340)
[<c015d604>] (ubifs_read_node+0x1b4/0x340) from [<c017d9b0>]
(ubifs_load_znode+0xd0/0x5c0)
[<c017d9b0>] (ubifs_load_znode+0xd0/0x5c0) from [<c016136c>]
(ubifs_lookup_level0+0x114/0x2dc)
[<c016136c>] (ubifs_lookup_level0+0x114/0x2dc) from [<c0162e74>]
(ubifs_tnc_locate+0x40/0x170)
[<c0162e74>] (ubifs_tnc_locate+0x40/0x170) from [<c0158d00>]
(ubifs_iget+0xb0/0x7e4)
[<c0158d00>] (ubifs_iget+0xb0/0x7e4) from [<c015aa08>]
(ubifs_fill_super+0x15d4/0x1664)
[<c015aa08>] (ubifs_fill_super+0x15d4/0x1664) from [<c015ad20>]
(ubifs_get_sb+0x288/0x2fc)
[<c015ad20>] (ubifs_get_sb+0x288/0x2fc) from [<c009fd24>]
(vfs_kern_mount+0x4c/0xd0)
[<c009fd24>] (vfs_kern_mount+0x4c/0xd0) from [<c009fdec>]
(do_kern_mount+0x34/0xd8)
[<c009fdec>] (do_kern_mount+0x34/0xd8) from [<c00b4640>] (do_mount+0x5ec/0x64c)
[<c00b4640>] (do_mount+0x5ec/0x64c) from [<c00b4724>] (sys_mount+0x84/0xc4)
[<c00b4724>] (sys_mount+0x84/0xc4) from [<c0028de0>] (ret_fast_syscall+0x0/0x2c)

Does anyone encountered similar kind of error?
Also would like to know, does user space - ubitools read only 64 bytes
each from mtd drivers(while scan or format)

Thanks lot for all your helps.

Thanks and Regards,
Shivdas Gujare

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: ubifs errors for BeagleBoard
  2010-02-15  8:53 ubifs errors for BeagleBoard Shivdas Gujare
@ 2010-02-16  8:25 ` Artem Bityutskiy
  2010-02-23  0:49   ` Shivdas Gujare
  0 siblings, 1 reply; 4+ messages in thread
From: Artem Bityutskiy @ 2010-02-16  8:25 UTC (permalink / raw)
  To: Shivdas Gujare; +Cc: beagleboard, linux-mtd

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
> [<c002e444>] (unwind_backtrace+0x0/0xdc) from [<c0217ddc>]
> (ubi_io_read+0x20c/0x2ec)
> [<c0217ddc>] (ubi_io_read+0x20c/0x2ec) from [<c0218048>]
> (ubi_io_read_vid_hdr+0x94/0x294)
> [<c0218048>] (ubi_io_read_vid_hdr+0x94/0x294) from [<c021cbf4>]
> (ubi_scan+0xa50/0x1094)
> [<c021cbf4>] (ubi_scan+0xa50/0x1094) from [<c02122f4>]
> (ubi_attach_mtd_dev+0x624/0xd6c)
> [<c02122f4>] (ubi_attach_mtd_dev+0x624/0xd6c) from [<c0212cd8>]
> (ctrl_cdev_ioctl+0xe8/0x1a4)
> [<c0212cd8>] (ctrl_cdev_ioctl+0xe8/0x1a4) from [<c00aa590>]
> (vfs_ioctl+0x2c/0x70)
> [<c00aa590>] (vfs_ioctl+0x2c/0x70) from [<c00aacc4>] (do_vfs_ioctl+0x518/0x55c)
> [<c00aacc4>] (do_vfs_ioctl+0x518/0x55c) from [<c00aad3c>] (sys_ioctl+0x34/0x54)
> [<c00aad3c>] (sys_ioctl+0x34/0x54) from [<c0028de0>] (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
> [<c002e444>] (unwind_backtrace+0x0/0xdc) from [<c0217ddc>]
> (ubi_io_read+0x20c/0x2ec)
> [<c0217ddc>] (ubi_io_read+0x20c/0x2ec) from [<c0216fd4>]
> (ubi_eba_read_leb+0x2e4/0x3e8)
> [<c0216fd4>] (ubi_eba_read_leb+0x2e4/0x3e8) from [<c0214c24>]
> (ubi_leb_read+0x100/0x15c)
> [<c0214c24>] (ubi_leb_read+0x100/0x15c) from [<c015d604>]
> (ubifs_read_node+0x1b4/0x340)
> [<c015d604>] (ubifs_read_node+0x1b4/0x340) from [<c017d9b0>]
> (ubifs_load_znode+0xd0/0x5c0)
> [<c017d9b0>] (ubifs_load_znode+0xd0/0x5c0) from [<c016136c>]
> (ubifs_lookup_level0+0x114/0x2dc)
> [<c016136c>] (ubifs_lookup_level0+0x114/0x2dc) from [<c0162e74>]
> (ubifs_tnc_locate+0x40/0x170)
> [<c0162e74>] (ubifs_tnc_locate+0x40/0x170) from [<c0158d00>]
> (ubifs_iget+0xb0/0x7e4)
> [<c0158d00>] (ubifs_iget+0xb0/0x7e4) from [<c015aa08>]
> (ubifs_fill_super+0x15d4/0x1664)
> [<c015aa08>] (ubifs_fill_super+0x15d4/0x1664) from [<c015ad20>]
> (ubifs_get_sb+0x288/0x2fc)
> [<c015ad20>] (ubifs_get_sb+0x288/0x2fc) from [<c009fd24>]
> (vfs_kern_mount+0x4c/0xd0)
> [<c009fd24>] (vfs_kern_mount+0x4c/0xd0) from [<c009fdec>]
> (do_kern_mount+0x34/0xd8)
> [<c009fdec>] (do_kern_mount+0x34/0xd8) from [<c00b4640>] (do_mount+0x5ec/0x64c)
> [<c00b4640>] (do_mount+0x5ec/0x64c) from [<c00b4724>] (sys_mount+0x84/0xc4)
> [<c00b4724>] (sys_mount+0x84/0xc4) from [<c0028de0>] (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 (Артём Битюцкий)

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: ubifs errors for BeagleBoard
  2010-02-16  8:25 ` Artem Bityutskiy
@ 2010-02-23  0:49   ` Shivdas Gujare
  2010-03-30 13:07     ` Artem Bityutskiy
  0 siblings, 1 reply; 4+ messages in thread
From: Shivdas Gujare @ 2010-02-23  0:49 UTC (permalink / raw)
  To: dedekind1; +Cc: beagleboard, linux-mtd

Hi Artem,

Thanks a lot for your help.

On Tue, Feb 16, 2010 at 12:25 AM, Artem Bityutskiy <dedekind1@gmail.com> wrote:
> 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
>> [<c002e444>] (unwind_backtrace+0x0/0xdc) from [<c0217ddc>]
>> (ubi_io_read+0x20c/0x2ec)
>> [<c0217ddc>] (ubi_io_read+0x20c/0x2ec) from [<c0218048>]
>> (ubi_io_read_vid_hdr+0x94/0x294)
>> [<c0218048>] (ubi_io_read_vid_hdr+0x94/0x294) from [<c021cbf4>]
>> (ubi_scan+0xa50/0x1094)
>> [<c021cbf4>] (ubi_scan+0xa50/0x1094) from [<c02122f4>]
>> (ubi_attach_mtd_dev+0x624/0xd6c)
>> [<c02122f4>] (ubi_attach_mtd_dev+0x624/0xd6c) from [<c0212cd8>]
>> (ctrl_cdev_ioctl+0xe8/0x1a4)
>> [<c0212cd8>] (ctrl_cdev_ioctl+0xe8/0x1a4) from [<c00aa590>]
>> (vfs_ioctl+0x2c/0x70)
>> [<c00aa590>] (vfs_ioctl+0x2c/0x70) from [<c00aacc4>] (do_vfs_ioctl+0x518/0x55c)
>> [<c00aacc4>] (do_vfs_ioctl+0x518/0x55c) from [<c00aad3c>] (sys_ioctl+0x34/0x54)
>> [<c00aad3c>] (sys_ioctl+0x34/0x54) from [<c0028de0>] (ret_fast_syscall+0x0/0x2c)
>
> -74 is -EBADMSG, which means an non-correctable ECC error.


I am very much newbie to mtd & flash's, Do you mean this is a
non-correctable error caused by hardware?


>
>>
>> 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
>> [<c002e444>] (unwind_backtrace+0x0/0xdc) from [<c0217ddc>]
>> (ubi_io_read+0x20c/0x2ec)
>> [<c0217ddc>] (ubi_io_read+0x20c/0x2ec) from [<c0216fd4>]
>> (ubi_eba_read_leb+0x2e4/0x3e8)
>> [<c0216fd4>] (ubi_eba_read_leb+0x2e4/0x3e8) from [<c0214c24>]
>> (ubi_leb_read+0x100/0x15c)
>> [<c0214c24>] (ubi_leb_read+0x100/0x15c) from [<c015d604>]
>> (ubifs_read_node+0x1b4/0x340)
>> [<c015d604>] (ubifs_read_node+0x1b4/0x340) from [<c017d9b0>]
>> (ubifs_load_znode+0xd0/0x5c0)
>> [<c017d9b0>] (ubifs_load_znode+0xd0/0x5c0) from [<c016136c>]
>> (ubifs_lookup_level0+0x114/0x2dc)
>> [<c016136c>] (ubifs_lookup_level0+0x114/0x2dc) from [<c0162e74>]
>> (ubifs_tnc_locate+0x40/0x170)
>> [<c0162e74>] (ubifs_tnc_locate+0x40/0x170) from [<c0158d00>]
>> (ubifs_iget+0xb0/0x7e4)
>> [<c0158d00>] (ubifs_iget+0xb0/0x7e4) from [<c015aa08>]
>> (ubifs_fill_super+0x15d4/0x1664)
>> [<c015aa08>] (ubifs_fill_super+0x15d4/0x1664) from [<c015ad20>]
>> (ubifs_get_sb+0x288/0x2fc)
>> [<c015ad20>] (ubifs_get_sb+0x288/0x2fc) from [<c009fd24>]
>> (vfs_kern_mount+0x4c/0xd0)
>> [<c009fd24>] (vfs_kern_mount+0x4c/0xd0) from [<c009fdec>]
>> (do_kern_mount+0x34/0xd8)
>> [<c009fdec>] (do_kern_mount+0x34/0xd8) from [<c00b4640>] (do_mount+0x5ec/0x64c)
>> [<c00b4640>] (do_mount+0x5ec/0x64c) from [<c00b4724>] (sys_mount+0x84/0xc4)
>> [<c00b4724>] (sys_mount+0x84/0xc4) from [<c0028de0>] (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

Thanks for pointers, I will follow the tests.

>
>> Also would like to know, does user space - ubitools read only 64 bytes
>> each from mtd drivers(while scan or format)
>
> Yes.

This is a major stopper for me right now, If ubitools read only 64
bytes from mtd driver,
then how does it handled with when nand page size is 2048. My mtd
driver has a check of

if ( (ops->len % mtd->writesize) != 0) ) {
     printk("%s: : unsupported ops->len, %d\n", __FUNCTION__, ops->len);
                return -EINVAL;
}

So in above case, "ops->len" is set to 64 while ubi "scanning" due to
read of "struct ubi_ec_hdr" & "mtd->writesize" is set to "2048"
so, it always fails while scanning.
Since my MTD knowledge is very limited, I am not sure how this
interfacing happens..Am I missing anything?

Thanks a lot for your help.

Thanks and Regards,
Shivdas Gujare



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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: ubifs errors for BeagleBoard
  2010-02-23  0:49   ` Shivdas Gujare
@ 2010-03-30 13:07     ` Artem Bityutskiy
  0 siblings, 0 replies; 4+ messages in thread
From: Artem Bityutskiy @ 2010-03-30 13:07 UTC (permalink / raw)
  To: Shivdas Gujare; +Cc: beagleboard, linux-mtd

On Mon, 2010-02-22 at 16:49 -0800, Shivdas Gujare wrote:
> Hi Artem,
> 
> Thanks a lot for your help.
> 
> On Tue, Feb 16, 2010 at 12:25 AM, Artem Bityutskiy <dedekind1@gmail.com> wrote:
> > 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
> >> [<c002e444>] (unwind_backtrace+0x0/0xdc) from [<c0217ddc>]
> >> (ubi_io_read+0x20c/0x2ec)
> >> [<c0217ddc>] (ubi_io_read+0x20c/0x2ec) from [<c0218048>]
> >> (ubi_io_read_vid_hdr+0x94/0x294)
> >> [<c0218048>] (ubi_io_read_vid_hdr+0x94/0x294) from [<c021cbf4>]
> >> (ubi_scan+0xa50/0x1094)
> >> [<c021cbf4>] (ubi_scan+0xa50/0x1094) from [<c02122f4>]
> >> (ubi_attach_mtd_dev+0x624/0xd6c)
> >> [<c02122f4>] (ubi_attach_mtd_dev+0x624/0xd6c) from [<c0212cd8>]
> >> (ctrl_cdev_ioctl+0xe8/0x1a4)
> >> [<c0212cd8>] (ctrl_cdev_ioctl+0xe8/0x1a4) from [<c00aa590>]
> >> (vfs_ioctl+0x2c/0x70)
> >> [<c00aa590>] (vfs_ioctl+0x2c/0x70) from [<c00aacc4>] (do_vfs_ioctl+0x518/0x55c)
> >> [<c00aacc4>] (do_vfs_ioctl+0x518/0x55c) from [<c00aad3c>] (sys_ioctl+0x34/0x54)
> >> [<c00aad3c>] (sys_ioctl+0x34/0x54) from [<c0028de0>] (ret_fast_syscall+0x0/0x2c)
> >
> > -74 is -EBADMSG, which means an non-correctable ECC error.
> 
> 
> I am very much newbie to mtd & flash's, Do you mean this is a
> non-correctable error caused by hardware?

I do not know. It might be a bug in the driver, but may be a real data
corruption on the flash media.

> This is a major stopper for me right now, If ubitools read only 64
> bytes from mtd driver,
> then how does it handled with when nand page size is 2048. My mtd
> driver has a check of
> 
> if ( (ops->len % mtd->writesize) != 0) ) {
>      printk("%s: : unsupported ops->len, %d\n", __FUNCTION__, ops->len);
>                 return -EINVAL;
> }

This check is valid for the write path, but invalid for the read path.
Your driver should be fixed.

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-03-30 13:09 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-15  8:53 ubifs errors for BeagleBoard Shivdas Gujare
2010-02-16  8:25 ` Artem Bityutskiy
2010-02-23  0:49   ` Shivdas Gujare
2010-03-30 13:07     ` Artem Bityutskiy

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