Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Linux - Embedded & Single-board computer This forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.


  Search this Thread
Old 01-30-2014, 08:36 AM   #1
Registered: Dec 2013
Distribution: Mint
Posts: 54

Rep: Reputation: Disabled
How to set GPIO output in/during AT91bootstrap?

Hi everyone,

I'm using Arm9 Atmel Sam9G25 with this Startup sequence : RomBOOT -> At91Boostrap -> U-Boot-> Linux

Because i want to measure the startup time I'd like to set a GPIO output when entering Bootstrap to 1 and setting the same Pin to 0 when entering the userspace.

I already implemented the sserspace setting but unfortunately I can't figure out, how to set those GPIO Pins in Bootstrap. Can anyone help me where to have an eye on ? Those search engines didn't help.

thank you
Old 01-31-2014, 02:35 AM   #2
Registered: Dec 2013
Distribution: Mint
Posts: 54

Original Poster
Rep: Reputation: Disabled
I've found out putting the pio_set_value(< pin name >, < output level >); as first in the hw_init function in the boards .C file sets the output successfully.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to set Emacs default for Python output blastradius Programming 1 03-15-2013 03:44 PM
set variable from output of apg takayama Programming 1 12-11-2011 05:27 AM
GPIO access on a Fujitsu Mini-ITX Industrial Mainboard, PCI Driver for GPIO mechatrix Linux - Embedded & Single-board computer 3 11-20-2011 03:57 PM
[SOLVED] redirecting output of set -x xerox Linux - Newbie 7 03-21-2011 02:03 AM
Using GPIO (from kernel GPIO support) in MY application DannyGilbert Linux - Kernel 2 03-16-2009 07:52 AM

All times are GMT -5. The time now is 02:20 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration