ESP32 and ESP8266 for dumping firmware
parent
8b0b26e21d
commit
8bb055055b
|
@ -1,5 +1,7 @@
|
||||||
# SPI
|
# SPI
|
||||||
|
|
||||||
|
SPI is a serial peripheral interface. The controller selects a chip it send and receive information to and from. NOR flash chips with an SPI interface are commonly used as firmware boot chip. SPI has one read and one write line. In QSPI mode, 4 lines are used in parallel.
|
||||||
|
|
||||||
### Dump Firmware via SPI
|
### Dump Firmware via SPI
|
||||||
|
|
||||||
```powershell
|
```powershell
|
||||||
|
@ -11,6 +13,12 @@ sudo flashrom -p linux spi:dev=/dev/spidev0.0,spispeed=1000
|
||||||
sudo flashrom -p linux spi:dev=/dev/spidev0.0,spispeed=1000 -r dump.bin
|
sudo flashrom -p linux spi:dev=/dev/spidev0.0,spispeed=1000 -r dump.bin
|
||||||
```
|
```
|
||||||
|
|
||||||
|
An ESP8266 and ESP32 has several SPI busses available in hardware, SPI0 is hooked up to it's own internal flash and is not intended for use, but the HSPI and VSPI busses can be used in combination with a SOIC-8 clamp to read from SPI NOR chips. cheap clips have a tendency to jump of the chips, pomona 5250 has a better grip.
|
||||||
|
|
||||||
|
```powershell
|
||||||
|
$ python ./esptool.py read_flash --spi-connection HSPI 0 0x400000 flash_dump.bin
|
||||||
|
```
|
||||||
|
|
||||||
### SPIFFS
|
### SPIFFS
|
||||||
|
|
||||||
```powershell
|
```powershell
|
||||||
|
|
Loading…
Reference in New Issue