[flashrom] [PATCH] IT87* SPI unallocated port recovery

Ward Vandewege ward at gnu.org
Thu Jul 16 22:03:12 CEST 2009


Hi Carl-Daniel,

That worked perfectly. I was able to recover one unflashable m57sli system,
and will be using this procedure on the others shortly.

On Thu, Jul 16, 2009 at 06:26:38PM +0200, Carl-Daniel Hailfinger wrote:
> For Ward Vandewege.
> 
> IT87* SPI unallocated port recovery.
> Some coreboot versions forget to set the correct SPI flash port. This in
> turn causes the port range to stay unallocated and thus not passed
> through to the device.
> Since the serial port at 0x3f8 is always enabled, disable the serial
> port, set its address to zero, then allow the user to set the SPI flash
> port to 0x3f8.
> 
> Not intended for merging yet, we need a proper user interface for this
> 
> How to use this:
> Boot a kernel with modular serial port, load the serial module and test
> it with minicom/whatever, run
> # lspci -nnvvvxxxx >lspci_loaded.txt
> # superiotool -d >superiotool_loaded.txt
> Unload the serial module, then run
> # lspci -nnvvvxxxx >lspci_unloaded.txt
> # superiotool -d >superiotool_unloaded.txt
> # flashrom -p it87spi=port=0x3f8
> # lspci -nnvvvxxxx >lspci_modified.txt
> # superiotool -d >superiotool_modified.txt
> 
> The above sequence needs to happen right after a cold boot and after
> testing the serial port. The flashrom step will alter some registers
> until the next cold boot, so running it twice will not yield useful results.
> 
> Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006 at gmx.net>

Acked-by: Ward Vandewege <ward at gnu.org>

Thanks!
Ward.

-- 
Ward Vandewege <ward at gnu.org>




More information about the flashrom mailing list