On 01/12/2010 13:14, Peter Stuge wrote:
Mark Marshall wrote:
I've tried to extend the SPI code to drive the winbond SPI chip used on the
production boards.  I've not got one, so I haven't tested it.  If people
are feeling adventurous than it would be good if they had a play with
"oga1-card".  This should now read and write all SPI chips that we have.

It would be nice to add OGA1 support to the flashrom utility, which
has some SPI infrastructure already, as well as support for "flasher"
hardware, various NICs and SATA cards are already supported.
http://flashrom.org/

After getting this message I decided to have a look at doing this. I did know about the flashrom tool (from following coreboot), but I didn't really think that adding OGP support would be of any help.

The code only took an hour or two to write, and the tool works perfectly. It _should_ deal with any SPI flash device we throw at it. The code is clean and easy to read (not mine, the rest of the tool).

Carl-Daniel Hailfinger checked in the code a few minutes ago, so if you checkout flashrom and build it you should get OGP support. (Building work flawlessly for me - "make").

I'd really like feedback from OGP'ers as to whether this works for them or not. If it does work then we should move to using this as our main flash reading / writing tool.

Thanks Peter for the nudge.

Happy Hacking.

MM

_______________________________________________
Open-graphics mailing list
[email protected]
http://lists.duskglow.com/mailman/listinfo/open-graphics
List service provided by Duskglow Consulting, LLC (www.duskglow.com)

Reply via email to