Rockpi4 with poe hat

Dear Community,

I recently bought a Rockpi 4 model C with PoE hat (ROCK PI 802.3at PoE HAT v1.2). I tried to set it up according to the wiki page here: https://wiki.radxa.com/ROCKPI_23W_PoE_HAT

My OS is Ubuntu 20.04. While the installscript was running, an error occured. It couldn’t find and install the libmraa-rockpi4 package. (E: Unable to locate package libmraa-rockpi4) As i saw this was the only problem, but because of this, the rockpi-poe.service is not running. Did anyone experience the same issue? How can i install that package?

Best regards,
Rockpi_fan

Hello,

Thank you for your feedback. I have modified the script, please try reinstalling it.

hm, using this script: https://rock.sh/get-rockpi-poe i still get the same error

@setq @Rockpi_fan I’m also experiencing this issue on 20.04.2 ubuntu and haven’t found anything that works in any of the other threads.

root@k8s-node-02:/home/rock# sudo systemctl status rockpi-poe.service
● rockpi-poe.service - Rockpi PoE-FAN
     Loaded: loaded (/lib/systemd/system/rockpi-poe.service; enabled; vendor preset: enabled)
     Active: inactive (dead)

Mar 15 13:32:17 k8s-node-02 systemd[1]: Started Rockpi PoE-FAN.
Mar 15 13:32:17 k8s-node-02 /rockpi-poe.py[473]: Maybe need reboot.
Mar 15 13:32:17 k8s-node-02 python3[473]: 'NoneType' object has no attribute 'write'
Mar 15 13:32:17 k8s-node-02 python3[473]: using python3 rockpi-poe.py start|stop|enable
Mar 15 13:32:18 k8s-node-02 /rockpi-poe.py[516]: Maybe need reboot.
Mar 15 13:32:18 k8s-node-02 python3[516]: 'NoneType' object has no attribute 'write'
Mar 15 13:32:18 k8s-node-02 python3[516]: using python3 rockpi-poe.py start|stop|enable
Mar 15 13:32:18 k8s-node-02 systemd[1]: rockpi-poe.service: Succeeded

I did manage to fix the packages I was trying to install from using https://wiki.radxa.com/Rockpi4/radxa-apt

But I still ended up with the following:

root@k8s-node-02:/home/rock# apt-get install libmraa-rockpi4
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'libmraa' instead of 'libmraa-rockpi4'
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 libmraa : Depends: libjson-c3 but it is not installable
           Depends: python3.7 but it is not installable
           Depends: libpython3.7 but it is not installable

What was the solution to this problem?
I have a similar situation

Hello together,
I had the same problem by using this SCRIPT. But on my system the libmraa - Library is installed.

libmraa-rockpi4
Reading package lists… Done
Building dependency tree
Reading state information… Done
Note, selecting ‘libmraa’ instead of ‘libmraa-rockpi4’
libmraa is already the newest version (1.2).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

And I had the same problem, that the Service is not running:
● rockpi-poe.service - Rockpi PoE-FAN
Loaded: loaded (/lib/systemd/system/rockpi-poe.service; enabled; vendor preset: enabled)
Active: inactive (dead) since Tue 2021-06-29 16:36:05 CEST; 18min ago
Process: 1661 ExecStart=/usr/bin/python3 /usr/bin/rockpi-poe.py start (code=exited, status=0/SUCCESS)
Process: 1804 ExecStop=/usr/bin/python3 /usr/bin/rockpi-poe.py stop (code=exited, status=0/SUCCESS)
Main PID: 1661 (code=exited, status=0/SUCCESS)

Jun 29 16:36:05 CompNode01 libmraa[1661]: pwm_init: pwm0. Failed to open export for writing: No such file or directory
Jun 29 16:36:05 CompNode01 python3[1661]: ‘NoneType’ object has no attribute ‘write’
Jun 29 16:36:05 CompNode01 python3[1661]: using python3 rockpi-poe.py start|stop|enable
Jun 29 16:36:05 CompNode01 libmraa[1804]: libmraa version v2.1.0-11-g06b2be2 initialised by user ‘root’ with EUID 0
Jun 29 16:36:05 CompNode01 libmraa[1804]: gpio: platform doesn’t support chardev, falling back to sysfs
Jun 29 16:36:05 CompNode01 libmraa[1804]: libmraa initialised for platform ‘ROCK Pi 4’ of type 20
Jun 29 16:36:05 CompNode01 libmraa[1804]: pwm_init: pwm0. Failed to open export for writing: No such file or directory
Jun 29 16:36:05 CompNode01 python3[1804]: ‘NoneType’ object has no attribute ‘write’
Jun 29 16:36:05 CompNode01 python3[1804]: using python3 rockpi-poe.py start|stop|enable
Jun 29 16:36:05 CompNode01 systemd[1]: rockpi-poe.service: Succeeded.

What kind of PYTHON - Version did you are using? On my Node is 3.7.3 - Version. What can I do?
Best regards

Matthias