02-14-2021, 04:16 PM
Hi,
I'm just trying to transfer a extisting project to the TinkerOS.
On this project we're using the npm pakage "pigpiod" to use the interupt function for the GPIOs.
I'm struggeling with this for a few weeks now, but didn't find a good way to go.
I tried a lot of things until now.
and today i ended up with "initPeripherals: mmap gpio failed (Operation not permitted)"
My last idea was to update PIGPIOD on TinkerOS (I think it is v63) to a newer one because I got "sighandler unhandled signal 11 terminating" and found an information that this is fixed in newer PiGPIO versions.
I tried this first:
After updated to the actual "master" version i received the "initPeripherals: mmap gpio failed (Operation not permitted)" error for the first time.
So I tried to go back to the ASUS Package but it didn't work:
I'm on v7x (don't know the correct number)
So i switched to V66 also with the mmap error
Does anybody know how to go back to the standard one?
I also tried armbian before everything and ended up with "initPeripherals: mmap gpio failed (Operation not permitted)", everytime.
Also added "iomem=relaxed" to cmdline on TinkerOS and on Armbian.
Did I miss something?
I'm just trying to transfer a extisting project to the TinkerOS.
On this project we're using the npm pakage "pigpiod" to use the interupt function for the GPIOs.
I'm struggeling with this for a few weeks now, but didn't find a good way to go.
I tried a lot of things until now.
and today i ended up with "initPeripherals: mmap gpio failed (Operation not permitted)"
My last idea was to update PIGPIOD on TinkerOS (I think it is v63) to a newer one because I got "sighandler unhandled signal 11 terminating" and found an information that this is fixed in newer PiGPIO versions.
I tried this first:
Code:
wget https:// github.com/joan2937/pigpio/archive/master.zip
unzip master.zip
cd pigpio-master
make
sudo make install
After updated to the actual "master" version i received the "initPeripherals: mmap gpio failed (Operation not permitted)" error for the first time.
So I tried to go back to the ASUS Package but it didn't work:
Code:
git clone http: // github.com/TinkerBoard/gpio_lib_c --depth 1 GPIO_API_for_C
cd GPIO_API_for_C/
sudo chmod +x build
sudo ./build
I'm on v7x (don't know the correct number)
So i switched to V66 also with the mmap error
Code:
wget https: // github.com/joan2937/pigpio/archive/V66.tar.gz
tar -xvzf V66.tar.gz
cd pigpio-66/
make
sudo make install
Does anybody know how to go back to the standard one?
I also tried armbian before everything and ended up with "initPeripherals: mmap gpio failed (Operation not permitted)", everytime.
Also added "iomem=relaxed" to cmdline on TinkerOS and on Armbian.
Did I miss something?