UBOOT Static IP Address Configuration Not Sticking for LS1028ARDB

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

UBOOT Static IP Address Configuration Not Sticking for LS1028ARDB

Jump to solution
327 Views
joy_t
Contributor II

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.

Tags (2)
0 Kudos
Reply
1 Solution
296 Views
June_Lu
NXP TechSupport
NXP TechSupport

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.

View solution in original post

3 Replies
295 Views
June_Lu
NXP TechSupport
NXP TechSupport

interfaces.pngifconfig.png

0 Kudos
Reply
297 Views
June_Lu
NXP TechSupport
NXP TechSupport

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.

275 Views
joy_t
Contributor II

Thank you! These instructions worked for me with a couple additional steps:

  • Before running the flex-installer:
    • Run umount and fsck on any partition already mounted
    • Change each partition from FAT to EXT4 with mkfs.ext4
    • Resize partition 4 to be at least 4 GB with fdisk
  • After resetting the board:
    • Stop autoboot and enter UBOOT
    • Make sure bootargs has root=<partition 4> (for me, this was /dev/mmcblk0p4)
    • Reset board
0 Kudos
Reply