Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Raspberry GPIO not working
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on ARM
View previous topic :: View next topic  
Author Message
pacl
n00b
n00b


Joined: 24 Jan 2016
Posts: 38

PostPosted: Tue Jun 27, 2017 1:53 pm    Post subject: [SOLVED] Raspberry GPIO not working Reply with quote

Hello together,

I installed Gentoo 64 Bit on a Raspberry Pi 3 and I'm struggling with the GPIO interface.
I2C works fine over GPIO (I'm updating system time from an I2C connected RTC).

But, when I'm using MMIO
https://github.com/adafruit/Adafruit_Python_DHT/blob/master/source/Raspberry_Pi_2/pi_2_mmio.c
or wiringPi to access/modify the GPIO pins (turn on LED for instance), nothing works.

I'm aware that MMIO used the BCM codes and wiringPi their own pin identifier.

I have the Raspbian installed on a different SD-card, where MMIO and wiringPi work without any issues.

One thing I noticed:
The wiringPiSetup reads the /proc/cpuinfo file and looks for some hardware specific information:
https://github.com/WiringPi/WiringPi/blob/master/wiringPi/wiringPi.c (line 688).
But in Gentoo, the appropriate lines don't exist.
I would like to have the wiringPiSetup working out of box, rather than patching a workaround.

/proc/cpuinfo:
https://bpaste.net/raw/1921a208c602

Additional /proc/cpuinfo lines in Raspbian:
Code:
Hardware      : BCM2709
Revision      : a22082


kernel .config:
https://bpaste.net/raw/2a85bda3ac60

/boot/cmdline.txt:
Code:
root=/dev/mmcblk0p3 rootfstype=ext4 rootwait bcm2708.vc_i2c_override=1 irqpoll


/boot/config.txt:
https://bpaste.net/raw/1f4c682ad831

I'm thankful for any help.
Best regards
_________________
It is so beautiful to be detached from the "System"


Last edited by pacl on Tue Jun 27, 2017 2:53 pm; edited 1 time in total
Back to top
View user's profile Send private message
pacl
n00b
n00b


Joined: 24 Jan 2016
Posts: 38

PostPosted: Tue Jun 27, 2017 2:53 pm    Post subject: Reply with quote

Hmm,

it works now with MMIO, but not with wiringPi, because of /proc/cpuinfo.
I can live with that.
_________________
It is so beautiful to be detached from the "System"
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on ARM All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum