python3-improv: report secure_boot from U-Boot sec_boot flag (imx93-jaguar-eink) - #44
Merged
Merged
Conversation
…aguar-eink) sec.secure_boot previously always returned "unknown". This kernel exposes no userspace ELE lifecycle path (no /dev/ele_mu, no lifecycle nvmem cell; the ELE "get info" lifecycle sits behind OP-TEE/secure world), so the authoritative OEM_OPEN/OEM_CLOSED value still needs a dedicated OP-TEE TA (tracked follow-up, roadmap P0-1/P2-1). As the best available userspace signal, read U-Boot's `sec_boot` env flag (via fw_printenv), which the NXP boot script uses to gate authenticated boot (auth_os): yes => "closed", no => "open", else "unknown". This reflects the bootloader configuration, not an ELE-attested lifecycle, and remains self-reported/untrusted until attestation (P2-1). A fuse/OCOTP byte heuristic is deliberately avoided (the ELE-OCOTP shadow has non-zero UID/config words). Verified on eink-0167: fw_printenv -n sec_boot => "no" => secure_boot "open". Co-authored-by: Cursor <cursoragent@cursor.com>
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.
Summary
sec.secure_bootin the Device-Statussecblock previously always returned"unknown". This implements a best-effort userspace read./dev/ele_mu, no lifecycle nvmem cell; the lifecycle lives behind OP-TEE/secure world. Reading it authoritatively needs a dedicated OP-TEE TA (secure-world plumbing) — kept as a tracked follow-up (roadmap P0-1/P2-1,BLE-BOARD-PROFILE.md§10).sec_bootenv flag viafw_printenv, which the NXP boot script uses to gate authenticated boot (auth_os):yes→closed,no→open, otherwiseunknown. This reflects the bootloader configuration, not an ELE-attested hardware lifecycle, and (like the wholesecblock) is self-reported/untrusted until attestation (P2-1).Test plan
fw_printenv -n sec_booton eink-0167 (root) →no→secure_boot: "open".python3 -m py_compilepasses.improv_provision.py info --jsonthatsec.secure_bootreadsopenover BLE (post-merge OTA re-verify).Made with Cursor