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
Avnet Boards General Linux Kernel Idea
  • 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 3 replies
  • Subscribers 358 subscribers
  • Views 288 views
  • Users 0 members are here
Related

Linux Kernel Idea

Former Member
Former Member over 13 years ago

Hi,

I have an idea for a modification of the xilinx linux kernel and as i have little development experience i am wondering if anybody can see impending issues with it.

So ... here goes.

I am relatively new to the zedboard but when i was attending a zynq training day i discovered that the driver for loading bitstreams in the linux kernel can load partial areas. This implies that it could be used very dynamically but i havent actually tested this yet.

My idea is to modify the linux loader (and possibly elf format) so that bitstreams can be referenced as a shared library. Also this would allow (with sufficient knowledge of the bitstream) dynamic placement by the linux kernel. Ideally the loader could be modified only slightly, so that there would still be compatibility with non bitstream inclusive files. Additionally programs could be switched between each other by the scheduler based on hardware interrupts etc

I can see quite a few difficult hurdles in the creation of this but only one big glaring issue:
the bitstream format - the EULA from xilinx says: Licensee is not licensed to, and agrees not to: (i) decompile, translate, reverse-engineer, disassemble, or otherwise reduce to human readable form the Software or the data files generated by the Software
... So to achieve this would be in breech of this licence agreement ...

There are quite a few software difficulties but i see no reason why it cannot be done. I think it would be useful/fast to dynamically switch and place any fpga designs.

I haven't done alot of kernel hacking though, so i am wondering if there is anything big/obvious that i am missing

thanks,
Stephen

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

    Stephen,

    You do not have to re-invent the wheel.  Xilinx has supported the partial configuration flow for our FPGA devices since ISE 12.2 with PlanAhead.

    You do not have to reverse engineer anything, as the flow will create partitions of partial bitstreams, which you may then load into the part directly through the linux interface that causes the configuration interface to look like a device.

    Austin

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

    Stephen,

    You do not have to re-invent the wheel.  Xilinx has supported the partial configuration flow for our FPGA devices since ISE 12.2 with PlanAhead.

    You do not have to reverse engineer anything, as the flow will create partitions of partial bitstreams, which you may then load into the part directly through the linux interface that causes the configuration interface to look like a device.

    Austin

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

    Hi Austin,

    Yes, that was what i discovered at the training day. My idea is more integrating this into the operating system. I havent checked but wouldn't the partial bitstreams still be locked to particular areas of the PL?

    I am wondering if i could do this dynamically assuming there were no specific placement requirements such as being attached to an LED. For example, say you had an adder, subtracter, multiplier and divisor. Say there were 15 different C programs, each using a different combination of the above. The kernel could load and switch between them, allowing access to the FPGA from the C Program. My idea isn't to reinvent the partial configuration flow its using it inside the kernel in a library style.

    • 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 havent checked but wouldn't the partial bitstreams still be locked to particular areas of the PL? " Yes they are, because that is how the FPGA configuration process works.
    Configuration process is equivalent of railway turnouts for railway tracks (it is a bit simplified example). In this process you do not chage the location of tracks, nor the stations, but you can change from where to where the train (or FPGA signals) can travel.
    So your partial configuration file is made to configure a particular mode and a particular part of the FPGA chip. It cannot be used for any arbitary part of the FPGA chip.
    Also take note that the reconfiguration process does consume some signicant amount of time.

    • 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 © 2026 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