Advertisement
gingerbeardman

retrode upgrade.sh

May 24th, 2012
193
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.63 KB | None | 0 0
  1. #!/bin/bash
  2. #
  3. # by Matt Sephton, http://www.gingerbeardman.com
  4. # version 0.1, 24-May-2012
  5. #
  6. echo "RETRODE UPGRADE SCRIPT, 0.1"
  7. echo "==========================="
  8. echo "1. HOLD upper button (HWB)"
  9. echo "2. PRESS and RELEASE lower button (RESET)"
  10. echo "3. RELEASE upper button (HWB)"
  11. read -p "Press ENTER to CONTINUE or Ctrl+C to CANCEL"
  12. ./dfu-programmer at90usb646 get product-revision
  13. read -p "Press ENTER to CONTINUE or Ctrl+C to CANCEL"
  14. echo "ERASING FLASH"
  15. ./dfu-programmer at90usb646 erase
  16. echo "PROGRAMMING FLASH"
  17. ./dfu-programmer at90usb646 flash *.hex
  18. echo "DONE"
  19. echo "PRESS lower button (RESET) to reboot Retrode"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement