Jump to content
  • 1

u-boot tftp on zybo z7


stevers

Question

 

Trying to get the petalinux u-boot tftpboot to connect from a tftp server from a zybo-z7. The peltalinux demo was obtained from https://digilent.com/reference/programmable-logic/zybo-z7/demos/petalinux. The network configuration between tftp server and zybo is through a switch.

The tftp server is configured as below:

$ cat /etc/default/tftpd-hpa
TFTP_USERNAME="tftp"
TFTP_DIRECTORY="/var/lib/tftpboot"
TFTP_ADDRESS=":69"
TFTP_OPTIONS="--secure"

$ ll /var/lib | grep tftpboot
drwxrwxrwx   4 tftp          tftp          4096 Nov 26 11:54 tftpboot/

$ ll /var/lib/tftpboot/ | grep system.bit
-rw-r--r--   1 tftp tftp    978568 Nov 26 11:54 system.bit
 

The server has been restarted:

sudo systemctl restart tftpd-hpa

When attempting a tftp transfer a connection does not seem to be made to the server at 192.168.1.28 (timeouts):

Zynq> printenv ipaddr                            
ipaddr=192.168.1.150
Zynq> tftpboot 0x1000000 192.168.1.28:system.bit

Using ethernet@e000b000 device
TFTP from server 192.168.1.28; our IP address is 192.168.1.150
Filename 'system.bit'.
Load address: 0x1000000
Loading: T T T T ...

pings from u-boot seems ok:

Zynq> ping 192.168.1.28
Using ethernet@e000b000 device
host 192.168.1.28 is alive

pings from tftp server to zybo only work when the zybo u-boot tftp transfer is being attempted. When u-boot is not trying to tftp from tftp server to zybo fail as follows:

tftp_server$ ping 192.168.1.150
PING 192.168.1.150 (192.168.1.150) 56(84) bytes of data.
From 192.168.1.28 icmp_seq=1 Destination Host Unreachable
From 192.168.1.28 icmp_seq=2 Destination Host Unreachable
From 192.168.1.28 icmp_seq=3 Destination Host Unreachable

When u-boot is trying to tftp from tfto server to zybo fail as follows:

$ ping 192.168.1.150
PING 192.168.1.150 (192.168.1.150) 56(84) bytes of data.
64 bytes from 192.168.1.150: icmp_seq=1 ttl=64 time=0.196 ms
64 bytes from 192.168.1.150: icmp_seq=2 ttl=64 time=0.171 ms
64 bytes from 192.168.1.150: icmp_seq=3 ttl=64 time=0.130 ms
 

Anyone have success for tftp loading images from tftp server to zybo petalinux u-boot ?

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...