Controlling CPU frequency - no 2GHz?
#11
(10-31-2020, 11:15 PM)rimaille Wrote: You can even go to 2,1Ghz, safely, at 1,25V instead of 2Ghz@1.3V by default.
https://wiki.pine64.org/index.php?title=...king#CPU_2
This require kernel compilation, but it worth it !
can you help me with this? i want to change clocks/voltages but i don't know how to work with dts/dtb/dtsi...

i tried to download these 3
rk3399-opp.dtsi
rk3399-pinebook-pro.dts
rk3399.dtsi

i tried to compile the dts using "dtc" but i get an error:
Error: rk3399-pinebook-pro.dts:7.1-2 syntax error
FATAL ERROR: Unable to parse input tree


if understand right i need to modify the dts/dtsi, compile it into a dtb, copy it in the /boot/dtbs/rockchip/ folder and compile the kernel?
PinebookPro v2.1 4xA53@1704Mhz / 2xA72@2208Mhz / GPU@1125Mhz / CCI-500@1200Mhz
  Reply
#12
On ARM, all Device Tree Sourcefiles (DTS) are for now located in {kernel source dir}/arch/arm/boot/dts.
dts files for board-level definition
dtsi files for included files, generally containing SoC-level definition.
TheDevice Tree Blob is produced by the compiler, and is the binary that gets loaded by the bootloader and parsed by the kernel at boot time
arch/arm/boot/dts/Makefile lists which DTBs should be generated at build time

So you have to edit the dtsi, and then compile your kernel, to generate dtb.
Look here to get an example : https://github.com/TuxThePenguin0/linux-pbp-arch

The most important imo is not the overclock, but the undervolt, mostly during a warm summer.

Never tried using dtc on its own, without being called by the kernel compiling process, sorry.
  Reply
#13
If you look at the dts in /usr/src, all the pointers are symbolic names
If you decompile a dtb (with dtc), all these are turned into 4 byte pointers
these numbers are a bit random,,,_I_ think they should, as much as possible,
match linux dev nodes/numbers,,, but they don't
dtc can't use the symbolic names
it is not that hard to use dtc, what is hard is to get right data into dts
Do make backups
  Reply
#14
(01-30-2021, 02:43 PM)rimaille Wrote: On ARM, all Device Tree Sourcefiles (DTS) are for now located in {kernel source dir}/arch/arm/boot/dts.
dts files for board-level definition
dtsi files for included files, generally containing SoC-level definition.
TheDevice Tree Blob is produced by the compiler, and is the binary that gets loaded by the bootloader and parsed by the kernel at boot time
arch/arm/boot/dts/Makefile lists which DTBs should be generated at build time

So you have to edit the dtsi, and then compile your kernel, to generate dtb.
Look here to get an example : https://github.com/TuxThePenguin0/linux-pbp-arch

The most important imo is not the overclock, but the undervolt, mostly during a warm summer.

Never tried using dtc on its own, without being called by the kernel compiling process, sorry.
Ok thanks for the infos... I looked more on the internet and i'm currently trying to compile the latest 5.11 mainline after changing clocks in the dtsi file... I just need to understand the process, than i'm gonna play around with it a bit. Big Grin
PinebookPro v2.1 4xA53@1704Mhz / 2xA72@2208Mhz / GPU@1125Mhz / CCI-500@1200Mhz
  Reply
#15
ok so i copied the .config from my current installation (/proc/config.gz),"make menuconfig", saved it, compiled the kernel with "make" and than just swapped the old dtb with the new one that was compiled with the kernel. now i get a black screen when the pinebook boots and it hangs there.
i'm i supposed to do something else? should i install the new kernel too? initramfs?
p.s. i'm using Manjaro ARM KDE, here is the solution https://forum.manjaro.org/t/pbp-build-ma...el/51570/2
PinebookPro v2.1 4xA53@1704Mhz / 2xA72@2208Mhz / GPU@1125Mhz / CCI-500@1200Mhz
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  CPU Frequency tso4ev 9 10,949 01-19-2020, 06:42 AM
Last Post: CampGareth

Forum Jump:


Users browsing this thread: 1 Guest(s)