configs: socfpga: cyclone5: Enable CONFIG_NET_RANDOM_ETHADDR
PATCH 1/1 configs: socfpga: cyclone5: Enable CONFIG_NET_RANDOM_ETHADDR
Enable random ethaddr CONFIG_NET_RANDOM_ETHADDR for Cyclone 5.
Ethernet failed to work if ethaddr is empty when Ethernet driver is probed. Setting ethaddr in Uboot command prompt can't solve this. Enable random ethaddr to solve it.
Fix issue below:
=> setenv ethaddr 00:07:ed:00:64:04
=> setenv ethaddr1 00:07:ed:00:78:04
=> setenv ethaddr2 00:07:ed:00:8c:04
=> dhcpmdio_register: non unique device name 'ethernet at ff702000'mdio_register: non unique device name 'ethernet at ff702000'mdio_register: non unique device name 'ethernet at ff702000'mdio_register: non unique device name 'ethernet at ff702000' No ethernet found.
--- configs/socfpga_cyclone5_defconfig | 1 + 1 file changed, 1 insertion(+)
configs/socfpga_cyclone5_defconfig +1 -0
@@ -37,6 +37,7 @@ CONFIG_CMD_UBI=y CONFIG_DEFAULT_DEVICE_TREE="socfpga_cyclone5_socdk" CONFIG_ENV_IS_IN_MMC=y CONFIG_SYS_RELOC_GD_ENV_ADDR=y +CONFIG_NET_RANDOM_ETHADDR=y CONFIG_SPL_DM_SEQ_ALIAS=y CONFIG_DFU_MMC=y CONFIG_DWAPB_GPIO=y
Signature · 1 line
2.19.0
PATCH 1/1 configs: socfpga: cyclone5: Enable CONFIG_NET_RANDOM_ETHADDR
Quoted 28 lines · Ley Foon Tan
Enable random ethaddr
CONFIG_NET_RANDOM_ETHADDRfor Cyclone 5.Ethernet failed to work if ethaddr is empty when Ethernet driver is probed. Setting ethaddr in Uboot command prompt can't solve this. Enable random ethaddr to solve it.
Fix issue below:
=> setenv ethaddr 00:07:ed:00:64:04
=> setenv ethaddr1 00:07:ed:00:78:04
=> setenv ethaddr2 00:07:ed:00:8c:04
=> dhcpmdio_register: non unique device name 'ethernet atff702000'mdio_register: non unique device name 'ethernet atff702000'mdio_register: non unique device name 'ethernet atff702000'mdio_register: non unique device name 'ethernet atff702000' No ethernet found.Signed-off-by Ley Foon Tan <[email protected]>--- configs/socfpga_cyclone5_defconfig | 1 + 1 file changed, 1 insertion(+)configs/socfpga_cyclone5_defconfig +0
-0
configs/socfpga_cyclone5_defconfig CONFIG_CMD_UBI=y
Quoted 8 lines
configs/socfpga_cyclone5_defconfig +1
-1@@ -37,6 +37,7 @@ CONFIG_CMD_UBI=y CONFIG_DEFAULT_DEVICE_TREE="socfpga_cyclone5_socdk" CONFIG_ENV_IS_IN_MMC=y CONFIG_SYS_RELOC_GD_ENV_ADDR=y +CONFIG_NET_RANDOM_ETHADDR=y CONFIG_SPL_DM_SEQ_ALIAS=y CONFIG_DFU_MMC=y CONFIG_DWAPB_GPIO=y --
Any comment on this patch?
Regards
Ley Foon
PATCH 1/1 configs: socfpga: cyclone5: Enable CONFIG_NET_RANDOM_ETHADDR
Quoted 24 lines · Ley Foon Tan
Quoted 23 lines · Ley Foon Tan
Enable random ethaddr
CONFIG_NET_RANDOM_ETHADDRfor Cyclone 5.Ethernet failed to work if ethaddr is empty when Ethernet driver is probed. Setting ethaddr in Uboot command prompt can't solve this. Enable random ethaddr to solve it.
Fix issue below:
=> setenv ethaddr 00:07:ed:00:64:04
=> setenv ethaddr1 00:07:ed:00:78:04
=> setenv ethaddr2 00:07:ed:00:8c:04
=> dhcpmdio_register: non unique device name 'ethernet atff702000'mdio_register: non unique device name 'ethernet atff702000'mdio_register: non unique device name 'ethernet atff702000'mdio_register: non unique device name 'ethernet atff702000' No ethernet found.Signed-off-by Ley Foon Tan <[email protected]>--- configs/socfpga_cyclone5_defconfig | 1 + 1 file changed, 1 insertion(+)
Quoted 15 lines
configs/socfpga_cyclone5_defconfig CONFIG_CMD_UBI=y
Quoted 13 lines
configs/socfpga_cyclone5_defconfig +1
-1@@ -37,6 +37,7 @@ CONFIG_CMD_UBI=y CONFIG_DEFAULT_DEVICE_TREE="socfpga_cyclone5_socdk" CONFIG_ENV_IS_IN_MMC=y CONFIG_SYS_RELOC_GD_ENV_ADDR=y +CONFIG_NET_RANDOM_ETHADDR=y CONFIG_SPL_DM_SEQ_ALIAS=y CONFIG_DFU_MMC=y CONFIG_DWAPB_GPIO=y --Any comment on this patch?
OK, this one is wrong. Clearly setting ethernet address in the U-Boot shell should fix the problem at runtime ; and the probe shouldn't fail due to missing ethernet address at boot time. Can you dig into that ?