[coreboot] flashrom patch: Force read unknown flash chips
ward at gnu.org
Wed Jun 18 03:44:37 CEST 2008
On Sun, Jun 15, 2008 at 04:53:14AM +0200, Peter Stuge wrote:
> flashrom: Force read unknown flash chips
> When flash chip detection fails, it is still useful and possible to read the
> flash chip contents. If no flash chip is found in normal probes and the
> -f -r -c CHIPNAME options are given, a successful probe for the specified
> chip is forced, and flashrom reads the flash chip using either the read
> function for the specified chip, or if there is none, a simple memcpy().
> The patch also moves the global variable int force in flashrom.c into main()
> and passes it as a parameter to layout.c:show_id(), which is the only other
> function that uses the variable. This is needed to avoid confusion with the
> new parameter int force which is added to flashrom.c:probe_flash() to force
> a probe success.
> Signed-off-by: Peter Stuge <peter at stuge.se>
Tested on alix.2c3, works there.
Acked-by: Ward Vandewege <ward at gnu.org>
with the changes proposed by Paul in this thread.
Ward Vandewege <ward at fsf.org>
Free Software Foundation - Senior System Administrator
More information about the coreboot