Hi
I am using imx-automotive-13.0.0_1.3.0.tar.gz to make android build environment (on Ubuntu 22.04) for i.MX8qxp Board and following the guide Android User guide and Android Security (i.MX_AA_Security_User's_Guide.pdf and i.MX_AA_Security_User's_Guide.pdf) further to enable trusty OS .
Following section 8.6.1 on User guide for this, I downloaded the code as
repo init -u https://github.com/nxp-imx/imx-manifest.git -b imx-android-13 -m imx-trusty-automotive-13.0.0_1.3.0.xml ( manifest file changed)
repo sync -j32
source trusty/vendor/google/aosp/scripts/envsetup.sh
./trusty/vendor/google/aosp/scripts/build.py imx8qxp (Build command changed)
cp build-root/build-imx8qxp/lk.bin ${MY_ANDROID}/vendor/nxp/fslproprietary/uboot-firmware/imx8q_car/tee-imx8qx.bin.
Android Build here is done with below command.
lunch mek_8q_car-userdebug
./imx-make.sh -j4 2>&1 | tee build-log.txt
After booting the final image , I don't see trusty OS related Logs like BL31.bin etc .
Listing out reasons for changes on manifest file and build command
While following the steps mentioned in 8.6.1 of Android User guide , I see a build failure (list below) where I had to get the latest with respect to Android 13 and try a different build command .
error: couldn't read trusty/user/base/lib/trusty-sys/src/./build-imx8qxp/generated/trusty/user/base/lib/syscall-stubs/trusty_syscalls.rs: No such file or directory (os error 2)
--> trusty/user/base/lib/trusty-sys/src/syscalls.rs:20:5
|
20 | include!(env!("SYSCALL_INC_FILE"));
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: this error originates in the macro `include` (in Nightly builds, run with -Z macro-backtrace for more info)
error: aborting due to previous error
Other Doubts related with Trusty OS
Quesiton 1 :
In the 3.2.2 section of Android Security Guide, the file structure mentioned are not matching what I got by following command in 8.6.1 in Android User guide, are the information mentioned in 3.2.2 section latest and correct?
Question 2 :
When I used below build command initially without copying lk.bin from trusty build, I already saw vendor/nxp/fslproprietary/uboot-firmware/imx8q_car/tee-imx8qx.bin , is that created as part of current android build by default or just dummy to be replaced by correct lk.bin from trusty build from section 8.6.1 on User guide?
lunch mek_8q_car-userdebug
./imx-make.sh -j4 2>&1 | tee build-log.txt
Please help me out with the correct steps for enabling Trusty OS for Android 13 and correct knowledge about its support on nxp board.