Hello everyone,
I was recently able to overclock my Pinetab 2 on UbPorts, so I figured I'd share a guide here. I was able to get mine to run stably at 2GHZ (some might be able to push it further, but Cortex A55s aren’t known for being able to reach especially high clock speeds, so your mileage may vary). I did overvolt mine slightly just to ensure stability, although it worked without the overvolt as well. I'll provide both configurations here, you may decide which one you are more comfortable with.
Firstly, you'll need something called "device tree compiler" from apt. I’m also assuming that nano is installed, but you can use the text editor of your choice.
Open your terminal and run:
- sudo apt install device-tree-compiler
- cd /boot/dtb-6.5.0-okpine/rockchip
Now, we must convert the DTB files to DTS files so that we can edit them. The Pinetab 2 actually has two DTB files that we will need to edit. Technically, only one of these is loaded by the bootloader, but it can be difficult to tell which one is loaded after bootup (the bootloader takes care of this transparently from the kernel, so Linux itself is unaware of which file was actually loaded). We will edit both just to be sure. (As always, it’s a good idea to create a backup of your /boot folder before editing these. If you botch the overclock, having a backup will make it much easier to restore your old settings. )
- sudo dtc -I dtb -O dts rk3566-pinetab2-v0.1.dtb -o rk3566-pinetab2-v0.1.dts
- sudo dtc -I dtb -O dts rk3566-pinetab2-v2.0.dtb -o rk3566-pinetab2-v2.0.dts
Now, we will be able to edit these newly created DTS files to edit the clock speeds with nano (or your favorite text editor of choice). Around line 91, you will see the beginning of an opp table with “opp-table-0” values, which identify valid clock speeds and voltages for the processor. We will add a couple of lines at the end of this block, below the 1800000000 block. We will do the same process for both DTS files.
Note that voltages are provided in hexadecimal here. I will provide two different configurations that you can use, one of which uses default voltages (1.15 volts) and the other of which has a slight overvolt to 1.20 volts. Your mileage may vary. My tablet was stable on both configurations, but some tablets may be more stable with a slight overvolt (do keep in mind that the Pinetab 2 is a passively cooled device, so do this at your own risk).
If you would like to preserve default voltages (without an overvolt), add the following:
opp-2000000000 {
opp-hz = <0x00 0x77359400>;
opp-microvolt = <0x100590 0x100590 0x118c30>;
};
If you would like a modest overvolt to 1.20v (may improve stability, but increases heat dissipation and power consumption) use the following:
opp-2000000000 {
opp-hz = <0x00 0x77359400>;
opp-microvolt = <0x10C8E0 0x10C8E0 0x124F80>;
};
(This is a fairly modest overvolt, which is unlikely to be particularly risky as far as overclocking goes. However, please keep in mind that this is not a risk-free thing! Overvolting can increase the chance of overheating the device. Mine performs fine and hasn’t throttled under load, but make sure you are aware of the risks before attempting to overclock a device with overvolting. Your mileage may vary, and the silicon lottery is real.)
Once you’ve added these settings to your DTS files, we will need to convert them back to DTB files before we can reboot for the new settings to take effect.
- sudo dtc -I dts -O dtb rk3566-pinetab2-v0.1.dts -o rk3566-pinetab2-v0.1.dtb
- sudo dtc -I dts -O dtb rk3566-pinetab2-v2.0.dts -o rk3566-pinetab2-v2.0.dtb
This will spit out some warnings, which can safely be ignored (so long as there are no errors. Warning messages are expected).
Now, reboot your pinetab 2. Then monitor the clock speed in the terminal to ensure that the device is reaching 2ghz:
- sudo watch -n 2 cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_cur_freq
(Note that this only watches core 0. However, this should be enough to ensure that the device is reaching your new clock speed. Make sure to put some load on the device, as the device will downclock during idle periods to save battery life. Ensure that the device reaches 1.99 or 2.00 ghz under load.)
Once you’ve verified that your tablet reaches the desired clock speed, the overclock is complete! You may now use your newly “upgraded" tablet, and enjoy your new ~11% clock speed increase.
Disclaimer: Do this at your own risk! I haven’t shared any settings I have not tried successfully on my own device, but your mileage may vary. Do not overclock your device if you are not completely comfortable with a little bit of risk beforehand!