|
|
(137 intermediate revisions by the same user not shown) |
Line 1: |
Line 1: |
− | ===如何超频===
| |
− | =====选择合格的电源=====
| |
− | 超频使用R2S需要保证有稳定可靠的电源供应,这包括标称真实,质量可靠的电源适配器,以及低阻抗的MicroUSB连接线(通俗讲就是铜芯足够粗),经我们测试,市面有如下可选:
| |
− | [[File:R2spower3.jpg|frameless|800px]]<br />
| |
− | <b>友善定制版5v3a电源购买链接</b>:https://www.friendlyarm.com/index.php?route=product/product&product_id=141&search=USB&description=true&category_id=0 <br />
| |
| | | |
− | =====保证散热措施=====
| |
− | 超频会令NanoPi-R2S发热增加,需要使用金属外壳进行散热(必须),旧版的塑料外壳没法胜任,或DIY使用风扇进行主动散热。<br />
| |
− | 另外TF卡也建议使用能支持高温条件下正常工作的TF卡,可以选购行车记录仪专用的TF卡; <br />
| |
− | [[File:Nanopir2s-working.jpg|frameless|500px]]<br />
| |
− |
| |
− | ====超频测试固件====
| |
− | 该固件(FriendlyWrt)已解锁1.51G的CPU频率,可从以下地址下载:https://pan.baidu.com/s/1qGf9LtNFzxrcDsIKHpRMlg 密码: 80gs<br />
| |
− | 登录FriendlyWrt的网页,点击菜单项 服务->ttyd 进入终端,输入以下命令:<br />
| |
− | <syntaxhighlight lang="bash">
| |
− | dd if=/dev/zero of=/dev/null bs=1M&
| |
− | cat /sys/devices/system/cpu/cpu[04]/cpufreq/cpuinfo_cur_freq
| |
− | </syntaxhighlight>
| |
− | 就可以看到 R2S 已经运行在 1.51G:<br />
| |
− | [[File:Nanopir2s-wrt-overclock.png|frameless|500px]]<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的定义,修改后的内容如下所示:
| |
− | <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>;
| |
− | };
| |
− | </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&
| |
− | </syntaxhighlight>
| |
− | 再用如下命令查看当前的CPU频率,可以看到频率已经是1.5G:
| |
− | <syntaxhighlight lang="bash">
| |
− | root@FriendlyWrt:~# cat /sys/devices/system/cpu/cpu[04]/cpufreq/cpuinfo_cur_freq
| |
− | 1512000
| |
− | </syntaxhighlight>
| |