ARMv8 開機鏈三部曲(二):OP-TEE — 在 S-EL1 跑一個可信任的 OS
從 BL32 的角度拆解 OP-TEE:TrustZone 基礎、optee_os / tee-supplicant / Linux TEE driver 的分工、GlobalPlatform API、TA 的種類與載入、SMC 與 RPC 呼叫流程、foreign interrupt 處理,以及用 QEMU v8 跑 xtest 與 hello_world。
從 BL32 的角度拆解 OP-TEE:TrustZone 基礎、optee_os / tee-supplicant / Linux TEE driver 的分工、GlobalPlatform API、TA 的種類與載入、SMC 與 RPC 呼叫流程、foreign interrupt 處理,以及用 QEMU v8 跑 xtest 與 hello_world。
不用 OP-TEE build repo,而是分別從原始碼 build TF-A、OP-TEE OS、optee_client、optee_test 和 kernel,拼成 BL1→BL2→BL31→BL32→BL33 五段開機鏈並跑完 xtest。記錄只有自己動手才會遇到的九個坑:QEMU -S 被探測連線破壞、secure UART 看不到輸出、U-Boot 搬不動大 kernel、initramfs 沒有 /dev/console、cross-compile xtest 的 header 與 linker 問題。