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
GIZMO 2
  • Products
  • Dev Tools
  • Single-Board Computers
  • GIZMO 2
  • More
  • Cancel
GIZMO 2
Blog Hadron Vortex G2 - NEWS FLASH GPIO BREAKOUT!!!!!!
  • Blog
  • Forum
  • Documents
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join GIZMO 2 to participate - click to join for free!
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: Former Member
  • Date Created: 30 Apr 2015 10:03 AM Date Created
  • Views 1141 views
  • Likes 5 likes
  • Comments 5 comments
  • RoadTest
  • vortex_g2
  • lucie_tozer
  • sbc
  • single_board_computer
  • gizmo2
Related
Recommended

Hadron Vortex G2 - NEWS FLASH GPIO BREAKOUT!!!!!!

Former Member
Former Member
30 Apr 2015

Waiting for some bits and bobs to be delivered for the case build, I've been trying to find out how to access and use the gpio ports on Gizmo2.

 

The ubuntu install has a /sys/class/gpio folder and the export/unexport files where gpio pins can be controlled through user space but seems to be missing the controller chip.

 

I tried a few things to get them opened up including making a python script to bash number 0 to 999 at the export file with no success.

 

Clearly, this was a much deeper issue.. The generic Linux kernel provided with Ubuntu isn't designed with the specific drivers needed to access the hardware.

 

The Timesys operating system has a kernel with those drivers built in but theres likely to be issues with just replacing this one.

 

Browsing and using the Timesys website was a labour of love (meaning hate). I can't remember how I got to it, but found a link to their ftp repository that has all of the files and modules included in their kernel builds. LO AND BEHOLD!!! source code files for AMD SOC gpio drivers and a couple of other interesting things..

 

SOLUTION

 

I'll post a more complete solution including all of the files later but here's quickly how I opened the GPIO

 

1. Download the source files

2. Modify the makefile

3. Make - make a kernel module

4. Use insmod on the module to insert it into the kernel

5. Go to /sys/class/gpio to find the driver chip snuggled up all cosy between export and unexport

 

Test:

 

sudo -i

cd /sys/class/gpio

echo 45 > ./export

cd gpio45

echo out > ./direction

echo 1 > ./value

 

SUCCESS!

 

gpio 45 is connected to the mmc card reader LED. The above shell script has just turned it on through the GPIO userspace system.

 

 

Stay tuned for a more thorough guide on how to do this including all source files, build modules and more !

 

 

Lucie

  • Sign in to reply

Top Comments

  • Former Member
    Former Member over 10 years ago in reply to xever +2
    I wasn't home when i did the blog post but am now fresh from my bookmarks: repository.timesys.com/buildsources/a/ the specific folder for gpio: amd-gseriessoc-gpio Feel free to ask if you run into any…
  • shabaz
    shabaz over 10 years ago +1
    Hi Lucie, Wow, fantastic work!! Very good detective-work to find the source code too!! It's great you got good results with this. This will greatly help everyone use the linux distribution of their choice…
  • Former Member
    Former Member over 9 years ago in reply to Former Member

    Hi Ryan!

     

    Thanks! I'm working at the minute, I home for a day on Monday before I'm away again to wrap up before christmas, if I get chance I'll upload the makefile I used otherwise it'll probably be the week after. sorry things are a bit hectic this time of year! I'll definitely get on to it though

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

    Hi Lucie!

    I admire your work! I have a question/ help request on GPIO access with gizmo2.  I am just trying to have access to them, and its proving difficult.  I downloaded the source file, however, I am a bit of a noob and am not sure how to modify the make file or how to insert it into the kernel.  Any help would be greatly appreciated.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • shabaz
    shabaz over 10 years ago

    Hi Lucie,

     

    Wow, fantastic work!! Very good detective-work to find the source code too!!

    It's great you got good results with this. This will greatly help everyone use the linux distribution of their choice!!

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • Former Member
    Former Member over 10 years ago in reply to xever

    I wasn't home when i did the blog post but am now image

     

    fresh from my bookmarks:

     

    repository.timesys.com/buildsources/a/

     

    the specific folder for gpio: amd-gseriessoc-gpio

     

    Feel free to ask if you run into any trouble, there'll also be a more complete post on the subject soon.

     

    Lucie

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • xever
    xever over 10 years ago

    Very good find!  Can you remember where the link to the drivers are?

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • 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