UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Participant tmonaghan84
Participant
1,294 Views
Registered: ‎04-19-2018

Uboot Slow TFTP

Hi I am using  MPSoC (ZCU104) evaluation board, I am loading files over TFTP although these are rather slow ~900KB/s

 

I have run mii info, showing the link is synchronising at 1000BaseT;

ZynqMP> mii info
PHY 0x0C: OUI = 0x80028, Model = 0x23, Rev = 0x01, 1000baseT, FDX

The TFTP transfer is rather slow...

 

ZynqMP> tftpboot 0x1000000 Image
Using ethernet@ff0e0000 device
TFTP from server 192.168.0.100; our IP address is 192.168.0.50
Filename 'Image'.
Load address: 0x1000000
Loading: #################################################################
   <Removed large section here displaying the TFTP progress, (no errors)
         #################################################################
         #############################################
         912.1 KiB/s
done
Bytes transferred = 153162240 (9211200 hex)

I have already increased the block size to 1468;

ZynqMP> printenv blocksize
blocksize=1468

I have sniffed the traffic with Wireshark and no errors are displayed.

I have tried disabling the firewall and no difference.

 

I have locally TFTPed a file on the server and acheived ~5MB/s

 

Any thoughts appreciated.

Tags (4)
0 Kudos
9 Replies
Xilinx Employee
Xilinx Employee
1,230 Views
Registered: ‎02-07-2018

Re: Uboot Slow TFTP

HI @tmonaghan84

 

I tried same on zcu102 board with prebuilt images itself . and we can observer the speed almost around 3.3 MiB/s, I am using the 2018.2 BSP images.

 

ZynqMP> ping Xilinx Zynq MP First Stage Boot Loader
Release 2018.2 Jun 15 2018 - 04:17:37
NOTICE: ATF running on XCZU9EG/silicon v4/RTL5.1 at 0xfffea000
NOTICE: BL31: Secure code at 0x0
NOTICE: BL31: Non secure code at 0x10080000
NOTICE: BL31: v1.4(release):xilinx-v2018.1-4-g93a69a5a
NOTICE: BL31: Built : 10:25:00, Jun 15 2018
PMUFW: v1.0


U-Boot 2018.01 (Jun 15 2018 - 04:10:27 -0600) Xilinx ZynqMP ZCU102 rev1.0

I2C: ready
DRAM: 4 GiB
EL Level: EL2
Chip ID: zu9eg
MMC: sdhci@ff170000: 0 (SD)
SF: Detected n25q512a with page size 512 Bytes, erase size 128 KiB, total 128 MiB
*** Warning - bad CRC, using default environment

In: serial@ff000000
Out: serial@ff000000
Err: serial@ff000000
Model: ZynqMP ZCU102 Rev1.0
Board: Xilinx ZynqMP
Bootmode: LVL_SHFT_SD_MODE1
Net: ZYNQ GEM: ff0e0000, phyaddr c, interface rgmii-id

Warning: ethernet@ff0e0000 MAC addresses don't match:
Address in ROM is 00:0a:35:03:2c:60
Address in environment is 00:0a:35:00:22:01
eth0: ethernet@ff0e0000
U-BOOT for xilinx-zcu102-2018_2

ethernet@ff0e0000 Waiting for PHY auto negotiation to complete.user interrupt!
Hit any key to stop autoboot: 0

ZynqMP> dhcp
ethernet@ff0e0000 Waiting for PHY auto negotiation to complete.. done
BOOTP broadcast 1
BOOTP broadcast 2
BOOTP broadcast 3
BOOTP broadcast 4
DHCP client bound to address 10.175.32.243 (3176 ms)
ZynqMP> setenv serverip 10.175.177.6
ZynqMP> tftpb 0x10000000 image.ub
Using ethernet@ff0e0000 device
TFTP from server 10.175.177.6; our IP address is 10.175.32.243; sending through gateway 10.175.33.254
Filename 'image.ub'.
Load address: 0x10000000
Loading: #################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
###########################
3.3 MiB/s
done
Bytes transferred = 26424716 (193358c hex)


ZynqMP> mii info
PHY 0x0C: OUI = 0x80028, Model = 0x23, Rev = 0x01, 1000baseT, FDX
ZynqMP>

 

I just wan to know how your board setup, is it directly connected to your local machine or is it connected to any switch .

 

In my case my board connected to network switch. and my machine is in same network.

 

 

Thanks & regards

Aravind

 

----------------------------------------------------------------------------------------------
Kindly note- Please mark the Answer as "Accept as solution" if information provided is helpful.

Give Kudos to a post which you think is helpful and reply oriented.
----------------------------------------------------------------------------------------------

 

Participant tmonaghan84
Participant
1,217 Views
Registered: ‎04-19-2018

Re: Uboot Slow TFTP

Hi @aravindb

 

Thanks for your input.

 

I have the ZCU104 board connected directly to a USB network adapter plugged into the laptop (no switch), using a standard patch cable.

