Ethernet in uboot

Hi,

My goal is to boot the kernel (can be on SD-card) with rootfs accessed by ethernet on some NFS server.

I modified armbianEnv.txt:

 verbosity=1
 bootlogo=false
 console=both
 disp_mode=1920x1080p60
 overlay_prefix=sun8i-h3
 rootdev=/dev/nfs
 overlays=spi-spidev uart3
 param_spidev_spi_bus=0
 param_spidev_spi_cs=0
 param_uart3_rtscts=1
 user_overlays=bananapi-m2-zero-eth0
 rootfstype=nfs
 extraargs=nfsroot=192.168.0.29:/server/nfs_shared
 usbstoragequirks=0x2537:0x1066:u,0x2537:0x1068:u 

Before I did it, I checked NFS access in working BPI system, so ethernet works fine and NFS is configured correctly.

When I boot with new configuration it hangs on starting kernel (log from serial console is below). I tried to enter UBoot console by pressing ESC but it hangs either, with no prompt symbol. I also noticed, that UBoot reports: “Net: No ethernet found”.

What is missing?

Regards,

Piotr Romaniuk

U-Boot SPL 2020.10-armbian (Apr 28 2022 - 21:02:07 +0200)
DRAM: 512 MiB
Trying to boot from MMC1


U-Boot 2020.10-armbian (Apr 28 2022 - 21:02:07 +0200) Allwinner Technology

CPU:   Allwinner H3 (SUN8I 1680)
Model: Banana Pi BPI-M2-Zero
DRAM:  512 MiB
MMC:   mmc@1c0f000: 0, mmc@1c10000: 1
Loading Environment from FAT... Unable to use mmc 0:1... In:    serial@1c28000
Out:   serial@1c28000
Err:   serial@1c28000
Net:   No ethernet found.
starting USB...
No working controllers found
Autoboot in 1 seconds
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
Found U-Boot script /boot/boot.scr
3964 bytes read in 1 ms (3.8 MiB/s)
## Executing script at 43100000
U-boot loaded from SD
Boot script loaded from mmc
362 bytes read in 2 ms (176.8 KiB/s)
10057956 bytes read in 486 ms (19.7 MiB/s)
8194096 bytes read in 403 ms (19.4 MiB/s)
Found mainline kernel configuration
34099 bytes read in 5 ms (6.5 MiB/s)
788 bytes read in 7 ms (109.4 KiB/s)
Applying kernel provided DT overlay sun8i-h3-spi-spidev.dtbo
502 bytes read in 7 ms (69.3 KiB/s)
Applying kernel provided DT overlay sun8i-h3-uart3.dtbo
612 bytes read in 3 ms (199.2 KiB/s)
Applying user provided DT overlay bananapi-m2-zero-eth0.dtbo
4185 bytes read in 6 ms (680.7 KiB/s)
Applying kernel provided DT fixup script (sun8i-h3-fixup.scr)
## Executing script at 45000000
## Loading init Ramdisk from Legacy Image at 43300000 ...
   Image Name:   uInitrd
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    10057892 Bytes = 9.6 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 43000000
   Booting using the fdt blob at 0x43000000
   Loading Ramdisk to 49668000, end 49fff8a4 ... OK
   Loading Device Tree to 495f7000, end 49667fff ... OK

Starting kernel ...