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.

Ethernet setting on BBB

Hi:

        I have a question, can i set a static IP in the uEnv.txt file that make my kernel boot up with the ip i gave in the uEnv.txt??

  • Hi Ivan,

    Yes, possible, you can boot the board with static IP address and server address for NFS booting ie one to one

    setenv ipaddr 10.100.1.1

    setenv serverip 10.100.1.2

    Connect the ethernet cable board to PC and set serverip (10.100.1.2)  as IP in PC network connection.

  • Hi , if i don't want to stop in the bootloader mode, can i do the same thing like you said?? I prefer using the uEnv.txt file.

  • Sorry, how do i do?? that's what i want to know, what text i need to write on the uEnv.txt file

  • Hi Ivan,

    What kind of boot method are you trying ie NFS or MMC or NAND ?

    Could you attach your uEnv.txt file ?

  • Hi:

                       I boot from eMMC.6888.uEnv.txtThis is my uEnv.txt

  • Hi Ivan,

    I have put a entry for IP address and server address in uEnv.txt.

    5811.uEnv.txt

  • Hi Stalin:

                              it seems to not work. I use "ifconfig", the ip address didn't change.

    root@beaglebone:~# ifconfig                                                     
    eth0      Link encap:Ethernet  HWaddr d0:5f:b8:ef:9e:be                         
              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)                                
              Interrupt:40                                                          
                                                                                    
    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:0 errors:0 dropped:0 overruns:0 frame:0                    
              TX packets:0 errors:0 dropped:0 overruns:0 carrier:0                  
              collisions:0 txqueuelen:0                                             
              RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)                                
                                                                                    
    usb0      Link encap:Ethernet  HWaddr b6:e2:77:a9:4e:30                         
              inet addr:192.168.7.2  Bcast:192.168.7.3  Mask:255.255.255.252        
              inet6 addr: fe80::b4e2:77ff:fea9:4e30/64 Scope:Link                   
              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1                    
              RX packets:50 errors:0 dropped:0 overruns:0 frame:0                   
              TX packets:38 errors:0 dropped:0 overruns:0 carrier:0                 
              collisions:0 txqueuelen:1000                                          
              RX bytes:9522 (9.2 KiB)  TX bytes:9955 (9.7 KiB) 

  • Need to modify the "bootargs" to get the IP address to linux.

    mmcargs=setenv bootargs console=tty0 console=${console} ${optargs} ${kms_force_mode} ip=$ipaddr root=${mmcroot} rootfstype=${mmcrootfstype} ${systemd}

    6082.uEnv.txt

  • Hi Stalin:

                              Thanks, it can work: ).