Skip to contentSkip to conversation

Enable NET_RANDOM_ETHADDR config options for

PATCH In review Chintan Vankar 3 participants 7 messages Sep 25 – Sep 28

lore
Share & tools
lore
#0 lore raw

cover Enable NET_RANDOM_ETHADDR config options for

SK-AM64 supports Ethernet boot, to get the MAC address during R5 and A53 stage enable NET_RANDOM_ETHADDR config options.

This series is based on commit '9e002445cd0d' of origin/next branch of u-boot.

Chintan Vankar (2):
configs: am64x_evm_r5_defconfig: Enable NET_RANDOM_ETHADDR config
option
configs: am64x_evm_a53_defconfig: Enable NET_RANDOM_ETHADDR config
option

 configs/am64x_evm_a53_defconfig | 1 +
 configs/am64x_evm_r5_defconfig  | 1 +
 2 files changed, 2 insertions(+)
Signature · 1 line
2.34.1
#1 lore raw

PATCH 1/2 configs: am64x_evm_r5_defconfig: Enable NET_RANDOM_ETHADDR config option

Enable NET_RANDOM_ETHADDR config options which provides random MAC address to proceed with the Ethernet boot.

---
 configs/am64x_evm_r5_defconfig | 1 +
 1 file changed, 1 insertion(+)
configs/am64x_evm_r5_defconfig +1 -0
index 0ed15f5d553..0bd8bf27e6d 100644
@@ -162,3 +162,4 @@ CONFIG_USB_GADGET_PRODUCT_NUM=0x6165
 CONFIG_USB_GADGET_DOWNLOAD=y
 CONFIG_SPL_DFU=y
 CONFIG_FS_FAT_MAX_CLUSTSIZE=16384
+CONFIG_NET_RANDOM_ETHADDR=y
Signature · 1 line
2.34.1
#2 lore raw

PATCH 2/2 configs: am64x_evm_a53_defconfig: Enable NET_RANDOM_ETHADDR config option

In reply to Chintan Vankar

Enable NET_RANDOM_ETHADDR config options which provides random MAC address to proceed with the Ethernet boot.

---
 configs/am64x_evm_a53_defconfig | 1 +
 1 file changed, 1 insertion(+)
configs/am64x_evm_a53_defconfig +1 -0
index 3a35df830e3..261ca6a3ad5 100644
@@ -200,5 +200,6 @@ CONFIG_SPL_DFU=y
 CONFIG_FS_FAT_MAX_CLUSTSIZE=16384
 CONFIG_EFI_SET_TIME=y
 CONFIG_DA8XX_GPIO=y
+CONFIG_NET_RANDOM_ETHADDR=y
 
 #include <configs/k3_efi_capsule.config>
Signature · 1 line
2.34.1
#3 lore raw
In reply to Chintan Vankar
Quoted 6 lines · Chintan Vankar

SK-AM64 supports Ethernet boot, to get the MAC address during R5 and A53 stage enable NET_RANDOM_ETHADDR config options.

This series is based on commit '9e002445cd0d' of origin/next branch of u-boot.

Why not use the actual address allocated for the device via CTRLMMR_MAC_IDx registers? I guess thats what ROM uses for downloading the initial bootloader?

Quoted 10 lines

Chintan Vankar (2):
configs: am64x_evm_r5_defconfig: Enable NET_RANDOM_ETHADDR config
option
configs: am64x_evm_a53_defconfig: Enable NET_RANDOM_ETHADDR config
option

 configs/am64x_evm_a53_defconfig | 1 +
 configs/am64x_evm_r5_defconfig  | 1 +
 2 files changed, 2 insertions(+)
#4 lore raw

Hello Vignesh,

Quoted 6 lines · Vignesh Raghanvendra
Quoted 3 lines · Chintan Vankar

SK-AM64 supports Ethernet boot, to get the MAC address during R5 and A53 stage enable NET_RANDOM_ETHADDR config options.

Quoted 8 lines
Quoted 3 lines

This series is based on commit '9e002445cd0d' of origin/next branch of u-boot.

Why not use the actual address allocated for the device via CTRLMMR_MAC_IDx registers? I guess thats what ROM uses for downloading the initial bootloader?

The way to configure CTRLMMR MAC in AM64 for later stages is by configuring "ti,syscon-efuse" property in CPSW port. We are using CPSW port 2 for Ethernet boot, and "ti,syscon-efuse" is configured for cpsw
port 1. I believe we can't configure it for two ports simultaneously.

Regards,
Chintan.

Quoted 11 lines
Quoted 10 lines

Chintan Vankar (2):
configs: am64x_evm_r5_defconfig: Enable NET_RANDOM_ETHADDR config
option
configs: am64x_evm_a53_defconfig: Enable NET_RANDOM_ETHADDR config
option

  configs/am64x_evm_a53_defconfig | 1 +
  configs/am64x_evm_r5_defconfig  | 1 +
  2 files changed, 2 insertions(+)
#5 lore raw
Quoted 18 lines · Chintan Vankar

Hello Vignesh,

Quoted 6 lines · Vignesh Raghanvendra
Quoted 3 lines · Chintan Vankar

SK-AM64 supports Ethernet boot, to get the MAC address during R5 and A53 stage enable NET_RANDOM_ETHADDR config options.

Quoted 8 lines
Quoted 3 lines

This series is based on commit '9e002445cd0d' of origin/next branch of u-boot.

Why not use the actual address allocated for the device via CTRLMMR_MAC_IDx registers? I guess thats what ROM uses for downloading the initial bootloader?

Quoted 4 lines

The way to configure CTRLMMR MAC in AM64 for later stages is by configuring "ti,syscon-efuse" property in CPSW port. We are using CPSW
port 2 for Ethernet boot, and "ti,syscon-efuse" is configured for cpsw port 1. I believe we can't configure it for two ports simultaneously.

There's not enough MACs on fuses for all of the ethernet ports on the hardware? That would be an odd functional regression on TI parts to me...

Signature · 1 line
Tom
#6 lore raw

Hello Tom, Vignesh,

Quoted 19 lines · Tom Rini
Quoted 18 lines · Chintan Vankar

Hello Vignesh,

Quoted 14 lines · Vignesh Raghanvendra
Quoted 6 lines · Chintan Vankar

SK-AM64 supports Ethernet boot, to get the MAC address during R5 and A53 stage enable NET_RANDOM_ETHADDR config options.

This series is based on commit '9e002445cd0d' of origin/next branch of u-boot.

Why not use the actual address allocated for the device via CTRLMMR_MAC_IDx registers? I guess thats what ROM uses for downloading the initial bootloader?

Quoted 9 lines
Quoted 4 lines

The way to configure CTRLMMR MAC in AM64 for later stages is by configuring "ti,syscon-efuse" property in CPSW port. We are using CPSW
port 2 for Ethernet boot, and "ti,syscon-efuse" is configured for cpsw port 1. I believe we can't configure it for two ports simultaneously.

There's not enough MACs on fuses for all of the ethernet ports on the hardware? That would be an odd functional regression on TI parts to me...

I forgot a crucial detail here, the first MAC address for Ethernet is being parsed from "efuse", and all other MAC addresses can be populated via EEPROM. I didn't take that into consideration. I will rework on this and send v2.

Regards,
Chintan.