-
Notifications
You must be signed in to change notification settings - Fork 77
Update to always pull latest raspberry pi firmware from github using API #15
Update to always pull latest raspberry pi firmware from github using API #15
Conversation
01d8bd5
to
3ba4008
Compare
3ba4008
to
cd86a27
Compare
Thank you @brian-provenzano, this is nice and well-written. Even though pulling the latest firmware is very unlikely to ever fail, considering the well-tested nature of the raspberry pi firmware, I'd still like to make this behaviour optional and to use a "known-good" firmware by default. This way, people can use the latest firmware easily if they want to, or use a known-good firmware otherwise. Could you make this change? For example, we could add a RASPBERRY_PI_FIRMWARE environment variable, that could be:
Bonus points if you could add this behaviour to the README as well. :) Also, I have one more request: I have some instructions here on compiling kernel modules for the kernel shipped within the raspberry pi firmware, but those instructions use a hard-coded firmware version. I'd like to read the firmware version from the disk somehow when k3os is running. I think the tarball contains it, but we might not copy it to the boot. This is totally optional, and I'll merge your PR if you don't feel like adding it, but if you could take a look whether we could include that version in the image somehow, that'd be cool :) |
OK, I can look into this. I'll try to scrape together some time in the next week.
I might save this one for another time if that is OK. Probably better if it is a change of its own anyway. :) |
Made the above change and also updated the README to reflect the new feature. |
e620df6
to
df7e16d
Compare
… RASPBERRY_PI_FIRMWARE
df7e16d
to
cc1e45f
Compare
Thanks a lot @brian-provenzano ! |
What was changed / proposed change
Currently reving the firmware for the raspberrypi requires manually updating the script. This PR would instead use the github api to always pull the latest firmware tarball eliminating this need.
Update
Per comment , added the ability to user select raspberry pi firmware version via an environment variable
RASPBERRY_PI_FIRMWARE
DEFAULT_GOOD_PI_VERSION
in the script)latest
which instructs the script to always pull the latest version for the raspberry pi fimrware repo (e.g.export RASPBERRY_PI_FIRMWARE=latest
)export RASPBERRY_PI_FIRMWARE="1.20200212"
)