How to make use of GPIO with NetBSD 8.0_BETA on C1+?

Moderators: mdrjr, odroid

How to make use of GPIO with NetBSD 8.0_BETA on C1+?

Unread postby level6 » Thu Jul 06, 2017 12:00 am

Code: Select all
root@odroid:/root # uname -a
NetBSD odroid 8.0_BETA NetBSD 8.0_BETA (ODROID-C1.201707011800Z) evbarm

root@odroid:/root # ll /dev/gpio*
lrwx------  1 root  wheel      5B Jul  1 22:41 /dev/gpio@ -> gpio0
crw-rw-r--  1 root  _gpio  173, 0 Jul  1 22:41 /dev/gpio0
crw-rw-r--  1 root  _gpio  173, 1 Jul  1 22:41 /dev/gpio1
crw-rw-r--  1 root  _gpio  173, 2 Jul  1 22:41 /dev/gpio2
crw-rw-r--  1 root  _gpio  173, 3 Jul  1 22:41 /dev/gpio3
crw-rw-r--  1 root  _gpio  173, 4 Jul  1 22:41 /dev/gpio4
crw-rw-r--  1 root  _gpio  173, 5 Jul  1 22:41 /dev/gpio5
crw-rw-r--  1 root  _gpio  173, 6 Jul  1 22:41 /dev/gpio6
crw-rw-r--  1 root  _gpio  173, 7 Jul  1 22:41 /dev/gpio7

I tried gpioctl with these /dev/gpiox but no success.

How can I access the 40pin GPIO?
level6
 
Posts: 17
Joined: Thu Apr 07, 2016 6:03 am
languages_spoken: english

Re: How to make use of GPIO with NetBSD 8.0_BETA on C1+?

Unread postby mscdex » Thu Jul 06, 2017 2:07 am

I think you meant to post in this forum instead?
mscdex
 
Posts: 66
Joined: Sun Jan 04, 2015 11:09 am
languages_spoken: english
ODROIDs: ODROID C2

Re: How to make use of GPIO with NetBSD 8.0_BETA on C1+?

Unread postby odroid » Thu Jul 06, 2017 10:00 am

Moved to C1 sub-forum.
User avatar
odroid
Site Admin
 
Posts: 23625
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

Re: How to make use of GPIO with NetBSD 8.0_BETA on C1+?

Unread postby level6 » Sat Jul 08, 2017 7:21 am

It is a prerequisite to define the pins in /etc/gpio.conf first.
level6
 
Posts: 17
Joined: Thu Apr 07, 2016 6:03 am
languages_spoken: english


Return to Other OS

Who is online

Users browsing this forum: No registered users and 1 guest