1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages/linux/flashrom.md

25 lines
665 B
Markdown
Raw Normal View History

2021-04-10 00:35:57 +02:00
# flashrom
> Read, write, verify and erase flash chips.
> More information: <https://manned.org/flashrom>.
- Probe the chip, ensuring the wiring is correct:
`flashrom {{[-p|--programmer]}} {{programmer}}`
2021-04-10 00:35:57 +02:00
- Read flash and save it to a file:
`flashrom {{[-p|--programmer]}} {{programmer}} {{[-r|--read]}} {{path/to/file}}`
2021-04-10 00:35:57 +02:00
- Write a file to the flash:
`flashrom {{[-p|--programmer]}} {{programmer}} {{[-w|--write]}} {{path/to/file}}`
2021-04-10 00:35:57 +02:00
- Verify the flash against a file:
`flashrom {{[-p|--programmer]}} {{programmer}} {{[-v|--verify]}} {{path/to/file}}`
2021-04-10 00:35:57 +02:00
- Probe the chip using Raspberry Pi:
2021-04-10 00:35:57 +02:00
`flashrom {{[-p|--programmer]}} {{linux_spi:dev=/dev/spidev0.0}}`