我要评分
获取效率
正确性
完整性
易理解

Failure to Compile tee_upgrade.ko When Upgrading the Confidential OS

Symptom

When the confidential OS is being upgraded, tee_upgrade.ko fails to be compiled and an error is reported stating "chip type not set." See the following figure.

Key Process and Cause Analysis

Compiling tee_upgrade depends on the header file and kernel symbol in tzdriver. However, the header file path of tzdriver may not be correctly configured.

Conclusion and Solution

Modify the paths of KPATH, KDIR, EXTRA_CFLAGS, and KBUILD_EXTRA_SYMBOLS in Makefile based on your requirements. For details, see the following link:

https://www.hikunpeng.com/document/detail/en/kunpengcctrustzone/fg-tz/kunpengtrustzone_20_0061.html