so i modified the entry for atmega8 to this
atmega8: TARGET = atmega8
atmega8: MCU_TARGET = atmega8
atmega8: CFLAGS += '-DLED_START_FLASHES=3' '-DBAUD_RATE=115200'
atmega8: AVR_FREQ = 8000000L
atmega8: LDSECTIONS = -Wl,--section-start=.text=0x1e00 -Wl,--section-start=.version=0x1ffe
atmega8_isp: TARGET = atmega8
atmega8_isp: MCU_TARGET = atmega8
# SPIEN, CKOPT, Bootsize=512B
atmega8_isp: HFUSE = CC
# 2.7V brownout, 8mhz int rc osc 6ck+64ms
atmega8_isp: LFUSE = A4
then i had to edit this line
ISPFUSES = avrdude -c $(ISPTOOL) -p $(MCU_TARGET) -P $(ISPPORT) $(ISPSPEED) \
-e -u -U lock:w:0x3f:m -U efuse:w:0x$(EFUSE):m -U hfuse:w:0x$(HFUSE):m -U lfuse:w:0x$(LFUSE):m
because atmega8 doesn't support the efuse
but i can upload only once after i burn the bootloader - any ideas ?
im testing from ubuntu 10.10 32bit
later that day - after a few more tries (burning the bootloader) finally i can upload more than one sketch on the atmega8
tested via the ftdi chip and via a serial port (with an max232 adapter)
also what its the bootloader size so i can change the value in board.txt file ?