[LinuxBIOS] how flashrom works

Stefan Reinauer stepan at coresystems.de
Tue Mar 20 09:52:16 CET 2007


* Anton <anton.borisov at gmail.com> [070320 09:31]:
> Can someone give me a pointer on flashrom programming?
> 	I look into sst28sf040.h, there are 3 functions available: probe(),
> erase(), write(). How the read() from chip is implemented?

The area is mmap'ed and then just read as normal memory. 
If you do -r, it uses memcpy, flash_rom.c:325

Stefan

-- 
coresystems GmbH • Brahmsstr. 16 • D-79104 Freiburg i. Br.
      Tel.: +49 761 7668825 • Fax: +49 761 7664613
Email: info at coresystems.dehttp://www.coresystems.de/




More information about the coreboot mailing list