[LinuxBIOS] flashrom support for AMD Geode CS5536

Stefan Reinauer stepan at coresystems.de
Tue Oct 2 18:27:12 CEST 2007


Dear Lane!

Thank you very much for your patch.

* Lane Brooks <lbrooks at MIT.EDU> [071002 18:20]:
> - It seems like there should be a way to revert the msr back after flashing 
> is completed to put the bios back in write protect mode.  Is there a 
> cleanup mechanism available?  Something like disable_flash...

Unfortunately no. Any patches that generically implement such a
mechanism are welcome though!


> +#define _LARGEFILE64_SOURCE
> +#include <sys/types.h>
> +#include <sys/stat.h>
> +#include <fcntl.h>
> +#include <unistd.h>

> +	unsigned long addr = 0x1808;
> +	lseek64(fd_msr, (off64_t) addr, SEEK_SET);

Why do you use/need large file support for seeking to an offset of
0x1808 ?

Please sign off your patches:
http://linuxbios.org/index.php/Development_Guidelines#How_to_contribute


-- 
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/
Registergericht: Amtsgericht Freiburg • HRB 7656
Geschäftsführer: Stefan Reinauer • Ust-IdNr.: DE245674866




More information about the coreboot mailing list