For u-boot and Linux Kernel debugging, please refer to section "2. Debug u-boot with CodeWarrior for ARMv8" and "3. Debug Linux Kernel by Attaching Running U-boot" in https://community.nxp.com/t5/CodeWarrior-for-QorIQ-Knowledge/Use-CodeWarrior-for-ARMv8-to-Debug-U-bo...
For CodeWarrior IDE configuration, please refer to the above document.
u-boot debugging, please use the ELF file in flex-builder build environment flexbuild_lsdk2108/build/firmware/u-boot/ls1046ardb/output/ls1046ardb_tfa_defconfig/u-boot.
u-boot source code is in flexbuild_lsdk2108/components/firmware/uboot
Linux Kernel:
Please run the following command and with "[*] Compile the kernel with debug info" option enabled.
$ flex-builder -c linux:custom -a arm64
Build Linux Kernel:
$ flex-builder -c linux -a arm64
Build boot partition to get boot_LS_arm64_lts_5.10.tgz
$ flex-builder -i mkbootpartition -a arm64
Please get vmlinux in flexbuild_lsdk2108/build/linux/linux/arm64/LS/output/LSDK-21.08/vmlinux
Get linux source code in flexbuild_lsdk2108/components/linux/linux/.
$ wget https://www.nxp.com/lgfiles/sdk/lsdk2108/rootfs_lsdk2108_ubuntu_main_arm64.tgz
Deploy Kernel and rootfs on SD/MMC with flex-installer
$ flex-installer -i pf -d /dev/sdx
$ flex-installer -b boot_arm64_lts_5.10.tgz -r rootfs_lsdk2108_ubuntu_main_arm64.tgz -d /dev/sdx
bootup Linux Kernel with the following command.
=>boot