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??
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.
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 Ivan,
What kind of boot method are you trying ie NFS or MMC or NAND ?
Could you attach your uEnv.txt file ?
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}