From dea027f28f0f68f70ba3fd98ee510401fafe78b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Peter=20Babi=C4=8D?= Date: Sat, 10 Apr 2021 00:35:57 +0200 Subject: [PATCH] flashrom: add page (#5700) --- pages/linux/flashrom.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 pages/linux/flashrom.md diff --git a/pages/linux/flashrom.md b/pages/linux/flashrom.md new file mode 100644 index 000000000..f3b898ad1 --- /dev/null +++ b/pages/linux/flashrom.md @@ -0,0 +1,24 @@ +# flashrom + +> Read, write, verify and erase flash chips. +> More information: . + +- Probe the chip, ensuring the wiring is correct: + +`flashrom --programmer {{programmer}}` + +- Read flash and save it to a file: + +`flashrom -p {{programmer}} --read {{path/to/file}}` + +- Write a file to the flash: + +`flashrom -p {{programmer}} --write {{path/to/file}}` + +- Verify the flash against a file: + +`flashrom -p {{programmer}} --verify {{path/to/file}}` + +- Probe the chip using RaspberryPi: + +`flashrom -p {{linux_spi:dev=/dev/spidev0.0}}`