Skip to content

Commit dd984a6

Browse files
committed
flashrom dregmod v3.5
1 parent aa245e9 commit dd984a6

File tree

2 files changed

+46
-7
lines changed

2 files changed

+46
-7
lines changed

README.md

Lines changed: 46 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,21 +16,60 @@ btw, **flashrom works better on Linux** ;-)
1616

1717
![buspirate_winbond_mini](buspirate_winbond_mini.png)
1818

19-
## Dreg's mods
19+
## Buzzpirat & Bus Pirate help
2020

21-
- buspirate: Add option for setting the aux pin: https://review.coreboot.org/c/flashrom/+/43608
21+
A required `dev` parameter specifies the Bus Pirate device node and an optional `spispeed` parameter specifies the frequency of the SPI bus. The parameter delimiter is a comma. Syntax is:
2222

23-
When working with low-voltage chips, the internal 10k pull-ups of the Bus Pirate might be too high. In such cases, it's
24-
necessary to create an external pull-up using lower-value resistors. For this, you can use the ``hiz`` parameter.
25-
This way, the Bus Pirate will operate as an open drain. Syntax is::
23+
```bash
24+
flashrom -p buspirate_spi:dev=/dev/device,spispeed=frequency
2625
```
26+
27+
where `frequency` can be `30k`, `125k`, `250k`, `1M`, `2M`, `2.6M`, `4M` or `8M` (in Hz). The default is the maximum frequency of 8 MHz.
28+
29+
The baud rate for communication between the host and the Bus Pirate can be specified with the optional `serialspeed` parameter. Syntax is:
30+
31+
```bash
32+
flashrom -p buspirate_spi:serialspeed=baud
33+
```
34+
35+
where `baud` can be `115200`, `230400`, `250000` or `2000000` (`2M`). The default is `2M` baud for Bus Pirate hardware version 3.0 and greater, and 115200 otherwise.
36+
37+
An optional pullups parameter specifies the use of the Bus Pirate internal pull-up resistors. This may be needed if you are working with a flash ROM chip that you have physically removed from the board. Syntax is:
38+
39+
```bash
40+
flashrom -p buspirate_spi:pullups=state
41+
```
42+
43+
where `state` can be `on` or `off`. More information about the Bus Pirate pull-up resistors and their purpose is available [in a guide by dangerousprototypes](http://dangerousprototypes.com/docs/Practical_guide_to_Bus_Pirate_pull-up_resistors).
44+
45+
When working with low-voltage chips, the internal 10k pull-ups of the Bus Pirate might be too high. In such cases, it’s necessary to create an external pull-up using lower-value resistors.
46+
47+
For this, you can use the `hiz` parameter. This way, the Bus Pirate will operate as an open drain. Syntax is:
48+
49+
```bash
2750
flashrom -p buspirate_spi:hiz=state
2851
```
2952

30-
AUX param:
53+
where `state` can be `on` or `off`.
54+
55+
The state of the Bus Pirate power supply pins is controllable through an optional `psus` parameter. Syntax is:
56+
57+
```bash
58+
flashrom -p buspirate_spi:psus=state
3159
```
32-
aux=high/low
60+
61+
where `state` can be `on` or `off`. This allows the bus pirate to power the ROM chip directly. This may also be used to provide the required pullup voltage (when using the `pullups` option), by connecting the Bus Pirate’s Vpu input to the appropriate Vcc pin.
62+
63+
An optional aux parameter specifies the state of the Bus Pirate auxiliary pin. This may be used to drive the auxiliary pin high or low before a transfer. Syntax is:
64+
65+
```bash
66+
flashrom -p buspirate_spi:aux=state
3367
```
68+
69+
where `state` can be `high` or `low`. The default `state` is `high`.
70+
71+
72+
## Compilation
3473

3574
```
3675
meson setup builddir --wipe --prefer-static --clearcache --default-library static

flashrom.exe

0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)