element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Avnet Boards Forums
  • Products
  • Dev Tools
  • Avnet Boards Community
  • Avnet Boards Forums
  • More
  • Cancel
Avnet Boards Forums
Software Application Development Building Iperf with SDK for MicroZed board
  • Forum
  • Documents
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Avnet Boards Forums to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Not Answered
  • Replies 4 replies
  • Subscribers 316 subscribers
  • Views 695 views
  • Users 0 members are here
Related

Building Iperf with SDK for MicroZed board

Former Member
Former Member over 11 years ago

Hi,

I am quite new to using a MicroZed board and have very little experience with Linux etc...

Nevertheless I got the SDK installed, managed to create/build/debug a few sample applications and things appear to be going well.

As I will be need to implement an application on it which will need to pump large amounts of data across the 1000Mb ethernet link I thought iperf would be a good way to start, at least to get to know my way around using TCP/IP under Linux.
So I downloaded iperf and tried to build it using the SDK without much success becuase I got large amounts of errors. I checked it out a bit and found that "HAVE_CONFIG_H" was missing. I added that to the Symbols list for the iperf project and got a different result.

However, now it complains it is missing "config.h" which is very logical because there is a "config.win32.h" in the downloaded files but no "config.h"(it is probably a windows related file or soemthing). After a bit of additional searching I gather "config.h" is something generated for a particular board setup so that raises a few questions:

- is there a suitable "config.h" out there anywhere for the microzed board?
- Is it possible at all to build iperf for the MicroZed board using the XILINX SDK? I have read on this website that it would be impossible to really build a C++ application like it using the SDK?
- If yes: is there a downloadable ready to build anywhere for building iperf on the MicroZed board?

Any help/suggestion/useful info would be very much appreciated.

  • Sign in to reply
  • Cancel
  • zedhed
    0 zedhed over 11 years ago

    Hi fd9750,

    I think you will find that well established open source projects like Iperf are easier to build outside SDK by simply utilizing the ARM cross toolchain provided with SDK and building on a Linux machine.

    I was able to build Iperf a while back and a pre-built binary is provided as part of the "Open Source Linux Ethernet Performance Test Tutorial" which is posted under the MicroZed Reference Designs/Tutorials page:

    http://www.microzed.org/design/1519/10

    Take a look at that tutorial since it should work well for the measurements you are looking to make.

    Regards,

    -Kevin

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 11 years ago in reply to zedhed

    Hi Kevin,

    You are right: the tutorial helped but in the end I managed to build it from within the SDK as well.
    I followed all instructions in the tutorial up to and including building it via make (on a virtual CentOs 6.5 machine).
    After that I copied the whole set of files from the virtual Unix machine to the windows machine which is running the Xilinx SDK.
    I imported everything into the SDK workspace  as an existing C/C++ project with makefile and tried to build it.
    Initially that did not work because the GNUWin library which is used by the SDK to run all the Linux tools did not contain an "ar" utility.
    I found one, put it in the GNUWin folder and from that moment on it works a treat.
    By tweaking a few compiler flags in the makefile I can now even do full source level debugging.

    It makes life so much easier I am wondering why the guys who make the tutorials did not make one on how to do this.

    Regards,
    Filip

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 11 years ago

    We've successfully built iperf into our system and are using it to stress test the EMACPS Ethernet port.

    What we did was, using the XSDK GUI, select "PetaLinux SDK", then, select "Application/System Configuration" and wait for the menu to appear.  When it does, then, using the arrow keys, move the cursor down to "Benchmarking Tools".  When that menu appears, select the "iperf" entry, then exit the "Benchmarking Tools" menu, followed by exiting the "Application/System Configuration" menu.  Afterward, at the XSDK GUI, re-select "PetaLinux SDK" and select "Build All" and wait for it to complete.  You will find "iperf" in your rootfilesystem's /bin directory ready to use.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 10 years ago in reply to Former Member

    I'm trying to get the performance test going and I cannot find the PetaLinux SDK you refer to.
    Any help would be greatly appreciated.
    I also want to put the lwIP on the PetaLinux build. Does anyone know how to do that?
    BTW. I'm pretty much a noob so please be kind :)
    -Gary

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube