Closed wanghongjuan closed 7 years ago
Looks like a permission issue to me - try it as rot - you're getting permission denied.
Thanks for your quickly response, I tried it as root, unfortunately, got same result as above
@nicolalunghiemutex any ideas? Do you know if there's a bios issue or something on up1 that would cause this? seems liek gpio4 just won't export itself from sysfs
Dear @wanghongjuan
Can you try do execute the following command:
sudo -i
echo 4 > /sys/class/gpio/export
and report back the result?
Can you try do execute the following command:
sudo ls /sys/kernel/debug/pinctrl
and report the result?
Best Regards Nicola Lunghi
Hi, @nicolalunghiemutex thanks for you reply, please see below information:
$ uname -a
Linux up2 4.10.0-33-generic #37~16.04.1-Ubuntu SMP Fri Aug 11 14:07:24 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
root@up2:~# echo 4 > /sys/class/gpio/export
-bash: echo: write error: Invalid argument
yunfei@up2:~$ sudo ls /sys/kernel/debug/pinctrl
INT33FF:00 INT33FF:01 INT33FF:02 INT33FF:03 pinctrl-devices pinctrl-handles pinctrl-maps
For the up board kernel, I will install it later.
Dear @wanghongjuan without the Up Linux Kernel the GPIO on the board simply doesn't work. Please install our kernel from the PPA then try again.
Regards Nicola Lunghi
Closing for no activity and solution provided, feel free to comment if you need to reopen it.
Hi I am having a similar issue,
I believe that I am using upboard kernel, can someone help?
Hello,
I am use this up board with Ubuntu 16.04, but blocked when invoke GPIO with mraa (javascript version), test code as below:
Error occurred when running
node led.js
whether using role admin(root) or general user:Journalctl log as below:
I tried all pins as this mapping, but all of them got same error as above.
Software Info:
Node.js: V6.11.2 Npm: V3.10.10 Mraa: V1.7.0