Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
pascal71 opened this issue Aug 9, 2024 · 13 comments
Open

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

pascal71 opened this issue Aug 9, 2024 · 13 comments
Labels
bug Something isn't working

Comments

@pascal71
Copy link

pascal71 commented Aug 9, 2024

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 pascal71 added the bug Something isn't working label Aug 9, 2024
@pascal71
Copy link
Author

pascal71 commented Aug 9, 2024

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#

@nascs
Copy link

nascs commented Aug 13, 2024

you can fefer to this dts.

@nascs
Copy link

nascs commented Aug 13, 2024

  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

@pascal71
Copy link
Author

pascal71 commented Aug 13, 2024 via email

@nascs
Copy link

nascs commented Aug 13, 2024

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

@nascs
Copy link

nascs commented Aug 13, 2024

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

@Joshua-Riek
Copy link
Owner

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.

@nascs
Copy link

nascs commented Aug 13, 2024

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.

@pascal71
Copy link
Author

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?

@nascs
Copy link

nascs commented Aug 14, 2024

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

@Joshua-Riek Joshua-Riek removed their assignment Nov 29, 2024
Copy link

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 github-actions bot added the stale Issues with a lack of recent activity label Jan 20, 2025
@pascal71
Copy link
Author

Let me try to pick this one up

@github-actions github-actions bot removed the stale Issues with a lack of recent activity label Jan 27, 2025
@ShrinivasKR
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants