[File] [PATCH] Magdir/firmware AVR firmware

Alexandre IOOSS erdnaxe at crans.org
Tue Sep 19 10:10:07 UTC 2023


Hello,

I would like to propose a new signature for AVR firmware images.

These binaries start with an interrupt vector table. This tables 
contains 4-byte JMP instructions on larger AVR variants such as the 
Atmega328p, or 2-byte RJMP instructions on smaller AVR variants such as 
Attiny85.
By matching this interrupt vector table, we have enough bits to state 
that a file is an AVR firmware.

Example of output:
```
$ file */*.bin
qmk/ztboards_noon_default.hex.bin:         AVR firmware, reset at 0x01c0
arduino/Blink_attiny_adafruit_trinket.bin: AVR firmware, reset at 0x0023
```

Attached, you will find the new signatures.

Best regards,

-- 
Alexandre
-------------- next part --------------
A non-text attachment was scrubbed...
Name: avr-firmware.patch
Type: text/x-patch
Size: 1186 bytes
Desc: not available
URL: <https://mailman.astron.com/pipermail/file/attachments/20230919/d7f44f44/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature.asc
Type: application/pgp-signature
Size: 840 bytes
Desc: OpenPGP digital signature
URL: <https://mailman.astron.com/pipermail/file/attachments/20230919/d7f44f44/attachment-0001.asc>


More information about the File mailing list