Jump to content


  • Posts

  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. After a lot of time around the subject i found that to use GPIO in python3 we need to install the: https://github.com/LeMaker/RPi.GPIO_BP But we need to install it before we try the sinovoip version. If we install the sinovoip first an after that the lemaker version. It not work. For C, shell and python2 we can use (it works): https://github.com/BPI-SINOVOIP/BPI-WiringPi https://github.com/BPI-SINOVOIP/BPI-WiringPi2-Python tnks for the help
  2. Im tring to access the GPIO using Python3 on a bananapi M1 Linux m5 4.19.38-sunxi #5.85 SMP Wed May 8 14:20:48 CEST 2019 armv7l GNU/Linux I manage to get access to gpio in shell, c, and in python2, but not in python3 with the following software: https://github.com/BPI-SINOVOIP/BPI-WiringPi https://github.com/BPI-SINOVOIP/BPI-WiringPi2-Python The error in python3 is the following (in pyhon2 work) : Traceback (most recent call last): File "/root/src/BPI-WiringPi2-Python/wiringpi2.py", line 18, in swig_import_helper fp, pathname, description = imp.find_module('_wiringpi2', [dirname(__file__)]) File "/usr/lib/python3.5/imp.py", line 296, in find_module raise ImportError(_ERR_MSG.format(name), name=name) ImportError: No module named '_wiringpi2' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "test.py", line 1, in <module> import wiringpi2 as wiringpi File "/root/src/BPI-WiringPi2-Python/wiringpi2.py", line 28, in <module> _wiringpi2 = swig_import_helper() File "/root/src/BPI-WiringPi2-Python/wiringpi2.py", line 20, in swig_import_helper import _wiringpi2 ImportError: /usr/local/lib/python3.5/dist-packages/wiringpi2-1.1.1-py3.5-linux-armv7l.egg/_wiringpi2.cpython-35m-arm-linux-gnueabihf.so: undefined symbol: PyString_FromStringAndSize After that I tryed the follow software and instructions: https://github.com/BPI-SINOVOIP/RPi.GPIO http://wiki.lemaker.org/BananaPro/Pi:GPIO_library In both i got the following error: root@m5:~/src/RPi.GPIO_BP/test# python3 led.py BPI: gpioLayout(-1) Traceback (most recent call last): File "led.py", line 2, in <module> import RPi.GPIO as GPIO File "/usr/local/lib/python3.5/dist-packages/RPi/GPIO/__init__.py", line 23, in <module> from RPi._GPIO import * RuntimeError: This module can only be run on a Raspberry Pi! After I notice that in lemaker wiki was a BCM2835 lib modified to BP (but said bananapro). I tried it anyway but altough compile without error, the test fail. (My banana is a M1 not a pro) https://github.com/LeMaker/bcm2835_BP After I also tried the following software and instructions of the following link without sucess (python3): http://wiki.lemaker.org/LMK.GPIO. The return stop feeding a new line. Time to stop the post. howto bpi m2 python3 gpio? Tks for your time. Sergio
  3. I've done a mistake and switch to dev instead of nightly build, and i notice that the armbian-config lost the hardware configuration. It boot kernel 4.15 and its complaining about missing overlays. I belive that are the overlays regarding the i2c and uart i'v selected in armbian-config before switching to dev. Does the nightly build also misses the hardware configuration in armbian-config?
  4. Thank you for your reply. Yes it is old. Unfortunately in the banana pi the last usable kernels are the 4.9 and 4.11, and I’m using 4.9, because an WiFi dongle that crash’s the 4.11. If you tell to upgrade to the Last version of armbian thats not an option it have a kernel that it is not stable on banana pi. If it is upgrading the armbian-config I didn’t find a way, and after reading your link I believe it will not works because overlays need the armbian 5.30 and I have 5.25. So... I’m thinking it’s easy to find a compatible WiFi dongle and use the Armbian 5.31 that have kernel 4.11.
  5. Thanks for your reply, but when execute that command I got the error bellow from your server. So in order to give the info you request I attach the file to this post. Thank you! Sergio Last login: Sun Jul 8 20:18:08 2018 from root@dami:~# armbianmonitor -u /var/log/armhwinfo.log has been uploaded to <html> <head> <title>500 Internal Server Error</title> </head> <body> <h1>500 Internal Server Error</h1> The server has either erred or is incapable of performing the requested operation.<br /><br /> </body> </html> armhwinfo.log
  6. Hi! Im running armbian 5.25 on a banana pi. And i cant found a way to enable gpio on in. In armbian 5.31, there is an option on the armbian-config to do it. On 5.25 i cant find it. Anyone could help me enabling GPIO for UART3, UART7 and I2C? Thanks Sergio
  7. Does anyone know where to find older banana pi armbian images to download The link bellow only show 5.31 and up. https://dl.armbian.com/bananapi/archive/ Tanks Sergio
  8. Hi Im seeking for a kernel that i can trust it does not hang. Using the old 3.4 kernel on bananian I could get my banana pi m1 more than 6 months without hangs and reboot. Now im been playing with the armbian and 4.x kernels for almost an year, and the banana pi hardly got 2 months without hangs and reboot. Could you be kind to tell me what is the kernel version with longest uptime with armbian on a banana pi? Sergio
  9. There is a topic in allwinner subforum about the instability of the kernel 4.14.18 on some allwinner devices. I got that stability issues on my banana pi m1, and notice that the last kernel available on armbian still the 4.14.18. Today I also run apt upgrade on raspberry pi 3 and it installed the kernel 4.14.30 that stop the ipsec vpn working, the same as in 4.14.18 used on armbian. I feel some frustration on the latest kernel updates, and wondering if anyone have some info about the next kernel update that solve this issues. Do you advise me to change to nightly builds to get a new kernel to test?
  10. I have banana pi m1 to test, one with 4.11.5 kernel other with 4.14.18, boot up at same time The kernel run for 5 days, 19:00:24, then stop working, the kernel 4.11.5 still runs
  11. I manage to config it using kernel 4.11.5-sunxi. I believe that also solve a instability I notice on last kernel, and also get rid of the annoying kworker.
  12. Hello, same problem here, on a banana pi m1 with armbian 5.38 kernel 4.14.18-sunxi. The pi hangs frequently, sometimes not even an hour, and kworker shows an unusual cpu usage. After reading above posts about using the 4.11.5-sunxi kernel, I made a sdcard with armbian 5.31, and freeze the kernel on 4.11.5-sunxi. Then install and config a ipsec l2pt vpn that I never get to work with kernel 4.14.18, and then it stay idle for more than usual without hang. If it hangs on the next few days i log it here.
  13. Hi im trying to reproduce my old bananian server on armbian, and I’m stuck on IPSec l2tp psk. tried: strongswan installed by apt and by source compile libreswan by source compile and everytime I try to connect to server on any off the above installs I got a kernel error message about thumb2. does anyone have a IPSec l2tp vpn working with armbian in banana pi with the latest kernel?
  14. This bug is still in debian version used in armbian 5.38. cat /etc/armbian-release # PLEASE DO NOT EDIT THIS FILE BOARD=bananapi BOARD_NAME="Banana Pi" BOARDFAMILY=sun7i VERSION=5.38 LINUXFAMILY=sunxi BRANCH=next ARCH=arm IMAGE_TYPE=stable BOARD_TYPE=conf INITRD_ARCH=arm KERNEL_IMAGE_TYPE=zImage Tentative to solve it, only by creating the file bellow and reboot. cat /etc/modprobe.d/blacklist.conf blacklist ir_lirc_codec blacklist lirc_dev blacklist sunxi-cir Just one hour up and no more FIFO is full message.
  • Create New...