I am running Windows 10 on the laptop with a VM hosting Ubuntu 16.04 running the TFTP server  (tftpd-hpa).

 

The network interface is bridged to the Ubuntu VM.

 

I have also tried hosting the TFTP server on windows (TFTPD64) and saw similar speeds.

 

I will try and run through a switch, and see if that makes any difference, although I do not understand how this could impede the speed?

0 Kudos
Participant tmonaghan84
Participant
1,204 Views
Registered: ‎04-19-2018

Re: Uboot Slow TFTP

I have tried this with a Switch in between the host and target,with simlar speeds.

 

ZynqMP> tftpb 0x10000000 image.ub
Using ethernet@ff0e0000 device
TFTP from server 192.168.0.100; our IP address is 192.168.0.50
Filename 'image.ub'.
Load address: 0x10000000
Loading: #################################################################
#################################################################
<Removed large section of transfer, no errors>
#################################################################
#####################################################
821.3 KiB/s
done
Bytes transferred = 58973136 (383dbd0 hex)
ZynqMP>

 

0 Kudos
Xilinx Employee
Xilinx Employee
1,194 Views
Registered: ‎02-07-2018

Re: Uboot Slow TFTP

HI @tmonaghan84

 

Can you please let me know what is the software version you are using.

I have verified with 2018.2 SW version.

 

Thanks & regards

Aravind

Participant tmonaghan84
Participant
1,182 Views
Registered: ‎04-19-2018

Re: Uboot Slow TFTP

I am using 2018.2 for FSBL, U-boot and PetaLinux.

 

Xilinx Zynq MP First Stage Boot Loader
Release 2018.2   Aug  6 2018  -  13:23:02
U-Boot 2018.01 (Aug 09 2018 - 07:32:19 +0100) Xilinx ZynqMP ZCU104 revC
xilinx-zcu104-2018_2 login:


I guess my configuration is different in some way.
Could you advise me where I can obtain the prebuilt binaries you used to test with above.

Thanks
Tim

 

0 Kudos
Xilinx Employee
Xilinx Employee
1,069 Views
Registered: ‎02-07-2018

Re: Uboot Slow TFTP

HI @tmonaghan84 

 

You can download the BSP for zcu104 board from this link:https://www.xilinx.com/support/download/index.html/content/xilinx/en/downloadNav/embedded-design-tools.html

I am attaching the screenshot for your reference.

 

After downloading BSP, Please create a petalinux project with below command and use the prebuilt images.

1. source petalinux-v2018.2_daily_latest/petalinux-v2018.2-final/settings.sh  -- this script will be available in petalinux installed path

2. petalinux-create -t project -s xilinx-zcu104-v2018.2-final.bsp

3. cd xilinx-zcu104-2018.2

4. cd pre-built/linux/images/

 

Thanks & regards

Aravind

 

 

screenshot_zcu104_BSP.png
Moderator
Moderator
1,055 Views
Registered: ‎09-12-2007

Re: Uboot Slow TFTP

Can you increase the blocksize
Participant tmonaghan84
Participant
983 Views
Registered: ‎04-19-2018

Re: Uboot Slow TFTP

I have increased the block size and it made little difference.

 

I have used TFTPD64 on windows and increased the anticipation window to 4k which improved it greatly , essentially the server sends out 4k before it stalls waiting for acks.

 

I think this is something to do with my configuration and not the board itself, although I have not managed to bottom this out.

 

 

Thanks for your help.

 

0 Kudos
Highlighted
Newbie aminasaleem
Newbie
348 Views
Registered: ‎02-08-2019

Re: Uboot Slow TFTP

A TFTP Server is normally utilized to send files among systems that are linked over a network. It is also known as Trivial File Transfer Protocol, which is an internet software efficacy that you users can utilize to send or accept a file from a remote system. The protocol is very simple and doesn’t offer much security to the files that are being moved. In case you go in detail then you can visit this webpage https://appuals.com/how-to-setup-and-configure-tftp-server-on-windows-10/.
There are users who don’t know how to Setup and Configure TFTP Server on Windows 10, no worries because here we have some ways to explain it to you.

Set up the TFTP Server: Just initiate the SolarWinds TFTP Server utility, tap on File and then pick the option of Configure.
1- In case you want to the server to look in the Windows System Tray just press the option of Add TFTP Server to Windows System Tray.
2- Here you are supposed to select the Server Root Directory.
3- This is where all the received files will be saved. You can also copy the files to this directory first by tapping the Browse and pick a location.
4- For sending files press the option of Send files and for receiving files tap receive files. If you want to do both then confirm that Send and Receive files box is checked. With the help of SolarWinds TFTP Server utility, users can include some extra security by permitting particular IP address to send and receive files.
5- You can do it by searching for the option of Only allow the following IP address to send/receive files and tap Add. As last step press ok to exit from the configuration window. Installation of TFTP Client).
Open the control panel and Steer to the option of Programs and features and tap Turn Windows features on or off. Find the option of TFTP Client and check the box. Press ok to install the client and wait till the procedure ends.

0 Kudos