UBOOT Static IP Address Configuration Not Sticking for LS1028ARDB

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

UBOOT Static IP Address Configuration Not Sticking for LS1028ARDB

ソリューションへジャンプ
482件の閲覧回数
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.

タグ(2)
0 件の賞賛
返信
1 解決策
451件の閲覧回数
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.

元の投稿で解決策を見る

3 返答(返信)
450件の閲覧回数
June_Lu
NXP TechSupport
NXP TechSupport

interfaces.pngifconfig.png

0 件の賞賛
返信
452件の閲覧回数
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.

430件の閲覧回数
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 件の賞賛
返信