Bug Report: Radxa 25W-POE HAT's fan is not working on rock-5b-plus
What happened?
Installed ubunt 24.04 version on rock-5b-plus. I have mounted the Radxa 25W POE HAT on it. The device gets power, boots up nicely, but the fan is never spinning up. Not even when forcing it's PWM fan to spin.
It appears there is a new 25W POE overlay for that supports both ROCK5B and ROCK5B PLUS in the b2 debian version of the Radxa debian image. However, I do not know how to compile it against Ubuntu 24.04.
Kernel version
6.1.0-1021-rockchip
SBC model
radxa-rock-5b-plus
What operating system are you seeing this problem on?
Ubuntu 24.04 LTS (Noble Nombat)
Relevant logs
No response
root@rock5bp-n01:/tmp/usr/src/radxa-overlays-0.1.13/arch/arm64/boot/dts/rockchip/overlays# cat rock-5b-radxa-25w-poe.dts `` /dts-v1/; /plugin/;
#include <dt-bindings/gpio/gpio.h> #include <dt-bindings/pinctrl/rockchip.h> #include <dt-bindings/pwm/pwm.h> #include <dt-bindings/thermal/thermal.h>
/ { metadata { title = "Enable Radxa 25W PoE+ HAT"; category = "misc"; compatible = "radxa,rock-5b", "radxa,rock-5b-plus"; description = "Enable Radxa 25W PoE+ HAT."; exclusive = "GPIO3_A7", "GPIO3_C3"; package = "rsetup-config-thermal-governor-step-wise"; }; };
&{/} { radxa_pow_w1: radxa-poe-w1 { compatible = "w1-gpio"; gpios = <&gpio3 RK_PC3 GPIO_ACTIVE_HIGH>; status = "okay"; };
radxa_poe_fan: radxa-poe-fan {
compatible = "pwm-fan";
#cooling-cells = <2>;
cooling-min-state = <0>;
cooling-max-state = <4>;
cooling-levels = <0 64 128 192 255>;
pwms = <&pwm8 0 40000 PWM_POLARITY_INVERTED>;
};
};
&pwm8 { status = "okay"; pinctrl-0 = <&pwm8m0_pins>; };
&soc_thermal { cooling-maps { map4 { cooling-device = <&fan0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, <&radxa_poe_fan THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; }; map5 { cooling-device = <&fan0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, <&radxa_poe_fan THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; }; }; }; `` root@rock5bp-n01:/tmp/usr/src/radxa-overlays-0.1.13/arch/arm64/boot/dts/rockchip/overlays#
you can fefer to this dts.
- compile dts to dtbo
- copy dtbo to overlay directory by the cmd "cp rock-5b-radxa-25w-poe.dtbo /lib/firmware/5.10.0-1011-rockchip/device-tree/rockchip/overlay/rock-5b-radxa-25w-poe.dtbo"
- add a new line "fdtoverlays /lib/firmware/5.10.0-1011-rockchip/device-tree/rockchip/overlay/rock-5b-radxa-25w-poe.dtbo" in the file /boot/extlinux/extlinux.conf
- reboot your system
Quoting William Norman @.***>:
Thanks William;
But.. I probably need the source code of the kernel from rockchip
ubuntu 24.04. Can you share with me which packages I need. (The dts
file refers to some include files I cannot find)
Thanks in advance.
I will document the procedure once I have it working.
Kind regards,
Pascal van Dam
- compile dts to dtbo
- copy dtbo to overlay directory by the cmd "cp
rock-5b-radxa-25w-poe.dtbo
/lib/firmware/5.10.0-1011-rockchip/device-tree/rockchip/overlay/rock-5b-radxa-25w-poe.dtbo"- add a new line "fdtoverlays
/lib/firmware/5.10.0-1011-rockchip/device-tree/rockchip/overlay/rock-5b-radxa-25w-poe.dtbo" in the file
/boot/extlinux/extlinux.conf- reboot your system
-- Reply to this email directly or view it on GitHub: https://github.com/Joshua-Riek/ubuntu-rockchip/issues/980#issuecomment-2285739621 You are receiving this because you authored the thread.
Message ID: @.***>
I recommend that you can use the radxa-overlays repository to compile overlay.
I'll write a tutorial on how to use the radxa-overlays repository later on.
The device tree for the Rock 5B in Ubuntu Rockchip has a different cooling map configuration, I need to take a look to see how to make the overlay work.
I'll write a tutorial on how to use the radxa-overlays repository later on.
Hi @pascal71, for overlay compilation, you can refer to this guide.
Many thanks for your response.
For Ubuntu 24.04 the 6.x kernel is used, so I probably need that kernel source/headers instead of the 5.x one. Correct? Next question; where to get that one?
For Ubuntu 24.04 the 6.x kernel source, maybe you can refer to noble.sh.
This issue has been marked 'stale' due to lack of recent activity. If there is no further activity, the issue will be closed in another 14 days. Thank you for your contribution!
Let me try to pick this one up
Hi, I'd love for this to work as well. I think I possibly am having the same issue, which may be causing my system to crash when it has high system load. When I run immich on my 5B and start uploading, my 5B's system crashes and it disconnects from the network, and only then the fan turns on with the lights on, but the system disconnected from the network and therefore nonoperational. It uses about 1W at that time (as reported by my POE switch).
I'd love a guide for getting the POE hat and fan properly working when running Joshua-Reik's ubuntu image for Rock 5B.
This issue has been marked 'stale' due to lack of recent activity. If there is no further activity, the issue will be closed in another 14 days. Thank you for your contribution!
This issue has been closed due to inactivity. If you feel this is in error, please reopen the issue or file a new issue with the relevant details.