Difference between revisions of "APITestPage/zh"
From FriendlyELEC WiKi
(updated by API) |
|||
Line 1: | Line 1: | ||
− | == | + | ===如何超频=== |
− | === | + | ====选择合格的电源==== |
− | + | 超频使用R2S需要保证有稳定可靠的电源供应,这包括标称真实,质量可靠的电源适配器,以及低阻抗的MicroUSB连接线(通俗讲就是铜芯足够粗),经我们测试,市面有如下可选: | |
− | + | [[File:R2spower.jpg|frameless|800px]]<br /> | |
− | + | ||
− | + | ====解锁更高的CPU频率==== | |
− | + | 在FriendlyWrt Repo源代码的目录下,用vim打开以下文件: | |
− | < | + | <syntaxhighlight lang="bash"> |
− | + | vim kernel/arch/arm64/boot/dts/rockchip/rk3328.dtsi | |
− | + | </syntaxhighlight> | |
− | + | 在文件中搜索文本 opp-1296000000,在opp-1296000000定义后面,增加两个CPU频率的定义,分别为1.51G和1.6G,修改后的内容如下所示: | |
− | + | <syntaxhighlight lang="bash"> | |
− | < | + | opp-1296000000 { |
− | + | opp-hz = /bits/ 64 <1296000000>; | |
− | + | opp-microvolt = <1300000>; | |
− | + | clock-latency-ns = <40000>; | |
− | + | }; | |
− | + | opp-1512000000 { | |
− | + | opp-hz = /bits/ 64 <1512000000>; | |
− | + | opp-microvolt = <1450000>; | |
− | + | clock-latency-ns = <40000>; | |
− | + | }; | |
− | + | opp-1608000000 { | |
− | < | + | opp-hz = /bits/ 64 <1608000000>; |
− | + | opp-microvolt = <1450000>; | |
− | + | clock-latency-ns = <40000>; | |
− | + | }; | |
− | + | </syntaxhighlight> | |
− | + | 修改完成后,重新编译内核,并制作SD固件: | |
− | + | <syntaxhighlight lang="bash"> | |
− | + | ./build.sh kernel | |
− | < | + | ./build.sh sd-img |
− | == | + | </syntaxhighlight> |
− | = | + | |
− | + | ====验证CPU是否超频成功==== | |
− | + | 执行以下命令让CPU处于满载: | |
− | + | <syntaxhighlight lang="bash"> | |
− | + | dd if=/dev/zero of=/dev/null bs=1M& | |
− | + | dd if=/dev/zero of=/dev/null bs=1M& | |
− | + | dd if=/dev/zero of=/dev/null bs=1M& | |
− | + | dd if=/dev/zero of=/dev/null bs=1M& | |
− | + | </syntaxhighlight> | |
− | < | + | 再用如下命令查看当前的CPU频率,可以看到频率已经是1.6G: |
− | + | <syntaxhighlight lang="bash"> | |
− | + | root@FriendlyWrt:~# cat /sys/devices/system/cpu/cpu[04]/cpufreq/cpuinfo_cur_freq | |
− | + | 1608000 | |
− | + | </syntaxhighlight> | |
− | + | 如何你超频不成功,可以尝试更换质量更好的电源试试。 | |
− | + | ||
− | + |
Revision as of 08:14, 4 August 2020
Contents
1 如何超频
1.1 选择合格的电源
超频使用R2S需要保证有稳定可靠的电源供应,这包括标称真实,质量可靠的电源适配器,以及低阻抗的MicroUSB连接线(通俗讲就是铜芯足够粗),经我们测试,市面有如下可选:
1.2 解锁更高的CPU频率
在FriendlyWrt Repo源代码的目录下,用vim打开以下文件:
vim kernel/arch/arm64/boot/dts/rockchip/rk3328.dtsi
在文件中搜索文本 opp-1296000000,在opp-1296000000定义后面,增加两个CPU频率的定义,分别为1.51G和1.6G,修改后的内容如下所示:
opp-1296000000 { opp-hz = /bits/ 64 <1296000000>; opp-microvolt = <1300000>; clock-latency-ns = <40000>; }; opp-1512000000 { opp-hz = /bits/ 64 <1512000000>; opp-microvolt = <1450000>; clock-latency-ns = <40000>; }; opp-1608000000 { opp-hz = /bits/ 64 <1608000000>; opp-microvolt = <1450000>; clock-latency-ns = <40000>; };
修改完成后,重新编译内核,并制作SD固件:
./build.sh kernel ./build.sh sd-img
1.3 验证CPU是否超频成功
执行以下命令让CPU处于满载:
dd if=/dev/zero of=/dev/null bs=1M& dd if=/dev/zero of=/dev/null bs=1M& dd if=/dev/zero of=/dev/null bs=1M& dd if=/dev/zero of=/dev/null bs=1M&
再用如下命令查看当前的CPU频率,可以看到频率已经是1.6G:
root@FriendlyWrt:~# cat /sys/devices/system/cpu/cpu[04]/cpufreq/cpuinfo_cur_freq 1608000
如何你超频不成功,可以尝试更换质量更好的电源试试。