Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 5424

HATs and other add-ons • Re: Could PyBricks be up and running on BuildHAT..

$
0
0
Do those cheap sensors already work with the Build HAT and the firmware currently available ?
I would say yes. My reasoning: they are proved to work with Lego Hubs, so should be fine with BH too.
..no one has reverse engineered the BHBL boot loader or even the Lego interfacing firmware.
I did. I reversed BHBL, and a large part of the fw.
...the uploading security mechanism
Strictly speaking, the RP2040 has no such security mechanism. However, BHBL implements a "verification" measure, i.e., only digitally signed fw's by the RPI Foundation can be loaded and run by BHBL. However, this does not prevent us from loading a third-party program into BH, or from loading the BH fw directly (eg with no BHBL) to memory and running it.

BHBL's verification process is based on SHA-256withRSA, that is: first, the digest of fw is obtained using SHA-256, then it is encrypted with RSA, and the result is the signature of fw. Even if we know the algorithm, we cannot calc the signature in the absence of the private key, nor can we reversely validate the correctness of a particular signature. I hope I've made myself clear.

Statistics: Posted by muzkr — Tue Dec 10, 2024 4:40 pm



Viewing all articles
Browse latest Browse all 5424

Trending Articles