When i was researching, i found out that main core was running 850 MHz instead of 1 GHz. How to overclock it?
You can. I figured out how, there’s a CONFIG_OD_CLK_SEL option in the bootloader which when toggled switches the CPU clock from 850MHz to 1050MHz.
See this patch, it’s for the Duo S, so you’d need to modify the corresponding file for the Duo 64M, but it’s the same one-line config change:
The clock is set via the register at `0x3002908`. Note that these values are bitmasks, not integers. I haven’t actually worked out the exact formula for changing values, but these 4 are named explicitly in the code:
0x00408101=800MHz
0x00448101=850MHz
0x05508101=1000MHz
0x05548101=1050MHz
You can thus change the CPU speed on the fly from userspace using `devmem2`, for example:
devmem2 0x3002908 w 0x05548101
2 Likes
Thank you so much. I literally tried everything.