Apparently the ar71xx can be overclocked to 800MHz from old threads that I read. There was a patch that a user could apply to do it, but all of the links I have found are dead. Does anyone have the patch or other instructions on how to OC this ancient thing?
Updated to the 4.9 kernel
--- /dev/null 2015-05-16 21:17:31.359951473 +1000
+++ b/target/linux/ar71xx/patches-4.9/999-overclock800mhz.patch 2015-05-12 19:50:27.902976000 +1000
@@ -0,0 +1,11 @@
+--- a/arch/mips/include/asm/mach-ath79/kernel-entry-init.h.orig 2012-09-28 10:00:01.000000000 +0200
++++ b/arch/mips/include/asm/mach-ath79/kernel-entry-init.h 2012-09-28 10:03:36.000000000 +0200
+@@ -23,6 +23,8 @@
+ and t0, t1
+ ori t0, CONF_CM_CACHABLE_NONCOHERENT
+ mtc0 t0, CP0_CONFIG
++ li t2, 0xc0140198
++ sw t2, 0x18050000
+ nop
+ .endm
+
[ 0.000000] Clocks: CPU:800.000MHz, DDR:400.000MHz, AHB:200.000MHz, Ref:40.000MHz
Works like a charm.
> culex@ubuntu:~/OpenWRT$ cat 800mhz.patch
> --- /dev/null 2015-05-16 21:17:31.359951473 +1000
> +++ b/target/linux/ar71xx/patches-4.9/999-overclock800mhz.patch 2015-05-12 19:50:27.902976000 +1000
> @@ -0,0 +1,11 @@
> +--- a/arch/mips/include/asm/mach-ath79/kernel-entry-init.h.orig 2012-09-28 10:00:01.000000000 +0200
> ++++ b/arch/mips/include/asm/mach-ath79/kernel-entry-init.h 2012-09-28 10:03:36.000000000 +0200
> +@@ -23,6 +23,8 @@
> + and t0, t1
> + ori t0, CONF_CM_CACHABLE_NONCOHERENT
> + mtc0 t0, CP0_CONFIG
> ++ li t2, 0xc0140198
> ++ sw t2, 0x18050000
> + nop
> + .endm
> +
> culex@ubuntu:~/OpenWRT$ cd owrt1806/
> culex@ubuntu:~/OpenWRT/owrt1806$ patch -p1 -i ../800mhz.patch
patching file target/linux/ar71xx/patches-4.9/999-overclock800mhz.patch
culex@ubuntu:~/OpenWRT/owrt1806$ cd target
culex@ubuntu:~/OpenWRT/owrt1806/target$ cd linux
culex@ubuntu:~/OpenWRT/owrt1806/target/linux$ cd ar71xx/
culex@ubuntu:~/OpenWRT/owrt1806/target/linux/ar71xx$ cd patches-4.9/
culex@ubuntu:~/OpenWRT/owrt1806/target/linux/ar71xx/patches-4.9$ ls 999*patch -l
-rw-r--r-- 1 culex culex 346 Aug 2 05:14 999-overclock800mhz.patch
culex@ubuntu:~/OpenWRT/owrt1806/target/linux/ar71xx/patches-4.9$
i just modified the existing patch to reflect the patches-4.9 directory and tested to make sure it still works.
just make your build as you normally would and it will patch the kernel as long as the corresponding patch remains in the patches-4.9 directory.
I had compiled a build for a wndr3800 with this CPU overclock patch, but unable to confirm that the patch has been applied,. How check the CPU frequency? ,atop don't show it
ATOP - OpenWrt 2018/12/21 15:23:17 - 2018/12/21 15:23:37 -- 10
PRC | sys 0.03s | user 0.07s | #proc 48 | #trun 1 | #tslpi 34 | #tslpu 0 | #zombie 0 | no procacct |
CPU | sys 1% | user 2% | irq 0% | idle 98% | wait 0% | guest 0% | curf ?MHz | curscal ?% |
CPL | avg1 0.00 | avg5 0.09 | avg15 0.22 | | csw 1147 | intr 2155 | | numcpu 1 |
MEM | tot 121.3M | free 73.7M | cache 17.5M | buff 5.6M | slab 8.0M | shmem 0.9M | vmbal 0.0M | hptot 0.0M |
SWP | tot 0.0M | free 0.0M | | | | | vmcom 11.0M | vmlim 60.6M |
NET | tun0 0% | pcki 7 | pcko 8 | sp 10 Mbps | si 0 Kbps | so 0 Kbps | erri 0 | erro 0 |
NET | wlan1 0% | pcki 16 | pcko 9 | sp 90 Mbps | si 1 Kbps | so 1 Kbps | erri 0 | erro 0 |
NET | eth0 ---- | pcki 3 | pcko 3 | sp 0 Mbps | si 0 Kbps | so 1 Kbps | erri 0 | erro 0 |
NET | br-lan ---- | pcki 3 | pcko 3 | sp 0 Mbps | si 0 Kbps | so 1 Kbps | erri 0 | erro 0 |
PID SYSCPU USRCPU VGROW RGROW RNET SNET RUID EUID ST EXC THR S CPUNR CPU CMD 1/1
4760 0.01s 0.05s 40K 40K 0 0 root root -- - 1 R 0 1% atop
2400 0.02s 0.01s 0K 0K 0 0 3112K 37602 34545 root root -- - 1 S 0 0% hostapd
1267 0.00s 0.01s 0K 0424K 1052K 0 0 root root -- - 1 S 0 0% netifd
13046 0.00s 0.00s 0 1688K 0K 7 8 root root -- - 1 S 0 0% openvpn
4780 0.00s 0.00s 1196K 940K 0 0 root root N- - 1 S 0 0% ping
3333 0.00s 0.00s 0K 0K 0 0 root root -- - 1 S 0 0% sh
3312 0.00s 0.00s 0K 0K 0 0 root root -- - 1 S 0 0% sh
11228 0.00s 0.00s 0K 0K 1 1 root root -- - 1 S 0 0% udhcpc
4781 0.00s 0.00s 1196K 872K 0 0 root root N- - 1 S 0 0% sleep
27939 0.00s 0.00s 0K 0K 2 2 root root -- - 1 S 0 0% dropbear
10276 0.00s 0.00s 0K 0K 0 01671 1604 root root -- - 1 I 0 0% kworker/0:2-ev
dmesg | grep 'CPU clock'
Dear Fireculex, could I ask you to build a sysupgrade image for me? I'm not clever with building, but I need to work with a very ancient wndr3700, with two needed patches. One for overclock, and the other is a modified regdomain.
Hope you can.
thanks a lot for reading.