This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Unable to Debug on Linux FVP for Windows

Hello,

I am attempting to run and debug the the HelloWorld_GCC sample application as described here:

Linux Application Debugging Using DS-5 – DS-5 Development Studio – ARM Developer

The application builds fine,however when I connect to the target in the debugger, Linux is launched in the FVP and the Debug Control window indicates the connection status as "connecting", but then eventually times out and changes to "disconnecting".  I see a couple of entries in the final lines of the Telnet session that look suspicious:

INIT: Entering runlevel: 5

Configuring network interfaces... smc91x 1a000000.ethernet: eth0: link up, 10Mbps, half-duplex, lpa 0x0000

done.

Starting Xserver

Starting system message bus: dbus.

Starting Connection Manager

Starting OpenBSD Secure Shell server: sshd

v2m_cfg_write: writing 018023d8 to 00100001

v2m_cfg_write: writing 00000000 to 00700000

done.

Starting rpcbind daemon...rpcbind: cannot create socket for udp6

rpcbind: cannot create socket for tcp6

done.

Starting syslogd/klogd: done

* Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon

   ...done.

Starting auto-serial-console: done

Last login: Fri Aug 12 21:44:15 UTC 2016 on tty1

root@genericarmv7a:~# v2m_cfg_write: writing 00000000 to 00700000

Questons:

1. Is the socket creation failure for rpcbind a problem or benign?

2. Why is v2m_cfg attempting to write zero bytes, and never returns?

I am running DS-5 Professional v5.24.1 on Windows 10.

Please let me know if you have any suggestions on what the issue may be.  If you would like me to post the entire content of the Telnet session, I can do that as well.  I am able to manually cd to the /writeable directory from Telnet and run the 'hello' app on the FVP, I just can't connect to it with the debugger via gdb.

Thanks,

Frank

Parents
  • Hi Stuart,

    Thanks very much for the reply, and sorry the delay in getting back to you.

    To answer your question about what I see in the 'App Console' window, I see:

    "Preparing the debug session

    Debug session has been started, connecting to gdbserver"

    It appears that the issue is connecting to the gdb-server.  Below is a screen shot of what I am seeing.  Notice that the status in the bottom right indicates "Launching HelloWorld...FVP: (99%)" and stays at 99% forever until I exit.  Also, the Debug Control and Commands windows seem to imply a issue with disconnecting from the gdb-server.

    DS-5a.PNG

    As you suggested, I ran 'ps' at the Telnet console, and I do see that both the gdb-server and HelloWorld_GCC processes are running:

    DS-5b.PNG

    Since I am able to see 'HelloWorld_GCC' in the /writeable directory, and the process is running, I assume that this implies that there are no issues with downloading and executing the file to the target?

    Any help you can provide would be greatly appreciated.  If it would help to expedite the exchange, I can call you to discuss this in more detail.  Please let me know as I will be traveling next week and need to get this working before then.

    Regards,

    Frank

Reply
  • Hi Stuart,

    Thanks very much for the reply, and sorry the delay in getting back to you.

    To answer your question about what I see in the 'App Console' window, I see:

    "Preparing the debug session

    Debug session has been started, connecting to gdbserver"

    It appears that the issue is connecting to the gdb-server.  Below is a screen shot of what I am seeing.  Notice that the status in the bottom right indicates "Launching HelloWorld...FVP: (99%)" and stays at 99% forever until I exit.  Also, the Debug Control and Commands windows seem to imply a issue with disconnecting from the gdb-server.

    DS-5a.PNG

    As you suggested, I ran 'ps' at the Telnet console, and I do see that both the gdb-server and HelloWorld_GCC processes are running:

    DS-5b.PNG

    Since I am able to see 'HelloWorld_GCC' in the /writeable directory, and the process is running, I assume that this implies that there are no issues with downloading and executing the file to the target?

    Any help you can provide would be greatly appreciated.  If it would help to expedite the exchange, I can call you to discuss this in more detail.  Please let me know as I will be traveling next week and need to get this working before then.

    Regards,

    Frank

Children