Flashen des HHOPen mit AVRDUDE unter Linux

Zuerst einmal installiert man sich das

http://code.google.com/p/avropendous/source/browse/trunk/AVRopendous/Firmware/BootloaderDFU/avrdude.conf

usb 4-3.3.2.1: new full speed USB device using ehci_hcd and address 15
usb 4-3.3.2.1: configuration #1 chosen from 1 choice
usb 4-3.3.2.1: New USB device found, idVendor=16c0, idProduct=2a9b
usb 4-3.3.2.1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
usb 4-3.3.2.1: Product: DX-ISP
usb 4-3.3.2.1: Manufacturer: Stange Distribution
cdc_acm 4-3.3.2.1:1.0: ttyACM0: USB ACM device
usbcore: registered new interface driver cdc_acm
cdc_acm: v0.26:USB Abstract Control Model driver for USB modems and ISDN adapters
SFW2-INext-DROP-DEFLT IN=br0 OUT= PHYSIN=eth0 MAC=01:00:5e:00:00:01:00:1f:3f:de:a9:3c:08:00 SRC=192.168.1.10 DST=224.0.0.1 LEN=36 TOS=0x00 PREC=0xC0 TTL=1 ID=0 DF OPT (94040000) PROTO=2
SFW2-INext-DROP-DEFLT IN=br0 OUT= PHYSIN=eth0 MAC=00:10:dc:ed:f0:da:00:1f:3f:de:a9:3c:08:00 SRC=192.168.1.10 DST=192.168.1.4 LEN=60 TOS=0x00 PREC=0x00 TTL=64 ID=27419 DF PROTO=TCP SPT=4760 DPT=14013 WINDOW=5840 RES=0x00 SYNURGP=0 OPT (020405B40402080A0A0CD6CE0000000001030303)
SFW2-INext-DROP-DEFLT IN=br0 OUT= PHYSIN=eth0 MAC=00:10:dc:ed:f0:da:00:1f:3f:de:a9:3c:08:00 SRC=192.168.1.10 DST=192.168.1.4 LEN=60 TOS=0x00 PREC=0x00 TTL=64 ID=27420 DF PROTO=TCP SPT=4760 DPT=14013 WINDOW=5840 RES=0x00 SYNURGP=0 OPT (020405B40402080A0A0CD7FA0000000001030303)

avrdude -P /dev/ttyACM0 -c avrisp2 -p usb162 -V -U flash:w:"_usbbios.hex":a -U lfuse:w:0xDF:m -U hfuse:w:0xDF:m -U efuse :w:0xFE:m
avrdude: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.00s
avrdude: Device signature = 0x1e9482
avrdude: NOTE: FLASH memory has been specified, an erase cycle will be performed
To disable this feature, specify the -D option.
avrdude: erasing chip
avrdude: reading input file "_usbbios.hex"
avrdude: input file _usbbios.hex auto detected as Intel Hex
avrdude: writing flash (2790 bytes):
Writing | ################################################## | 100% 0.65s
avrdude: 2790 bytes of flash written
avrdude: reading input file "0xDF"
avrdude: writing lfuse (1 bytes):
Writing | ################################################## | 100% 0.03s
avrdude: 1 bytes of lfuse written
avrdude: reading input file "0xDF"
avrdude: writing hfuse (1 bytes):
Writing | ################################################## | 100% 0.01s
avrdude: 1 bytes of hfuse written
avrdude: reading input file "efuse"
avrdude: error opening efuse: No such file or directory
avrdude: input file efuse auto detected as invalid format
avrdude: can't open input file efuse: No such file or directory
avrdude: write to file 'efuse' failed
avrdude: safemode: Fuses OK
avrdude done. Thank you.

avrdude -P /dev/ttyACM0 -c avrisp2 -p c128 -V -U flash:w:"_hhopen.hex":a -U lfuse:w:0xDF:m -U hfuse:w:0xD9:m -U efuse:w:0xF5:m
avrdude: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.00s
avrdude: Device signature = 0x1e9781
avrdude: NOTE: FLASH memory has been specified, an erase cycle will be performed
To disable this feature, specify the -D option.
avrdude: erasing chip
avrdude: reading input file "_hhopen.hex"
avrdude: input file _hhopen.hex auto detected as Intel Hex
avrdude: writing flash (31598 bytes):
Writing | ################################################## | 100% 7.01s
avrdude: 31598 bytes of flash written
avrdude: reading input file "0xDF"
avrdude: writing lfuse (1 bytes):
Writing | ################################################## | 100% 0.02s
avrdude: 1 bytes of lfuse written
avrdude: reading input file "0xD9"
avrdude: writing hfuse (1 bytes):
Writing | ################################################## | 100% 0.01s
avrdude: 1 bytes of hfuse written
avrdude: reading input file "0xF5"
avrdude: writing efuse (1 bytes):
Writing | ################################################## | 100% 0.00s
avrdude: 1 bytes of efuse written
avrdude: safemode: Fuses OK
avrdude done. Thank you.