This commit is contained in:
2015-11-15 18:18:42 +00:00
parent 9ac343fc45
commit 72be7b0c2f
580 changed files with 356252 additions and 6 deletions
+26
View File
@@ -0,0 +1,26 @@
#!/bin/bash
# (C) Milosch Meriac <meriac@bitmanufaktur.de> 2006
UART='/dev/ttyUSB1'
SAM7='/usr/local/bin/sam7'
if [[ -a $1 ]]; then
echo "1. please unplug the USB cable and insert the SAM-BA jumper (Pin 1+2)"
echo "2. attach the USB cable"
echo "3. wait ten seconds"
echo "4. unplug the USB cable"
echo "5. remove the SAM-BA jumper"
echo "6. attach the USB cable"
echo "7. wait several seconds to allow the device to be detected by Linux"
echo "8. press [ENTER] to start flashing"
echo -e "9. flashing '$1'...\n"
$SAM7 << ENDOFMYTEXT
set_clock
unlock_regions
flash $1
ENDOFMYTEXT
echo '10. done!'
else
echo "can't open flash image file '$1'"