diff options
author | exotime <notabug@exoti.me> | 2017-05-02 15:25:17 +1000 |
---|---|---|
committer | exotime <notabug@exoti.me> | 2017-05-02 15:25:17 +1000 |
commit | 6b3faaae0c563f7622b11a1e1838153958df5c9f (patch) | |
tree | a643af3d94beaf6c6eb838510ffade238b224d23 /docs/install/x200_external.md | |
parent | 64ff4dd2ecb15574fdac6d9e3686cdeec871502b (diff) | |
download | librebootfr-6b3faaae0c563f7622b11a1e1838153958df5c9f.tar.gz librebootfr-6b3faaae0c563f7622b11a1e1838153958df5c9f.zip |
Fixing up layout of code sections.
Signed-off-by: exotime <notabug@exoti.me>
Diffstat (limited to 'docs/install/x200_external.md')
-rw-r--r-- | docs/install/x200_external.md | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/docs/install/x200_external.md b/docs/install/x200_external.md index 6ceffd82..16c92662 100644 --- a/docs/install/x200_external.md +++ b/docs/install/x200_external.md @@ -150,7 +150,8 @@ Log in as root on your BBB, using the instructions in [bbb\_setup.html\#bbb\_access](bbb_setup.html#bbb_access). Test that flashrom works: - # ./flashrom -p linux\_spi:dev=/dev/spidev1.0,spispeed=512 + # ./flashrom -p linux_spi:dev=/dev/spidev1.0,spispeed=512 + In this case, the output was: flashrom v0.9.7-r1854 on Linux 3.8.13-bone47 (armv7l) @@ -162,20 +163,20 @@ In this case, the output was: Multiple flash chip definitions match the detected chip(s): "MX25L6405(D)", "MX25L6406E/MX25L6436E", "MX25L6445E/MX25L6473E" Please specify which chip definition to use with the -c <chipname> option. -How to backup factory.rom (change the -c option as neeed, for your flash -chip):\ -\# **./flashrom -p linux\_spi:dev=/dev/spidev1.0,spispeed=512 -r -factory.rom**\ -\# **./flashrom -p linux\_spi:dev=/dev/spidev1.0,spispeed=512 -r -factory1.rom**\ -\# **./flashrom -p linux\_spi:dev=/dev/spidev1.0,spispeed=512 -r -factory2.rom**\ -Note: the **-c** option is not required in libreboot's patched +Here is how to backup factory.rom: + + # ./flashrom -p linux_spi:dev=/dev/spidev1.0,spispeed=512 -r factory.rom + # ./flashrom -p linux_spi:dev=/dev/spidev1.0,spispeed=512 -r factory1.rom + # ./flashrom -p linux_spi:dev=/dev/spidev1.0,spispeed=512 -r factory2.rom + +**Note:** the **-c** option is not required in libreboot's patched flashrom, because the redundant flash chip definitions in *flashchips.c* -have been removed.\ +have been removed. + Now compare the 3 images: # sha512sum factory\*.rom + If the hashes match, then just copy one of them (the factory.rom) to a safe place (on a drive connected to another system, not the BBB). This is useful for reverse engineering work, if there is a desirable @@ -189,9 +190,8 @@ flashing it. Although there is a default MAC address inside the ROM image, this is not what you want. **Make sure to always change the MAC address to one that is correct for your system.** -Now flash it:\ -\# **./flashrom -p linux\_spi:dev=/dev/spidev1.0,spispeed=512 -w -path/to/libreboot/rom/image.rom -V** +Now flash it: + # ./flashrom -p linux_spi:dev=/dev/spidev1.0,spispeed=512 -w path/to/libreboot/rom/image.rom -V ![](images/x200/disassembly/0015.jpg) |