Buildroot:
1. 将RTP二进制文件放入特定文件夹
/output/image/RTP-BSP
2. 勾选将RTP M4添加到FIP中,并将名称修改为您的名称
$ make menuconfig
Bootloaders --->
[*] Add RTP M4 into FIP
(RTP-BSP/Template.bin) RTP M4 binary names
3. 重新编译TF-A和整个镜像
$ make arm-trusted-firmware-reconfigre $$ make
4. 将镜像烧录到目标板
Yocto:
1. 将RTP二进制文件放入特定文件夹
~/yocto/build/tmp-glibc/deploy/images/numaker-som-ma35d16a81/m4proj/RTP_Code.bin
2. 修改目标板配置
~/yocto/source/meta-ma35d1/conf/machine/numaker-som-ma35d16a81.conf
#Load RTP-M4 into FIP image and run RTP-M4
TFA_LOAD_M4 = "yes"
# Need to set binary file from deploy/images/{machine}
TFA_M4_BIN= "m4proj/Template.bin"
3. 重新编译TF-A和整个镜像
$bitbake tf-a-ma35d1 –C compile && bitbake nvt-image-qt5
4. 将镜像烧录到目标板
|