We provide software support to help you control PoE fan, and a one-click installation script and manual installation steps are provided on PoE HAT.
If you use Rasbian on Raspberry Pi or an officially supported system on ROCK Pi 4, you can use the one-click installation script. We are adding more system support to the installation script.
Here are the detailed steps to manually install the software on Armbian of ROCK Pi 4.
1. Enable hardware resources
We provide a dtbo file, please follow these steps to install it in Armbian to enable PWM and ADC.
Sorry to bother you guys again, but the fan still doesnât work for latest armbian buster with 5.4.32:
I could get the dependencies done and installed/upgraded python. I had no errors during the install following the info here. Matter of fact, I get a nice
[ OK ] Started Rockpi PoE-FAN. I double checked overlay-user folder and the armbianENV.txt entry (user_overlays=rockpi-poe). libmraa (not libmraa-rockpi) was nicely installed and I checked using:
python3 -c âexec(âimport mraa\nprint(mraa.getVersion())â)â
v2.0.0-57-gf374a26
What else am I missing?
When I boot into official debian9, the fan starts during startup and slows down later, with armbian it stays silentâŚ
/e: Works smoothly now, boots fast, reinstalled libmraa (for whatever reason, I basically followed all steps again and checked after each; reinstalling libmraa was the point oO)
<snip snip>
E: Unable to locate package libmraa
E: Unable to locate package rockpi4-dtbo
Setting up rockpi-poe (0.11) ...
Created symlink /etc/systemd/system/multi-user.target.wants/rockpi-poe.service â /lib/systemd/system/rockpi-poe.service.
--------------------
The PWM will take effect after reboot.
root@rockpi-4a:~# uname -a
Linux rockpi-4a 5.16.16-rockchip64 #trunk.0012 SMP PREEMPT Sat Mar 19 16:34:14 UTC 2022
aarch64 GNU/Linux
root@rockpi-4a:~# systemctl status rockpi-poe.service
â rockpi-poe.service - Rockpi PoE-FAN
Loaded: loaded (/lib/systemd/system/rockpi-poe.service; enabled; vendor preset: enabled)
Active: active (running) since Tue 2022-03-22 11:19:06 UTC; 58s ago
Main PID: 659 (python3)
Tasks: 1 (limit: 4464)
Memory: 11.6M
CPU: 187ms
CGroup: /system.slice/rockpi-poe.service
ââ659 /usr/bin/python3 /usr/bin/rockpi-poe.py start
Mar 22 11:19:06 rockpi-4a systemd[1]: Started Rockpi PoE-FAN.
Mar 22 11:19:08 rockpi-4a libmraa[659]: libmraa version v2.2.0-11-gd7ae171 initialised by user ârootâ with EUID 0
Mar 22 11:19:08 rockpi-4a libmraa[659]: gpio: platform doesnât support chardev, falling back to sysfs
Mar 22 11:19:08 rockpi-4a libmraa[659]: libmraa initialised for platform âROCK Pi 4â of type 20
Is there any updated installation guide or information on getting the PoE running on a ROCK PI 4b?
We have several ROCK PIs running the original rockpi-4b-debian-buster-xfce4-arm64-20220506-0320-gpt.img. Until now the procedure from @setq and from @dolphs did not solve the issue.
$ sudo systemctl status rockpi-poe.service gives following message:
â rockpi-poe.service - Rockpi PoE-FAN
Loaded: loaded (/lib/systemd/system/rockpi-poe.service; enabled; vendor preset: enabled)
Active: inactive (dead) since Tue 2022-07-19 03:32:45 UTC; 8h ago
Process: 496 ExecStart=/usr/bin/python3 /usr/bin/rockpi-poe.py start (code=exited, status=0/SUCCESS)
Process: 549 ExecStop=/usr/bin/python3 /usr/bin/rockpi-poe.py stop (code=exited, status=0/SUCCESS)
Main PID: 496 (code=exited, status=0/SUCCESS)
Jul 19 03:32:45 rockpi-4b systemd[1]: Started Rockpi PoE-FAN.
Jul 19 03:32:45 rockpi-4b /rockpi-poe.py[496]: Maybe need reboot.
Jul 19 03:32:45 rockpi-4b python3[496]: 'NoneType' object has no attribute 'write'
Jul 19 03:32:45 rockpi-4b python3[496]: using python3 rockpi-poe.py start|stop|enable
Jul 19 03:32:45 rockpi-4b /rockpi-poe.py[549]: Maybe need reboot.
Jul 19 03:32:45 rockpi-4b python3[549]: 'NoneType' object has no attribute 'write'
Jul 19 03:32:45 rockpi-4b python3[549]: using python3 rockpi-poe.py start|stop|enable
Jul 19 03:32:45 rockpi-4b systemd[1]: rockpi-poe.service: Succeeded.
This worked for me on RockPi4 Plus (OP1 based) with "âArmbian 22.05.4 Bullseyeâ. I booted from this sd card image - Armbian_22.05.4_Rockpi-4b_bullseye_current_5.15.48.img.xz.
configured nvme boot via armbian-config.
booted from nvme
sudo apt update
sudo apt upgrade -y
Aug 16 08:19:52 rockpi-4b libmraa[6543]: libmraa version v2.2.0-26-g8b1c549 initialised by user ârockâ with EUID 1000
Aug 16 08:19:52 rockpi-4b libmraa[6543]: gpio: support for chardev interface is activated
Aug 16 08:19:52 rockpi-4b libmraa[6543]: libmraa initialised for platform âROCK Pi 4â of type 20
Hope this is useful. I have some tweaks to the rockpi-poe package, but have yet to turn it into a .deb package, etc. Mostly cosmetic.