LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-05-2010, 02:12 PM   #1
dbrazeau
Member
 
Registered: Aug 2009
Distribution: Fedora, OpenSuse, DENX Embedded Linux
Posts: 184

Rep: Reputation: 28
mtd read errors


When I try to read from a mtd (NAND) device using dd I get errors when try to read 24000k or more.

Here are the dd commands I'm using:
Code:
dd if=/dev/mtd20 of=testimg_out bs=2048 count=11500
11500+0 records in
11500+0 records out
Code:
 dd if=/dev/mtd20 of=testimg_out bs=2048 count=12000
<3>uncorrectable error : <3>uncorrectable error : <3>uncorrectable error : <3>uncorrectable error :
 <3>uncorrectable error : <3>uncorrectable error : <3>uncorrectable error : <3>uncorrectable error 
: <3>uncorrectable error : <3>uncorrectable error : <3>uncorrectable error : <3>uncorrectable error
 : <3>uncorrectable error : <3>uncorrectable error : <3>uncorrectable error : <3>uncorrectable erro
r : <3>uncorrectable error : <3>uncorrectable error : <3>uncorrectable error : <3>uncorrectable err
or : <3>uncorrectable error : <3>uncorrectable error : <3>uncorrectable error : <3>uncorrectable er
ror : <3>uncorrectable error : <3>uncorrectable error : <3>uncorrectable error : <3>uncorrectable e
rror : <3>uncorrectable error : <3>uncorrectable error : <3>uncorrectable error : <3>uncorrectable .......
Does anyone know what is wrong? Is there some kind of buffer size liming in the mtd driver?
 
Old 11-05-2010, 04:33 PM   #2
dbrazeau
Member
 
Registered: Aug 2009
Distribution: Fedora, OpenSuse, DENX Embedded Linux
Posts: 184

Original Poster
Rep: Reputation: 28
Looking at the bad block table it looks like the NAND partitions that I get read error on (which are ecc errors) are the partitions that contain bad blocks. The partitions that don't contain any bad blocks I do not get any read errors when reading them.

Is it possible that using dd to read/write to NAND does not skip the bad blocks?
 
Old 11-05-2010, 06:28 PM   #3
dbrazeau
Member
 
Registered: Aug 2009
Distribution: Fedora, OpenSuse, DENX Embedded Linux
Posts: 184

Original Poster
Rep: Reputation: 28
I install mtd-utils and used nandwrite to write to NAND and it work (it skips bad blocks). So in short dd is not a valid way to write to NAND because it doesn't skip the bad blocks as I suspected.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Does "mtd write" clear/erase the end of the mtd block by default? (no man page found) maddes.b Linux - Kernel 0 08-17-2009 03:07 AM
How to ignore I/O read errors ? marozsas Linux - Hardware 7 09-26-2007 02:03 PM
force copy through read errors quikphysik Linux - Hardware 1 01-06-2007 05:37 AM
Read-Only Filesysystem errors kyletriggs Linux - General 4 03-04-2006 02:11 AM
boot-up errors can't be read shanenin Linux - Software 2 09-07-2004 12:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:16 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration