LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - ARM
User Name
Password
Slackware - ARM This forum is for the discussion of Slackware ARM.

Notices


Reply
  Search this Thread
Old 02-12-2021, 01:36 AM   #1
xor_ebx_ebx
Member
 
Registered: Mar 2019
Location: USA
Distribution: Slackware
Posts: 44

Rep: Reputation: Disabled
libgpiod in -current?


I was just going to make a package for this for myself, but now I'm wondering if it shouldn't be in the main slackwarearm-current tree

If you don't know, libgpiod is a C/C++/Python3 library and some tools for working with the new /dev/gpiochip* interface for the GPIO pins on many ARM boards. Seeing as to how the sysfs interface is depreciated and may disappear in the future, I think it would be a good idea to get this package in -current

I built myself a quick and dirty test package on my Pi 4 on -current. I haven't done much more than blink a few LEDs, but everything seems to work. I tired Python, C, and the tools. Here's the configure options I used
Code:
./configure --prefix=/usr --libdir=/usr/lib --mandir=/usr/man --build=arm-slackware-linux --enable-tools --enable-bindings-cxx --enable-bindings-python
The source code for releases is here. I used the 1.6.2 version

Thoughts? The tools are the main reason I think it should be included, similar to i2c-tools, but it doesn't hurt to have the libs. On the flip side, probably not many people use GPIO
 
Old 02-13-2021, 09:55 PM   #2
justwantin
Member
 
Registered: Aug 2003
Location: Melbourne, Australia
Distribution: Slackware, Slackwarearm
Posts: 878

Rep: Reputation: 120Reputation: 120
Very interesting, I'll have to append it to my to do (look at) list. What kerenel version were you running when you compiled?
 
Old 02-14-2021, 12:23 AM   #3
xor_ebx_ebx
Member
 
Registered: Mar 2019
Location: USA
Distribution: Slackware
Posts: 44

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by justwantin View Post
Very interesting, I'll have to append it to my to do (look at) list. What kerenel version were you running when you compiled?
5.10.14-v7l-sarpi4
 
Old 02-14-2021, 02:56 PM   #4
justwantin
Member
 
Registered: Aug 2003
Location: Melbourne, Australia
Distribution: Slackware, Slackwarearm
Posts: 878

Rep: Reputation: 120Reputation: 120
I have just set up a raspberry pi zero, installed libgpiod and had a quick squiz. It seems the gpiod commands are to be used for (bash) scripting now that GPIO sysfs is to be depreciated post linux 4.8. I've been using wiringpPi in C programs on my bananapros to interface with gpio pins and probably will on this rpi zero as well. Might be good to include it in future Slackwarearm but unless I'm unable to, I'll stick with wiringpi and C.
 
Old 02-16-2021, 07:56 AM   #5
drmozes
Slackware Contributor
 
Registered: Apr 2008
Distribution: Slackware
Posts: 1,552

Rep: Reputation: 1314Reputation: 1314Reputation: 1314Reputation: 1314Reputation: 1314Reputation: 1314Reputation: 1314Reputation: 1314Reputation: 1314Reputation: 1314
Quote:
Originally Posted by xor_ebx_ebx View Post
I was just going to make a package for this for myself, but now I'm wondering if it shouldn't be in the main slackwarearm-current tree
Additions to the main Slackware distribution are only when they are absolutely required.
I'll look at adding it to /extra.
 
Old 02-16-2021, 09:03 AM   #6
brian-in-ohio
LQ Newbie
 
Registered: Feb 2019
Posts: 15

Rep: Reputation: Disabled
I think it would be great to include libgpiod as part of the slackwarearm project. Using the gpio's on any single board computer opens a whole new universe of projects. I've done one Hackerpublicradio episode on a pi, running slackware, I use in my house to monitor a basement sump. In the process of putting that project together I found pigpio, at http://abyz.me.uk/rpi/pigpio/pigpiod.html, to do the heavy lifting, more robust and still maintained, unlike wiringpi. But I'd rather see libgpiod as part of slackware arm.
 
1 members found this post helpful.
Old 02-16-2021, 12:57 PM   #7
xor_ebx_ebx
Member
 
Registered: Mar 2019
Location: USA
Distribution: Slackware
Posts: 44

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by drmozes View Post
Additions to the main Slackware distribution are only when they are absolutely required.
I'll look at adding it to /extra.
Hm, I didn't even think of putting it in /extra but that's a good option. People who need it now will still have it available and you can easily move it into the main tree if it becomes a requirement for something. I believe that's a better option than having it on slackbuilds.org when 15 comes out
 
Old 02-16-2021, 01:07 PM   #8
brian-in-ohio
LQ Newbie
 
Registered: Feb 2019
Posts: 15

Rep: Reputation: Disabled
I concur, extra is a great place for it, not slackbuilds.
 
Old 02-16-2021, 05:39 PM   #9
justwantin
Member
 
Registered: Aug 2003
Location: Melbourne, Australia
Distribution: Slackware, Slackwarearm
Posts: 878

Rep: Reputation: 120Reputation: 120
Quote:
.... and still maintained, unlike wiringpi.
I did not realise Gordon had given it away, I just read his post. I suppose I'll have to start using gpiod In my C programs .... very timely with a birthday next week .... will have to work a little more harder at keeping the brain matter in shape again.
 
Old 03-18-2021, 05:04 AM   #10
drmozes
Slackware Contributor
 
Registered: Apr 2008
Distribution: Slackware
Posts: 1,552

Rep: Reputation: 1314Reputation: 1314Reputation: 1314Reputation: 1314Reputation: 1314Reputation: 1314Reputation: 1314Reputation: 1314Reputation: 1314Reputation: 1314
This is now in /extra for -current. I will look at moving it to the main tree once 15.0's released.
 
2 members found this post helpful.
  


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
DISCUSSION: Upgrade to Slackware -current without a -current CD truthfatal LinuxAnswers Discussion 0 09-19-2006 01:42 PM
cvs diff the most current and second last current version powah Linux - Software 1 03-30-2006 01:02 PM
slack-current of dropline ? Hi all :-) slack-current of dropline ? frochet Slackware 2 06-11-2004 11:57 AM
current Slack-Current giving troubles? r_jensen11 Slackware 5 02-02-2004 05:08 PM
Staying Current (with current) hjles Slackware 1 01-21-2003 07:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - ARM

All times are GMT -5. The time now is 02:45 AM.

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