View unanswered posts | View active topics It is currently Wed Jan 23, 2019 12:44 am



Reply to topic  [ 8 posts ] 
 gpio LED 
Author Message

Joined: Tue Aug 14, 2012 9:40 pm
Posts: 5
Post gpio LED
I wonder what gpio addresses the front LEDs have?

Would like to program them from shell, similarly to the gpio actions in http://www.lindusembedded.com/blog/


Tue Aug 14, 2012 9:43 pm
Profile

Joined: Mon Jul 25, 2011 2:35 pm
Posts: 445
Post Re: gpio LED
janax wrote:
I wonder what gpio addresses the front LEDs have?

Would like to program them from shell, similarly to the gpio actions in http://www.lindusembedded.com/blog/


Hi,

The GPIO # for leds are 26, 211.
You can try it out on U-Boot this way:
gpio output 3 2 0 ## on
gpio output 27 5 0 ## on
gpio output 3 2 1 ## off
gpio output 27 5 1 ## off

I did not get to do it using "/sys/class/gpio/export".
We are going to figure it out in a few days.

Regards,
Valentin.


Sun Aug 19, 2012 5:12 pm
Profile

Joined: Tue Aug 14, 2012 9:40 pm
Posts: 5
Post Re: gpio LED
Any success?

Is there some documentation on how the pins are configured (pinmux?)? Are they configured in u-boot or later?


Tue Aug 28, 2012 10:21 am
Profile

Joined: Tue Aug 14, 2012 9:40 pm
Posts: 5
Post Re: gpio LED
valentin wrote:
janax wrote:
I wonder what gpio addresses the front LEDs have?

Would like to program them from shell, similarly to the gpio actions in http://www.lindusembedded.com/blog/


Hi,

The GPIO # for leds are 26, 211.
You can try it out on U-Boot this way:
gpio output 3 2 0 ## on
gpio output 27 5 0 ## on
gpio output 3 2 1 ## off
gpio output 27 5 1 ## off

I did not get to do it using "/sys/class/gpio/export".
We are going to figure it out in a few days.

Regards,
Valentin.


Controlling the LEDs is extremely important for my application.

I am now ready to get a number of prototypes of my product out to customers. This means that I am now at a decision point, where the question is if I should go for Trimslice or change platform.

Please indicate if the solution that "We are going to figure it out in a few days" is going to be resolved. Please give me a time estimate either in the forum or by directly contacting me.

Best regards
janax


Wed Dec 05, 2012 8:42 am
Profile

Joined: Mon Jul 25, 2011 2:35 pm
Posts: 445
Post Re: gpio LED
Hi Janax,

Sorry for that long delay. I've compiled a TrimSlice kernel with these 2-gpios enabled and the "/sys/class/gpio/export" approach works now.
Here it is: http://trimslice.com/download/installer ... 1+_all.deb

The led GPIOs are 26, 221 (not 211, it was a typo)

A sample:
cd /sys/class/gpio
export 26 > export
echo out > gpio26/direction
# On
echo 0 > gpio26/value
# Off
echo 1 > gpio26/value

Regards,
Valentin.

janax wrote:
valentin wrote:
janax wrote:
I wonder what gpio addresses the front LEDs have?

Would like to program them from shell, similarly to the gpio actions in http://www.lindusembedded.com/blog/


Hi,

The GPIO # for leds are 26, 211.
You can try it out on U-Boot this way:
gpio output 3 2 0 ## on
gpio output 27 5 0 ## on
gpio output 3 2 1 ## off
gpio output 27 5 1 ## off

I did not get to do it using "/sys/class/gpio/export".
We are going to figure it out in a few days.

Regards,
Valentin.


Controlling the LEDs is extremely important for my application.

I am now ready to get a number of prototypes of my product out to customers. This means that I am now at a decision point, where the question is if I should go for Trimslice or change platform.

Please indicate if the solution that "We are going to figure it out in a few days" is going to be resolved. Please give me a time estimate either in the forum or by directly contacting me.

Best regards
janax


Mon Dec 10, 2012 7:34 am
Profile

Joined: Tue Aug 14, 2012 9:40 pm
Posts: 5
Post Re: gpio LED
It works great! Will this be merged into mainstream kernel?


After installing:
http://trimslice.com/download/installer ... 1+_all.deb

This worked for me:

i=26
echo $i > /sys/class/gpio/export
echo "out" > "/sys/class/gpio/gpio$i/direction"
echo 0 > "/sys/class/gpio/gpio$i/value" # ON
echo 1 > "/sys/class/gpio/gpio$i/value" # OFF

i=221
echo $i > /sys/class/gpio/export
echo "out" > "/sys/class/gpio/gpio$i/direction"
echo 0 > "/sys/class/gpio/gpio$i/value"
echo 1 > "/sys/class/gpio/gpio$i/value" # OFF


Mon Dec 10, 2012 8:19 pm
Profile

Joined: Tue Aug 14, 2012 9:40 pm
Posts: 5
Post Re: gpio LED
I believe it is time to get an answer. I had a quotation sent to me for 10 trimslice units, which I may order as a first batch. However, I need to be certain that the LED support is going to make it to the future kernels - since this is essential for my product.

1) Is the LED fix you posted introduced in future kernels?
2) Could you please give me access to the source (3.1.10-l4t.r16.01+) which does not appear to be in the git archives?
3) Considering the low support activity: is trimslice a viable option the nearest years?

If not, could you or a fellow forum member please recommend an alternative? I need something CE and FCC certified.

4) I have a nagging feeling that the trimslice (unfortunately) may not have been as big of a sales success as anticipated. How many units have you shipped?

Jan Axelsson


Thu Jan 17, 2013 8:41 pm
Profile

Joined: Mon Jul 25, 2011 2:35 pm
Posts: 445
Post Re: gpio LED
Hello Jan,

Here are my answers:

1) Yes, the led fix is a part of the latest TrimSlice kernel.
2) This is the location of the latest TrimSlice kernel. http://gitorious.org/trimslice-kernel/t ... l4t.r16.02
Downloading it you will have a tar-ball of the kernel code.

Questions 3,4 have been forwarded to a person who can reply on.

Regards,
Valentin.


Tue Jan 29, 2013 7:36 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 8 posts ] 

Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.