From def78a419c9206f65bfcf07a0e0cfe5ed8f725c9 Mon Sep 17 00:00:00 2001 From: Sven Rademakers Date: Wed, 7 Aug 2024 09:38:29 +0100 Subject: [PATCH] enable OUI assigned mac addresses --- tp2bmc/board/tp2bmc/sun8i-t113s-turing-pi2.dtsi | 9 +++++++-- tp2bmc/board/tp2bmc/uboot_defconfig | 1 + tp2bmc/configs/tp2bmc_defconfig | 2 +- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/tp2bmc/board/tp2bmc/sun8i-t113s-turing-pi2.dtsi b/tp2bmc/board/tp2bmc/sun8i-t113s-turing-pi2.dtsi index 2631ea3b..89a2268c 100644 --- a/tp2bmc/board/tp2bmc/sun8i-t113s-turing-pi2.dtsi +++ b/tp2bmc/board/tp2bmc/sun8i-t113s-turing-pi2.dtsi @@ -213,10 +213,15 @@ eeprom@50 { compatible = "microchip,24c02", "atmel,24c02"; reg = <0x50>; - vcc-supply = <®_3v3>; - pagesize = <16>; + + #address-cells = <1>; + #size-cells = <1>; + + mac_address: mac-address@2c { + reg = <0x2c 0x06>; + }; }; ethernet_switch: ethernet-switch@5c { diff --git a/tp2bmc/board/tp2bmc/uboot_defconfig b/tp2bmc/board/tp2bmc/uboot_defconfig index ca39b24d..a252781a 100644 --- a/tp2bmc/board/tp2bmc/uboot_defconfig +++ b/tp2bmc/board/tp2bmc/uboot_defconfig @@ -67,3 +67,4 @@ CONFIG_USB_FUNCTION_ACM=y CONFIG_USB_MUSB_GADGET=y CONFIG_USE_DEFAULT_ENV_FILE=y CONFIG_VERSION_VARIABLE=y +CONFIG_NVMEM=y diff --git a/tp2bmc/configs/tp2bmc_defconfig b/tp2bmc/configs/tp2bmc_defconfig index 0254e62b..117f2fee 100644 --- a/tp2bmc/configs/tp2bmc_defconfig +++ b/tp2bmc/configs/tp2bmc_defconfig @@ -44,7 +44,7 @@ BR2_TARGET_UBOOT=y BR2_TARGET_UBOOT_BUILD_SYSTEM_KCONFIG=y BR2_TARGET_UBOOT_CUSTOM_GIT=y BR2_TARGET_UBOOT_CUSTOM_REPO_URL="https://github.com/turing-machines/u-boot.git" -BR2_TARGET_UBOOT_CUSTOM_REPO_VERSION="915b9b535920b9366cb16d26d943d8b1a87db066" +BR2_TARGET_UBOOT_CUSTOM_REPO_VERSION="c2150644e5106e8212d160747606908beb8d1de8" BR2_TARGET_UBOOT_USE_CUSTOM_CONFIG=y BR2_TARGET_UBOOT_CUSTOM_CONFIG_FILE="$(BR2_EXTERNAL_TP2BMC_PATH)/board/tp2bmc/uboot_defconfig" BR2_TARGET_UBOOT_NEEDS_DTC=y