configs: sama5d27_wlsom1_ek: Select CONFIG_NET_RANDOM_ETHADDR
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
@@ -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
@@ -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
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_ETHADDRso 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
Signed-off-by Fabio Estevam <[email protected]>--- 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@@ -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=yconfigs/sama5d27_wlsom1_ek_qspiflash_defconfig +1
-0@@ -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
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
Quoted 3 lines · Fabio Estevam
Yes, it seems this is the case, as the following SPI NOR error is seen:
jedec_spi_norspi_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.
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_norspi_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@f8008000QSPI is detected and Ethernet is functional.
This patch can be discarded, thanks.
Great, thanks for sharing , other people may also have this issue.