summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEvan Lojewski <github@meklort.com>2019-05-05 20:00:22 -0600
committerEvan Lojewski <github@meklort.com>2019-05-05 20:00:22 -0600
commite9ca9f9c01f90f4e5adffef03d64888a7acda6e7 (patch)
tree4815beab12cf71131ebc8837beb0fe89a7159aa8
parenta644a841c32446e1c3346fc1166efbc18d60c3c6 (diff)
downloadbcm5719-ortega-e9ca9f9c01f90f4e5adffef03d64888a7acda6e7.tar.gz
bcm5719-ortega-e9ca9f9c01f90f4e5adffef03d64888a7acda6e7.zip
README: describe sequence to flash the MIPS firmware.
-rw-r--r--README.md21
1 files changed, 21 insertions, 0 deletions
diff --git a/README.md b/README.md
index 15da55a..d0bc4dd 100644
--- a/README.md
+++ b/README.md
@@ -56,3 +56,24 @@ cmake .. -G Ninja
cmake --build .
```
+## Usage
+Before proceeding, the linux driver must be unloaded. On the Talos II, this can be done as root with the following:
+```bash
+echo 0004:01:00.0 > /sys/bus/pci/devices/0004:01:00.0/driver/unbind
+echo 0004:01:00.1 > /sys/bus/pci/devices/0004:01:00.1/driver/unbind
+```
+
+### Backup Firmware
+Before proceeding, the original firmware should be backed up.
+```bash
+cd build
+sudo ./utils/bcmflash/bcmflash -t hardware -b binary
+```
+This will result in a firmware image, firmware.fw, bing stored in the current directory.
+
+### Stage 1 - MIPS Firmware
+After compilation, the MIPS firmware is ready to be uploaded to the NIC.
+```bash
+cd build
+sudo ./utils/bcmflash/bcmflash -t hardware -1 stage1/stage1.bin
+```
OpenPOWER on IntegriCloud