Repository navigation
Building Hafnium for Thor - #564
Open
dperezzoghbi wants to merge 3 commits into
Open
dperezzoghbi wants to merge 3 commits into
dperezzoghbi wants to merge 3 commits into
Conversation
fiptool is already created within armTrustedFirmware, but it invovles a whole build and is specific to aarch64. This pulls it out as it's own derivation.
Hafnium is currently entirely pulled in through nvidia's BSP. Building it here is the first step in being able to add customizations and more secure partitions. The build rules were mostly trial & error from hafnium_src_build.sh down, stripping what wasn't needed for hafnium.bin.
Princemachiavelli
approved these changes
Sep 22, 2026
Princemachiavelli
left a comment
Collaborator
There was a problem hiding this comment.
Looks good to me. Maybe let @elliotberman review before merging.
Also just wondering, how long does building hafnium take? Since we are always building it for Thor now.
|
|
||
| socType = | ||
| if l4tMajorVersion == "39" then "t264" | ||
| else throw "Unknown SoC type: ${l4tMajorVersion}"; |
Collaborator
There was a problem hiding this comment.
Maybe rephrase to "Unsupported SoC type"?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description of changes
Add hafnium as an overridable package for Thor.
Separated out
fiptoolas it's own package fromarmTrustedFirmwarefor use by hafnium.Testing
I built + booted on Thor with a custom patch changing the start banner of hafnium to show successful customization.
I also built + booted on Orin to show that there shouldn't be any regressions.