Tronsmart Gift Fool's Day

Tuesday, December 29, 2015

How to overclock your Geekbox or other RK3368 based products

Hi, here is a guidance for some forks who want to overclock for their Geekbox or other RK3368 based products.

Steps:
1. Add the support for higher cpu frequency, follow commit for reference:
CODE: SELECT ALL

diff --git a/drivers/clk/rockchip/clk-pll.c b/drivers/clk/rockchip/clk-pll.c
index 325eb2c..7284bae 100755
--- a/drivers/clk/rockchip/clk-pll.c
+++ b/drivers/clk/rockchip/clk-pll.c
@@ -239,6 +239,16 @@ static const struct pll_clk_set rk312xplus_pll_com_table[] = {

static const struct apll_clk_set rk3368_apllb_table[] = {
/*(_mhz, nr, nf, no, aclkm, atclk, pclk_dbg)*/
+ #ifdef CONFIG_GEEKBOX_OVERCLOCK
+ _RK3368_APLL_SET_CLKS(1992, 1, 83, 1, 2, 6, 6),
+ _RK3368_APLL_SET_CLKS(1944, 1, 81, 1, 2, 6, 6),
+ _RK3368_APLL_SET_CLKS(1896, 1, 79, 1, 2, 6, 6),
+ _RK3368_APLL_SET_CLKS(1848, 1, 77, 1, 2, 6, 6),
+ _RK3368_APLL_SET_CLKS(1800, 1, 75, 1, 2, 6, 6),
+ _RK3368_APLL_SET_CLKS(1752, 1, 73, 1, 2, 6, 6),
+ _RK3368_APLL_SET_CLKS(1704, 1, 71, 1, 2, 6, 6),
+ _RK3368_APLL_SET_CLKS(1656, 1, 69, 1, 2, 6, 6),
+ #endif
_RK3368_APLL_SET_CLKS(1608, 1, 67, 1, 2, 6, 6),
_RK3368_APLL_SET_CLKS(1560, 1, 65, 1, 2, 6, 6),
_RK3368_APLL_SET_CLKS(1512, 1, 63, 1, 2, 6, 6),
@@ -285,6 +295,16 @@ static const struct apll_clk_set rk3368_apllb_table[] = {

static const struct apll_clk_set rk3368_aplll_table[] = {
/*(_mhz, nr, nf, no, aclkm, atclk, pclk_dbg)*/
+ #ifdef CONFIG_GEEKBOX_OVERCLOCK
+ _RK3368_APLL_SET_CLKS(1992, 1, 83, 1, 2, 7, 7),
+ _RK3368_APLL_SET_CLKS(1944, 1, 81, 1, 2, 7, 7),
+ _RK3368_APLL_SET_CLKS(1896, 1, 79, 1, 2, 7, 7),
+ _RK3368_APLL_SET_CLKS(1848, 1, 77, 1, 2, 7, 7),
+ _RK3368_APLL_SET_CLKS(1800, 1, 75, 1, 2, 7, 7),
+ _RK3368_APLL_SET_CLKS(1752, 1, 73, 1, 2, 7, 7),
+ _RK3368_APLL_SET_CLKS(1704, 1, 71, 1, 2, 7, 7),
+ _RK3368_APLL_SET_CLKS(1656, 1, 69, 1, 2, 7, 7),
+ #endif
_RK3368_APLL_SET_CLKS(1608, 1, 67, 1, 2, 7, 7),
_RK3368_APLL_SET_CLKS(1560, 1, 65, 1, 2, 7, 7),
_RK3368_APLL_SET_CLKS(1512, 1, 63, 1, 2, 7, 7),
diff --git a/geekbox/Kconfig b/geekbox/Kconfig
index d2746bb3..e6aba1e 100644
--- a/geekbox/Kconfig
+++ b/geekbox/Kconfig
@@ -4,5 +4,9 @@ menu "Geekbox Platform Options"
bool "Ubuntu or other Linux Distros support"
default n

+ config GEEKBOX_OVERCLOCK
+ bool "Overclock support"
+ default n
+
endmenu

(END)

We have pushed the commit to our Github:https://github.com/geekboxzone

2. make a configuration to enable: CONFIG_GEEKBOX_OVERCLOCK

3. setup the frequency & voltage table with your wanna value.
Following for your reference(in my case i just overclock to 1.85GHz):

CODE: SELECT ALL
file path: arch/arm64/boot/dts/geekbox.dts
&clk_core_b_dvfs_table {
operating-points = <
/* KHz uV */
//216000 950000
312000 950000
408000 950000
600000 975000
696000 975000
816000 1000000
1008000 1100000
1200000 1175000
1416000 1300000
1488000 1325000
1608000 1375000
1752000 1400000
1848000 1425000
>;
status = "okay";
};

&clk_core_l_dvfs_table {
operating-points = <
/* KHz uV */
//216000 950000
312000 950000
408000 950000
600000 950000
696000 975000
816000 1050000
1008000 1100000
1200000 1250000
1392000 1300000
>;
status = "okay";
};

Notice:
1. higher frequency need match a higher voltage supply.
2. the PMIC of Geekbox is RK808, and the highest voltage output for CPU supply is 1.50V
3. a cooling fan is recommended for a better heat dissipation: http://www.geekbuying.com/item/Slim-...ox-358271.html

one of the capture information(1.84GHz):

CODE: SELECT ALL
shell@rk3368_box:/ $ cat /sys/kernel/debug/clk/clk_summary | grep core
clk_pvtm_core 0 0 24000000
clk_hevc_core 1 1 288000000
clk_core_l 0 0 600000000
atclk_core_l 0 0 200000000
aclkm_core_l 0 0 300000000
clk_core_b 0 0 1848000000
atclk_core_b 0 0 308000000
aclkm_core_b 0 0 924000000
shell@rk3368_box:/ $

Sceenshots for references:
1. Antutu v6.0 Benchmark(Test at 1.85GHz):
The attachment geekbox_overclock_scores.png is no longer available

2. core information(Test at 1.85GHz):
The attachment geekbox_overclock_1848MHz.png is no longer available



geekbox_overclock_scores.png (63.22 KiB) Viewed 43 times

__________________

No comments:

Post a Comment