Intel® SoC FPGA Embedded Development Suite
Support for SoC FPGA Software Development, SoC FPGA HPS Architecture, HPS SoC Boot and Configuration, Operating Systems

gdb-on-target support

PeteHarbour
Beginner
763 Views

I am using an Arria-10 based SoC FPGA (10AS066H3F34) with fabric bit-stream encryption enabled (thus JTAG disabled).  I want to use gdb debugger on the target.  I am working on target remotely and cannot gdb remotely and gdb-server on target FPGA board.  Has gdb been compiled for the arm-linux-gnueabihf platform?  I see gdb-server has been compiled.  How do others use gdb (not gdb-server alone) directly on target?

0 Kudos
5 Replies
IntelSupport
Community Manager
734 Views

Hello PeteHarbour,

 

If you have a linces of ARM DS* below, you can debug Linux application on Arm* DS with gdbserver over Ethernet.

Let us know if your expectation is different.

 

Arm* Development Studio for Intel® SoC FPGA

https://www.intel.com/content/www/us/en/software/programmable/soc-eds/arm-ds.html

 

SoCEDS and ARM Development Studio

https://rocketboards.org/foswiki/Documentation/SoCEDS

 

Arm* Development Studio User Guide

https://www.rekirsch.at/user_html/1282834349/pix/a/media/ARM_DS/armds_user_guide.pdf

 

Linux Application Debugging With DS5

https://rocketboards.org/foswiki/Documentation/LinuxApplicationDebuggingWithDS5

NOTE: Arm* DS5 has already dropped. But a procedure of debugging is almost same as Arm* DS. So you can refer to above link.

  

Thanks,


0 Kudos
PeteHarbour
Beginner
707 Views

Hi IntelSupport,

 

Thanks for the answer.  I am still using Eclipse DS-5 (community edition) for code development .  I see the new Arm* Development Studio suggestion, I will look into that.
However, I am also interested in another option.  My team is running code in customer field environments where specific conditions only occur on those environments.  We are unable to run our products with additional open Ethernet ports (to support gdb data protocol transfer from gdb-server target to gdb host) on customer sites as our FPGA fabric design is bit-stream encrypted for security.  We are hoping gdb has been built for the Arria-10 arm-linux-gnueabihf compiler platform (since gdb-server has already been built).  Our goal is to run gdb and gdb-server on the Arria-10 platform (debug directly on target).  We see there are Linaro versions of gdb built for arm-linux-gnueabihf, but they do not seem to run on the Arria-10 platform.  Are you familiar with any Intel customers requesting to gdb debug on target directly?

0 Kudos
IntelSupport
Community Manager
686 Views

Hi PeteHarbour,

 

Thank you for the response and detailed explnation.

We understood your goal which you want to debug any program on A10 SoC with gdb and gdb server directly via SSH or Serial port.

Unfortunately, we have never heard the request.

But, we try to debug any program on the target.

 

Thanks


0 Kudos
IntelSupport
Community Manager
624 Views

Hi PeteHarbour,

 

We hope you did resolved the issue by yourself.

We also tried the gdb static binary below on Arria 10 SoC Dev Kit. It works fine.

https://github.com/marcinguy/arm-gdb-static

 

Here is an actual log of the GDB when debugged the hello world sample.

root@arria10:~/hello# ../gdbstatic ./hello                                     

GNU gdb (GDB) 7.6                                                              

Copyright (C) 2013 Free Software Foundation, Inc.                              

License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>  

This is free software: you are free to change and redistribute it.             

There is NO WARRANTY, to the extent permitted by law. Type "show copying"     

and "show warranty" for details.                                               

This GDB was configured as "arm-linux-gnueabi".                                

For bug reporting instructions, please see:                                    

<http://www.gnu.org/software/gdb/bugs/>...                                     

Reading symbols from /home/root/hello/hello...done.                            

(gdb) b main                                                                   

Breakpoint 1 at 0x103dc: file hello.c, line 5.                                 

(gdb) l                                                                        

1      #include <stdio.h>                                                     

2                                                                              

3      int main()                                                             

4      {                                                                      

5         printf("Hello world\n");                                            

6         return 0;                                                           

7      }                                                                      

8                                                                              

(gdb) run                                                                      

Starting program: /home/root/hello/hello                                       

                                                                               

Breakpoint 1, main () at hello.c:5                                             

5         printf("Hello world\n");                                            

(gdb) s                                                                        

Hello world                                                                    

6         return 0;                                                           

(gdb) quit                                                                     

A debugging session is active.                                                 

                                                                               

       Inferior 1 [process 567] will be killed.                               

                                                                               

Quit anyway? (y or n) y                                                        

root@arria10:~/hello#

 

Lastly, we used pre-build binary below as Embedded Linux System.

https://rocketboards.org/foswiki/Documentation/Arria10SoCGSRD#Running_GSRD_with_Pre_45Built_Binaries

 

Thanks


0 Kudos
IntelSupport
Community Manager
608 Views

We do not receive any response from you to the previous question/reply/answer that I have provided. This thread will be transitioned to community support. If you have a new question, feel free to open a new thread to get the support from Intel experts. Otherwise, the community users will continue to help you on this thread. Thank you. 


0 Kudos
Reply