Skip to content

Commit 6e2edc9

Browse files
add optional while loop to retry flashall.sh
1 parent 1617701 commit 6e2edc9

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

docs/docs/Resources/Edison-Flashing/all-computers-flash.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,11 +92,15 @@ Windows PCs with less than 6 GB of RAM may need to have the size of the page fi
9292

9393
## Flashing image onto the Edison
9494

95+
Sometimes, particularly on older Edisons, the flash process will error out during the `Flashing rootfs, (it can take up to 10 minutes... Please be patient)` step, with `bytesdfu-util: Error during download`. If you retry the flash, it will get a bit further each time, until eventually it succeeds. Most likely, the Edison is finding bad SSD sectors and marking them, but not before the flash process errors out.
96+
9597
### If you’re using a Raspberry Pi - starting flash:
9698
- In the "flash window" from the Download Image instructions above, run `sudo ./flashall.sh`. If you receive an `dfu-util: command not found` error, you can install dfu-util by running `sudo apt-get install dfu-util`
99+
- If you want the flashall.sh script to keep retrying until it succeeds, you can do `while (sudo ./flashall.sh | tee /tmp/flash.out; grep Error /tmp/flash.out); do echo "Flash failed: retrying"; sleep 5; done`
97100

98101
### If you’re using a Mac - starting flash:
99-
- In the "flash window" from the Download Image instructions above, run `./flashall.sh`.
102+
- In the "flash window" from the Download Image instructions above, run `./flashall.sh`.
103+
- If you want the flashall.sh script to keep retrying until it succeeds, you can do `while (./flashall.sh | tee /tmp/flash.out; grep Error /tmp/flash.out); do echo "Flash failed: retrying"; sleep 5; done`
100104
- If you receive an `dfu-util: command not found` error, you can install dfu-util by following [the Mac instructions here](https://software.intel.com/en-us/node/637974#manual-flash-process).
101105
- If you receive an `Error: Running Homebrew as root is extremely dangerous and no longer supported. As Homebrew does not drop privileges on installation you would be giving all build scripts full access to your system.` see the troubleshooting section below.
102106

0 commit comments

Comments
 (0)