[flashrom] [PATCH] Bus Pirate init cleanup and fixes

Carl-Daniel Hailfinger c-d.hailfinger.devel.2006 at gmx.net
Fri Aug 17 19:31:15 CEST 2012

Am 30.06.2012 00:57 schrieb Carl-Daniel Hailfinger:
> New version, only cosmetic changes compared to last version.
> The Bus Pirate firmware (at least v6.1 and earlier) can't handle UART
> input buffer overflow in BBIO mode, and sending a sequence of 0x00 too
> fast apparently triggers such an UART input buffer overflow. Wait 10 ms
> after sending each 0x00 byte during init to give the Bus Pirate enough
> time to handle the input. This fixes a Bus Pirate hang if the previous
> flashrom run was aborted by the user.
> The Bus Pirate firmware v6.1 and earlier use the wrong (too slow) SPI
> speed if more than 2 MHz are requested. Automatically downgrade SPI
> speed to 2 MHz for affected firmware versions.
> Detect Bus Pirate hardware and firmware versions to allow quirk handling.
> The Bus Pirate init sequence has lots of open-coded sequences which wait
> for a given string on the serial line. Refactor them into
> buspirate_wait_for_string().
> User-visible changes: Fix hang, use 2 MHz SPI speed on buggy firmware.
> Note: This patch does _not_ include support for the fast access mode
> present in firmware 5.5 and later.
> Tested with Bus Pirate hardware v3a and v3b, firmwares 4.0, 5.2 and
> 6.2-beta.
> Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006 at gmx.net>

Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006 at gmx.net>
and committed in r1576.



More information about the flashrom mailing list