Skip to content

Instantly share code, notes, and snippets.

@Waltibaba
Created December 10, 2016 12:30
Show Gist options
  • Save Waltibaba/ec2d61ffbcbaca86b77c2858fcbfae27 to your computer and use it in GitHub Desktop.
Save Waltibaba/ec2d61ffbcbaca86b77c2858fcbfae27 to your computer and use it in GitHub Desktop.
#find which mem chip exactly it is (in flashrom's internal naming scheme - the real chip is the 6406E, but flashrom combines it with the 6408E)
flashrom -L | grep MX25L
#read
flashrom -p linux_spi:dev=/dev/spidev0.0,spispeed=512 --chip MX25L6406E/MX25L6408E -r romread1.rom
#read a few times and compare with 'diff' to be sure read didn't have errors, just in case you have to flash back
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment