[Banana BPI-R4] Fan

dmesg:

[ 12.470622] of_pwm_get(): can't parse "pwms" property
[ 12.475746] pwm-fan pwm-fan: error -ENOENT: Could not get PWM
[ 12.481493] pwm-fan: probe of pwm-fan failed with error -2

root@BPI-R4:~# cat /sys/kernel/debug/clk/clk_summary |grep -i pwm
infra_hf_66m_pwm_hck 0 0 0 156250000 0 0 50000 N
pwm_sel 0 0 0 156250000 0 0 50000 N
infra_pwm_ck8_sel 0 0 0 156250000 0 0 50000 Y
infra_hf_66m_pwm_ck8 0 0 0 156250000 0 0 50000 N
infra_pwm_ck7_sel 0 0 0 156250000 0 0 50000 Y
infra_hf_66m_pwm_ck7 0 0 0 156250000 0 0 50000 N
infra_pwm_ck6_sel 0 0 0 156250000 0 0 50000 Y
infra_hf_66m_pwm_ck6 0 0 0 156250000 0 0 50000 N
infra_pwm_ck5_sel 0 0 0 156250000 0 0 50000 Y
infra_hf_66m_pwm_ck5 0 0 0 156250000 0 0 50000 N
infra_pwm_ck4_sel 0 0 0 156250000 0 0 50000 Y
infra_hf_66m_pwm_ck4 0 0 0 156250000 0 0 50000 N
infra_pwm_ck3_sel 0 0 0 156250000 0 0 50000 Y
infra_hf_66m_pwm_ck3 0 0 0 156250000 0 0 50000 N
infra_pwm_ck2_sel 0 0 0 156250000 0 0 50000 Y
infra_hf_66m_pwm_ck2 0 0 0 156250000 0 0 50000 N
infra_pwm_ck1_sel 0 0 0 156250000 0 0 50000 Y
infra_hf_66m_pwm_ck1 0 0 0 156250000 0 0 50000 N
infra_pwm_sel 0 0 0 156250000 0 0 50000 Y
infra_hf_66m_pwm_bck 0 0 0 156250000 0 0 50000 N

root@BPI-R4:~# cd /sys/class/thermal
root@BPI-R4:/sys/class/thermal# ls -ltr
lrwxrwxrwx 1 root root 0 Jan 1 1970 thermal_zone0 -> ../../devices/virtual/thermal/thermal_zone0

no cooling device :frowning:

It seems the solution is done for kernel 6.1 as per Forum. I have tested and I can confirm it is working.

For kernel 6.6 please look into openwrt_fan.txt

Hi Dear

How I can add this txt to my OpenWrt system . i'm new

I installed OpenWrt through this syste,

https://firmware-selector.openwrt.org/?version=SNAPSHOT&target=mediatek%2Ffilogic&id=bananapi_bpi-r4

What do you mean by add, and what would be the point ?

For today, it's r26556-17d8c5825e, it changes on a daily basis, when new images are built.

is the fan is working ? for this firmware
I saw some people saying to add this txt on system , so I don't know how to add this txt to get fan is working

I doubt changing the firmware build string will enable the fan ...

Just compile your own image. Now it is kernel 6.6 and fan is enabled by default there (I have just compiled new image to confirm you that).
Problem could be diffrent as I noticed today that under high load the temparature is really high in my system: CPU 65C, Wifi (MT7916) 90C (idle 70C) and that small cooler is not enough :confused: Need to figure out something more efficient especially when all cases are hermetic and it is impossible to make the air rotation on pcie side...