Announcement

Collapse
No announcement yet.

Announcement

Collapse
No announcement yet.

HPH overclocked kernels by Burs

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    #61
    Ok so just to be sure I reread this http://malideveloper.arm.com/develop...evice-drivers/

    And it does say "This page provides access to the source packages from which loadable kernel modules can be built." So I'm pretty sure that the end result of compilation will be a module, but I have no idea if this is true for manufacturer kernels (whether the driver is in kernel or is a module). Also, I don't know the name of said module.

    Some items in the defconf make it look as though it may be in kernel. Such as switches for Mali midguard and other mali related config switches, but these could just as easily be used to tell the kernel to compile and include a module, so I'm going to do some poking around on a live filesystem to look at the modules.

    If the GPU freq is in a module it will be much simpler to patch.

    I'll post back.
    Cheers,
    -SB
    ---------------------------------------
    Currently using U-BOX R89 with mo123 v1.6.
    Other android tv device - ADT-1 running latest PureNexus 6.0.1 MM and very impressed with the changes vs stock molly!
    Pipo M9S -- CrewRKTab custom rooted 4.4.2
    RCA Viking Pro 10 -- Custom stock rooted 5.1 by me <- FOR SALE
    ----------- ROM by me, the first way to update ZTE Force 4G from ICS to JB http://androidforums.com/threads/fin...om-ics.886408/

    Comment


      #62
      Alright guys, I'm fairly certain that you will find the max GPU freq value (in kHz) in the module at /system/lib/modules/mali_kbase.ko or mali_kbase.ko.3.10.0

      It's probably in use, so you might have to modify it and then flash it, and not to modify it while the system is up.

      Either extract the file from the system.img and then flash it individually from CWM or TWRP, or mount /system from TWRP and use file explorer or adb to replace the original file, or mount system.img in Windows/Linux, modify the file and flash it.

      I would work on it myself, but I'm sick and don't feel like breaking out the laptop and working today.

      Hope that this helps and is where the lock is!
      Cheers,
      -SB

      $@ EDITED @$
      ---------------------------------------
      Currently using U-BOX R89 with mo123 v1.6.
      Other android tv device - ADT-1 running latest PureNexus 6.0.1 MM and very impressed with the changes vs stock molly!
      Pipo M9S -- CrewRKTab custom rooted 4.4.2
      RCA Viking Pro 10 -- Custom stock rooted 5.1 by me <- FOR SALE
      ----------- ROM by me, the first way to update ZTE Force 4G from ICS to JB http://androidforums.com/threads/fin...om-ics.886408/

      Comment


        #63
        Originally posted by Burs View Post
        OK. I downloaded your files, but first tell me what you want to overclock and what frequencies do you want to use? Then I can make all modifications for you and send you the files, so you can try them. If you want all cpu/gpu/ddr to be overclocked, you can just flash my resource.img from kernel v3.1, and to keep your original kernel you could use my kernel patcher app. So in the end you don't have to use any hex-editing. Did you tried that? If yes, but it didn't work, can you please describe the problem?
        Dear Burs,

        thanks your feedback,

        my english is very poor, I try to express Google translation,

        i already download and use resource.img from v3.1,

        after use kernal patcher to patch my kernal.img(successed),

        but can't work, it's very unstabitily, refresh rom and boot happen Blurred screen,

        i try to use v3.2, still unstabitily, sometime can into box's desktop, but sometime Blurred screen or Got stuck,

        i don't know if HPH's resource is not compatible with other TVBOX's ROM,

        i want to overclock my box can work Stable

        so i think can try to use CPU=2.01Ghz GPU=594Mhz DDR=648Mhz
        or
        CPU=2.11Ghz GPU=625Mhz DDR=744Mhz

        thanks your help, i will very appreciat

        Comment


          #64
          Originally posted by sawbones999 View Post
          Alright guys, I'm fairly certain that you will find the max GPU freq value (in kHz) in the module at /system/lib/modules/mali_kbase.ko or mali_kbase.ko.3.10.0
          Thanks for the info. I'll see if I can find something in mali_kbase.ko* file.

          Originally posted by jamesw View Post
          i already download and use resource.img from v3.1,
          after use kernal patcher to patch my kernal.img(successed),
          but can't work, it's very unstabitily, refresh rom and boot happen Blurred screen,
          OK. I see. If the system boots, then the clocks inside resource.img (v3.1) file are set a bit too high for your box. I will set the frequencies like you wrote, and send you modified resource.img for you to flash. btw, which RK3288 model do you own? Different models have different tolerance for frequencies, that's why your system is unstable. I might make a patcher app for resource.img file too, but it might take some time to develop it, as I don't have much free time and have a regular job which has a priority over my hobbies.

          Comment


            #65
            Originally posted by Burs View Post
            OK. I see. If the system boots, then the clocks inside resource.img (v3.1) file are set a bit too high for your box. I will set the frequencies like you wrote, and send you modified resource.img for you to flash. btw, which RK3288 model do you own? Different models have different tolerance for frequencies, that's why your system is unstable. I might make a patcher app for resource.img file too, but it might take some time to develop it, as I don't have much free time and have a regular job which has a priority over my hobbies.
            hi, Brus,
            My Box's Models is 10moons D8+(2g/8g) , it's china brand,

            Product link below:


            and Before I found your article,
            thanks you share ResTool.exe ,dtc.exe,KernelPatcher.exe
            i will try to modify the frequencies of resource.img by myself, hope can sucessful,
            if you can send your modify files(my box), maybe i can learn and compare how to modify,

            thanks a lot.

            Comment


              #66
              Originally posted by jamesw View Post
              hi, Brus,
              My Box's Models is 10moons D8+(2g/8g) , it's china brand,

              Product link below:


              and Before I found your article,
              thanks you share ResTool.exe ,dtc.exe,KernelPatcher.exe
              i will try to modify the frequencies of resource.img by myself, hope can sucessful,
              if you can send your modify files(my box), maybe i can learn and compare how to modify,

              thanks a lot.
              @jamesw - Have you already added some active cooling, like a fan, to cool down the SOC? I don't think that overclocking this high without one will be safe, and most definitely it will make the system very unstable. If you haven't added a fan, then that could be the source of you're problem. I think Burs and everyone else would agree that having some active cooling, rather than passive (heat sink only), is probably mandatory to run your system at speeds which are this high.

              @Burs/Cappybob - I'm fairly certain that the GPU is part of the SOC(like the VPU). I have not seen anything which has RK3288 which didn't also have mali t764. No tablet, no tv box, no stick, none. If it were a separate chip surely someone would have released one somewhere with a cheaper, lower quality GPU for cost reduction.

              Have you guys noticed that mo123's new ROM has VPU overclock to 600MHz? I'm not sure what the original speed is. Unfortunately I haven't been able to test it much because temporarily I'm using my R89 in the bedroom through A/V output and the new kernel (which Mo compiled, and I'm wondering where his sources came from!) somehow broke the way that downscaling works for A/V output. I had to go back to my v1.3 backup (lucky I made one!).

              It would be excellent if we could figure out how to patch that one, too. Probably get much better h.265 decoding, and better high setting 4K h.264 as well.

              Cheers,
              -SB
              ---------------------------------------
              Currently using U-BOX R89 with mo123 v1.6.
              Other android tv device - ADT-1 running latest PureNexus 6.0.1 MM and very impressed with the changes vs stock molly!
              Pipo M9S -- CrewRKTab custom rooted 4.4.2
              RCA Viking Pro 10 -- Custom stock rooted 5.1 by me <- FOR SALE
              ----------- ROM by me, the first way to update ZTE Force 4G from ICS to JB http://androidforums.com/threads/fin...om-ics.886408/

              Comment


                #67
                Originally posted by sawbones999 View Post
                I think Burs and everyone else would agree that having some active cooling, rather than passive (heat sink only), is probably mandatory to run your system at speeds which are this high.
                Yes, definitely. Especialy at 2.2ghz. If your cpu runs below 2.0ghz, you might get away without active cooling if you you're not doing some demanding tasks (3d gaming and such). But at least position your boxes on it's side for heat to dissipate easier, or remove the bottom cover.

                Originally posted by sawbones999 View Post
                Have you guys noticed that mo123's new ROM has VPU overclock to 600MHz? I'm not sure what the original speed is.
                Yes, he also posted that in his first post in that forum thread. Default is 500Mhz. I might do some research and try to find it in the kernel (it's there for sure). But don't know how to test for performance? Some kind of special video test?

                Originally posted by sawbones999 View Post
                It would be excellent if we could figure out how to patch that one, too. Probably get much better h.265 decoding, and better high setting 4K h.264 as well.
                For 4K video, DDR speed is of much importance. My overclocked kernels have 4K frequency slightly increased, so you should see some improvements there too. As for H264/H265 encoded videos, I thing this VPU OC could be useful, but I'm not exactly sure.

                Comment


                  #68
                  Originally posted by jamesw View Post
                  i will try to modify the frequencies of resource.img by myself, hope can sucessful,
                  if you can send your modify files(my box), maybe i can learn and compare how to modify,
                  thanks a lot.
                  Hi,

                  I've sent you PM with modifications just like you asked for.
                  Since kernel patcher app did its job, only resource.res needed to be modified.
                  Your original clocks were cpu1800, gpu500, ddr533.

                  I've sent you a link to zip archive with these two versions:
                  cpu2016, gpu594, ddr648
                  cpu2112, gpu625, ddr744

                  Hope it works.
                  Enjoy! And post your feedback

                  Comment


                    #69
                    Originally posted by sawbones999 View Post
                    @jamesw - Have you already added some active cooling, like a fan, to cool down the SOC? I don't think that overclocking this high without one will be safe, and most definitely it will make the system very unstable. If you haven't added a fan, then that could be the source of you're problem. I think Burs and everyone else would agree that having some active cooling, rather than passive (heat sink only), is probably mandatory to run your system at speeds which are this high.
                    Thank you for reminding me, but my box heat well, it should not be a problem, I just want to test whether overclocking works on my box,If necessary, I will buy this fan,
                    the Product link below:


                    Originally posted by Burs View Post
                    Hi,

                    I've sent you PM with modifications just like you asked for.
                    Since kernel patcher app did its job, only resource.res needed to be modified.
                    Your original clocks were cpu1800, gpu500, ddr533.

                    I've sent you a link to zip archive with these two versions:
                    cpu2016, gpu594, ddr648
                    cpu2112, gpu625, ddr744

                    Hope it works.
                    Enjoy! And post your feedback
                    Dear Burs,
                    thanks a lot,
                    it can work and Very stable, But the increase is not much to Antutu's run sub(34000 increase 36000),
                    I thought there would be more than 40,000, i don't know why?
                    At least I know that before the Blurred screen or Got stuck is caused by a different rom overclocking

                    I compare you to modify resource.img, and find out different,
                    So I refer to modify resource.img From my box of other ROM,There are four places, including clk_core,clk_ddr,clk_gpu, but failed
                    I will continue to study,anyway, thank you very much for your help, your time is really in trouble


                    clk_core {
                    operating-points =
                    <0x4c2c0 0xdbba0 0x639c0 0xdbba0 0x927c0 0xe7ef0 0xa9ec0 0xe7ef0 0xc7380 0xf4240 0xf6180 0x100590 0x124f80 0x10c8e0 0x159b40 0x124f80 0x171240 0x13d620 0x188940 0x149970 0x1a0040 0x149970 0x1b7740 0x149970>;
                    >>>
                    <0x4c2c0 0xdbba0 0x639c0 0xdbba0 0x927c0 0xe7ef0 0xa9ec0 0xe7ef0 0xc7380 0xf4240 0xf6180 0x100590 0x124f80 0x10c8e0 0x159b40 0x124f80 0x171240 0x13d620 0x188940 0x149970 0x1a0040 0x149970 0x1b7740 0x149970 0x1d4c00 0x155cc0 0x1ec300 0x155cc0 0x203a00 0x155cc0>;

                    clk_ddr {
                    operating-points =
                    <0x30d40 0x106738 0x493e0 0x106738 0x6f540 0x112a88 0x82208 0x118c30>
                    >>>
                    <0x30d40 0x106738 0x493e0 0x106738 0x6f540 0x112a88 0x82208 0x118c30 0x9e340 0x124f80 0xb5a40 0x1312d0>
                    freq-table =
                    <0x1 0x6f540 0x2 0x30d40 0x10 0x6f540 0x2000 0x82208>;
                    >>>
                    <0x1 0x82208 0x2 0x30d40 0x10 0x80e80 0x2000 0xb5a40>;
                    clk_gpu {
                    operating-points =
                    <0x30d40 0xdbba0 0x493e0 0xe7ef0 0x61a80 0x10c8e0 0x7a120 0x118c30>
                    >>>
                    <0x30d40 0xdbba0 0x493e0 0xe7ef0 0x61a80 0x10c8e0 0x7a120 0x118c30 0x91050 0x124f80 0x98968 0x1312d0>;

                    Comment


                      #70
                      Originally posted by jamesw View Post
                      it can work and Very stable, But the increase is not much to Antutu's run sub(34000 increase 36000), I thought there would be more than 40,000, i don't know why?
                      Yes, you should see better AnTuTu score. Even without patched kernel. Are you sure your current rom don't have resource.img inside boot.img file? If it does have, you'll have to repack my resource.img into it with Android Image Kitchen. Since you've sent me two separate files, I assumed that was not the case.

                      Originally posted by jamesw View Post
                      I compare you to modify resource.img, and find out different, So I refer to modify resource.img From my box of other ROM,There are four places, including clk_core,clk_ddr,clk_gpu, but failed I will continue to study
                      There are two places which need to be modified for ddr, and one for each of the cpu and gpu, totaling four places. But please be extremely careful with hex editing the voltages. It's not child's play. If you give more voltage to components than they can handle, you will most likely fry them, which will make your whole box inoperable and a real candidate for the trash can. Do triple-check for every modification! You won't have time to unplug the power cable to undo changes. One error and you're done.

                      Comment


                        #71
                        Overclockmatic_RK3288 v1.0.6

                        Burs. I'm sorry to barge into your thread but I made some tool which could be helpfull.
                        Oveclocking values are defined in .cfg file.

                        Using Terminal Emulator in Android you can OC RK3288 without problems.
                        Code:
                        246|root@rk3288:/mnt/external_sd/Download # ./overclockmatic_RK3288.elf
                        Usage:
                        ./overclockmatic_RK3288.elf: mode [file_name]
                        where: mode = 1 - read boot; 2 - read resource; 3 - read kernel; 5 - read resource and kernel
                        default file_name = /dev/block/mtd/by-name/resource
                        For example: ./overclockmatic_RK3288.elf 3
                        will read /dev/block/mtd/by-name/kernel and check what CPU frequency lock is there. Then offer to modify them. Of course in that case root access is required. When modding img files then not so much . But after that you will need to flash them "manualy" under Windows.

                        Default "top" frequencies:
                        Code:
                        CPU:
                        1608000 kHz @ 1325000 uV
                        1800000 kHz @ 1350000 uV
                        2000000 kHz @ 1400000 uV
                        
                        GPU:
                        533000 kHz @ 1200000 uV
                        600000 kHz @ 1250000 uV
                        
                        Memory:
                        600000 kHz @ 1200000 uV
                        700000 kHz @ 1250000 uV
                        You can also use this tool just to check what settings are in these files.
                        All changes must be confirmed before writing to files.
                        Attached Files
                        Last edited by Gormar; 31 March 2015, 20:00. Reason: New version added.
                        RK3288 2GB/16GB OC 1.9GHz at 1.2V RAM [email protected] Wasser's 3.0.11 firmware
                        Out: monitor FullHD 16:9, 3.5" jack headphones; In: remote control, USB HUB: keyboard + mouse + pendrive
                        bricked: VOYO V1 mini 8G/64GB Windows 10

                        Comment


                          #72
                          Originally posted by Burs View Post
                          Yes, you should see better AnTuTu score. Even without patched kernel. Are you sure your current rom don't have resource.img inside boot.img file? If it does have, you'll have to repack my resource.img into it with Android Image Kitchen. Since you've sent me two separate files, I assumed that was not the case..
                          Hi Burs,
                          I really careless, boot.img inside contains resource.img, it is no wonder that AnTuTu does not have any progress, I'm sorry to waste your time, In boot.img in the resorce name is second, I extracted, boot without kernel version instead, and use your modified resource.img (cpu2112gpu625ddr744), flash rom but can not boot, (without any screen),I guess even resorce.img not modify, with no kernel boot.img, should also not boot,

                          So I refer to your modifications, second(from boot.img) will be renamed resource.img, and then use the restools and DTS tool to modify the clk_core {,

                          operating-points = <0x4c2c0 0xdbba0 0x639c0 0xdbba0 0x927c0 0xe7ef0 0xa9ec0 0xe7ef0 0xc7380 0xf4240 0xf6180 0x100590 0x124f80 0x10c8e0 0x159b40 0x124f80 0x171240 0x13d620 0x188940 0x149970 0x1a0040 0x149970 0x1b7740 0x149970 0x1d4c00 0x155cc0 0x1ec300 0x155cc0>;

                          after flash rom is very good and stable, Atutu run close to 40,000,
                          I found modify clk_ddr {,may succeed, may fail, because Antutu cannot be executed,occurs Blurred screen,so finally I did not modify clk_ddr,
                          And modify clk_gpu {worse, TVBox into desktop will crash,So I just modify the clk_core {

                          BTW,

                          I then use the above method to modify another ROM, found only KernelPatcher kernel.img, TVBox not boot up, I find time to test other rom

                          Thank you for your guidance, learned a lot!

                          Comment


                            #73
                            Originally posted by Gormar View Post
                            Burs. I'm sorry to barge into your thread but I made some tool which could be helpfull.
                            For now it has only hardcoded frequency and voltage values but I plan to add config file.
                            Using Terminal Emulator in Android you can OC RK3288 without problems.
                            You can also use this tool just to check what settings are in these files.
                            Wow. Cool. I initialy planned to do something like that, but I'm better in Windows environment, so I decided to make a Windows .NET app. And afterwards you must use AndroidTool in Windows anyway, to flash back resource.img file. I'll check your tool as soon as I find some time. Thanks for your contribution.

                            Originally posted by jamesw View Post
                            after flash rom is very good and stable, Atutu run close to 40,000,
                            I found modify clk_ddr {,may succeed, may fail, because Antutu cannot be executed,occurs Blurred screen,so finally I did not modify clk_ddr,
                            And modify clk_gpu {worse, TVBox into desktop will crash,So I just modify the clk_core {
                            Thank you for your guidance, learned a lot!
                            OK, I see you're doing some progress
                            Just keep it safe, and keep it cool

                            And as I already said in my previous posts, I might write a windows app which will be able to modify every single frequency/voltage for each of the cpu, gpu and ram, so end user won't have to hex edit it and doing major risks. But it's just an idea for now. It's a very delicate matter, so I might need much time for developing and testing it.

                            Comment


                              #74
                              Originally posted by Burs View Post
                              OK, I see you're doing some progress
                              Just keep it safe, and keep it cool

                              And as I already said in my previous posts, I might write a windows app which will be able to modify every single frequency/voltage for each of the cpu, gpu and ram, so end user won't have to hex edit it and doing major risks. But it's just an idea for now. It's a very delicate matter, so I might need much time for developing and testing it.

                              hope this windows app coming soon

                              Comment


                                #75
                                Does anyone know how to measure the performance difference between stock and overclocked VPU? I think I found VPU binary offset in kernel file, but I'm not sure how to test it. Ofcourse, I could stream some H264 video content, but then what? Measure the framerate? And btw, can it be any H264 video or HD only?
                                EDIT: or is there something that shows which VPU frequency is currently set?
                                Last edited by Guest; 21 March 2015, 19:57. Reason: edit

                                Comment

                                Working...
                                X