This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
libgpiod
#1
Greetings,

I'm having a very bad day trying to get a working copy of libgpiod for the tinkerboard.
I have compiled successfully git.kernel.org/pub/scm/libs/libgpiod/libgpiod.git/snapshot/libgpiod-1.5.tar.gz
but when I run any of the gpio commands (eg. gpiodetect, gpioinfo, etc) The prompt just returns.

I have compiled this same code on beaglebone black and all the functions work.

We have dozens of tinkerboards and plan on buying hundreds for a project we are on. Presently we are using python and asus.gpio but we need to switch to a library that works on various boards so that we can share libraries.

We are also working on userspaceio.

But for now, our immediate problem is trying to get a libgpiod working so we can call the command line functions from any language that we develop in.

Any suggestions?

Thanks in advance
Ibrahim Salim Omari
Reply
#2
(02-08-2020, 07:59 AM)iomari Wrote: Any suggestions?

TinkerOS or Armbian?
Armbian. Lightweight Debian Stretch or Ubuntu Bionic for Tinker Board.
Reply
#3
ubuntu:
TinkerBoard-Ubuntu18.10-DomoticzServer_ELAR-Systems-SD-v1.img
Reply
#4
It won't work on this "Ubuntu" nor on TinkerOS while it will work on Armbian. With a modern kernel 5.4.y, for stock 4.4.y not this way.
Armbian. Lightweight Debian Stretch or Ubuntu Bionic for Tinker Board.
Reply
#5
OK. Is there any gpio library that will work that is not specific for tinker?
What of userspaceio?
Reply
#6
Quote:not specific for tinker?

Tinker is just one of the boards supported by Armbian. And Armbian tends to provide as much unique experience as possible on different hardware. Alternatives are years away.

Quote:What of userspaceio?

https://github.com/sgjava/userspaceio
User Space IO is Python 3 and Java 8 bindings for Linux user space GPIO, SPI, I2C, PWM, MMIO, LED and Serial interfaces. Using best of breed user space C libraries provides a cross platform solution to SBC development. Primarly User Space IO will be targeting Armbian

https://forum.armbian.com/topic/5655-arm...-proposal/
https://github.com/bitbank2/ArmbianIO
https://docs.google.com/document/d/1Q1zc...TjESc/edit

And do some searching: https://forum.armbian.com/search/
Armbian. Lightweight Debian Stretch or Ubuntu Bionic for Tinker Board.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)