Getting the information from the board:
$ avrdude -c usbasp -p atmega128 -tavrdude: warning: cannot set sck period. please check for usbasp firmware update.
avrdude: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.00s
avrdude: Device signature = 0x1e9702 (probably m128)
avrdude> part
>>> part
AVR Part : ATmega128
Chip Erase delay : 9000 us
PAGEL : PD7
BS2 : PA0
RESET disposition : dedicated
RETRY pulse : SCK
serial program mode : yes
parallel program mode : yes
Timeout : 200
StabDelay : 100
CmdexeDelay : 25
SyncLoops : 32
ByteDelay : 0
PollIndex : 3
PollValue : 0x53
Memory Detail :
Block Poll Page Polled
Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW MaxW ReadBack
----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
eeprom 4 12 64 0 no 4096 8 0 9000 9000 0xff 0xff
flash 33 6 128 0 yes 131072 256 512 4500 4500 0xff 0xff
lfuse 0 0 0 0 no 1 0 0 9000 9000 0x00 0x00
hfuse 0 0 0 0 no 1 0 0 9000 9000 0x00 0x00
efuse 0 0 0 0 no 1 0 0 9000 9000 0x00 0x00
lock 0 0 0 0 no 1 0 0 9000 9000 0x00 0x00
calibration 0 0 0 0 no 4 0 0 0 0 0x00 0x00
signature 0 0 0 0 no 3 0 0 0 0 0x00 0x00
avrdude>
Reading the fuse settings:
$ avrdude -c usbasp -p atmega128 -U hfuse:r:-:h -U lfuse:r:-:havrdude: warning: cannot set sck period. please check for usbasp firmware update.
avrdude: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.00s
avrdude: Device signature = 0x1e9702 (probably m128)
avrdude: reading hfuse memory:
Reading | ################################################## | 100% 0.00s
avrdude: writing output file "<stdout>"
0x19
avrdude: reading lfuse memory:
Reading | ################################################## | 100% 0.00s
avrdude: writing output file "<stdout>"
0xff
avrdude: safemode: Fuses OK (E:FF, H:19, L:FF)
avrdude done. Thank you.
Dumping the firmware and EEPROM content:
$ avrdude -c usbasp -p atmega128 -U flash:r:orig_bk_avr128_fw.hex -U eeprom:r:orig_bk_avr128_eeprom.bin:iavrdude: warning: cannot set sck period. please check for usbasp firmware update.
avrdude: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.00s
avrdude: Device signature = 0x1e9702 (probably m128)
avrdude: reading flash memory:
Reading | ################################################## | 100% 63.36s
avrdude: writing output file "orig_bk_avr128_fw.hex"
avrdude: reading eeprom memory:
Reading | ################################################## | 100% 2.38s
avrdude: writing output file "orig_bk_avr128_eeprom.bin"
avrdude: safemode: Fuses OK (E:FF, H:19, L:FF)
avrdude done. Thank you.