cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
Contributor
Contributor
969 Views
Registered: ‎02-06-2017

U-boot can't connect to host via ethernet (gem3) on zcu104

Hello, 

I'm trying to use u-boot on the zcu104 board to load the image via tftp. U-boot seems to initialize fine, but when I try to load an image or even ping the host I always get an "ARP Retry count exceeded" error. I believe I've set the ipaddr, netmask and serverip environment variables correctly. The ethaddr was set by default and is read-only.

Xilinx Zynq MP First Stage Boot Loader 
Release 2019.1   May 25 2019  -  07:41:04
PMU sett��OTICE:  ATF running on XCZU7EV/silicon v4/RTL5.1 at 0xfffea000
NOTICE:  BL31: ATF handoff params at:0xfffe9e00, entries:2
NOTICE:  BL31: 0: entry:0xfffea000, flags:0x1c
NOTICE:  BL31: 1: entry:0x8000000, flags:0x10
NOTICE:  Setting up BL33 entry point to:8000000, el:2
NOTICE:  BL31: Secure code at 0x0
NOTICE:  BL31: Non secure code at 0x8000000
NOTICE:  BL31: v2.0(release):xilinx-v2019.1-dirty
NOTICE:  BL31: Built : 18:50:44, Jul 21 2019
PMUFW:  v1.1


U-Boot 2019.01-dirty (Jul 29 2019 - 18:30:48 +0100)

Model: ZynqMP ZCU104 RevC
Board: Xilinx ZynqMP
DRAM:  2 GiB
EL Level:       EL2
Chip ID:        zu7ev
MMC:   mmc@ff170000: 0
Loading Environment from FAT... OK
In:    serial@ff000000
Out:   serial@ff000000
Err:   serial@ff000000
Net:   ZYNQ GEM: ff0e0000, phyaddr c, interface rgmii-id
eth0: ethernet@ff0e0000
ZynqMP> printenv ipaddr serverip netmask ethaddr
ipaddr=192.168.2.2
serverip=192.168.2.1
netmask=255.255.255.0
ethaddr=00:0a:35:04:c3:e0
ZynqMP> ping $serverip
Using ethernet@ff0e0000 device

ARP Retry count exceeded; starting again
ping failed; host 192.168.2.1 is not alive

Does anybody have any idea what I'm doing wrong? Maybe in the configuration of the zynqmp block in Vivado? The only thing I did there was to enable all gem3 IO.

Thank  you in advance

0 Kudos
11 Replies
Highlighted
Moderator
Moderator
952 Views
Registered: ‎12-04-2016

Hi @josecm 

Did you try with zcu102 bsp images. Was it working fine?

 

0 Kudos
Highlighted
Contributor
Contributor
942 Views
Registered: ‎02-06-2017

I'm sorry. What do you mean by "bsp images"? I just now actually tried using pre-build u-boot (https://xilinx-wiki.atlassian.net/wiki/spaces/A/pages/135364615/Zynq+2019.1+Release) for the zcu104 and it is working! Some configurations I'm missing in uboot maybe?
0 Kudos
Highlighted
Contributor
Contributor
920 Views
Registered: ‎10-02-2018

Hi @josecm 

You download the zcu104 bsp for petalinux 2019.1 via this link:

https://www.xilinx.com/support/download/index.html/content/xilinx/en/downloadNav/embedded-design-tools.html

Xilinx provide a reference design that you can use instead of your own custom design if you wish.

0 Kudos
Highlighted
Contributor
Contributor
909 Views
Registered: ‎02-06-2017

Thank you for your answer. But at this point, I know the problem is somewhere in my u-boot configuration (which I need to build because I want to add custom boot commands). I've lost some time going through menuconfig network options but can't get to any conclusion.

0 Kudos
Highlighted
Moderator
Moderator
896 Views
Registered: ‎12-04-2016

Hi @josecm 

Cam you please share your HDF file?

0 Kudos
Highlighted
Contributor
Contributor
888 Views
Registered: ‎02-06-2017

Here it is the hdf file.

0 Kudos
Highlighted
Moderator
Moderator
871 Views
Registered: ‎12-04-2016

Hi @josecm 

Can you try testing the attached u-boot elf file and let me know if this works?

0 Kudos
Highlighted
Contributor
Contributor
847 Views
Registered: ‎02-06-2017

Hey shabbirk! As I said above, it is working with pre-built images of u-boot. The problem is probably that I am building my own, as I have custom commands implemented in u-boot. So, something is probably misconfigured in menuconfig.
0 Kudos
Highlighted
Moderator
Moderator
839 Views
Registered: ‎12-04-2016

Hi @josecm 

u-boot file which I had shared earlier is built from your design HDF. I would like to check if it is working at your end?

0 Kudos
Highlighted
Contributor
Contributor
819 Views
Registered: ‎02-06-2017

Thank you shabbirk, but this u-boot build also does not seem to work.

0 Kudos
Highlighted
Moderator
Moderator
714 Views
Registered: ‎12-04-2016

Hi @josecm 

Can you try this attached u-boot.elf and test it and let me know if this works?

 

0 Kudos