TheBritton
Resident Galaxy Cat
..... anxiously awaiting the update to TheOC v1.6


Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.

I just tried to build theOC kernel from source with lowered regulator & UV limits, and the new updates to interactive governor. I couldn't get the cpufreq_interactive.c to compile, it's got some new dependencies. Also Koush's anykernel installer apparently doesn't work. Do I have to unpack & repack the boot.img as a whole? What's the simplest way to do this?
..... anxiously awaiting the update to TheOC v1.6![]()
![]()
![]()
I'm not sure what you mean by "unpack and repack the boot.img as a whole".
You should unpack the ramdisk from theOC and use that when you rebuild the new boot.img using the new zimage file that you compiled.
I just leave the ramdisk unpacked in my build folder (since it doesn't change much between different kernel builds) and then in my script, I copy over the newly built zimage into there and package it up into a boot.img file.
I thought I could take Koush's AnyKernel flasher .zip file, just place my zImage in there and then it would flash, but apparently the script in there doesn't work on the MT. On the OV I've also replaced kernels that way.
So on the MT, I was googling for ways to split up the boot.img into kernel & ramdisk part. But it sounds like I could just do it from my source path. What exact commands are you using and from what paths? (that'll help me figure it out).
mkbootimg --kernel zImage --ramdisk ramdisk-boot --cmdline "console=ttyMSM1 androidboot.hardware=qcom" -o boot.img --base 0x00200000
Here's a guide that will help. Obviously, you'll need to update for the MT but I'm sure you can figure that part out.
[HOW-TO] Build your own kernel package from source - Android Forums at AndroidCentral.com
The only difference is that the final command to make the boot.img with the correct parameters and base memory is
Code:mkbootimg --kernel zImage --ramdisk ramdisk-boot --cmdline "console=ttyMSM1 androidboot.hardware=qcom" -o boot.img --base 0x00200000
#define IDLE_START 1
#define IDLE_END 2
void idle_notifier_register(struct notifier_block *n);
void idle_notifier_unregister(struct notifier_block *n);
void idle_notifier_call_chain(unsigned long val);
idle_notifier_register(&cpufreq_interactive_idle_nb);
Unfortunately, the HAVS stuff has run into a snag. Everything was working except for 1 major bug that I haven't found a fix yet... everytime the phone tries to ramp down into deep sleep, the phone reboots. And unfortunately, it's hard to track down because if I have any debugging turned on or plugged into the computer for a logcat or doing anything, the bug doesn't occur. GRRR!! It's really annoying.
However, I figure for an interim release, I was going to start looking into lowering the voltage table like Whyzor was looking into to see if it made any different along with possibly one more thing.

Is there a way to set haptic feedback when I click on any of the apps? Right now, I can only select haptic feedback on keypress for softkeys and certain UI interactions under CM settings. For instance, if I click on one of the icons on the dock bar or going thru various actions on the Settings, I want to set the haptic feedback. Is it even possible? Thanks in advance.
That I don't know. However, I don't think it would be a kernel setting. If you could do it, it would be a rom setting or an app. You might get a better response if you ask in the cm7 thread.
Thank you. For the Governor, I set it to InteractiveX in CM Settings.
What is the default I/O Scheduler in TheOC v1.5 kernel?
For I/O Scheduler, I couldn't find it in CM Settings. Does the Governor control the I/O settings too or do I have to use "No Frills CPU Control" or some other app?
Thanks again.
cd ~/android/kernel
git clone git://github.com/mantera/triumph-kernel-msm7x30.git
cd triumph-kernel-msm7x30/
cp config .config
KERNEL_DIR=~/android/kernel/triumph-kernel-msm7x30/ CROSS_COMPILE=$CCOMPILER ARCH=arm make -j2
I don't think the github cloned kernel works properly (it compiles though). I basically wiped my previous dir, did a fresh:
Code:cd ~/android/kernel git clone git://github.com/mantera/triumph-kernel-msm7x30.git cd triumph-kernel-msm7x30/ cp config .config KERNEL_DIR=~/android/kernel/triumph-kernel-msm7x30/ CROSS_COMPILE=$CCOMPILER ARCH=arm make -j2
I'm using the the prebuilt eabi-4.4.3 toolchain, after compile is done, copied zImage to: ~/android/system/out/target/product/triumph/kernel, then did a recompile of CM7 (which works with default kernel from Isaac BTW). Flashed it, and it hangs at the motorola boot logo. I avoided the whole packaging boot.img step since I wasn't sure if that was working for me yet.
Mantera, do you believe this is okay to flash over Whyzor's "CM7 TG Reloaded" ROM?
I LOVE the changes you have incorporated in this. Especially noop as the default scheduler.
Yes, it should be. He was using my v1.5 so this is just upgraded from that. That's why I changed the title of this post to "...for MT Isaac & TG based CM7". In fact, I actually test this on my own phone running my own build of cm7 from the same repo.
I'm running VR as my current scheduler. Is noop better?
I'm going to include this with my next ROM build, along w/ my experimental fix for the "occasional can't go into deep sleep" bug, basically moving line 2490 in /drivers/mmc/host/msm_sdcc.c to outside of the if(mmc) check. It looks like the whole subroutine doesn't do anything otherwise. I haven't seen the bug in about 2 days so far.[/FONT]
}
wake_unlock(&host->sdio_suspend_wlock);
mkbootimg --kernel zImage --ramdisk ~/android/system/out/target/product/triumph/ramdisk.img --cmdline "console=ttyMSM1 androidboot.hardware=triumph" -o boot.img --base 0x00200000 --pagesize 4096
Really itching on trying the 61mhz frequency as my new min, has anyone had any issues going this low? Remember reports that some phones had issues at 122mhz in that they would not wake. Never had any issues with my phone at this frequency though.
Ah, I see how you got cpufreq_interactive.c compiled, thanksI'm going to include this with my next ROM build, along w/ my experimental fix for the "occasional can't go into deep sleep" bug, basically moving line 2490 in /drivers/mmc/host/msm_sdcc.c to outside of the if(mmc) check. It looks like the whole subroutine doesn't do anything otherwise. I haven't seen the bug in about 2 days so far.
Also as an update, I had to use the line:Code:} wake_unlock(&host->sdio_suspend_wlock);
To get the flashable zip working. I noticed the --pagesize 4096 and hardware=triumph part from the ROM building msgs is specific to the MT.Code:mkbootimg --kernel zImage --ramdisk ~/android/system/out/target/product/triumph/ramdisk.img --cmdline "console=ttyMSM1 androidboot.hardware=triumph" -o boot.img --base 0x00200000 --pagesize 4096
No problems running at 61Mhz either myself.Really itching on trying the 61mhz frequency as my new min, has anyone had any issues going this low? Remember reports that some phones had issues at 122mhz in that they would not wake. Never had any issues with my phone at this frequency though.