[PATCH 1/1] riscv: dts: spacemit: set ETH MAC from eeprom for OrangePi

Chukun Pan amadeus at jmu.edu.cn
Mon Sep 21 23:50:01 PDT 2026


Hi,

> Could you point me where the u-boot patching the MAC address?
> I'm not fully aware of this problem..

This is handled by U-Boot's fdt_fixup_ethernet() function:
https://github.com/u-boot/u-boot/blob/main/boot/fdt_support.c#L639

do_bootm_linux()
        |
boot_prep_linux()
        |
image_setup_linux()
        |
image_setup_libfdt()
        |
fdt_fixup_ethernet()

Thanks,
Chukun



More information about the linux-riscv mailing list