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

Christos Zoulas christos at zoulas.com
Mon Sep 2 14:37:19 UTC 2024


Committed, thanks!

christos

> On Sep 2, 2024, at 9:22 AM, Alexandre IOOSS <erdnaxe at crans.org> wrote:
> 
> 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
> <gecko_diff.DEFANGED-147>-- 
> File mailing list
> File at astron.com
> https://mailman.astron.com/mailman/listinfo/file
> <sanitizer.log>



More information about the File mailing list