ubuntu-rockchip icon indicating copy to clipboard operation
ubuntu-rockchip copied to clipboard

Bug Report: Radxa 25W-POE HAT's fan is not working on rock-5b-plus

Open pascal71 opened this issue 1 year ago • 14 comments

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

pascal71 avatar Aug 09 '24 19:08 pascal71

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#

pascal71 avatar Aug 09 '24 19:08 pascal71

you can fefer to this dts.

nascs avatar Aug 13 '24 08:08 nascs

  1. compile dts to dtbo
  2. 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"
  3. 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
  4. reboot your system

nascs avatar Aug 13 '24 09:08 nascs

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
  1. compile dts to dtbo
  2. 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"
  3. 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
  4. 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: @.***>

pascal71 avatar Aug 13 '24 09:08 pascal71

I recommend that you can use the radxa-overlays repository to compile overlay.

nascs avatar Aug 13 '24 09:08 nascs

I'll write a tutorial on how to use the radxa-overlays repository later on.

nascs avatar Aug 13 '24 09:08 nascs

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.

Joshua-Riek avatar Aug 13 '24 12:08 Joshua-Riek

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.

nascs avatar Aug 13 '24 12:08 nascs

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?

pascal71 avatar Aug 14 '24 02:08 pascal71

For Ubuntu 24.04 the 6.x kernel source, maybe you can refer to noble.sh.

nascs avatar Aug 14 '24 02:08 nascs

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!

github-actions[bot] avatar Jan 20 '25 12:01 github-actions[bot]

Let me try to pick this one up

pascal71 avatar Jan 20 '25 18:01 pascal71

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.

ShrinivasKR avatar Feb 02 '25 12:02 ShrinivasKR

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!

github-actions[bot] avatar Mar 24 '25 12:03 github-actions[bot]

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.

github-actions[bot] avatar Jun 23 '25 12:06 github-actions[bot]