cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
dmitril
Observer
Observer
1,806 Views
Registered: ‎01-17-2018

how to add symbols for a .ko module to System Debugger on Xilinx SDK 2016.4?

Hi,
I followed this
https://www.xilinx.com/support/documentation/sw_manuals/xilinx14_7/SDK_Doc/tasks/sdk_t_tcf_attach_debug_linux_kernel_tcf.htm
and this
https://www.xilinx.com/support/answers/67325.html
with System Debugger on Xilinx SDK 2016.4
but I cannot load symbols for kernel module such as virtio_rpmsg_bus.ko
As that last link said, I added to Path Map:
Source: virtio_rpmsg_bus
Destination: /home/me/petalinux_kernel/drivers/rpmsg/virtio_rpmsg_bus.ko
I also added to Symbol Files
/home/me/petalinux_kernel/vmlinux
Now I can see symbols for kernel routines, for example I can add expression "&printk" and it is displayed correctly, also breakpoint on printk works.
But if I add expression &rpmsg_send_offchannel_raw or set breakpoint on rpmsg_send_offchannel_raw or rpmsg_fini, none of them work.
I also tried adding /home/me/petalinux_kernel/drivers/rpmsg/virtio_rpmsg_bus.ko to Symbol Files - does not work either.

So, the question is: how to add symbols for a .ko module to System Debugger on Xilinx SDK 2016.4?

Thank you

0 Kudos
5 Replies
sadanan
Xilinx Employee
Xilinx Employee
1,764 Views
Registered: ‎10-21-2010

0 Kudos
dmitril
Observer
Observer
1,751 Views
Registered: ‎01-17-2018

Sorry, these links that you posted missing crucial information.

They say:

"

Click the Path Map tab to set the path mappings for the selected debug configuration.
Click Add to insert the kernel module.

"

What does this mean? How can you add the module? What values should you specify for various fields in that dialog?

 

I followed

https://www.xilinx.com/support/answers/67325.html

and it is more descriptive,

but still does not work.

 

So, please, give me exact steps to begin debugging virtio_rpmsg_bus.ko on SDK 2016.4

 

Thank you

0 Kudos
dmitril
Observer
Observer
1,713 Views
Registered: ‎01-17-2018

Is it possible to get an answer to this question

or is there some other support channel?

0 Kudos
bminier
Visitor
Visitor
1,251 Views
Registered: ‎08-07-2017

Hi dimitril,

 

Did you succeed to debug kernel module ?

As you, I tried to follow this post https://www.xilinx.com/support/answers/67325.html but I'm not sure of the path to setup as path mapping.

It doesn't work.

 

Thanks for your help.

0 Kudos
shabbirk
Moderator
Moderator
1,074 Views
Registered: ‎12-04-2016

Hi @dmitril @bminier

Try building the petalinux after selecting image packing configuration to initrd or sdcard, instead of default initramfs. This is expected to generate proper debug symbols

petalinux-config -> Image Packaging Configuration ---> Select INITRD

 

Best Regards

Shabbir

0 Kudos