Board works using CodeVision AVR and Bascom and I use an older Atmel AVR ISP (RS232 version). I'm having limited success with the Arduino IDE, I'm using Version 0022.
Scenario #1 Using a M168 P and set the board as a Diecimilia with a M168 I have no sketch downloading success regardless of bootloader loaded via the AVR ISP and AVR Studio. Always ends with a AVRdude error no sync....
Scenario #2 Using a M328 P and using the ADAboot loader and setting it to either a Pro 16mhz M328 or the Duemilanove M328 I can download a sketch once and it executes fine. From that point on though the only way I can get it to download a sketch is to reload the bootloader with the AVR ISP via AVRstudio. Using a hardware reset, the sketch starts running again or power cycling the same.
My guess is the sketch is overloading a part of the bootloader or something or the reset startup fuse setting is an issue.
Could it be that the auto-reset is not working? Try using a manual reset: hold the Arduino reset button until the IDE says "Binary sketch size:", then immediately release the reset button.
I didn't realize the boards.txt file had that info, thanks. Not sure how to translate the fuse bytes into appropriate bits used by avr studio. I didn't use the Arduino IDE to upload the boot code as I assumed a blank AVR would need to be programmed via the isp first. And I haven't figured out how to tel the IDE what serial port to use for a serial ATMEL AVR ISP, assuiming it's compatable with the IDE.
Here are fuses (via "fusebytes.pde") for a m168 with optiboot:
Compiled for ATmega168
No Serial Number
Fuse bits (L/H/E): C6 DD FC
Lock bits: EF
Signature: C 56 C (Signature not readable on non-P AVR)
Oscal: 94
Fuse Low = 11000110 (C6)
||||++++______Full Swing Crystal
||++__________Start Up Time=0
|+____________Clock Output Disabled
+_____________(no divide)
Fuse High = 11011101 (DD)
|||||+++______Brownout at 2.7V
||||+_________EEPROM Erased on chip erase
|||+__________Watchdog programmable
||+___________ISP programming enabled
|+____________DebugWire off
+_____________RST enabled
Fuse Extended = 11111100 (FC)
|||||||+______Reset to Bootstrap
|||||++_______256 words (512 bytes)
Lock Bits = 11101111 (EF)
||||||++______Read/Write to everywhere
||||++________R/W Application
||++__________No Write to Boot Section
Bootloader at 0x3E00 looks like version 4.4
2411 B784 BE14 FF81 D0F0 E085 9380 81