Jump to content

Recommended Posts

Posted

Hello,

 

I am new to armbian and am quite impressed of the ease of installation and use. I copied the vanilla headless Debian jessy to a spare SD and the board booted right away. So first of all, many thanks to the developers!

 

I rely on GPIO for my application of the board, so I first tested the export of a GPIO. Normally, the kernel from Olimex gives me something like "gpio64_pg0", which is not very compatible to the programs out in the internet (e.g. OpenHAB.org which I use), so – with this kernel – I was happy to get a standard "gpio1" when echoing "1" to "export". But as soon as I tried to change the direction

echo out > gpio1/direction

the whole board crashed immediately.

 

I haven't yet looked into it further and would be very happy about some feedback of a possible easy solution here on the forum...? Furthermore, it would be interesting what layout is used for the pin numbering.

Posted

Ah, great! thanks a lot for this hint! So I have to calculate the pin position! Wonder if that's the new standard way, or are there the two standards, calculating and naming the pins...?

 

edit: Just tested it and this is the solution. Thanks again.

Posted

Yes, I've already got this excellent description on GPIO, and of course Olimex also shows the ports on his wiki page:

https://www.olimex.com/wiki/A20-OLinuXino-MICRO#Hardware

 

Only that in the kernel I used so far, the ports are named as in the mentioned description, by their explicit name like "GPIO1_pg1", and in the description, Guido Petz says that this will be the new naming convention for kernels 3.4.67+ . So they might have changed back to the single number naming.

 

Well, now I know and appreciate this, because in this way I can easier use the pins in other software.

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines