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.

AM5728: IPv4 not detected

Part Number: AM5728

hello

when I connect my EVM (TMDSEVM572x) to PC by LAN cable and run command ifconfig, what is seen is only IPv6, not IPv4.

I use serial cable and minicom terminal to connect to EVM.

I executed command ifconfig on EVM via minicom as follows:

root@am57xx-evm:~# ifconfig
eth0 Link encap:Ethernet HWaddr FC:0F:4B:AB:9B:38
inet6 addr: fe80::fe0f:4bff:feab:9b38/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:220 errors:0 dropped:0 overruns:0 frame:0
TX packets:126 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:41109 (40.1 KiB) TX bytes:28382 (27.7 KiB)
Interrupt:90

eth1 Link encap:Ethernet HWaddr FC:0F:4B:AB:9B:39
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:107 errors:0 dropped:0 overruns:0 frame:0
TX packets:107 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:202696 (197.9 KiB) TX bytes:202696 (197.9 KiB)

as you can see above, only inet6 detected and has IP.

I need to know EVM's IPv4 for connecting via CCS RSE and debuging codes.

any help would be appreciated,

Ali

  • Hi,

    I will assume for the moment that you are running the pre-built images from the latest TI Processors SDK Linux.

    Since you are showing that the interface is seeing traffic and only the IPV6 address is shown then the CPSW driver is functioning correctly. So this may mean that the EVM is functioning correctly.

    As the driver appears to be functioning this will not be an issue that TI can support you with. I can offer a possible suggestion though which is that there is not a DHCP server it appears on the subnet that you are connected to that is serving up IPv4 addresses. If there is a server then perhaps the range of addresses that it could assign is exhausted.  You will need to get wireshark running on another machine and follow the ARP request through DHCP process for the EVM. With that you should be able to see if there is a DHCP server available and responding to requests on the subnet you are connected to.

    Best Regards,

    Schuyler

  • Hi Schuyler

    Thanks for your reply.

    yout assumption is correct. the LAN connection is OK with IPv6. I tested it with a ping6 command and saw it working.

    in fact, I connected the EVM to my host PC that has fixed IP (for example 192.168.100.10). now I want to make LAN conection between EVM and host with fixed IP addresses.

    how can I set a fixed IP address for the EVM in startup (when reboot, it should have fixed IP , not DHCP)? could you please show me the way?

    after this, I need to write an application that can run on EVM and send UDP packets out to the host. could you explain (or show a complete document) to me the simplest way to do that?

    best regards,

    Ali

  • Hi, 

    I can help with the first the request the second I think you will be able to easily find a generic UDP example on the web you will be able to copy directly that shows how to open, bind and send to data to an ip address.

    There are a couple of ways to set the ip address statically, this first way is pretty easy, I will assume eth0 is the one connected:

    ifconfig eth0 192.168.100.11 up

    You will need to run that command on each boot of the processor.

    Best Regards,

    Schuyler

  • Hi

    thanks a lot.

    you're right, I can set the fixed IP with command ifconfig eth0 ...... that's OK.

    but I want to set it in boot for default. so, I need to change init scripts of the kernel. this (setting fixed IP) is for evaluation and test only. these are the first steps I should do

    let me explain my final target and application using this EVM572x:

    I need to write an application for capturing input video frames in real time and send them via ethernet UDP packets. and I want to minimize the boot up time of linux on EVM. so I should remove some initial scripts and add other scripts to run when booting.

    Best regards, 

    Ali

  • hello Schuyler

    another question I have is that how can I write my application in C for capturing Video frames in real time? 

    could you please let me know what to do? should I do this using Gstreamer library?

    could you show me an example C code that use Gstreamer and captures video frames?

    thanks a lot,

    Ali