mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-26 11:33:59 +00:00
30 lines
758 B
Plaintext
30 lines
758 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, linux]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# 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}}`
|
|
|
|
- Read flash and save it to a file:
|
|
|
|
`flashrom {{[-p|--programmer]}} {{programmer}} {{[-r|--read]}} {{path/to/file}}`
|
|
|
|
- Write a file to the flash:
|
|
|
|
`flashrom {{[-p|--programmer]}} {{programmer}} {{[-w|--write]}} {{path/to/file}}`
|
|
|
|
- Verify the flash against a file:
|
|
|
|
`flashrom {{[-p|--programmer]}} {{programmer}} {{[-v|--verify]}} {{path/to/file}}`
|
|
|
|
- Probe the chip using Raspberry Pi:
|
|
|
|
`flashrom {{[-p|--programmer]}} {{linux_spi:dev=/dev/spidev0.0}}`
|