Skip to content

Instantly share code, notes, and snippets.

@ximus
Created March 16, 2015 03:24
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save ximus/e8fefaf34d6e734752c1 to your computer and use it in GitHub Desktop.
Save ximus/e8fefaf34d6e734752c1 to your computer and use it in GitHub Desktop.
get flashall.sh to work on osx
--- flashall.sh
+++ (clipboard)
@@ -220,15 +220,14 @@
flash-command --alt u-boot-env0 -D "${VARIANT_FILE}"
echo "Flashing U-Boot Environment Backup"
- flash-command --alt u-boot-env1 -D "${VARIANT_FILE}" -R
+ flash-command --alt u-boot-env1 -D "${VARIANT_FILE}"
echo "Rebooting to apply partition changes"
- dfu-wait no-prompt
echo "Flashing boot partition (kernel)"
flash-command --alt boot -D "${ESC_BASE_DIR}/edison-image-edison.hddimg"
echo "Flashing rootfs, (it can take up to 10 minutes... Please be patient)"
- flash-command --alt rootfs -D "${ESC_BASE_DIR}/edison-image-edison.ext4" -R
+ flash-command --alt rootfs -D "${ESC_BASE_DIR}/edison-image-edison.ext4"
echo "Rebooting"
echo "U-boot & Kernel System Flash Success..."
@wangyeee
Copy link

This script works great on 10.10. But I have to manually restart edison board by pressing the reset button on the arduino expansion board after it told me to wait for two minutes. Then the board reflashed itself and reboot again, then the new ubilinux is alive!

@geotheory
Copy link

Awesome! This just worked for me on Yosemite 10.10.3. Thanks ximus

@theladyjaye
Copy link

this worked for me on 10.10.5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment