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.

no inet address in AM335x evm

i am using am335x starter kit with ccsv5 and sdk7. when executing ifconfig command the inet address is missing. pls help.

root@am335x-evm:~# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:18:31:E7:A3:50  
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1                    
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0                    
          TX packets:2 errors:0 dropped:0 overruns:0 carrier:0                  
          collisions:0 txqueuelen:1000                                          
          RX bytes:0 (0.0 B)  TX bytes:644 (644.0 B)                            
          Interrupt:56                                                          
                                                                                
lo        Link encap:Local Loopback                                             
          inet addr:127.0.0.1  Mask:255.0.0.0                                   
          UP LOOPBACK RUNNING  MTU:65536  Metric:1                              
          RX packets:110 errors:0 dropped:0 overruns:0 frame:0                  
          TX packets:110 errors:0 dropped:0 overruns:0 carrier:0                
          collisions:0 txqueuelen:0                                             
          RX bytes:185131 (180.7 KiB)  TX bytes:185131 (180.7 KiB)           

  

Thanks

Jawahar Krishnamoorthi

  • Hi Jawahar,

    Try the following:

    ifup eth0

    Best regards,
    Miroslav

  • Hi, Miroslav

    Thank you for your reply. this is the output i get.

    root@am335x-evm:~# ifup eth0                                                    
    udhcpc (v1.20.2) started                                                        
    Sending discover...                                                             
    Sending discover...                                                             
    Sending discover...                                                             
    No lease, failing

    Thanks

    Jawahar Krishnamoorthi

  • Do you use a router with DHCP server?

    If yes - fix the settings to allow your StarterKit to obtain a valid IP address.

    If no - use something similar to this to set a static IP address:

    ifconfig eth0 192.168.1.5 netmask 255.255.255.0 up

    Best regards,
    Miroslav

  • Hi, Miroslav

    Thanks for your reply. how to make this settings permanent.

    root@am335x-evm:~# ifconfig eth0 192.168.1.5 netmask 255.255.255.0 up           
    root@am335x-evm:~# ifconfig                                                     
    eth0      Link encap:Ethernet  HWaddr 00:18:31:E7:A3:50                         
              inet addr:192.168.1.5  Bcast:192.168.1.255  Mask:255.255.255.0        
              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1                    
              RX packets:1 errors:0 dropped:0 overruns:0 frame:0                    
              TX packets:2 errors:0 dropped:0 overruns:0 carrier:0                  
              collisions:0 txqueuelen:1000                                          
              RX bytes:344 (344.0 B)  TX bytes:644 (644.0 B)                        
              Interrupt:56                                                          
                                                                                    
    lo        Link encap:Local Loopback                                             
              inet addr:127.0.0.1  Mask:255.0.0.0                                   
              UP LOOPBACK RUNNING  MTU:65536  Metric:1                              
              RX packets:105 errors:0 dropped:0 overruns:0 frame:0                  
              TX packets:105 errors:0 dropped:0 overruns:0 carrier:0                
              collisions:0 txqueuelen:0                                             
              RX bytes:184873 (180.5 KiB)  TX bytes:184873 (180.5 KiB)

    Thanks

    Jawahar Krishnamoorthi

  • If you do have a DHCP server and cannot obtain the IP address through it, please see this thread.