This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Need DM368 to send Gratuitous ARP

I have a DM368-based target with DVSDK 4.02 that pseudo-randomly generates a MAC address each time it boots. The problem I am having is that the arp cache of my client workstation that is connected to the target does not always get updated and it has problems communicating (e.g. ping or telnet) with the target. If I clear the arp cache on the client workstation it is fine. However, I prefer to have the DM368 firmware send out a gratuitous ARP after each boot up to refresh the client workstation's arp cache.

I know this can be done on a Linux workstation with the "arping" utility but that doesn't seem to be included with the davinci linux distribution. Is there a known good solution to this problem, or do I have to get the source a utilities lib that supports gratuitous arp and cross-compile for DM368?

Regards,

James

  • Hi,

    BusyBox does seem to include a version of the arping utility, though I have built a newer version from source, so I'm not sure if the prebuilt BusyBox that comes with the DVSDK is built with arping included or not.

    If you run "busybox" on your terminal you will see which commands are built in.  If arping is among them you just need to create a symlink from /usr/sbin/arping to /bin/busybox or just run "busybox arping <params here>".  If, however, arping is not among the built in commands then you will either need to rebuild busybox or build some other utility.

    Chris Richardson

  • Thanks Chris. I ended up downloading the source code for the arping utility (part of iputils) and cross-compiling for the dm368 and it seems to work well. I checked busybox on the target and it does not include arping so I will probably just go with my current solution for now.

    BR,

    James