Created
March 16, 2015 03:24
-
-
Save ximus/e8fefaf34d6e734752c1 to your computer and use it in GitHub Desktop.
get flashall.sh to work on osx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- 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..." |
Awesome! This just worked for me on Yosemite 10.10.3. Thanks ximus
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
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!