element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • 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 Is it possible to program PL in the linux running on PS after linux have booted up?
  • 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 16 replies
  • Subscribers 332 subscribers
  • Views 2847 views
  • Users 0 members are here
Related

Is it possible to program PL in the linux running on PS after linux have booted up?

Former Member
Former Member over 12 years ago

Is it possible to program PL in the linux running on PS after linux have booted up?
If yes, please give some idea.

  • Sign in to reply
  • Cancel
  • Former Member
    0 Former Member over 12 years ago

    Hi yyliang,
    I also want to program the PL while the Arm processor is running.I got the information from my FAE to analyze the First Stage Boot Loader.
    If there is not such a program available, we will build our own. What is your status here?
    Bahne

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

    I'm able to program it. But linux crashes each time I do it.

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

    Just download the latest Linux build for zed board and use that: http://www.wiki.xilinx.com/Zynq+14.5+-+2013.1+Release

    Copy the relevant files on your SD card and it should work, the older version that came packaged apparently had issues.

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

    We can boot this on the Zedboard, but unfortunately,
    LAN does not connect to a 100 Mbit Switch,
    which is a problem as we need LAN to load
    additional files to the target at runtime.

    Is there a way to change the Zedboard LAN configuration
    from 1GBit to 100Mbit, or is this an inherent design
    feature (so we need to connect to a 1Gbit capable switch) ?

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

    Running the 14.5 / 2013.1 release as proposed by farseer works, but unfortunately the PS will hang (or die: no UART, no ethernet) as soon as we load a proper bit file into /dev/xdevcfg

    Does the bitfile loaded possibly cause the PS to die, or is PS independent from PL here, so we have to look for bugs in the drivers?

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • deaxman
    0 deaxman over 12 years ago

    I am having this problem and can't get around it.

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

    I have been working on this same problem. I believe the new PL program must have ALL hardware that the kernel expect/has loaded.

    But even then it does not seem to work properly.

    If it not important to change the PL logic while the PS is running you can also try to make a new boot.bin file using the fsbl, u-boot and your own .bit file.

    This is how I currently am able to make new hardware and use Linux to configure it.

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

    The solution, as far as I can observe, is: it makes a difference whether the system initially starts from a BOOT.BIN that does contain PL logic or it starts from a BOOT.BIN that does not contain PL logic. In that first case, PS will always hang/die as soon as /dev/xdevcfg is loaded, in the latter case loading new PL at runtime is no problem. So we will start the system with PS-only BOOT.BIN, then load PL from Linux, then run the application.

    Further, we switched to git://github.com/Xilinx/linux-xlnx.git for now, though there is no audio support with it. I'm not sure, whether this helped in solving the /dev/xdevcfg related problems, and we will check the https://github.com/analogdevicesinc/linux/tree/audio_zynq kernel again, as soon as we get back to solve audio access.

    Thanks for the help.

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

    Has anyone seen any success on this so far?

    I'm seeing the same problem as most of you guys have mentioned. Linux always hangs after I send a PL bin file to /dev/xdevcfg, yet the new PL config works well. It makes no difference whether there is an initial PL configuration or not when the zynq board boots.

    One thing to mention. My PL design is totally isolated from the PS. It does not talk to the PS whatsoever.

    I'm using the latest kernel source from the Xilinx github.

    Any thoughts?

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

    If you have drivers in the kernel or otherwise loaded that need things in PL, you get the problems as described.

    The fix is to build these drivers as modules, i.e. an "m" in the menuconfig, and load them AFTER programming the PL.

    If you want to replace the logic, you can either use partial reconfiguration (vivado) and leave the parts intact that you need, or unload the related modules before replacing the logic.

    For an example, use "my" OE zynq layer and it will set things up so that it boots without logic and activates the HDMI and audio components later on, after loading the bistream from the rootfs.

    • 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