Author Topic: Compile a Kernel  (Read 1046 times)

AthenaX7500 (OP)

  • *
  • Posts: 53
Re: Compile a Kernel
« Reply #20 on: July 24, 2018, 12:53:51 am »
I tried it, no change.

AthenaX7500 (OP)

  • *
  • Posts: 53
Re: Compile a Kernel
« Reply #21 on: August 03, 2018, 12:05:51 pm »
Hi skelton.
I managed to overclock the gpu.
New clock speed is 297 - 446 Mhz.

In the rkpatchomatic tool it was need to uncomment gpu600h at line 93, and add these to the script to be able to identify the ddr frequencies.

Line 39

my @freq_list;
for ( my $mhz = 100 ; $mhz <= 2500 ; $mhz++ ) {
push( @freq_list, $mhz * 1000 );
push( @freq_list, $mhz * 1000 + 1 );
push( @freq_list, $mhz * 1000 + 2 );
push( @freq_list, $mhz * 1000 + 4 );
push( @freq_list, $mhz * 1000 + 8 );
push( @freq_list, $mhz * 1000 + 16 );
push( @freq_list, $mhz * 1000 + 256 );
}

Line 147

########## System variables ##########


my %ddr_freq_type_map = (
0 => "",
1 => "1 DDR_FREQ_SUSPEND",
2 => "2 DDR_FREQ_VIDEO",
4 => "4 DDR_FREQ_VIDEO_LOW",
8 => "8 DDR_FREQ_VIDEO_LOW",
16 => "16 DDR_FREQ_IDLE",
256 => "256 DDR_FREQ_NORMAL",
);

thanks to d33:

http://freaktab.com/forum/development-area/kernel-development/tv-stick-kernel-development/7522-rkpatchomatic-tool-overclock-vsync-fix-any-binary-rk3188-kernel/page14?7150-rkpatchomatic-tool-overclock-vsync-fix-any-binary-rk3188-kernel!=&viewfull=1


Unfurtunally, the cpu frequency does not overclock.
I could change the lower frequencies but it stays at 1400 mhz max.

It seems that the tool is working with the GPD-G7.
Is the cpu max define elsewhere, for example in the boot.img?

skelton

  • *****
  • Posts: 6834
Re: Compile a Kernel
« Reply #22 on: August 03, 2018, 12:18:16 pm »
the gpu speed is already 446 mhz in my kernel (600 mhz in q88-q89), you mean in stock kernel? Maybe the underclocked it more.
CPU is define in dvfs , not in the frequency tables as most standard so that's why rkpatchomatic doesn't work. boot,img in stock firmare has a kernel inside which is what is used. kernel.img is only used when boot,img is juat a ramdisk.

If you want to remove CPU limit you must compile from 0, because rkpatchomatic won?t work as is define on dvfs.c, not in the frequency tables.. Difference is very low anyway in a old RK3188 device.

https://github.com/skelton/RK3188_TABLET/commit/c79fce9497e7d9ac62b68b45a0d54154cacf3e69

that is the commmit for removing cpu limit of t models.
Retired

AthenaX7500 (OP)

  • *
  • Posts: 53
Re: Compile a Kernel
« Reply #23 on: August 03, 2018, 09:41:55 pm »
I mean the GPD-G7 Stock G7 V4.1.0 chinese firmware, which has a max gpu clock of 297 Mhz.
The GPD-G7 Stock 2.0.1 firmware has a max gpu clock of 446 Mhz.

The script to use sd_boot seperates the kernel.img from the boot.img.

http://freaktab.com/forum/tv-player-support/rk3188-devices/20734-run-any-android-rom-from-sd-card

I just flashed the kernel.img edited with rkpatchomatic to the sd card.
The gpu clock changed to 446 Mhz.





 

Post a new topic