[flashrom] [PATCH] Allow bus override with forced read
c-d.hailfinger.devel.2006 at gmx.net
Wed Jul 14 17:28:52 CEST 2010
On 14.07.2010 12:06, Michael Karcher wrote:
> Am Mittwoch, den 14.07.2010, 11:53 +0200 schrieb Carl-Daniel Hailfinger:
>> If someone wants to perform a forced read of a chip via mmap, we should
>> allow that even if the host doesn't support the bus this chip needs.
>> flashrom -p dummy:bus=spi -V -c Am29F016D -f -r foo.rom
>> This won't work right now because -f won't override probe skipping. So
>> far the only use of this bus override is for the internal programmer,
>> and as such I wonder whether we should make the bus override conditional
>> on the internal programmer. It's pointless for other programmers anyway.
> Another option would be a "mmap" programmer that is read only, doesn't
> support probes (or supports probing by looking for repetition) and has
> another special bus type (e.g. DUMMY), which is matched by dummy chips
> in the chip table with all common sizes. This dummy mmap programmer
> would *not* have board enables and *not* have chipset enables.
Nice idea, makes a lot of sense. There will be some overlap with forced
read functionality, though.
I can hack up such a mmap programmer, but this would be greatly
simplified by solving the address space alignment problem I posted.
More information about the flashrom