Hello,
What is the best way to configure a static IP address on boot for the LS1028ARDB? I've set a couple UBOOT variables to SPI flash, but I'm not seeing the ethernet device be brought up and configured with an IP address after being booted to TinyLinux from SD.
=> setenv ipaddr 192.168.3.201
=> setenv serverip 192.168.3.200
=> setenv netmask 255.255.255.0
I've also noticed that eth0 is getting renamed to eno0 and the MAC address of the device changes between boots. Configuring via /etc/network/interfaces does not work either because file changes do not persist between boots.
Any guidance on this issue would be great, thank you.
Solved! Go to Solution.
Insert a SD card in the LS1028ARDB.
Automatically download and deploy LSDK images
flex-installer -i auto -m ls1028ardb -d sd
Then you will get a rootfs in the SD card partition 4.
Modify the partition 4 /etc/network/interfaces.
Add information below:
auto eno0
iface eno0 inet static
address 192.168.8.9
netmask 255.255.255.0
gatway 192.168.8.1
dns-nameservers 8.8.8.8.8.8.4.4
The eno0 will be active when the ls1028ardb boot up.
The address will be set 192.168.8.9
And the netmask, gateway, dsn would be set follow the example.
Insert a SD card in the LS1028ARDB.
Automatically download and deploy LSDK images
flex-installer -i auto -m ls1028ardb -d sd
Then you will get a rootfs in the SD card partition 4.
Modify the partition 4 /etc/network/interfaces.
Add information below:
auto eno0
iface eno0 inet static
address 192.168.8.9
netmask 255.255.255.0
gatway 192.168.8.1
dns-nameservers 8.8.8.8.8.8.4.4
The eno0 will be active when the ls1028ardb boot up.
The address will be set 192.168.8.9
And the netmask, gateway, dsn would be set follow the example.
Thank you! These instructions worked for me with a couple additional steps: