UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Participant brianvg
Participant
6,996 Views
Registered: ‎11-02-2014

Debugging Open Source Linux from SDK

Hello,

 

I am hoping someone can help me out with a realistic technique for debugging appliaction projects in open source linux. Manually moving the files to the system, starting GDB on the Zynq Linux, and then debugging from the command line in the client system is ridiculous. There must be an easy way to debug comfortably directly from the SDK tool, including pushing the application code to the board. I can't see anything like that for OSL, just a bunch of guides for Petalinux, and guides showing a complex and uncomfortable process for OSL.

 

What is the normal design flow here?

 

Thanks,

 

Brian

0 Kudos
2 Replies
Xilinx Employee
Xilinx Employee
6,991 Views
Registered: ‎09-10-2008

Re: Debugging Open Source Linux from SDK

Hi Brian,

 

The assumption from Xilinx (right or wrong) is that if you are doing your own thing without Petalinux you'll be able to figure it out as your a more advanced user or you're using a distribution which will help you. 

 

The principles are the same regardless of Petalinux or not as it's based on TCF agent, an application that runs on the Linux target (like GDB server, but TCF based).  Then you use the SDK debugger as you would with Petalinux.  You can also use a Remote System Explorer from the SDK which can be based on telnet, SSH, etc.. I believe.

 

I've not looked lately but the prebuilt rootfs from the Xilinx releases on the wiki likely has the tcf agent built into them.  I don't know where the TCF agent source code is but I've not looked for it.

 

http://www.wiki.xilinx.com/Zynq+2015.2+Release

 

Thanks

John

 

0 Kudos
Observer joe4702
Observer
6,975 Views
Registered: ‎08-21-2012

Re: Debugging Open Source Linux from SDK

We are using Eclipse Kepler to build and source debug Linux C/C++ apps for Zynq. Source debug is via GDB server on the Zynq board, by setting up an appropriate Debug Configuration in Kepler. We use ssh for the remote connection to the Zynq board. Or you can do similar from the Xilinx SDK, which is just a tailored Eclipse implementation. It's actually easier from XSDK since Xilinx does much of the necessary project set-up for you transparently. I believe in XSDK you would chose the "Remote ARM Linux Application" Debug Configuration.
0 Kudos