HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

flashrom — Read, write, verify, and erase flash chips. More information: <https://manned.org/flashrom>.

Submitted by: @import:tldr-pages··
0
Viewed 0 times
commandandreadflashromcliwriteeraseverify
linux

Problem

How to use the flashrom command: Read, write, verify, and erase flash chips. More information: <https://manned.org/flashrom>.

Solution

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}}

Code Snippets

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}}

Context

tldr-pages: linux/flashrom

Revisions (0)

No revisions yet.