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 which Tutorial for Linux PL access
  • 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 8 replies
  • Subscribers 353 subscribers
  • Views 726 views
  • Users 0 members are here
Related

which Tutorial for Linux PL access

Former Member
Former Member over 11 years ago

Hi,
i just worked trought the beginner ZedBoard Vivado Workshop, now i know how to access GPIO Ports via bare metal applications.
But i want to use Linux as OS, do you know a good beginner Tutorial about the same stuff for Linux? I want to access Switches/LEDs and a SPI Device from Linux.

Thanks a lot

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

    Have you already looked at PetaLinux for the ZynqRegistered-7000 All Programmable SoC

    located at http://zedboard.org/support/trainings-and-videos.

     

    Bryan

    • 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 bhfletcher

    Yes at the moment i work through the PetaLinux SpeedWay workshop, but i cant find any of the files mentioned in the tutorial, it would be helpfull.

    • 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 bhfletcher

    Thanks for your quick answer, ich just tried to work through that worksphop but it was not very helpful. I dont have found any of the mentioned source files.

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

    You might want to explore using the Linux SysFs function to access the GPIO ports and possiblly (have not tried it) the SPI ports.

     

    While the Implementing Linux on the ZynqRegistered-7000 All Programmable SoC (ISE 14.2) Speedway in the ZedBoard Training and Videos section http://zedboard.org/support/trainings-and-videos  is dated it does have instructions in Lab 3_1 on using SysFs to read and write GPIOs within Linux.

     

    Here are a couple of links that might be worth your time as well:

     

    http://www.wiki.xilinx.com/Linux+GPIO+Driver

     

    http://www.wiki.xilinx.com/GPIO+User+Space+App

     

    http://www.wiki.xilinx.com/Linux+SPI+Driver

     

    -Gary

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

    Thanks for you links,
    the GPIO access over sysfs is really simple and works fine, thanks for that.

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

    Now i want to go a little bit further with my zynq design.
    I created my own ip core on the fpga, so now i need a way to comunicate with that ip from my linux system. i read that there are severals ways to do this (UIO,loadable kernel modules/dev/mem/sysfs etc.) but which one is the fastest and best one? i know that petalinux can create and include loadable kernel modules but i dont found any good documentation about that function and how it works.  
    Could you show me a good way to solve this basic problem to communicate between pl and ps. with a baremetall application this is so easy why not for linux....

    thanks

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

    It looks like you got a pretty through response to your post on the Xilinx Embedded Linux community forum:

     

    http://forums.xilinx.com/t5/Embedded-Linux/Petalinux-loadable-Kernel-Module-Tutorial/td-p/546927

     

    Posting the link so that others can read as well.

     

    -Gary

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

    Thank you for that!!!

    • 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