[File] [PATCH] Magdir/firmware Silicon Labs Gecko Bootloader

Alexandre IOOSS erdnaxe at crans.org
Mon Sep 2 13:22:15 UTC 2024


Hello,

I noticed that file does not recognized Silicon Labs Gecko update 
images. These images contain over-the-air updates for the bootloader or 
the application running on some Silicon Labs Gecko microcontrollers.

By examining some of these files, and by playing with a firmware 
manipulation library (https://github.com/raboof/gbl), I discovered that 
they are tag-length-value encoded with a fixed initial value.

Attached you may find a patch that enables file to recognized these 
update images.

I tested the patch using some samples from https://github.com/raboof/gbl:
```
empty-encrypted.gbl:        Silicon Labs Gecko bootloader update image, 
encrypted (AES-CTR-128)
empty.gbl:                  Silicon Labs Gecko bootloader update image, 
application image
empty-signed-encrypted.gbl: Silicon Labs Gecko bootloader update image, 
encrypted (AES-CTR-128), signed (ECDSA-P256)
empty-signed.gbl:           Silicon Labs Gecko bootloader update image, 
signed (ECDSA-P256), application image
```

Thanks a lot,
Best,
-- 
Alexandre
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gecko.diff
Type: text/x-patch
Size: 1221 bytes
Desc: not available
URL: <https://mailman.astron.com/pipermail/file/attachments/20240902/96c54cdd/attachment.bin>


More information about the File mailing list