Dear Maintainer,
It's not possible to update the fuse/lock bits with the included boards.txt and
recent avrdude versions.
avrdude used to mask unused bits for some microcontrollers, but this was
changed some time ago.
As a result, trying to write fuse bits into an Arduino Uno leads to the
following error:
$ /usr/bin/avrdude -v -patmega328p -cusbtiny -e -Ulock:w:0x3F:m
avrdude: verifying ...
avrdude: verification error, first mismatch at byte 0x0000
0xff != 0x3f
avrdude: verification error; content mismatch
The two uppermost lock bits in the ATmega328P are unused and will always read
as logic 1.
As a result, the following modification must be made to boards.txt:
uno.name=Arduino Uno
...
# original 0x3F
uno.bootloader.unlock_bits=0xFF
# original 0x0F
uno.bootloader.lock_bits=0xCF
This will make avrdude expect a logic 1 and prevent verification failure.
Thank you.