Forrest logo
back to the flashrom tool

flashrom:tldr:bc82a

flashrom: Read flash and save it to a file.
$ flashrom -p ${programmer} --read ${filename}
try on your machine

The command flashrom -p ${programmer} --read ${filename} is used to read the contents of a flash memory chip using the flashrom utility.

Here's a breakdown of the command:

  • flashrom is the name of the command-line utility used to interact with flash memory chips.
  • -p is a flag used to specify the programmer interface to be used. ${programmer} is a placeholder that should be replaced with the actual programmer interface you want to use. For example, if you are using a USB programmer, you might replace ${programmer} with usb.
  • --read is an option that tells flashrom to perform a read operation on the flash memory chip.
  • ${filename} is another placeholder that should be replaced with the name of the file you want to save the read contents to. For example, if you want to save the contents to a file named my_flash_dump.bin, you would replace ${filename} with my_flash_dump.bin.

So, the overall command is telling flashrom to use a specific programmer interface (specified by ${programmer}), and perform a read operation on the flash memory chip, saving the contents to a file with the name ${filename}.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the flashrom tool