jayanta525 / openwrt-nanopi-r2s

OpenWrt support for FriendlyElec NanoPi R2S RK3328 SoC board with 2x1000Mbps ports. This repository is not a fork of friendlywrt but a fork of upstream/openwrt.
https://openwrt.org
GNU General Public License v2.0
86 stars 35 forks source link

Add PWM FAN function on R2S #6

Closed CWZ7605 closed 4 years ago

CWZ7605 commented 4 years ago

I want to connect the fan interface on the R2S motherboard. But I don't want the fan to keep running at full speed, so I need it to control the fan speed through PWM output.

This is the OFFICIAL firmware PWM control function, I hope to help you. https://github.com/friendlyarm/friendlywrt/commit/e1fb88ff29bcf634c875b94a9026565c7780149f

Well, if there is anything I can do to help, let me know.

jayanta525 commented 4 years ago

Hello @CWZ7605

This repository was prepared keeping in mind to create a PR at openwrt/master. Since, an RK3328 target (Pine64 Rock64) is already pending, its better to wait to avoid conflicts in merge situations.

For adding additional functionality to R2S, I have created circleci branch here: link which already includes the irq_optimize procd script, and creates images with circleci.

I don't have a pwm capable fan, but i will try to modify the script from the commit at friendlywrt and test with an multimeter.

Please keep an eye at the circleci branch for this feature.

CWZ7605 commented 4 years ago

Hello @CWZ7605

This repository was prepared keeping in mind to create a PR at openwrt/master. Since, an RK3328 target (Pine64 Rock64) is already pending, its better to wait to avoid conflicts in merge situations.

For adding additional functionality to R2S, I have created circleci branch here: link which already includes the irq_optimize procd script, and creates images with circleci.

I don't have a pwm capable fan, but i will try to modify the script from the commit at friendlywrt and test with an multimeter.

Please keep an eye at the circleci branch for this feature.

Thanks for your help