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 & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • 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 & Tria Boards Community
  • Avnet Boards Forums
  • More
  • Cancel
Avnet Boards Forums
Ultra96 Hardware Design Pynq with Ultra96
  • 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
  • Replies 10 replies
  • Subscribers 347 subscribers
  • Views 1266 views
  • Users 0 members are here
Related

Pynq with Ultra96

micallef25
micallef25 over 6 years ago

Hi All,

 

I am using SdSoC to generate a bit and elf file.

 

Is there a way to execute these on a PYNQ platform? I can execute elf that have no associated bitstreams no problem with PYNQ

 

But when I try to execute an elf that has hardware nothing happens. I read about the PYNQ overlays but was a bit confused. Do I use the overlays to re program the fabric and then I can execute the elf?

 

Thanks!

  • Sign in to reply
  • Cancel

Top Replies

  • drozwood90
    drozwood90 over 6 years ago +1
    Hi there, While what you are asking is technically, probably possible, it is not a supported flow at this time. As python has the ability to launch applications, you would need to ensure that all the proper…
  • narrucmot
    narrucmot over 6 years ago in reply to micallef25 +1
    Hi Eric, Where do you have the other end of the Ethernet cable connected? Directly to the host PC, or to a router/switch? If directly to a PC (and if the PC is not running a DHCP server) you will need…
  • narrucmot
    narrucmot over 6 years ago in reply to micallef25 +1
    I have been able to achieve ~740Mbps with the TU3-ETG adapter on my Ultra96-V2 board: This test was with the DisplayPort monitor connected, other USB ports idle, and WiFi inactive. The iperf3 server was…
  • jhane
    jhane over 6 years ago

    pynq is python so I'm not sure how that would help you.  However, if you build an image with the fpga manager it supports loading of bitstreams and linux devicetree overlays.  I haven't used SDSoC so can't say for sure this is what you  need but it sounds closer since it doesn't use python.

     

    jeff

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • micallef25
    micallef25 over 6 years ago

    Thanks for the response. SDSoC actually builds a vivado project and I can get the tcl and bit stream that way unfortunately now I have a new problem where it seems something is wrong with the DMA SG channel.... giving an error on boot

     

    ERROR: DMASG dma open failed -1

     

    Always one problem after the other it seems... Thanks for the response!

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • drozwood90
    drozwood90 over 6 years ago

    Hi there,

     

    While what you are asking is technically, probably possible, it is not a supported flow at this time.

    As python has the ability to launch applications, you would need to ensure that all the proper hooks and drivers are in place through modifications of the operating system.  I am not familiar enough with PYNQ's architecture to say that it is even possible.  There might also be OS dependency issues as I believe that PYNQ is Ubuntu based and SDSoC uses PetaLinux for it's root fs.  Beyond that, if you go through UG1146, you will see that we actually end up installing a driver, which basically opens up a memory location for the SDSoC tools to be able to hook into the data movers, interrupts, clock controllers, etc. that are necessary for the actions of the unassociated clock domains of the processor to interact with the highly constrained clock domains of the PL and by extension the accelerator that you are trying to interact with.

     

    Is there a reason you cannot just use the SDSoC flow as it is?  To launch a PetaLinux based elf, you just run the command from the console.  As long as you are not changing the PL during development, you do not even have to change the PL (generally speaking), just the elf, which can be done over SFTP, and then re-executed from the console.  Please note that buyer beware if you change something that DOES change the PL, you will need a way to reload the PL or modify the boot.bin and reboot the system.

     

    --Dan

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Cancel
  • micallef25
    micallef25 over 6 years ago in reply to drozwood90

    Hi Dan,

     

    Thank you for the response. So it does seem like PetaLinux may be the way to go. The reason I used Pynq was because it already booted up as a server, and I could change the PL pretty easily with their scripts provided.

     

    All I simply want to do is simply have one u96 as a server the other as a client and they are hooked up via ethernet. I believe when I tried doing this with petalinux I had some issues driving data out of an usb3 to ethernet adaptor. I will try again. Maybe I need additional packages?

     

    Do you know what work is required to do this? I thought it would be as easy as opening a socket and writing to it. 

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • micallef25
    micallef25 over 6 years ago in reply to drozwood90

    Tried petalinux and when I plug in usb ethernet adaptor it recognizes the device and some stuff pops up in the terminal. Run ifconfig and only local host shows. Any one have additional ideas?

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • drozwood90
    drozwood90 over 6 years ago in reply to micallef25

    Hi there,

     

    While I do not have additional feedback, I can only say that the USB ethernet adapter you use might matter.  Just because "stuff" popped up on the terminal, doesn't mean it is good stuff.

    You'll want to track down a compatible ethernet adapter.  It is also possible you need to go into the kernel and add a driver.  I know on some of our other products you have to do that.

    You can try searching around, that might result in a compatible adapter.

     

    I don't actually have a list as I do not use that, and I do not really have any instructions about adding drivers as we support the WiFi option.

     

    --Dan

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • micallef25
    micallef25 over 6 years ago in reply to drozwood90

    Hi Dan,

     

    Thanks! that is more helpful than you think. my colleague is able to connect with his usb to ethernet so it seems that mine is on the list of perhaps not compatible.

     

    Now to find some more like his. Thanks for the help!

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • narrucmot
    narrucmot over 6 years ago in reply to micallef25

    Hi Eric,

     

    Where do you have the other end of the Ethernet cable connected?  Directly to the host PC, or to a router/switch?  If directly to a PC (and if the PC is not running a DHCP server) you will need to configure the host and target with static IP addresses.  If connected to a router then, like Dan says, you may have a USB-Ethernet adapter that doesn't play nice with the OS image.  One adapter that we know works is the TRENDnet TU3-ETG.  You can buy it on Amazon:

     

    https://www.amazon.com/TRENDnet-Ethernet-Chromebook-Specific-TU3-ETG/dp/B00FFJ0RKE/ref=sr_1_2_sspa?keywords=tu3-etg&qid=…

     

    I hope this helps.

     

    --Tom

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Cancel
  • micallef25
    micallef25 over 6 years ago in reply to narrucmot

    Thanks, Tom

     

    Will have to buy this because yes, it seems mine is not playing nice.

     

    Do you perhaps know the speed of this? I was reading here: Ultra96 Accessories

     

    and noticed that each is performing differently.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • narrucmot
    narrucmot over 6 years ago in reply to micallef25

    I have been able to achieve ~740Mbps with the TU3-ETG adapter on my Ultra96-V2 board:

    image

    This test was with the DisplayPort monitor connected, other USB ports idle, and WiFi inactive.  The iperf3 server was running on my Ubuntu host.  The USB-Ethernet adapter was connected to my GbE switch.

     

    --Tom

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • 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