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.

AM4376: Linux SDK 8.02

Part Number: AM4376

Hello,

i am working on TI Linux sdk 8.02 with ethernet related services and PRU is being used for ethernet interface.

i am typing command arp -a but it does not provide any ip list connected over network. what could be the reason?

regards,
Vrund

  • Hello Vrund,

    Can you please provide terminal output of what you are seeing?

    Please also describe the network that you are plugged into.

    Regards,

    Nick

  • Hello,

    I actually want to implement address collision detection functionality.

     To  send  request  on  interface  eth0  to  detect  any  neighbor   computers   with   IP
           192.168.10.200:
    
              arpsend -D -e 192.168.10.200 eth0

    for that i was trying arpsend command which checks whether neighboring device has same IP as my device or not.

    PFA.

  • Hello Vrund,

    When I run a quick test on AM64x SDK 9.0 (different processor, similar filesystem) I also get arpsend: command not found. It also looks like "arp" is not a command that is recognized by this Linux filesystem:

    root@am64xx-evm:~#
    help arp
    -sh: help: no help topics match `arp'.  Try `help help' or `man -k arp' or `info arp'.
    root@am64xx-evm:~# info arp
    -sh: info: command not found
    root@am64xx-evm:~# man -k arp
    -sh: man: command not found
    root@am64xx-evm:~# arpsend
    -sh: arpsend: command not found
    

    However, there are clearly arp commands that work just fine (e.g., arping):

    root@am64xx-evm:~# arping 192.168.1.100
    ARPING 192.168.1.100 from 192.168.43.1 eth0
    Unicast reply from 192.168.1.100 [a0:36:9f:75:d4:60] 0.277ms
    Unicast reply from 192.168.1.100 [a0:36:9f:75:d4:60] 0.233ms
    Unicast reply from 192.168.1.100 [a0:36:9f:75:d4:60] 0.272ms
    ^CSent 3 probe(s) (1 broadcast(s))
    Received 3 response(s) (0 request(s), 0 broadcast(s))
    

    Please try using arp commands that are defined to run your tests.

    Regards,

    Nick

  • Hello,

    arping command is working.

    But it is not useful.

    PC: 192.168.1.10

    Device: 192.168.1.10

    if used arping from device 

    arping 192.168.1.10 

    it shows nothing. below is screen shot. left side device terminal. right side is PC cmd prompt.

    I think arping is not the right way to implement address conflict detection.

  • Hello Vrund,

    The question of which Linux software is best for detecting IP address collision, and how to run and test that software, is outside the scope of the TI forums (since that is a generic Linux question instead of a TI-specific question).

    It looks like there are multiple potential tools out there, like 
    arp-scan https://www.xmodulo.com/how-to-detect-ip-address-conflicts-in.html
    IPwatchd https://serverfault.com/questions/136619/can-linux-report-ip-conflicts 
    arpwatch https://serverfault.com/questions/136619/can-linux-report-ip-conflicts 

    But none of those tools are bundled by default into the AM437x Linux SDK. You will need to install the tools yourself before you can test them.

    Please note that I have not tested or validated any of those tools at this point in time.

    Regards,

    Nick

  • I understand.

    do you have any source code for sending arp request and receiving arp response? or suggest one?

    regards,

    Vrund

  • Hello Vrund,

    Arp request software is generic Linux code, nothing TI specific. So there is not anything in particular that I would suggest.

    If you found code that you are interested in running on your EVM, but you are having difficulty figuring out how to add it into your Linux SDK system, then we can point you to guidance on how to add that external code.

    Regards,

    Nick