Welcome! Log In Create A New Profile

Advanced

uEnv.txt in UART boot.

Posted by miazza 
uEnv.txt in UART boot.
April 09, 2022 12:23PM
In UART boot the default MAC Address is automatically set.

I have created a uEnv.txt file for setting the right one but I get:

Warning: egiga0 MAC addresses don't match:
Address in SROM is         ec:43:f6:40:84:91
Address in environment is  xx:xx:xx:xx:xx:xx

How can I fix this in UART boot ?
Re: uEnv.txt in UART boot.
April 09, 2022 03:16PM
>
> Warning: egiga0 MAC addresses don't match:
> Address in SROM is         ec:43:f6:40:84:91
> Address in environment is  xx:xx:xx:xx:xx:xx
>

Try setting it at u-boot prompt

setenv ethaddr xx:xx:xx:xx:xx:xx

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: uEnv.txt in UART boot.
April 09, 2022 04:56PM
bodhi Wrote:
-------------------------------------------------------
> >
> > Warning: egiga0 MAC addresses don't match:
> > Address in SROM is         ec:43:f6:40:84:91
> > Address in environment is  xx:xx:xx:xx:xx:xx
> >
>
> Try setting it at u-boot prompt
>
>
> setenv ethaddr xx:xx:xx:xx:xx:xx
>

U-Boot 2017.07-tld-1 (Sep 05 2017 - 00:42:03 -0700)
ZyXEL NSA325 2-Bay Power Media Server

SoC:   Kirkwood 88F6282_A1
DRAM:  512 MiB
WARNING: Caches not enabled
NAND:  128 MiB
*** Warning - bad CRC, using default environment

In:    serial
Out:   serial
Err:   serial
Net:   egiga0
MV88E1318 PHY initialized on egiga0
Hit any key to stop autoboot:  0
NSA325> setenv ethaddr xx:xx:xx:xx:xx:xx

Warning: egiga0 MAC addresses don't match:
Address in SROM is         xx:xx:xx:xx:xx:xx
Address in environment is  52:3b:20:9c:11:51

The same behaviour.
Re: uEnv.txt in UART boot.
April 09, 2022 05:40PM
> Warning: egiga0 MAC addresses don't match:
> Address in SROM is xx:xx:xx:xx:xx:xx
> Address in environment is 52:3b:20:9c:11:51
> [/code]
>
> The same behaviour.

OK. I was hoping it would behave differently. Apparently not.

You will have to either set it explicitly in /etc/network/interfaces in Debian. Or flash the new u-boot, and then set it with setenv (in u-boot) or fw_setenv (in Debian).

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: uEnv.txt in UART boot.
April 10, 2022 02:10AM
Thanks bodhi.

How shoul it like interfeces ?

Right now I have:
auto lo eth0
iface lo inet loopback
iface eth0 inet dhcp
    hwaddress ether xx:xx:xx:xx:xx:xx

This does not work and reports the same error as before.



Edited 1 time(s). Last edit at 04/10/2022 11:54AM by miazza.
Re: uEnv.txt in UART boot.
April 10, 2022 03:45PM
auto lo eth0
iface lo inet loopback
iface eth0 inet dhcp
    hwaddress ether xx:xx:xx:xx:xx:xx

When you have the MAC address in this /etc/network/interfaces, Debian will reset the MAC address while the system boot. So after booting with kwboot into Debian

ifconfig -a
So you should see the MAC address actually being used in the output.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: uEnv.txt in UART boot.
April 11, 2022 12:47PM
It seems that the MAC is correct now:
ifconfig -a
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.1.104  netmask 255.255.255.0  broadcast 192.168.1.255
        inet6 fe80::ee43:f6ff:fe40:8491  prefixlen 64  scopeid 0x20<link>
        ether ec:xx:xx:xx:xx:xx  txqueuelen 1000  (Ethernet)
        RX packets 298  bytes 33624 (32.8 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 107  bytes 13369 (13.0 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
        device interrupt 35

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 20  bytes 3229 (3.1 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 20  bytes 3229 (3.1 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

The Router is now reading the right MAC.
Thanks



Edited 1 time(s). Last edit at 04/11/2022 02:39PM by miazza.
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: