-
Notifications
You must be signed in to change notification settings - Fork 54
Add recovery for Broadcom bcm2711 and bcm2712 #72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
890f4e6 to
f59468d
Compare
rgantois
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work! I've requested a few minor changes. You're also going to have to rebase on the latest master branch as there currently are some conflicts. It also seems like some CI tests have failed, please take a look at those as well.
Thanks!
The load_fw() function currently consistently checks the format of the requested firmware file, and emits a warning if it looks like a text file. Or, the pending snagrecover support for BCM SoCs requires loading a firmware file which is actually expected to be in text format. Thus, a non-relevant warning will be emitted in this case. Allow making this firmware file format check optional to avoid non-relevant warnings when a text format is expected. Signed-off-by: François Foltete <[email protected]>
The load_fw() function verifies if the requested firmware has a valid configuration, gets its path and loads it all in one go. Or the pending snagrecover support for BCM SoCs requires a way of resolving firmware paths without immediately loading them. To provide this feature and improve error reporting, separate getting the firmware's path and loading it into two separate functions. Signed-off-by: François Foltete <[email protected]>
Add the recovery process for broadcom SoCs bcm2711 and bcm2712.
These SoCs are used in Raspberry Pi Compute Module 4 and 5
respectively.
The recovery process is as follows:
1. Send FSBL to ROM Code
2. The FSBL functions as a file server client,
we answer its requests.
3. Voilà
Signed-off-by: François Foltete <[email protected]>
Add recovery documentation for Broadcom SoCs bcm 2711|2712. Signed-off-by: François Foltete <[email protected]>
f59468d to
2baaa31
Compare
|
LGTM, there's one small linter error remaining but I'll handle that one separately. |
This PR adds the support for Broadcom SoC's bcm2711 and bcm2712 in snagrecover.
It has been developed and tested using Raspberry Pi CM4 and CM5.
I use
pyfatfspython module so I added it to the project dependencies.