[OLPC-devel] read side of olpcflash works

Ronald G Minnich rminnich at lanl.gov
Fri Aug 11 10:28:37 EDT 2006


The attached file, when compiled and run, can read the olpc SPI flash.

to run:

./olpcflash -i 0x381 -r somefile

and you can see the bios in somefile.

You can verify too:
./olpcflash -i 0x381 -v somefile

why it's 381 and not the default I don't know.

What's amazing: the read code worked on the first rev.

Write does not work, I think something is still write protected.

ron
-------------- next part --------------
A non-text attachment was scrubbed...
Name: olpcflash.c
Type: text/x-c++src
Size: 10552 bytes
Desc: not available
URL: <http://lists.laptop.org/pipermail/devel/attachments/20060811/ecbf5cf8/attachment.c>


More information about the Devel mailing list