I was trying to figure out how to prevent someone reading out the binary code from the Leonardo part of the YUN, that is read protection.
I'm trying to set the read protect fuse using avrdude, is this the correct command to prevent someone reading out the code?
sudo avrdude -c avrisp -p m32u4 -P /dev/ttyUSB0 -b 19200 -F -U lock:w:0x08:m
A little challenge if Arduino fuse is set (above method will be failed):
Technically they will fail. The Atmel chipset use in Arduino is not secure based, to read firmware/code all is needed semi-invasive attacks.
start with the removal of the chip package, put chip’s die under suitable microscope with a little time and skill, the firmware/code will be out.
This much like people put lock on door, It will stop owner if he forget carry key, but not do much if Pro want in
The Atmel chipset use in Arduino is not secure based.
High-security applications must assume that the attacker is skillful, well-equipped and wellfunded.
After Atmel sold secure chip division (2011). The chipset use in Arduino will be never secure based.
After lock the fuse, you could never re-program leonardo any more, more pain than gain.