Tomash Posted July 25, 2019 Posted July 25, 2019 Armbianmonitor: http://ix.io/1PpF Build on new kernel (5.1), Ubuntu 18.04. No cpufreq information (0 MHz in htop etc.) also means there's no working frequency scaling. Which for Allwinner H2+ (Banana Pi M2 Zero) means quick hard-hang due to overheating whenever I compile anything non trivial, unless I point a USB Fan on the CPU (which already got a heatsink). Is there any chance of getting cpufreq and dvfs to work?
Igor Posted July 25, 2019 Posted July 25, 2019 21 minutes ago, Tomash said: any chance of getting cpufreq and dvfs to work? Yes. It will be sorted out once, but this kernel is still in development which means ... do some research why its not working and fix it. Its regression either in kernel config, some patches are mixed up or not compatible ... who knows. If you want to just use the board, stick to NEXT kernel (4.19.y)
Tomash Posted July 25, 2019 Author Posted July 25, 2019 Good tip, thanks, I'll go ahead with 4.19 for now.
Tomash Posted July 25, 2019 Author Posted July 25, 2019 It's the same in 4.19. /sys/devices/system/cpu/cpufreq/ is an empty directory. How can I help in debugging and fixing it?
Igor Posted July 25, 2019 Posted July 25, 2019 Try build kernel without this patch. (remove patch/kernel/sunxi-next/board-bpi-m2-zero-enable-dvfs.patch and recompile) If this helps, send a PR for both, NEXT and DEV. The problem is probably the same.
Tomash Posted August 4, 2019 Author Posted August 4, 2019 Spot on, disabling this patch (by touch-ing an empty file in userpatches) fixed the issue, I've got cpufreq information and the frequency does change. stress results in dropping the frequency to 800Mhz when the temperature reaches 80 C, perfect. At least with NEXT, I'll build and test with DEV kernel soon. Should my entire PR be just a removal of this patch file altogether?
Igor Posted August 5, 2019 Posted August 5, 2019 8 hours ago, Tomash said: Should my entire PR be just a removal of this patch file altogether? Yes, please.
Tomash Posted August 5, 2019 Author Posted August 5, 2019 Thanks, here it is: https://github.com/armbian/build/pull/1503 Although it's a bit premature, I haven't tested DEV build yet.
Igor Posted August 5, 2019 Posted August 5, 2019 12 minutes ago, Tomash said: I haven't tested DEV build yet. It's more recent kernel and almost 100% the same issue. No need. Thanks.
Recommended Posts