Rock 5 model b FAN not working

Hi, I’m quite new to ubuntu. My Rock 5 model b is working, but its fan it is not

Found this: https://github.com/pymumu/fan-control-rock5b

But it throws an error when “make package”. Can somebody please explain for an ubuntu noob how to make the Fan work? Thanks

git clone https://github.com/pymumu/fan-control-rock5b
cd fan-control-rock5b
make package
sudo dpkg -i fan-control*.deb
sudo systemctl enable fan-control
systemctl start fan-control

More info: All-Images-Depot Rock 5B

1 Like

Could you please provide the exact error you’re getting at make package please?

root@rock-5b:~# git clone https://github.com/pymumu/fan-control-rock5b
Cloning into ‘fan-control-rock5b’…
remote: Enumerating objects: 60, done.
remote: Counting objects: 100% (60/60), done.
remote: Compressing objects: 100% (39/39), done.
remote: Total 60 (delta 18), reused 57 (delta 15), pack-reused 0
Unpacking objects: 100% (60/60), 20.24 KiB | 941.00 KiB/s, done.
root@rock-5b:~# cd fan-control-rock5b
root@rock-5b:~/fan-control-rock5b# make package
cp systemd/fan-control.service.in systemd/fan-control.service
sed -i ‘s|@SBINDIR@|/usr/sbin|’ systemd/fan-control.service
sed -i ‘s|@SYSCONFDIR@|/etc|’ systemd/fan-control.service
sed -i ‘s|@RUNSTATEDIR@|/var/run|’ systemd/fan-control.service
make -C src all
make[1]: Entering directory ‘/root/fan-control-rock5b/src’
cc -O2 -Wall -c fan-control.c -o fan-control.o
make[1]: cc: Command not found
make[1]: *** [Makefile:14: fan-control.o] Error 127
make[1]: Leaving directory ‘/root/fan-control-rock5b/src’
make: *** [Makefile:37: FAN_CONTROL_BIN] Error 2
root@rock-5b:~/fan-control-rock5b#
root@rock-5b:~/fan-control-rock5b# sudo dpkg -i fan-control*.deb
dpkg: error: cannot access archive 'fan-control.deb’: No such file or directory*
root@rock-5b:~/fan-control-rock5b#

Looks like you need to do sudo apt install build-essential, as you don’t have gcc installed.

rock@rock-5b:~$ sudo apt install build-essential
[sudo] password for rock:
Reading package lists… Done
Building dependency tree
Reading state information… Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
build-essential : Depends: libc6-dev but it is not going to be installed or
libc-dev
Depends: g++ (>= 4:9.2) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

I mean, just add whatever it complains about:
sudo apt install build-essential libc6-dev g++
:slight_smile:

1 Like

Never ending loop of dependencies, this is why I hate ubuntu…

rock@rock-5b:~$ sudo apt install build-essential libc6-dev g++
Reading package lists… Done
Building dependency tree
Reading state information… Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
libc6-dev : Depends: libc6 (= 2.31-0ubuntu9.7) but 2.31-0ubuntu9.9 is to be installed
E: Unable to correct problems, you have held broken packages.

Seriously I have to downgrade to 2.31-0ubuntu9.7…

Bro just flash it with this one:
https://drive.google.com/file/d/1uMr9ngr69p38pk48S8UQRuHOdz95tkjc/view?usp=sharing
user: rock , password : armbian

sudo apt install qtwayland5

I finally did the downgrade with

sudo apt install libc6=2.31-0ubuntu9.7 libc-bin=2.31-0ubuntu9.7

It worked. Fan up and running. Thanks

2 Likes