#1115 NORM Trial-2: it's easy to mess up copy-nand in OF
Zarro Boogs per Child
bugtracker at laptop.org
Fri Jul 20 17:24:06 EDT 2007
#1115: it's easy to mess up copy-nand in OF
----------------------------------+-----------------------------------------
Reporter: andrey | Owner: wmb at firmworks.com
Type: defect | Status: new
Priority: normal | Milestone: Trial-2
Component: ofw - open firmware | Version:
Resolution: | Keywords: nand,flash
Verified: 0 |
----------------------------------+-----------------------------------------
Comment (by wmb at firmworks.com):
Fixed by svn 481.
Test cases:
{{{
a) .img file missing ->
Can't open NAND image file
b) .crc file missing ->
Can't open CRC file
c) zero-length .img file ->
Image file is empty
d) .img file size not multiple of 0x20000 bytes ->
Image file size is not a multiple of the NAND erase block size
e) .crc file size not multiple of 9 (8 characters per line plus newline)
->
CRC file length is not a multiple of the CRC record length
f) .crc number of CRC records <> .img number of erase blocks ->
CRC file length is wrong
}}}
I also changed the CRC reading code so copy-nand will work over HTTP.
Test with (assuming that there is an httpd running on "myserver.mydomain"
and the DHCP server specifies a DNS server that can resolve that name -
otherwise use the dotted-decimal IP address):
{{{
ok copy-nand http:\\myserver.mydomain\nand527.img
}}}
--
Ticket URL: <http://dev.laptop.org/ticket/1115#comment:12>
One Laptop Per Child <http://laptop.org/>
More information about the Bugs
mailing list