Penta SATA HAT no fan

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.

Same here, but with a new rockpi 4 b.
I’m really disappointed, how bad maintained all this stuff is. I’m not able to download none of the packages in https://wiki.radxa.com/Rockpi4/dev/libmraa, https://wiki.radxa.com/Penta_SATA_HAT or
https://wiki.radxa.com/Rockpi4/hardware/devtree_overlays
So, what I want seems so simple:
Get my freshly bought penta SATA head to work. I neither get the display nor the fan to work. grili91, Could You maybe help me at least with the display? How did You set it up with the current available sources, aside from all the dead links and guides from the wiki?

Hi Gauner,
first of all i am also disappointed concerning not working penta SATA HAT because i did only a apt update and apt upgrade in my former setting and it stopped working. :frowning:

What i did to get at least the oled working is:

  1. Download Armbian from downloads archive /archive/rockpi-4c/archive/ Install image using etcher to eMMC
  2. Boot device and log in
  3. Run updates and upgrades - $sudo apt update & sudo apt upgrade
  4. Followed instructions on https://github.com/eclipse/mraa/blob/master/docs/building.md (install every package on its own) so to be clear $sudo apt-get install git, $sudo apt-get install build-essential… for python packages use python3 eg python3-dev, nodejs-dev will be depreciated just use libraries that apt is recommending you
  5. you do not need to install dependencies for documentation if you do not want a docu
  6. Create directory where you clone git project and change to that directory
  7. Download mraa (libmraa2) from GitHub $sudo git clone github.com/eclipse/mraa.git
  8. Change directory to mraa $cd mraa
  9. Create a build directly $sudo mkdir build
  10. Change directory to build $cd build
  11. Run CMake on mraa $cmake …
  12. Run Make on mraa $make
  13. Install mraa $make install
  14. $sudo ln -s /usr/local/lib/python3.9/dist-packages/* /usr/lib/python3/dist-packages
  15. restart machine
  16. try mraa-gpio list if you get an error:
  17. run $sudo ldconfig
  18. Change back to the home directly $cd /home
  19. Run RockPi4 penta script
  20. if you get errors for other packages in installation just install them with $sudo apt-get install packagename
  21. if there are some python libraries use again python3!
  22. rerun install package
  23. When prompted to install missing packages say yes. This will fail on libmraa and rockpi4c-rk-u-boot-latest just ignore this

Hope i can help you with my description

Today i tried some other things and found out
$ /usr/sbin/i2cdetect -l
i2c-3 unknown rk3x-i2c N/A
i2c-1 unknown rk3x-i2c N/A
i2c-4 unknown rk3x-i2c N/A
i2c-0 unknown rk3x-i2c N/A
i2c-7 unknown rk3x-i2c N/A
that my i2c bus is not configured. For me it seems that overlay is not configured properly but i am a newbie to that topic.
Anyone an idea?

Thank You grili. I actually have installed a good working dietpi system now, on which I cannot get mraa to build. The bulding I tried before already on the semi-official armpi and the official debian - both no luck. Since other things were broken there too, I got over to dietpi and I’m happe with it.
I have the first experience with my use case now, and I see no temperature problem coming.
So, I give up for now and abstain from fan and display in favour of not investing more time.
Hopefully the people at radxa do their homework, otherwise I think the rising star “Rock Pi” will sink again soon.
Btw. on my system e have no /usr/sbin/i2cdetect.

Hi Gauner,
happy to hear, that your use case is up and running, /usr/sbin/i2cdetect is only available if you build mraa on your machine.
I am still struggling with my installation, as i do need fan because my temperature is going to high.

I would really appreciate some help from any moderator of this forum.