#7702 NORM 9.1.0: OFW randomly fails to read SD cards > 4GB

Zarro Boogs per Child bugtracker at laptop.org
Tue Jul 29 18:12:04 EDT 2008


#7702: OFW randomly fails to read SD cards > 4GB
-----------------------------------+----------------------------------------
   Reporter:  wmb at firmworks.com    |       Owner:  wmb at firmworks.com
       Type:  defect               |      Status:  closed           
   Priority:  normal               |   Milestone:  9.1.0            
  Component:  ofw - open firmware  |     Version:  not specified    
 Resolution:  fixed                |    Keywords:                   
Next_action:  never set            |    Verified:  0                
  Blockedby:                       |    Blocking:                   
-----------------------------------+----------------------------------------
Changes (by wmb at firmworks.com):

  * status:  new => closed
  * resolution:  => fixed


Comment:

 Fixed by svn 861.  Firmware versions >= q2e12a have the fix.

 It was an off-by-one bug in the parser for the Card Specific Data.  The
 parser was looking for the structure version ID in bits 126..128 instead
 of 126..127.  Bit 128 overlaps into a byte that's not part of the
 structure, whose value was random.  Sometimes that bit would be 1, making
 the structure ID invalid, making the parser supply a default size of 4GB,
 so when a block outside that range was requested, the request got
 truncated.

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


More information about the Bugs mailing list