Having trouble with CW on LS1046A-FWY and Yocto Linux SDK 3.1

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Having trouble with CW on LS1046A-FWY and Yocto Linux SDK 3.1

Jump to solution
1,524 Views
Dan_M
Contributor I

On my LS1046A-FWY board, I am running the Yocto Linux 3.1 SDK.  It boots and runs fine from TFTP.  However, I'm having difficulty getting a proper connection with CW (Evaluation Version: 11.5.5) on Windows 10.

I am able to connect to the board, but I get a warning that "Linux Kernel Awareness Support is Disabled", and then CW breaks into the ARM core 0 at 0xfbe05d38.  Only core 0 is shown in the debugger.  I think this location is cpu idle since the instruction is ret, and the previous instruction is wfi in the disassembly window. 

I created a source mapping to the linux-qoriq git directory, but no source debugging is shown when the code breaks. 

Once it breaks, I can resume, and the kernel continues to run fine. 

I have reviewed all my settings, but I am not able to understand why I'm only seeing one core, why I'm seeing the warning about kernel awareness disabled, and why CW doesn't seem to be mapping my source properly.

I also tried the following:

hbreak cpuinfo_open
Hardware assisted breakpoint 1 at 0xffff8000102e9460: file /usr/src/kernel/fs/proc/cpuinfo.c, line 15.

And then on Linux:

# taskset 1 cat /proc/cpuinfo

but the breakpoint doesn't trigger.

Thanks.

0 Kudos
Reply
1 Solution
1,517 Views
yipingwang
NXP TechSupport
NXP TechSupport

For Linux Kernel debugging with CodeWarrior for ARMv8, please refer to CodeWarrior IDE configuration in section "3. Debug Linux Kernel by Attaching Running U-boot" in the following document.

https://community.nxp.com/t5/CodeWarrior-for-QorIQ-Knowledge/Use-CodeWarrior-for-ARMv8-to-Debug-U-b...

In addition, please add "nokaslr" in bootargs as the following in u-boot.

=> setenv bootargs "console=ttyS0,115200 root=/dev/ram0 earlycon=uart8250,mmio,0x21c0500 nokaslr"

=> saveenv

View solution in original post

0 Kudos
Reply
1 Reply
1,518 Views
yipingwang
NXP TechSupport
NXP TechSupport

For Linux Kernel debugging with CodeWarrior for ARMv8, please refer to CodeWarrior IDE configuration in section "3. Debug Linux Kernel by Attaching Running U-boot" in the following document.

https://community.nxp.com/t5/CodeWarrior-for-QorIQ-Knowledge/Use-CodeWarrior-for-ARMv8-to-Debug-U-b...

In addition, please add "nokaslr" in bootargs as the following in u-boot.

=> setenv bootargs "console=ttyS0,115200 root=/dev/ram0 earlycon=uart8250,mmio,0x21c0500 nokaslr"

=> saveenv

0 Kudos
Reply