Skip to contentSkip to conversation

configs: sama5d27_wlsom1_ek: Select CONFIG_NET_RANDOM_ETHADDR

PATCH In review Fabio Estevam 2 participants 5 messages Apr 8, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 configs: sama5d27_wlsom1_ek: Select CONFIG_NET_RANDOM_ETHADDR

From: Fabio Estevam <[email protected]>

Currently, Ethernet fails to probe due to the lack of a valid MAC address:

```
Net:   
Error: ethernet@f8008000 No valid MAC address found.
No ethernet found.
```

Select CONFIG_NET_RANDOM_ETHADDR so that a random MAC address is generated and Ethernet can work by default.

---
 configs/sama5d27_wlsom1_ek_mmc_defconfig       | 1 +
 configs/sama5d27_wlsom1_ek_qspiflash_defconfig | 1 +
 2 files changed, 2 insertions(+)
configs/sama5d27_wlsom1_ek_mmc_defconfig +1 -0
index 378a8af20810..171081310904 100644
@@ -72,6 +72,7 @@ CONFIG_SPL_OF_CONTROL=y
 CONFIG_OF_SPL_REMOVE_PROPS="interrupts interrupt-parent dmas dma-names"
 CONFIG_ENV_IS_IN_FAT=y
 CONFIG_SYS_RELOC_GD_ENV_ADDR=y
+CONFIG_NET_RANDOM_ETHADDR=y
 CONFIG_SPL_DM=y
 CONFIG_SPL_DM_SEQ_ALIAS=y
 CONFIG_CLK=y
configs/sama5d27_wlsom1_ek_qspiflash_defconfig +1 -0
index 6b75825a13e6..f0831ffe4c52 100644
@@ -76,6 +76,7 @@ CONFIG_SPL_OF_CONTROL=y
 CONFIG_OF_SPL_REMOVE_PROPS="interrupts interrupt-parent dmas dma-names"
 CONFIG_ENV_IS_IN_SPI_FLASH=y
 CONFIG_SYS_RELOC_GD_ENV_ADDR=y
+CONFIG_NET_RANDOM_ETHADDR=y
 CONFIG_SPL_DM=y
 CONFIG_SPL_DM_SEQ_ALIAS=y
 CONFIG_CLK=y
Signature · 1 line
2.34.1
#1 lore raw
Quoted 11 lines · Fabio Estevam

From: Fabio Estevam <[email protected]>

Currently, Ethernet fails to probe due to the lack of a valid MAC address:

```
Net:   
Error: ethernet@f8008000 No valid MAC address found.
No ethernet found.
```

Select CONFIG_NET_RANDOM_ETHADDR so that a random MAC address is generated and Ethernet can work by default.

At91 boards have a eeprom memory that has an unique MAC address. Some boards have a QSPI memory that keeps it.
The fact that no MAC is available makes me think some of these drivers are not working. I suggest you debug that, and do not enable random MAC address.

Quoted 31 lines
---
 configs/sama5d27_wlsom1_ek_mmc_defconfig       | 1 +
 configs/sama5d27_wlsom1_ek_qspiflash_defconfig | 1 +
 2 files changed, 2 insertions(+)
configs/sama5d27_wlsom1_ek_mmc_defconfig +1 -0
index 378a8af20810..171081310904 100644
@@ -72,6 +72,7 @@ CONFIG_SPL_OF_CONTROL=y
 CONFIG_OF_SPL_REMOVE_PROPS="interrupts interrupt-parent dmas dma-names"
 CONFIG_ENV_IS_IN_FAT=y
 CONFIG_SYS_RELOC_GD_ENV_ADDR=y
+CONFIG_NET_RANDOM_ETHADDR=y
 CONFIG_SPL_DM=y
 CONFIG_SPL_DM_SEQ_ALIAS=y
 CONFIG_CLK=y
configs/sama5d27_wlsom1_ek_qspiflash_defconfig +1 -0
index 6b75825a13e6..f0831ffe4c52 100644
@@ -76,6 +76,7 @@ CONFIG_SPL_OF_CONTROL=y
 CONFIG_OF_SPL_REMOVE_PROPS="interrupts interrupt-parent dmas dma-names"
 CONFIG_ENV_IS_IN_SPI_FLASH=y
 CONFIG_SYS_RELOC_GD_ENV_ADDR=y
+CONFIG_NET_RANDOM_ETHADDR=y
 CONFIG_SPL_DM=y
 CONFIG_SPL_DM_SEQ_ALIAS=y
 CONFIG_CLK=y
#2 lore raw
Quoted 5 lines · Eugen Hristev

At91 boards have a eeprom memory that has an unique MAC address. Some boards have a QSPI memory that keeps it.
The fact that no MAC is available makes me think some of these drivers are not working. I suggest you debug that, and do not enable random MAC address.

Yes, it seems this is the case, as the following SPI NOR error is seen:

jedec_spi_nor spi_flash@0: unrecognized JEDEC id bytes: ff, ff, ff

#3 lore raw
Quoted 3 lines · Fabio Estevam

Yes, it seems this is the case, as the following SPI NOR error is seen:

jedec_spi_nor spi_flash@0: unrecognized JEDEC id bytes: ff, ff, ff

After opening jumper J8:

SF: Detected sst26vf064b with page size 256 Bytes, erase size 4 KiB, total 8 MiB
Net: eth0: ethernet@f8008000

QSPI is detected and Ethernet is functional.

This patch can be discarded, thanks.

#4 lore raw
Quoted 6 lines · Fabio Estevam
Quoted 3 lines · Fabio Estevam

Yes, it seems this is the case, as the following SPI NOR error is seen:

jedec_spi_nor spi_flash@0: unrecognized JEDEC id bytes: ff, ff, ff

Quoted 8 lines

After opening jumper J8:

SF: Detected sst26vf064b with page size 256 Bytes, erase size 4 KiB, total 8 MiB
Net: eth0: ethernet@f8008000

QSPI is detected and Ethernet is functional.

This patch can be discarded, thanks.

Great, thanks for sharing , other people may also have this issue.