DPDK in code warrior IDE

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

DPDK in code warrior IDE

1,892 Views
rashmikj
Contributor III

I am trying debug dpdk on LS1046ardb through remote debug from code warrior IDE. When i try include the dpdk libraries, I get the following error.

c:/freescale/cw4net_v2019.01/cw_armv8/cross_tools/gcc-linaro-aarch64-linux-gnu-4.9.3/bin/../lib/gcc/aarch64-linux-gnu/4.9.3/../../../../aarch64-linux-gnu/bin/ld.exe: cannot find -lC:/Freescale/dpdk/lib_a/librte_eal.a

 

Kindly help.

0 Kudos
Reply
3 Replies

1,877 Views
hemantagrawal
NXP Employee
NXP Employee

you can do remote debugging with gdb

Run the GDB server on Target. (if not available - you can get it with sudo apt-get install gdbserver for ubuntu rootfs)

./gdbserver 192.168.3.104:7000 ./l3fwd -c 0x4 -n 1 --log-level=8 --log-level=dpaa,8 -- -p 0x1 --config="(0,0,2)" -P

Run the following on host

/opt/gcc-linaro-7.2.1-2017.11-x86_64_aarch64-linux-gnu/bin/aarch64-linux-gnu-gdb examples/l3fwd/build/l3fwd
target remote 192.168.3.176:7000

run -c 0x4 -n 1 --log-level=8 --log-level=dpaa,8 -- -p 0x1 --config="(0,0,2)" -P 

0 Kudos
Reply

1,876 Views
rashmikj
Contributor III

Is 192.168.3.104 ip address of PC and 192.168.3.176 ip address of Kit??

0 Kudos
Reply

1,872 Views
hemantagrawal
NXP Employee
NXP Employee

yes. gdbserver wait for connectio from the build machine

build machine(gdb) connects to Target (kit). 

0 Kudos
Reply