#11234 NORM 11.3.0: use mtd mounts instead of /dev/mtdblock* on XO-1

Zarro Boogs per Child bugtracker at laptop.org
Tue Sep 13 05:50:00 EDT 2011


#11234: use mtd mounts instead of /dev/mtdblock* on XO-1
--------------------+-------------------------------------------------------
 Reporter:  dsd     |                 Owner:  dsd          
     Type:  defect  |                Status:  new          
 Priority:  normal  |             Milestone:  11.3.0       
Component:  distro  |               Version:  not specified
 Keywords:          |           Next_action:  code         
 Verified:  0       |   Deployment_affected:               
Blockedby:          |              Blocking:               
--------------------+-------------------------------------------------------
 While looking for #11094 I found a laptop with a bad block at the very
 start of where the ubi partition gets written with current 11.3.0 images.
 This caused almost a minute-long spew of errors during boot, but then boot
 does continue.

 I found that mtdblock devices were allowing read of the bad sector (but
 then complaining heavily about ECC failures), and presumably udev or
 something is probing all block devices during boot looking for fs
 signatures.

 I then found that mtdblock is not a good idea in our case:
 http://www.linux-mtd.infradead.org/faq/general.html#L_ext2_mtd

 We are currently using it for jffs2 mounts (since thats what dracut
 knows), but we need to stop using it and turn off mtdblock support in the
 kernel so that things like udev aren't tempted to touch the devices.

-- 
Ticket URL: <http://dev.laptop.org/ticket/11234>
One Laptop Per Child <http://laptop.org/>
OLPC bug tracking system


More information about the Bugs mailing list