Re: Re : Re: [opensuse-arm] Re : Re: Re : Re: [opensuse-arm] Re: Control output pin on RPi

2018-09-06 Thread Andreas Färber
Hi Guillaume, Am 06.09.2018 um 18:56 schrieb Guillaume GARDET: > - Andreas Färber a écrit : >> Am 06.09.2018 um 09:15 schrieb Guillaume GARDET: >>> - Volker Kuhlmann a écrit : On Thu 06 Sep 2018 03:42:50 NZST +1200, Guillaume GARDET wrote: > For information, I created a wik

Re : Re: [opensuse-arm] Re : Re: Re : Re: [opensuse-arm] Re: Control output pin on RPi

2018-09-06 Thread Guillaume GARDET
Hi Andreas, - Andreas Färber a écrit : > Am 06.09.2018 um 09:15 schrieb Guillaume GARDET: > > > > - Volker Kuhlmann a écrit : > >> On Thu 06 Sep 2018 03:42:50 NZST +1200, Guillaume GARDET wrote: > >> > >>> For information, I created a wiki page for GPIO as it seems to be a > >>> prob

Re: [opensuse-arm] Re : Re: Re : Re: [opensuse-arm] Re: Control output pin on RPi

2018-09-06 Thread Andreas Färber
Am 06.09.2018 um 09:15 schrieb Guillaume GARDET: > > - Volker Kuhlmann a écrit : >> On Thu 06 Sep 2018 03:42:50 NZST +1200, Guillaume GARDET wrote: >> >>> For information, I created a wiki page for GPIO as it seems to be a problem >>> for some people: >>> https://en.opensuse.org/openSUSE:

[opensuse-arm] Re : Re: Re : Re: [opensuse-arm] Re: Control output pin on RPi

2018-09-06 Thread Guillaume GARDET
- Volker Kuhlmann a écrit : > On Thu 06 Sep 2018 03:42:50 NZST +1200, Guillaume GARDET wrote: > > > For information, I created a wiki page for GPIO as it seems to be a problem > > for some people: > > https://en.opensuse.org/openSUSE:GPIO > > Great! However all that info is readily ava

Re: Re : Re: [opensuse-arm] Re: Control output pin on RPi

2018-09-05 Thread Volker Kuhlmann
On Thu 06 Sep 2018 03:42:50 NZST +1200, Guillaume GARDET wrote: > For information, I created a wiki page for GPIO as it seems to be a problem > for some people: > https://en.opensuse.org/openSUSE:GPIO Great! However all that info is readily available, and the 2 pieces of info that stopped me

Re : Re: [opensuse-arm] Re: Control output pin on RPi

2018-09-05 Thread Guillaume GARDET
Hi, - Alexander Graf a écrit : > > > On 05.09.18 11:00, Volker Kuhlmann wrote: > > On Wed 05 Sep 2018 19:42:18 NZST +1200, Alexander Graf wrote: > > > >> You need to first make sure the pin is muxed properly as GPIO and not > >> associated with a special function: > >> > >> /sys/kernel/

Re: [opensuse-arm] Re: Control output pin on RPi

2018-09-05 Thread Brüns , Stefan
On Mittwoch, 5. September 2018 13:01:26 CEST Volker Kuhlmann wrote: > On Wed 05 Sep 2018 21:06:28 NZST +1200, Alexander Graf wrote: > > rpi:~ # grep 'pin 4 ' /sys/kernel/debug/pinctrl/3f20.gpio/pins > > pin 4 (gpio4) function gpio_in in hi; irq 83 (none) > > rpi:~ # echo $(( 458 + 4 )) > /sys/c

Re: [opensuse-arm] Re: Control output pin on RPi

2018-09-05 Thread Volker Kuhlmann
On Wed 05 Sep 2018 21:06:28 NZST +1200, Alexander Graf wrote: > rpi:~ # grep 'pin 4 ' /sys/kernel/debug/pinctrl/3f20.gpio/pins > pin 4 (gpio4) function gpio_in in hi; irq 83 (none) > rpi:~ # echo $(( 458 + 4 )) > /sys/class/gpio/export > rpi:~ # echo out > /sys/class/gpio/gpio462/direction > r

Re: [opensuse-arm] Re: Control output pin on RPi

