QRB5165 Ubuntu.2.0 XBL Bootloader build

QRB5165 Ubuntu.2.0 XBL Bootloader build

CDT platform ID
for flashing CDT.bin flash in CDT partition



mkdir ./CDT
cd ./CDT

$ mcedit RB5_CDT.xml and paste the following in xml file.
0x43, 0x44, 0x54, 0x00, end
0x01, 0x00, end
0x00, 0x00, 0x00, 0x00, end
0x00, 0x00, 0x00, 0x00, end
0x03, 0x0B, 0x01, 0x00, 0x03, 0x00, end

$ python \boot_images\QcomPkg\Tools\cdt_generator.py RB5_CDT.xml RB5_CDT.bin

USE the above generated boot_cdt_array.c?!
Tweak XBL's CDT data block

$ xed /mnt/workspace/chipcode/g6-drone/qrb5165/r11.1/qrb5165-ubun-2-0_amss_oem_pop/boot.xf.3.2/boot_images/QcomPkg/SocPkg/Library/XBLLoaderLib/boot_cdt_array.c

default is VERY different!! MUST TWEAK to avoid brick!

build XBL
error missing BASEtool genfw?

#MUST REMOVE all *.d & *.o files. which is not clean in chipcode?
in docker:
$ cd samhblee@3caa8b79b4bb:~/qrb5165-ubun-2-0_amss_oem_pop/boot.xf.3.2/
$ grep -R /usr/lib/gcc ./*
$ find . -type f -name \*.o
$ find . -type f -name \*.d
#REMOVE all *.d & *.o files. which is not clean in chipcode?

$ cd samhblee@3caa8b79b4bb:~/qrb5165-ubun-2-0_amss_oem_pop/boot.xf.3.2/boot_images/QcomPk
$ make -C /home/samhblee/qrb5165-ubun-2_amss_oem_pop/boot.xf.3.2/boot_images/BaseTools/Source/C




make -C /home/samhblee/qrb5165-ubun-2-0_amss_oem_pop/boot.xf.3.2/boot_images/BaseTools/Source/C