A few weeks ago i realised that my fan of my nas is not working anymore, nas was off for several months. I tried to reinstall the script on my old upgraded Armbian (20.05.03 buster) with no luck.
After struggling for several days i decided to upgrad to Armbian Bullseye - fan of my hat does not work anymore as before. Oled display is just working fine with button and different controls for the button.
I am using Rock Pi 4C and this is my output of uname -a:
5.10.60-rockchip64 #21.08.1 SMP PREEMPT Wed Aug 25 18:56:55 UTC 2021 aarch64 GNU/Linux
As with the provided install script libmraa is not available for bullseye i manually installed librmaa by compiling it.
mraa-gpio list is showing following result:
01 3V3:
02 5V:
03 SDA7: GPIO I2C
04 5V:
05 SCL7: GPIO I2C
06 GND:
07 SPI2_CLK: GPIO SPI
08 TXD2: GPIO UART
09 GND:
10 RXD2: GPIO UART
11 PWM0: GPIO PWM
12 GPIO4_A3: GPIO
13 PWM1: GPIO PWM
14 GND:
15 GPIO4_C5: GPIO
16 GPIO4_D2: GPIO
17 3V3:
18 GPIO4_D4: GPIO
19 SPI1TX,TXD4: GPIO SPI UART
20 GND:
21 SPI1RX,RXD4: GPIO SPI UART
22 GPIO4_D5: GPIO
23 SPI1CLK: GPIO SPI
24 SPI1CS: GPIO SPI
25 GND:
26 ADC_IN0: AIO
27 SDA2: GPIO I2C
28 SCL2: GPIO I2C
29 SCL6,SPI2RX: GPIO I2C SPI
30 GND:
31 SDA6,SPI2TX: GPIO I2C SPI
32 GPIO3_C0: GPIO
33 SPI2CS: GPIO SPI
34 GND:
35 GPIO4_A5: GPIO
36 GPIO4_A4: GPIO
37 GPIO4_D6: GPIO
38 GPIO4_A6: GPIO
39 GND:
40 GPIO4_A7: GPIO
I also tested fan on an raspberry pi, just to be sure fan is not broken. Also i tried to run hat on different operating systems (dietpi, offical rockpi image ubuntu, different armbian…) no fan at all but every time oled is working.
status of systemclt also shows no errors:
systemctl status rockpi-penta.service
● rockpi-penta.service - Rockpi SATA Hat
Loaded: loaded (/lib/systemd/system/rockpi-penta.service; enabled; vendor preset: enabled)
Active: active (running) since Fri 2022-03-11 23:08:38 CET; 38min ago
Main PID: 5642 (python3)
Tasks: 5 (limit: 4461)
Memory: 18.1M
CPU: 51.540s
CGroup: /system.slice/rockpi-penta.service
├─5642 /usr/bin/python3 /usr/bin/rockpi-penta/main.py on
├─5649 /usr/bin/python3 /usr/bin/rockpi-penta/main.py on
├─5650 /usr/bin/python3 /usr/bin/rockpi-penta/main.py on
├─5651 /usr/bin/python3 /usr/bin/rockpi-penta/main.py on
└─5652 /usr/bin/python3 /usr/bin/rockpi-penta/main.py on
Mar 11 23:08:38 Naspi systemd[1]: Started Rockpi SATA Hat.
Mar 11 23:08:38 Naspi libmraa[5642]: libmraa version v2.2.0-11-gd7ae171 initialised by user ‘root’ with EUID 0
Mar 11 23:08:38 Naspi libmraa[5642]: gpio: platform doesn’t support chardev, falling back to sysfs
Mar 11 23:08:38 Naspi libmraa[5642]: libmraa initialised for platform ‘ROCK Pi 4’ of type 20
Mar 11 23:08:38 Naspi libmraa[5642]: pwm_init: pwm0 already exported, continuing
journalctl -xe shows
A stop job for unit rockpi-penta.service has finished.
░░
░░ The job identifier is 1447 and the job result is done.
Mar 11 23:48:08 Naspi systemd[1]: rockpi-penta.service: Consumed 53.792s CPU time.
░░ Subject: Resources consumed by unit runtime
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░
░░ The unit rockpi-penta.service completed and consumed the indicated resources.
Mar 11 23:48:08 Naspi systemd[1]: Started Rockpi SATA Hat.
░░ Subject: A start job for unit rockpi-penta.service has finished successfully
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░
░░ A start job for unit rockpi-penta.service has finished successfully.
░░
░░ The job identifier is 1447.
Mar 11 23:48:08 Naspi polkitd(authority=local)[18648]: Unregistered Authentication Agent for unix-process:18643:463008 (system bus name :1.42, object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8) (disconnect>
Mar 11 23:48:08 Naspi libmraa[18694]: libmraa version v2.2.0-11-gd7ae171 initialised by user ‘root’ with EUID 0
Mar 11 23:48:08 Naspi libmraa[18694]: gpio: platform doesn’t support chardev, falling back to sysfs
Mar 11 23:48:08 Naspi libmraa[18694]: libmraa initialised for platform ‘ROCK Pi 4’ of type 20
Mar 11 23:48:08 Naspi libmraa[18694]: pwm_init: pwm0 already exported, continuing
I also saw on the forum that somone else got Penta SATA HAT running on bullsey but it was not written how to run fan.
So for now i am dealing with that problem for several weeks, any help would be appreciated.
Thank you very much.