-
Notifications
You must be signed in to change notification settings - Fork 61
How_to_Guides: Enabling protected UEFI variables in U-Boot #163
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
base: master
Are you sure you want to change the base?
Conversation
This guide details the process of enabling protected UEFI variables in U-Boot specifically for the J784S4 platforms. Protected UEFI variables offer a secure storage mechanism within the board's eMMC flash, accessible only by authorized software. Signed-off-by: Enric Balletbo i Serra <[email protected]>
New warnings found with rstcheck:
|
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.
Thanks for the PR. The PR doesn't seem to follow the commit message convention mentioned in guidelines - https://github.com/TexasInstruments/processor-sdk-doc/blob/master/CONTRIBUTING.md#commit-formatting
& this is leading the commit check workflow to fail - https://github.com/TexasInstruments/processor-sdk-doc/actions/runs/13306258631?pr=163
I assume this will not actually build into the J784 docs without also adding the file to configs/<part_number>/<part_number>_linux_toc.txt? Any other devices that the page should show up for? |
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.
@uditkumarti , @manorit2001 for review
make CROSS_COMPILE="$CC32" CROSS_COMPILE64="$CC64" \ | ||
PLATFORM="$OPTEE_PLATFORM" CFG_ARM64_core=y $OPTEE_EXTRA_ARGS \ | ||
CFG_RPMB_FS_DEV_ID=0 CFG_REE_FS=n CFG_RPMB_FS=y \ | ||
CFG_RPMB_WRITE_KEY=y CFG_RPMB_TESTKEY=y \ |
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.
I see hardcoding CFG_RPMB_TESTKEY=y
would not use our HUK at all, we should keep it disabled otherwise we'd always end up programming the test key.
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.
Also, would be better to just tell the extra configs that are required and point to normal build commands of op-tee?would help in future incase something changes..
CFG_RPMB_FS_DEV_ID=0 CFG_REE_FS=n CFG_RPMB_FS=y \ | ||
CFG_RPMB_WRITE_KEY=y CFG_RPMB_TESTKEY=y \ | ||
CFG_STMM_PATH=BL32_AP_MM.fd \ | ||
CFG_CORE_HEAP_SIZE=524288 CFG_CORE_DYN_SHM=y CFG_SCTLR_ALIGNMENT_CHECK=n \ |
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.
Why are we clearing alignment check btw? Could you explain the various flags as to why they are required
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.
Hey this is a great improvement! Thanks for the addition
This guide details the process of enabling protected UEFI variables in U-Boot specifically for the J784S4 platforms. Protected UEFI variables offer a secure storage mechanism within the board's eMMC flash, accessible only by authorized software.