Re: [PATCH 1/1] riscv: dts: spacemit: set ETH MAC from eeprom for OrangePi
From: Yixun Lan
Date: Mon Sep 21 2026 - 08:42:51 EST
Hi Chukun,
On 18:00 Sun 20 Sep , Chukun Pan wrote:
> The EEPROM on the OrangePi R2S and OrangePi RV2 stores the MAC address.
> Assign it to Ethernet, with eth1 having a MAC offset of 1. Remove the
> Ethernet alias to avoid U-Boot patching incorrect MAC addresses.
>
Could you point me where the u-boot patching the MAC address?
I'm not fully aware of this problem..
> Signed-off-by: Chukun Pan <amadeus@xxxxxxxxxx>
> ---
> arch/riscv/boot/dts/spacemit/k1-orangepi-r2s.dts | 8 +++++---
> arch/riscv/boot/dts/spacemit/k1-orangepi-rv2.dts | 8 +++++---
> 2 files changed, 10 insertions(+), 6 deletions(-)
>
> diff --git a/arch/riscv/boot/dts/spacemit/k1-orangepi-r2s.dts b/arch/riscv/boot/dts/spacemit/k1-orangepi-r2s.dts
> index 7125f2882ce8..073cc975135f 100644
> --- a/arch/riscv/boot/dts/spacemit/k1-orangepi-r2s.dts
> +++ b/arch/riscv/boot/dts/spacemit/k1-orangepi-r2s.dts
> @@ -16,8 +16,6 @@ aliases {
> i2c2 = &i2c2;
> i2c8 = &i2c8;
> serial0 = &uart0;
> - ethernet0 = ð0;
> - ethernet1 = ð1;
..
--
Yixun Lan (dlan)