From 74621980f20a3779c58978096ae27f95d6bd221d Mon Sep 17 00:00:00 2001 From: "David A. Mellis" Date: Tue, 20 Sep 2005 16:23:15 +0000 Subject: [PATCH] Moved to mac dist dir and changed to use avr binaries in tools. --- .../dist/bootloader/fixmybootloader.command | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100755 build/macosx/dist/bootloader/fixmybootloader.command diff --git a/build/macosx/dist/bootloader/fixmybootloader.command b/build/macosx/dist/bootloader/fixmybootloader.command new file mode 100755 index 000000000..622693806 --- /dev/null +++ b/build/macosx/dist/bootloader/fixmybootloader.command @@ -0,0 +1,29 @@ +#!/bin/sh + +# fixmybootloader.command 25.06.2005 mbanzi +# +# Arduino project http://arduino.berlios.de +# +# quick and dirty script to set the proper fuses and lock bits +# while loading the bootloader onto a brand new arduino board +# +# very useful also when for some reasons the bootloader disappears +# +# TODO: cleanup and make it more user friendly +# TODO: move this (and related) scripts to platform dist/ dirs +# +# expects an STK500 compatible programmer on the specified serial port +# if you use the parallel port programmer you need to change the dprog +# parametre +# + +#BINDIR=/usr/local/avr/bin +BINDIR=../build/macosx/work/tools/avr/bin +#PORT=/dev/tty.usbserial0 +#PORT=/dev/tty.USA19QW3b1P1.1 +PORT=/dev/tty.USA19QW1b1P1.1 + +$BINDIR/uisp -dpart=ATmega8 -dprog=stk500 -dserial=$PORT -dspeed=115200 --wr_lock=0xFF +$BINDIR/uisp -dpart=ATmega8 -dprog=stk500 -dserial=$PORT -dspeed=115200 --wr_fuse_l=0xdf --wr_fuse_h=0xc8 +$BINDIR/uisp -dpart=ATmega8 -dprog=stk500 -dserial=$PORT -dspeed=115200 --erase --upload if=ATMegaBOOT.hex -v +$BINDIR/uisp -dpart=ATmega8 -dprog=stk500 -dserial=$PORT -dspeed=115200 --wr_lock=0xCF