[flashrom] [PATCH] Bus Pirate: Speedup and firmware workarounds

Carl-Daniel Hailfinger c-d.hailfinger.devel.2006 at gmx.net
Tue Jun 19 08:33:20 CEST 2012


Am 18.06.2012 19:18 schrieb Carl-Daniel Hailfinger:
> Am 13.06.2012 03:40 schrieb Carl-Daniel Hailfinger:
>> > Bus Pirate Firmware v5.5 and newer support a new SPI binary mode. Use it
>> > if available.
>> > Bus Pirate Firmware v6.1 and older have broken (too slow) SPI clock
>> > divisor for any requested speed above 2 MHz. Force a downgrade to 2 MHz
>> > for affected firmware versions.
>> > flashrom will recommend to upgrade the Bus Pirate Firmware if it is
>> > older than v6.2.
>> >
>> > Somewhat tested, code still needs to be cleaned up in a few spots.
>> >
>> > Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006 at gmx.net>
> With this patch, you get a 10x speedup (if you use latest firmware).
>
> WARNING: This patch breaks Windows compilation and has other nasty side
> effects, 

Those nasty side effects don't affect any currently supported chip.


> but it's OK if you want to test with Linux.

Tested with AMIC A25L032, works fine.
Full chip write (32 Mbit) is now down to 5 min 57 sec instead of more
than 1 hour.

Test it, and have fun!

Regards,
Carl-Daniel

-- 
http://www.hailfinger.org/





More information about the flashrom mailing list