Jesus, so many answers at once!
Ok, step by step:
Gruvin told me the command!
Thanks Mike, maybe updating my epee should help too...
Gruvin, where do I get the firmware? In companion I set the radio profile to gruvin9x board/ 9x and downloaded and let companion download the firmware. Where is the mistake?
Now I reflashed the programmer with the command rperkins posted, this is the avrdude output:
localhost:~ carloskammerlander$ avrdude -c usbasp -P usb -p m8 -U flash:w:firmware.hex
avrdude: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.00s
avrdude: Device signature = 0x1e9307
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 "firmware.hex"
avrdude: input file firmware.hex auto detected as Intel Hex
avrdude: writing flash (3966 bytes):
Writing | ################################################## | 100% 2.29s
avrdude: 3966 bytes of flash written
avrdude: verifying flash memory against firmware.hex:
avrdude: load data flash data from input file firmware.hex:
avrdude: input file firmware.hex auto detected as Intel Hex
avrdude: input file firmware.hex contains 3966 bytes
avrdude: reading on-chip flash data:
Reading | ################################################## | 100% 1.04s
avrdude: verifying ...
avrdude: 3966 bytes of flash verified
avrdude: safemode: Fuses OK
avrdude done. Thank you.
localhost:~ carloskammerlander$
And after flashing I tried to read the FW from the usbasp using epee, this is the output:
=================================================================================
Started AVRDUDE
/usr/local/bin/avrdude -c usbasp -p m64 -p m8 -U flash:r:/Users/carloskammerlander/Desktop/usbasprperkinscommand.bin:r
=================================================================================
avrdude: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.01s
avrdude: Device signature = 0x000102
avrdude: Expected signature for ATMEGA8 is 1E 93 07
Double check chip, or use -F to override this check.
avrdude done. Thank you.
=================================================================================
AVRDUDE done - exit code 1
=================================================================================