[PATCH 4/5] riscv: defconfig: Enable AT24 EEPROM and ONIE TLV layout

E Shattow e at freeshell.de
Thu Nov 5 02:42:11 PST 2026


On 11/5/26 00:23, Troy Mitchell wrote:
> The OrangePi RV2 and R2S device trees take the Ethernet MAC address from
> the ONIE TLV data in an AT24 EEPROM, and the K3 CoM260 module stores its
> MAC address the same way. Without the EEPROM driver and the ONIE TLV
> layout, the MAC address lookup keeps returning -EPROBE_DEFER and the
> Ethernet controller never probes unless the bootloader passes a MAC
> address in the device tree.
> 
> Enable both drivers as built-in so the MAC address is available as soon
> as the Ethernet driver probes, including for network root file systems.

This does not make sense for platforms which have no use for EEPROM
driver in Linux userspace.

> 
> Signed-off-by: Troy Mitchell <troy.mitchell at linux.spacemit.com>
> ---
>  arch/riscv/configs/defconfig | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/arch/riscv/configs/defconfig b/arch/riscv/configs/defconfig
> index 04ae305d5511..a76f801d8eed 100644
> --- a/arch/riscv/configs/defconfig
> +++ b/arch/riscv/configs/defconfig
> @@ -276,6 +276,8 @@ CONFIG_PHY_STARFIVE_JH7110_DPHY_RX=m
>  CONFIG_PHY_STARFIVE_JH7110_PCIE=m
>  CONFIG_PHY_STARFIVE_JH7110_USB=m
>  CONFIG_LIBNVDIMM=y
> +CONFIG_NVMEM_LAYOUT_ONIE_TLV=y
> +CONFIG_EEPROM_AT24=y

Enabled as module, please.

>  CONFIG_NVMEM_SUNXI_SID=y
>  CONFIG_EXT4_FS=y
>  CONFIG_EXT4_FS_POSIX_ACL=y
> 

-E



More information about the linux-riscv mailing list