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 Zedboard - Problem using GPIO in Linux
  • 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 5 replies
  • Subscribers 328 subscribers
  • Views 531 views
  • Users 0 members are here
Related

Zedboard - Problem using GPIO in Linux

Former Member
Former Member over 10 years ago

Hi,

I have a problem using an GPIO interface in my self compilied linux. I followed all steps of Session 11 of Mohammadsadegh Sadri (https://www.youtube.com/user/mamsadegh2/videos), and the related entries in the Xilinx Wiki (http://www.wiki.xilinx.com/). I managed to compile Linux, u-boot and all nessesarie stuff. I have BOOT.ini on my SD-Card which contains the FSBL, the bitstream file and the uboot. The system boots fine and uboot loads the ramdisk, uImage and deviceTree file using FTFP from my workstation. The system boots fine and I can access the linux using the UART interface.

The hardware design I'm using contains the Zynq core and two additional GPIO ports, one connected to the 8 LED's on the board and the other connected to the push buttons.

In Linux I see 3 different GPIO devices under /sys/classes/gpio/. When I follow the istructions in the Wiki about GPIO the export of the GPIO devices works properly. But when I try to set the GPIO direction of the GPIO device to "out" the system crashes without any error message.

How could I trace the Problem? Any tips of solving the issus?

  • Sign in to reply
  • Cancel
Parents
  • bhfletcher
    0 bhfletcher over 10 years ago

    I know that the numbering changed recently. Take a look at the PicoZed FMC Carrier Getting Started Guide v2.0, which was based on PetaLinux 2014.4.

    Bryan

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Reply
  • bhfletcher
    0 bhfletcher over 10 years ago

    I know that the numbering changed recently. Take a look at the PicoZed FMC Carrier Getting Started Guide v2.0, which was based on PetaLinux 2014.4.

    Bryan

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

    Hi Bryan Fletcher ,I am also facing the same problem. But I am using Zedboard (Not PicoZed) and running petalinux 2015v1.2.

    The valid GPIO's that i can export are between 885 to 1023. 

    I can set the direction for GPIO's between 906-1023. But when i try to change the direction of GPIO's between 885-905 the system crashes.

    What may be the issue.

    Thanks in advance.

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

    Hello Darshan,

     

    It looks like the GPIO offset has changed in PetaLinux 2015.2. The range is now 906 to 1023, as your results indicate.

     

    -Gary

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

    Hi Gary Edwards,

    Yes it might have changed. But I am not able to set the direction of gpio's between 885-905. The system crashes if i try to set and the zedboard should be restarted.

    What might be the issue.

    Thanks in advance.

    • 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