#2614 BLOC Trial-3: OFW copy-nand should abort on CRC mismatch

Zarro Boogs per Child bugtracker at laptop.org
Wed Aug 1 15:13:19 EDT 2007


#2614: OFW copy-nand should abort on CRC mismatch
----------------------------------+-----------------------------------------
  Reporter:  cscott               |       Owner:  wmb at firmworks.com
      Type:  defect               |      Status:  new              
  Priority:  blocker              |   Milestone:  Trial-3          
 Component:  ofw - open firmware  |     Version:                   
Resolution:                       |    Keywords:                   
  Verified:  0                    |  
----------------------------------+-----------------------------------------
Comment (by wmb at firmworks.com):

 Solution 1: Wipe the entire flash on an error:

   open-nand  " wipe" nandih $call-method  close-nand-ihs

 Disadvantage: destroys information that might be somewhat useful for
 debugging.   Not a huge disadvantage...

 Solution 2: Wipe just the first erase block (which contains the root
 directory, because of known behavior of the software that creates the
 JFFS2 image file):

   open-nand  0 " erase-block" nandih $call-method  close-nand-ihs

 Disadvantage: Depends on the assumption that the first erase block is not
 a bad block (which is nearly always true).

 Solution 3: Reorder the blocks in the .img file, moving the first one to
 the end of the file, thus making the root directory appear on the NAND
 FLASH at the very end of the copy-nand process.

-- 
Ticket URL: <http://dev.laptop.org/ticket/2614#comment:5>
One Laptop Per Child <http://laptop.org/>



More information about the Bugs mailing list