Step by Step Debug Firmware Image (Ubuntu main userland) for Custom board based on LS1046ardb

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Step by Step Debug Firmware Image (Ubuntu main userland) for Custom board based on LS1046ardb

ソリューションへジャンプ
1,499件の閲覧回数
Ghouse
Contributor V

Hi, iam using a custom board based on LS1046ARDB,

I have modified few hardware components in my custom board (Eg: Phy, EEPROM etc).

Is there a way to debug the firmware image (both u-boot and Linux) step by step using codewarrior tap, although i have a document mentioning the debug procedure for Yocto based Userland.

Since i am using Ubuntu (main) userland, please let me know if there is a way to debug the firmware image.

Thank u.

0 件の賞賛
返信
1 解決策
1,484件の閲覧回数
yipingwang
NXP TechSupport
NXP TechSupport

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

 

元の投稿で解決策を見る

0 件の賞賛
返信
1 返信
1,485件の閲覧回数
yipingwang
NXP TechSupport
NXP TechSupport

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

 

0 件の賞賛
返信