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
      • Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Vietnam
      • 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
Ultrazed Hardware Design Not able to program PL from PS using FPGA manager driver
  • 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 Verified Answer
  • Replies 2 replies
  • Subscribers 339 subscribers
  • Views 3444 views
  • Users 0 members are here
Related

Not able to program PL from PS using FPGA manager driver

Former Member
Former Member over 8 years ago

Hi,

I want to program my PL from PS in my Ultrazed board that has Zynq Ultrascale+. 


I have enabled FPGA manager in kernel configuration  and made available FPGA manager driver in my kernel ( using petalinux 2016.3). When I initially tried writing .bin file of bitstream to firmware, it said " write error: invalid argument" . Can someone shed some light on this error? 


I have referred to other forums and AR like https://www.xilinx.com/support/answers/68246.html and did those tweeks. Still getting this error called "invalid argument"  error when I echo the binary format of bitfile to /sys/class/fpga_manager/fpga0/firmware. 
 

$mount /dev/mmcblk0p1 /media
$ mkdir /lib/firmware 
$cp /media/bitstream.bin /lib/firmware/
$echo bitstream.bin > /sys/class/fpga_manager/fpga0/firmware

right after echoing bitstream.bin, I am getting 
 

[ 1625.057033] fpga_manager fpga0: writing bitstream.bin to Xilinx ZynqMp FPGA Manager
[ 1625.079420] fpga_manager fpga0: Error while writing image data to FPGA
-sh: echo: write error: Invalid argument


Can someone help me out here?

  • Sign in to reply
  • Cancel

Top Replies

  • Former Member
    Former Member over 8 years ago +1 verified
    Hi, Finally got it working. #Created using petalinux 2016.3 #Added SDHCI and PHY nodes to the device tree files manually , before building. #Got SDHCI and PHY nodes format from Avnet Github. #Also added…
  • Former Member
    0 Former Member over 8 years ago

    Has anyone done PL programming from PS in Ultrazed , using FPGA manager firmware in linux. Just needed a quick discussion on how they did it successfully.  

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

    Hi,

    Finally got it working.

    #Created using petalinux 2016.3

    #Added SDHCI and PHY nodes to the device tree files manually , before building.

    #Got SDHCI and PHY nodes format from Avnet Github.

    #Also added patches to psu_init.c in the FSBL source and platform-top.h in U-Boot sources. Got patch files from Avnet Github.

    #Also added memory node address  manually in the device tree. It was a bug in the petalinux 2016.3.

    #used SDK 2016.4 to create version 0.2 of PMUFW.elf and included that in the BOOT.BIN
    ~              




     

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