2018-09-05 Thread Freek de Kruijf
Op woensdag 5 september 2018 11:06:28 CEST schreef Alexander Graf: > On 05.09.18 11:00, Volker Kuhlmann wrote: I did generate rpm's in the beginning of this year for armv6hl, armv7hl, and aarch64 on openSUSE Tumbleweed, using the source file RPi.GPIO-0.6.3.tar.gz with my own patches to overcome

Re: [opensuse-arm] Re: Control output pin on RPi

2018-09-05 Thread Alexander Graf
On 05.09.18 11:00, Volker Kuhlmann wrote: > On Wed 05 Sep 2018 19:42:18 NZST +1200, Alexander Graf wrote: > >> You need to first make sure the pin is muxed properly as GPIO and not >> associated with a special function: >> >> /sys/kernel/debug/pinctrl/3f20.gpio/pinmux-pins >> >> Once that

Re: [opensuse-arm] Re: Control output pin on RPi

2018-09-05 Thread Volker Kuhlmann
On Wed 05 Sep 2018 19:42:18 NZST +1200, Alexander Graf wrote: > You need to first make sure the pin is muxed properly as GPIO and not > associated with a special function: > > /sys/kernel/debug/pinctrl/3f20.gpio/pinmux-pins > > Once that's clear, you can use the GPIO export to actually acc

Re: [opensuse-arm] Re: Control output pin on RPi

2018-09-05 Thread Alexander Graf
On 05.09.18 09:34, Volker Kuhlmann wrote: >>> Sure, I have. It's as simple as echo, no libraries needed. > > OK, found something. > > ls -1 /sys/class/gpio/ > export > gpiochip458 > unexport > > echo 462 >/sys/class/gpio/export > ls -1 /sys/class/gpio/ > export > gpio462 > gpiochip458 > unexp

Re: [opensuse-arm] Re: Control output pin on RPi

2018-09-05 Thread Volker Kuhlmann
> > Sure, I have. It's as simple as echo, no libraries needed. OK, found something. ls -1 /sys/class/gpio/ export gpiochip458 unexport echo 462 >/sys/class/gpio/export ls -1 /sys/class/gpio/ export gpio462 gpiochip458 unexport https://www.kernel.org/doc/Documentation/gpio/sysfs.txt Is a little

Re: [opensuse-arm] Re: Control output pin on RPi

2018-09-04 Thread Volker Kuhlmann
On Tue 04 Sep 2018 23:56:11 NZST +1200, Andreas Färber wrote: > I can't repeat often enough: Forget wiringPi! Very happy to. Anything that works. Out of the box would be good. ;-) > Sure, I have. It's as simple as echo, no libraries needed. Sounds great. Where do I look for info? > The "offici

Re: [opensuse-arm] Re: Control output pin on RPi

2018-09-04 Thread Andreas Färber
Am 04.09.2018 um 06:29 schrieb Volker Kuhlmann: > The example from > http://wiringpi.com/examples/blink/ > > gcc -Wall -o blink blink.c -lwiringPi -lcrypt -pthread -lm -lrt > > # ./blink > wiringPiSetup: mmap (GPIO) failed: Operation not permitted > (yes this is as root) I can't repeat often eno

Re: [opensuse-arm] Re: Control output pin on RPi

2018-09-03 Thread Volker Kuhlmann
The example from http://wiringpi.com/examples/blink/ gcc -Wall -o blink blink.c -lwiringPi -lcrypt -pthread -lm -lrt # ./blink wiringPiSetup: mmap (GPIO) failed: Operation not permitted (yes this is as root) Back to my original question: Has anyone managed to flick a GPIO pin with openSUSE on a

Re: [opensuse-arm] Re: Control output pin on RPi

2018-09-03 Thread Volker Kuhlmann
On Tue 04 Sep 2018 13:58:43 NZST +1200, Malcolm wrote: > If you want to try wiringPi it has been updated for RPi3 B+? > https://build.opensuse.org/package/binaries/home:malcolmlewis:SLES12-SP2-RPI-Extra/wiringPi/openSUSE_Leap_15.0_Ports Great, thanks! zypper ar -k -f https://download.opensuse.o

[opensuse-arm] Re: Control output pin on RPi

2018-09-03 Thread Malcolm
On Tue 04 Sep 2018 01:49:49 PM CDT, Volker Kuhlmann wrote: >Trying wiringpi means installing the whole gcc lafaffel, on a minimal >system. > Hi If you want to try wiringPi it has been updated for RPi3 B+? https://build.opensuse.org/package/binaries/home:malcolmlewis:SLES12-SP2-RPI-Extra/wiringPi