LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 01-07-2019, 06:01 PM   #1
drathnow
LQ Newbie
 
Registered: Dec 2018
Location: Calgary
Distribution: Ubuntu, GNU
Posts: 3

Rep: Reputation: Disabled
Looking for a Linux single board computer with IIO support.


Hi,

I'll start off by apologising if I don't have all the nomenclature correct. Some of this is new to me.

I've been a Linux programmer for a few years now and have pretty good programming knowledge of Linux. The application I've been maintaining is an embedded app that was written to run on a board we developed ourselves. At the time the board was developed, the Linux kernel didn't have any native APIs for GPIO so we wrote our own kernel drivers that did the dirty work to allow our application to manipulate GPIOs (AI, DIO). The board also has RTDs and power modules as well.

We are in the process of having the kernel upgraded to the most recent version (4.19?) and plan to get rid of the custom drivers and use the Linux IIO subsystem. This will be a steep learning curve for me since this is all new territory. To get a jump on things, I would like to find a device I could use to learn how the IIO API's work.

Do any of the single board computers that run Linux have support for Linux IIO? Can someone suggest a good one to use to start learning?

Thanks
 
Old 01-08-2019, 01:54 PM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,289

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
Welcome to LQ, drathnow.

GPIO are not usually assigned to any device we're familiar with, and the specs usually only mention familiar devices. In my experience what you need is a dealer with a good knowledge of his products. My advice is to phone some places and try and find some guy who can sift through the specs mentally of what he's selling and name one. It might sometimes be called 'programmable i/o' I have no idea what this is - a search threw it up. It or something like it might be useful
http://linuxgizmos.com/i-mx6-ul-base...grammable-zpu/
 
Old 01-09-2019, 07:29 AM   #3
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,882
Blog Entries: 13

Rep: Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930
The 4.19 Linux kernel has plenty of GPIO support. Suggest you review the documentation as well as search for example code.

General Purpose Input/Output (GPIO)

You can also control it from the userspace, https://elinux.org/GPIO. Yes it works, it is not recommended, however in order to get things done rapidly, I've done this in testing and then switched over to kernel space to make production code.
 
Old 01-09-2019, 10:32 AM   #4
drathnow
LQ Newbie
 
Registered: Dec 2018
Location: Calgary
Distribution: Ubuntu, GNU
Posts: 3

Original Poster
Rep: Reputation: Disabled
Thanks for the replies. I realize that 4.19 provides GPIO support but what I'm asking is if here is any specific single-board computer that someone could recommend for learning how to use the GPIO APIs, in particular Linux Industrial I/O subsystem.

Dave.
 
Old 01-09-2019, 12:19 PM   #5
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,882
Blog Entries: 13

Rep: Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930
Raspberry Pi and Beaglebone Black
 
Old 01-09-2019, 12:25 PM   #6
drathnow
LQ Newbie
 
Registered: Dec 2018
Location: Calgary
Distribution: Ubuntu, GNU
Posts: 3

Original Poster
Rep: Reputation: Disabled
Awesome! Thanks again.
 
  


Reply



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
[SOLVED] IIO: Why cannot open same iio device node twice ? Aniroop Mathur Linux - General 3 08-13-2014 09:01 AM
IIO: Advantages of IIO subsystem Aniroop Mathur Linux - General 1 08-03-2014 08:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer

All times are GMT -5. The time now is 11:53 PM.

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