Starting with V1.6.0, U-Boot now supports networking using the Zynq GEM ethernet.

The primary features now available are DHCP, NFS, and ping.

To use these features, enter the RCE bootloader shell.

To obtain an IP address via DHCP:

Example output:

zynq-uboot> setenv autoload no
zynq-uboot> dhcp
PHY not detected, assuming PHY at address 0
BOOTP broadcast 1
DHCP client bound to address 192.168.204.34

To load a file over NFS into memory:

Example output:

zynq-uboot> setenv serverip 192.168.204.12
zynq-uboot> nfs 0x700000 /u1/reg/users/smaldona/dat/cscnrc/fw/uImage
PHY not detected, assuming PHY at address 0
Gem.e000b000:0 is connected to Gem.e000b000. Reconnecting to Gem.e000b000
Using Gem.e000b000 device
File transfer via NFS from server 192.168.204.12; our IP address is 192.168.204.34
Filename '/u1/reg/users/smaldona/dat/cscnrc/fw/uImage'.
Load address: 0x700000
Loading: #################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
####
done
Bytes transferred = 3678504 (382128 hex)

Once the file is loaded into memory, it can then be written to the SD card using the fatwrite command.

SeeĀ Restoring a File Using the Bootloader for instructions on using the fatwrite command.

To ping an IP address:

Example Output:

zynq-uboot> ping 192.168.204.12
PHY not detected, assuming PHY at address 0
Gem.e000b000:0 is connected to Gem.e000b000. Reconnecting to Gem.e000b000
Using Gem.e000b000 device
host 192.168.204.12 is alive