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 Using a new PL when booting linux from an SD on the 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 2 replies
  • Subscribers 312 subscribers
  • Views 310 views
  • Users 0 members are here
Related

Using a new PL when booting linux from an SD on the Microzed board

Former Member
Former Member over 11 years ago

Hi,

I'm relatively new to FPGAs and am working with the Avnet Microzed board containing a Zynq 7010 chip. I have generated some PL which runs fine on a standalone bsp. I also have no trouble booting linux from an SD card using the default boot.bin and system.bit.bin files from one of the board tutorials. These are for a board with no PL but seem to work for basic "Hello World" tests.

What I'd like to be able to do is run the same PL from the linux (using memory mapping) but I'm having trouble with this. I think my problem is when trying to load the PL when booting the linux from an SD card. (I'm using the 2013.4 version of the Xilinx SDK software.)

I have generated a new system.bit.bin using bootgen with the -split option, as described http://www.xilinx.com/support/answers/46913.html#linkedARRecords, and linux boots as normal. I then use

mknod /dev/xdevcfg c 259 0 > /dev/null

cat system.bit.bin > dev/xdevcfg

to load the PL bitstream. However I don't nothing anything different when trying to run an application using the PL and it still doesn't work.

This is when still using the old boot.bin

When I try to create a new boot.bin, using bootgen, from the FSBL of the new PL and the old uboot, linux fails to load, nothing prints to screen and the "done" LED never comes on.

I haven't changed the devicetree.dtb, uImage or uramdisk.Image.gz

Have I missed a step somewhere? I can't seem to find a definitive guide to how to do this online. I'm pretty new to FPGAs so I could be missing something simple.

Is the problem that I need a new boot.bin and if thats the case, how do I generate one that actually works? I'm using the same FSBL for linux as I used sucessfully as a standalone. Is that a problem?

Any help or advice would be greatly appreciated.

Thanks,

Ian

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

    Hi Ian,

    It sounds like your PL bitstream is loading okay (DONE light comes on) when configuring from an SDK environment where you are running a standalone application over JTAG.

    It sounds like you want to boot the OOB MicroZed Linux setup with the only change being to your PL bitstream.  If this is the case, then I recommend programming the PL from U-Boot just as is done in the OOB MicroZed design.  I recommend replacing the system.bit.bin file on the SD card with the byte swapped version of the one that comes out of Vivado Design Suite.

    Also, I am not familiar with AR46913 which may work perfectly fine.  Just to let you know, I used the following promgen command in ISE 14.5 to create the byte swapped format needed in the bitstream for it to be loaded across the PCAP interface to the PL.

    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

    Thanks for the reply. Yes, I think thats what I want to do, just to run the out of the box linux with a new PL.
    What exactly do you mean when you say "programming the PL from U-Boot just as is done in the OOB MicroZed design"? Do I need to do anything in addition to replacing the system.bit.bin file?

    Reading online, it looks as if using bootgen from the Xilinx SDK and promgen for the ISE may be more or less equivalent. I'll try installing ISE and trying with promgen though.

    Thanks,
    Ian

    • 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