I tried to use "userspace" and the bananapi stayed up for about four days. But then it crashed again. The red LED stops blinking (stays permanently on). And is no longer responsive on the network. Ping fails and checking ARP tables on the same network shows no MAC entry. So the bananapi seems to be locked up hard. Sometimes the HDMI shows a blank screen, sometimes it shows a crash debug.
I tried to change the CPU parameters in /etc/default/cpufrequtils to "performance" but, after a reboot, I always got "ondemand" output from cpufreq-info. What I found was that there are other CPU management modules running.
So I did this:
sudo systemctl disable loadcpufreq.service
sudo systemctl disable raspi-config.service
sudo apt install cpufrequtils
Then:
sudo systemctl enable cpufrequtils.service
sudo systemctl start cpufrequtils.service
sudo systemctl status cpufrequtils.service
Now I was able to set the parameters in /etc/default/cpufrequtils:
#GOVERNOR="userspace"
#MAX_SPEED="720000"
#MIN_SPEED="720000"
GOVERNOR="performance"
MIN_SPEED="480000"
MAX_SPEED="720000"
Then:
sudo systemctl daemon-reload
sudo systemctl restart cpufrequtils.service
sudo systemctl status cpufrequtils.service
I tried "userspace" (commented out above) but bananapi crashed after four days. Now I am switched to "performance" (shown above) and I will see how it goes. I will also try "performance" without lower and upper freq limits.
It would be great to hear from Igor why this change of cpu operating parameters is supposed to fix the hanging bananapi.