Ben NanoNote

Sign in or create your account | Project List | Help

Issue 31: ubiformat runs into i/o error at EOF after encountering bad block

Reported by Wolfgang Spraul, Jan 25, 2010

tested with 20100113 image, ubi-utils 1.2.0 from openwrt-packages.

reproduction steps:

1. boot from microSD

2. run 'ubiformat /dev/mtd2 -f openwrt-xburst-rootfs.ubi'

3. On devices with bad blocks in the first 50 MB of NAND, ubiformat 
will first run into a bad block saying:
cannot write 524288 bytes to mtd2 (eraseblock XX, offset 0)
error 5 (Input/output error)
libmtd: run torture test for PEB XX
libmtd: PEB XX passed torture test, do not mark it bad
ubiformat: mark it as bad? (Continue (yes/no)

4. say "y"

5. you see "ubiformat: marking block 17 bad"

6. ubiformat continues flashing, but at the end it will say
ubiformat: flashing eraseblock 78 - 101% complete
ubiformat: error!: eof reached; 524288 bytes remaining
ubiformat: error!: failed to read eraseblock 77 from 
error 5 (Input/output error)

(note the 101%)
Looks like a problem with ubiformat getting confused about offsets 
after the bad block. Also it's not clear whether the bad block 
should have been marked or not, seems libmtd and ubiformat disagree? 
Probably unrelated to the offset problem in ubiformat, and 101%.

Comment 1 by Wolfgang Spraul, Jan 25, 2010

devices with bad blocks in first 40 MB:

ID: ry, PEB 17 bad
ID: er, PEB 20 bad
ID: at, PEB 34 bad 
ID: on, PEB 42 bad

ID: we, PEB 12 bad (sometimes)
ID: in, PEB 13 bad (sometimes)
ID: io, PEB 12 bad (sometimes)

Comment 2 by Wolfgang Spraul, Jan 25, 2010

ID: in, PEB 14 is bad sometimes, not PEB 13

Comment 3 by Wolfgang Spraul, Jan 28, 2010

added screenshot

Comment 4 by Wolfgang Spraul, Oct 2, 2010

newer versions of mtd-utils fixed this bug
Status: Verified

Comment 5 by palakave palakave, Jan 25, 2019

Basically this projects.qi-hardware blog has been giving us about 
encountering bad block for for torture and continuing the tips. The 
flashing blog for error and 
computer remaining errors always.

Comment 6 by Dikha nishi, Jun 28, 2019

I am searching for this solution for a long while and i found it 
here. Thanks for the solution. I am going to fix my blog with the help of this solution.

Comment 7 by Kristy mskristymurphy, Aug 23, 2019

This is great advice! Very honest and practical.I really enjoyed 
this post.Nice post!! these tips may help Great post,

Comment 8 by Alia Sharma, Nov 1, 2019

This is helpful for my upcoming project and I was hoping for this 
for a long time.

Comment 9 by Alia Sharma, Nov 1, 2019

All of the info you have shared unique for me and I am having a 
great time here on this website.

Comment 10 by Alia Sharma, Nov 1, 2019

Many times, I have found something fresh here on this wonderful 
article and thanks for your appreciable efforts.

Comment 11 by Vaishali Verma, Nov 27, 2019

They are quite affordable escorts available in Dehradun. Mostly 
gentlemen prefer quality instead of quantity in their life, 
Therefore we are here to present some Escorts Girls in Dehradun who 
are having effervescent qualities.

Comment 12 by Vaishali Verma, Nov 27, 2019

You want the beautiful woman you've desired in magazines or lingerie 
and swimsuit catalogues and now suddenly they are in front of your 
eyes. So enjoy your trip with heavenly joys with Best Escort 
Services in Udaipur.

Comment 13 by shop soci, Dec 13, 2019

Youtube Beğeni Satın Al

Youtube videolarına beğeni satın almak isteyen müşterilerimiz için 
sağladığımız beğeni satın alma hizmetleri son zamanların en çok 
talep gören Youtube hizmetleri arasında yer almaktadır. Profesyonel 
ekiplerimiz tarafından bu işlem için özel olarak geliştirilen bir 
yazılım sayesinde, satın aldığınız beğeniler çok kısa bir süre 
içerisinde tercih ettiğiniz videolara eklenmektedir. Bu işlemi 
sitemizin Youtube hizmetleri bölümünden gerçekleştirebilirsiniz. 
Gerekli adımları tamamladığınız takdirde beğeniler videonuza 

Comment 14 by riya sharma, Dec 18, 2019

Hey, everyone, welcome to my independent Delhi escorts . I am riya 
here work as a high profile Call girls in delhi. I am here for last 
6 years and have ability of fulfilling every sexual desires of every 
man. I am truly a self-independent and always ready to enjoy with 
you. You can book me at any time from my website.

Comment 16 by sabina khan, Dec 31, 2019

You feel it in your favor when you get to know about different 
aspects of expert independent Chennai escorts to cater the need of 
distinct individual. Offerings are really great with customized 
options available for esteemed group of clients.

Comment 18 by Jacob Lee, Jan 13, 2020

I highly appreciate your keen interest. Make your life hassle-free 
and smooth by leveraging Assignment Help service of GoAssignmentHelp 
portal. Here at GoAssignmentHelp, You can ask for do my assignments 
online at best available & affordable prices.

Comment 19 by shop soci, Jan 15, 2020

Instagram User ID

We offering you the best opportunity for your 
social media account! If you want to be a famous 
person and attach attraction to other people on 
this platform in a safe way; You should check our website! 
Our website for your dream and social 
media needs!

Created: 9 years 11 months ago by Wolfgang Spraul

Updated: 3 days 19 hours ago

Status: Verified

Followed by: 9 persons