Skip to content

Add firmware validation check and automatic revert - #58

Draft
trarbr wants to merge 3 commits into
nerves-project:mainfrom
trarbr:add-firmware-validation
Draft

Add firmware validation check and automatic revert#58
trarbr wants to merge 3 commits into
nerves-project:mainfrom
trarbr:add-firmware-validation

Conversation

@trarbr

@trarbr trarbr commented Nov 3, 2019

Copy link
Copy Markdown

An untested implementation of firmware validation as proposed here: nerves-project/nerves_runtime#169 . I expect it to have small errors since it's untested, but it should cover most bases. Let me know what you think.

@trarbr

trarbr commented Nov 3, 2019

Copy link
Copy Markdown
Author

Hm... I just found an obvious issue with this. If the user upgrades the B partition with bad firmware, the system will reboot without marking firmware valid, and the bootloader will boot into the A partition. But the U-Boot variable nerves_fw_active will still point to B... 🤔

@trarbr

trarbr commented Nov 3, 2019

Copy link
Copy Markdown
Author

I added a script that is executed by erlinit at boot which keeps U-Boot's nerves_fw_active in sync with Grub's nerves_fw_active

@fhunleth
fhunleth changed the base branch from master to main June 17, 2020 02:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant