We are trying to do Network boot on am437x-gp-evm based custom board.
We verified Network boot on am437x-gp-evm and works fine.
With custom board RBL is able to download u-boot-spl. u-boot-spl.bin gives error NO ethernet found.
====================================================
U-Boot SPL 2020.01.-g999
WDT: Not found!
Trying to boot from eth device
No ethernet found.
bootstage_error BOOTSTAGE_ID_NET_ETH_START
No Ethernet devices found.
SPL: failed to boot from all boot devices.
=================================================
I added few debug prints. My understanding was u-boot-spl unable to identify ethernet device. i added more debug print statements but they are not comming.
diff --git a/net/eth-uclass.c b/net/eth-uclass.c
index 7d7df3f4fb..7ecf66f27f 100644
--- a/net/eth-uclass.c
+++ b/net/eth-uclass.c
@@ -411,6 +411,7 @@ int eth_initialize(void)
if (!dev) {
printf("No ethernet found.\n");
bootstage_error(BOOTSTAGE_ID_NET_ETH_START);
+ printf("bootstage_error BOOTSTAGE_ID_NET_ETH_START.\n");
} else {
char *ethprime = env_get("ethprime");
struct udevice *prime_dev = NULL;
@@ -444,7 +445,7 @@ int eth_initialize(void)
} while (dev);
if (!num_devices)
- printf("No ethernet found.\n");
+ printf("BOOTSTAGE_ID_NET_ETH_INIT No ethernet found.\n");
putc('\n');
}
Need your support in debugging this issue.