cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
pmaurice
Participant
Participant
358 Views
Registered: ‎10-16-2020

Debug Kernel / Kernel driver

Hello,

I took a look to theses following webpage for debugging :

application project : https://www.xilinx.com/html_docs/xilinx2020_2/vitis_doc/debugappproj.html

kernel and application :  https://www.xilinx.com/html_docs/xilinx2020_2/vitis_doc/debuggingapplicationskernels.html

Petalinux kernel setup: https://www.xilinx.com/support/answers/66853.html

Here is the question :

Is it possible to debug a kernel driver and step into the driver code ??

So far the best I could achieve is to debug the application but when i want to step into open(), read(), write(), ioctl() function calls (that are defined in my char device driver); it jump into assembly code (for the portion handled by glibc) and then comes back in my C code application. 

 

0 Kudos
2 Replies
pmaurice
Participant
Participant
157 Views
Registered: ‎10-16-2020

!

0 Kudos
primoz_beltram
Explorer
Explorer
120 Views
Registered: ‎02-22-2012

Did you saw this Xilinx forum message?

I did LX kernel debug of static drivers with XSDK 2018.2. It should be same (or better) with newer tools.

However I have no success with loadable LX kernel drivers debug.

WBR Primoz

0 Kudos