Jump to content

playrich

Members
  • Posts

    8
  • Joined

  • Last visited

  1. Some new hints: Using pin 0 in constructor RF24 radio(0,0) finally starts the program but hangs the system. I've changed frequency param_spidev_max_freq=12000000 as per Lubuntu dmesg without success. This is a software problem. On Lubuntu with kernel 3.4.103 and same pinout works like a charm. Some of the traces I took from Lubuntu:
  2. Tried but compiler returns the following error: However I added a printf of variable "port" on line 37. Prints "22", matching SPI_DEV Constructor RF24 radio(22,0), therefore expanding path to "sys/class/gpio/gpio22..." which doesn't exist: I've also desperately tried unsucessfully: Stepping down to a release on the date it used to work (v1.3.2). Installing WiringPi for Bananapi Any ideas?
  3. Hi Martin. Thank you for your patience. Now I see /dev/spidev0.0 However now the problem is I can't use NRF24L01+ transceiver with RF24 library. I'm using "gettingstarted" test program and I get the following error: root@bananapi:/home/bananapi/rf24libs/RF24/examples_linux# ./gettingstarted RF24/examples/GettingStarted/ terminate called after throwing an instance of 'GPIOException' what(): can't access /sys/class/gpio/gpio%d/direction GPIO pin. check access rights Aborted I chmoded 777 /dev/spidev0.0 and lauched program with root. Compiling didn't return errors. Pin layout is the same as I had working with Lubuntu and described at bottom page of RF24 library for RPi. It reminds me the same problem I have when using batteries: this kernel has modified the hierarchy on /sys/class therefore programs expecting the old hierarchy (ACPI, udev, RF24, etc) don't work. I don't want to bother you any more with this issue, so I assume the limitations of these releases and I move back to Lubuntu. Thank you for the given support.
  4. As stated at the begining, same kernel as Riccardo posted: Armbian_19.11.6_Bananapi_bionic_current_5.4.8 I've also moved to Armbian Booster but same problem persists. The only workaround is moving back to Lubuntu. Find posted my serial boot , dmesg and kernel: Linux bananapi 5.4.20-sunxi #20.02.1 SMP Mon Feb 17 02:09:41 CET 2020 armv7l GNU/Linux for Armbian Booster. Hope this helps. Thanks in advance.
  5. Already check and stated in my first post: Naturally, I've read full instructions on Armbian's docs Allwinner DT overlays before posting.
  6. Hi Martin and thanks for helping us. Loading module spidev was a desperate attempt to fix the problem. Without loading module, problem persists.
  7. Hi everybody, I'm stuck with the same problem as Riccardo: same Armbian version, same kernel and even same name . Only difference is my board is M1 and I'm not using "spi-add-cs1" overlay. - I confirm configuration is OK and loaded as per boot logs: "Applying kernel provided DT overlay sun7i-a20-spi-spidev.dtbo". - I've also try loading module "spidev" with modprobe command. - I've also confirm files exist. Before updating to Armbian (I was in Lubuntu), I used spi bus without any problems with NRF24L01+ transcevier and NRF24 library. Another problem found after updating is, I'm not able to create and udev rule for launching scripts when switching to battery or ac: any of the values found by "udevadm info /sys/class/power_supply/axp20x-usb" doesn't change when switching power sources. Values found by "udevadm info /sys/power/axp_pmu/" are useless for an udev rule. Only workaround is a cron+script reading files /sys/power/axp_pmu/ac but this is not practical. Hope you can help me. Thanks in advance.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines