yashsingh1/xdaforums huggingface dataset:
[Hero, G2 Touch Android Development] MysteryHero:
Are you using right kernel? http://www.villainrom.co.uk/kernels/

http://www.villainrom.co.uk/kernels/
[Hero, G2 Touch Android Development] Pagan:
Yes i have tried running SuperHero 1.1.0 With SuperHero1.1.0-Ben10Kernel
[Hero, G2 Touch Android Development] MysteryHero:
Here's what I did.

A) Flash Fresh 1.1.0 rom

B) Boot up set up, change to a random wallpaper on my SD card using Gallery

C) Reboot, and flash JIT, then kernel

D) Reboot, wait and worky work :)

Just keep waiting, it's the key to the game.
[Hero, G2 Touch Android Development] hawst:
It works!!!!!

Just created 01dawnclock then reboot to recovery and flashed behero+ oc kernel, reboot, and it starts !!!!

PS. small observation,

cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq

still show me 710400

How can i check freq ?
[Hero, G2 Touch Android Development] Pagan:
Ok, going to give it another try. Thanks for the tip.
[Hero, G2 Touch Android Development] behnaam:
It doesnt work on vanilla build.
[Hero, G2 Touch Android Development] k0rner:
Current freq is located in /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq
[Hero, G2 Touch Android Development] behnaam:
or adb shell cat /proc/kmsg, freq debug options are on :)

EDIT: New commit lowers the ondemand max to 528Mhz, so u can choose after boot if u want to increase it. This makes it more stable!
[Hero, G2 Touch Android Development] MysteryHero:
Did it work?
[Hero, G2 Touch Android Development] silverstream:
On SuperHero it hanged on the first HERO screen. ADB logcat says waiting for devices. I assume the ROM is not even booted ?

Can you share your 01downclock script content ?
[Hero, G2 Touch Android Development] hawst:
My sorry, it seems init.d script doesnt work, or may be need to be more smart.

Coz my phone hanged after a while. Now i m only able to boot manually set freq using adb.

Can somebody suggest how to set freq on boot ?
[Hero, G2 Touch Android Development] Pagan:
I don't think so, i'm now waiting about 10 min and still HERO logo on the screen. :(
[Hero, G2 Touch Android Development] petsasj:
Ben, thanks once again.

When you release your next kernel, could you add some more scaling frequencies? I want to use >245mhz during sleep and it's not available, next option is 480.

thanks
[Hero, G2 Touch Android Development] MysteryHero:
still wait :D
[Hero, G2 Touch Android Development] Pagan:
I'ts not gonna work on my Hero, there are different types of hardware and some don't like 710mhz. And i'm the lucky one who has a Hero that don't like them. :(
[Hero, G2 Touch Android Development] behnaam:
Ben #22 zImage and wlan.ko is up on the first post!

Hopefully a bit more stable as I decreased the default ondemand max!
[Hero, G2 Touch Android Development] xangma:
Is that the only difference? It's just that I don't use overclocking so ...
[Hero, G2 Touch Android Development] behnaam:
atm yes, I'm just making the kernel stable before I move on to other things
[Hero, G2 Touch Android Development] xangma:
Awesome, cheers for the info =]
[Hero, G2 Touch Android Development] intronauta:
Someone is animated and compiles Ben#22 for Behero1.2+? :D :rolleyes:
[Hero, G2 Touch Android Development] ebguilbert:
I just did :D
[Hero, G2 Touch Android Development] intronauta:
THANKS, mate ;)
[Hero, G2 Touch Android Development] knudsen81:
tell how it works :D
[Hero, G2 Touch Android Development] dpi295:
Hi behnaam, do you mind if i compile this kernel for use in a espresso rom im making for the hero?
[Hero, G2 Touch Android Development] hawst:
Excellent! ;)
[Hero, G2 Touch Android Development] Pagan:
Is it maybe possible, because i don't know how to do it, that somebody compile #22 for SuperHero 1.1 rom :) That would be awesome.
[Hero, G2 Touch Android Development] intronauta:
ATM very fine. :)

Now i'm testing with this settings in Setcpu:

Ondemand-> 614/480Mhz

Profile "Sleep/standby"->245/160mhz "ondemand" (160/160mhz sometimes freezes)

But I see that some frecuencies not selected are used in boot ¿?

# cat /sys/devices/system/cpu/cpu0/cpufreq/stats/time_in_state
19200 0
122880 0
160000 21857
245760 2208
480000 19176
518400 25336
537600 48
556800 44
576000 29
595200 23
614400 7917
633600 0
652800 0
672000 0
691200 0
710400 0

Behero1.2+/Ben#22
[Hero, G2 Touch Android Development] intronauta:
Toastcfh/behnamm, when the support for BFS? :rolleyes:
[Hero, G2 Touch Android Development] nicandris:
hmmmm so this means i'm good? :P
[Hero, G2 Touch Android Development] kiwi89:
I used the ben10 kernel. I made a nand back up, flashed the update.zip and it seemed to boot up and work fine. Maybe your phone isn't able to be clocked that high?
[Hero, G2 Touch Android Development] Feeyo:
Hey Benhaam can you please remove the Cronos part from your quote posting?
[Hero, G2 Touch Android Development] Stickman89:
You still using SenseHERO 2.2?

SenseHERO 2.1 b3 is the latest, I ammended the build number to match the firmware vesion to reduce confusion...

And yes it looks fine, I have also compiled a kernel using behnaam's github for SenseHERO 2.1 b3.

Works been moved over here:

www.htcdevscene.info

Best Regards,

ST1Cl<^^aN
[Hero, G2 Touch Android Development] tristan202:
For some reason I get an error when trying to initialize the repo:

Getting manifest ...
from git://github.com/behnaam/HeRo-2.6.29-GoDmOdE.git
remote: Counting objects: 29271, done.
remote: Compressing objects: 100% (26002/26002), done.
remote: Total 29271 (delta 2778), reused 29175 (delta 2723)
Receiving objects: 100% (29271/29271), 80.04 MiB | 848 KiB/s, done.
Resolving deltas: 100% (2778/2778), done.
From git://github.com/behnaam/HeRo-2.6.29-GoDmOdE
* [new branch] master -> origin/master
Checking out files: 100% (27862/27862), done.
fatal: manifest 'default.xml' not available
fatal: manifest default.xml not found

What am I doing wrong?
[Hero, G2 Touch Android Development] dipje:
This is probably a 'google will tell you' situation but couldn't find it that fast and it must be simple (I hope).

Did my first steps into compiling my first android kernel using this repo (long time linux guru, but android is new :P).

What if my result seems to boot up fine but the touchscreen isn't working at all? Wrong .config?
[Hero, G2 Touch Android Development] dipje:
Nevermind, sorted it... something to do with .c-AOSP-fix :P
[Hero, G2 Touch Android Development] nicandris:
emmmmmmmmmmm i'm using 2.2 and 2.1 b3 is the latest? :) are we going backwords? :)
[Hero, G2 Touch Android Development] NeBouse:
Hello !!

Could someone be kind a compile a Kernel based on ben#22 for the Legendary 1.3.5 Rom ?

Cause my Hero doesn't support really well 710Mhz , and everytime i reboot it , it freezes at random time after the boot.

I've been able to access the overclockwidget one time , and set the max frequency to 650Mhz , and then it works like a charm (and the legendary rom is very responsive with it).

But i had to reboot the phone , and now i'm no more able to past the Hero screen , or the lockscreen , then it freezes....

Thanks in advance ;)
[Hero, G2 Touch Android Development] sedinix:
NeBouse I have same on superhero 1.1 villain after few rebot I past hero boot and set freq to 691 and its works great can someone make Verision of kernels witch 650 -691 clock ?
[Hero, G2 Touch Android Development] hawst:
Actually you guys can use kernel #22 from 1st post. There is instructions how to put it in any rom - http://4pda.ru/forum/index.php?showtopic=148717&st=4820&p=4529151&#entry4529151. It is in russian but i think commands are understandable anyway ;). Btw, u need unlocked SPL, it is attached in post on 4pda.

Tried few roms using this method - works ok.
[Hero, G2 Touch Android Development] NeBouse:
Thanks for your help , but i like to understand what i do , and i really can't understand Russian ^^ (even with a translator it's unreadable).

And i'm not really ok with flashing my SPL...
[Hero, G2 Touch Android Development] ebguilbert:
You can repack the kernel with the rom's ramdisk.

I followed these instructions:

http://xdaforums.com/showpost.php?p=6556109&postcount=30

http://xdaforums.com/showthread.php?t=551711
[Hero, G2 Touch Android Development] Stickman89:
haha kinda lol, SenseHERO 2.1 b3 is much faster then the previous builds, I know ultimatedly in the end I made it more confusing anyway lol

Anyways yeah 2.1 b3 is the latest build and the kernel update is on my googlecode website.

Best Regards,

ST1Cl<^^aN
[Hero, G2 Touch Android Development] NeBouse:
Thanks , i will give this a try ;)

EDIT : humm , looks like it needs linux or maybe i didn't understand how it works , my windows command line ask me which program to use to open extract-kernel.pl

So , i'm still interested in a Legendary 1.3.5 kernel version based on ben#22 , please help me ^^
[Hero, G2 Touch Android Development] ebguilbert:
Yes, I did it on linux. Im not sure if you can do it on windows. Maybe using an emulator like cygwin. Sorry cant help you :(
[Hero, G2 Touch Android Development] androcheck:
Hi!

First: thanks for the kernel tree!! :)

I am on aHero 0.9 (a ROM without SenseUI).

For a first try I simply took the "zImage" (#22) from the first post and packed it together with the init-ramdisk from aHero 0.9 into a new boot.img.

Then I packed it together with "wlan.ko" into an update.zip and flashed it using recovery.

RESULT:

It seems to boot normally. Via "adb shell" a "uname -a" shows me that it runs the new kernel:

Linux localhost 2.6.29-dirty-1699b26a #22 PREEMPT Sun May 23 15:13:40 CEST 2010 armv6l GNU/Linux

But the toucscreen does not work. I end up at the lock screen but it doesn't recognize any touch input.

Any hints where to investigate further?

I have stored the complete output of logcat during the boot. Maybe this could help someone?

Or when compiling ther kernel for myself: Where should I start searching the problem?

Kind regards
[Hero, G2 Touch Android Development] petsasj:
Ok behnaam, here are some points i made reading your github.

In version 22, in the .config file, you set:

+CONFIG_MSM_CPU_FREQ_ONDEMAND_MAX=528000

Taking a look at the "arch/arm/mach-msm/acpuclock-arm11.c" stating your the CPU Freqs, there is no setting for 528000

#if defined(CONFIG_TURBO_MODE)
{ 0, 122880 },
{ 1, 160000 },
{ 2, 245760 },
{ 3, 480000 },
{ 4, 518400 },
{ 5, 537600 },
{ 6, 556800 },
{ 7, 576000 },
{ 8, 595200 },
{ 9, 614400 },
{ 10, 633600 },
{ 12, 652800 },
{ 12, 672000 },
{ 13, 691200 },
{ 14, 710400 },
/*TODO*/
// { 19, 787200 },
{ 19, CPUFREQ_TABLE_END },

This results in ONDEMAND_MAX of 518400 with version #22

Also, i am unable to set a good sleep frequency. The overclock widget only responds to the values stated above. So right after 245760, its 480000.

Judging from the "Define Frequencies" button, speeds that do not match the exact numbers there CANNOT get set, the above table should be

{ 0, 122880 },
{ 1, 160000 },
{ 2, 245760 },
[B]{ 3, 250000 },
{ 4, 264000 },
{ 5, 320000 },
{ 6, 400000 },[/B]
{ 7, 480000 },
[B]{ 8, 528000 },
{ 9, 547200 },
{ 10, 550000 },[/B]
{ 11, 576000 },
[B]{ 12, 585600 },[/B]
{ 13, 614400 },
[B]{ 14, 633200 },[/B]
{ 15, 652800 },
[B]{ 16, 671600 },[/B]
{ 17, 691200 },
[B]{ 18, 710000 },[/B]
/*TODO*/
// { 19, 787200 },
{ 19, CPUFREQ_TABLE_END },

This is just my opinion of what i think should be the case. This is based on the fact that overclock widget does NOT set speeds other than those exact matched with the ones from the Define Frequencies table.

I also added some more speeds that should be good for sleep mode (and above 245mhz that causes screen discoloration problems, and awaking problems). The bolded ones are changed/added.

ps I mean no offence trying to "correct" you, just my 2 cents.
[Hero, G2 Touch Android Development] behnaam:
Thanks for the head up :)
[Hero, G2 Touch Android Development] dipje:
I reported the same problem and a solution about one or two pages back, I believe. Something about searching first? :P.

Anyway, in your defense, I gave the solution very very vague.

I said, "something to do with .c-AOSP-fix".

The touchscreen is a Synaptics RNI type, so start looking for the drivers for it in the kernel tree. You'll see (in #22 anyway) that there is a file called like 'touchscreen-rni.c' (something like that, don't know exactly), and there is a copy of it with the name 'touchscreen-rni.c-AOSP-fix'. (If you know unix / linux, use 'find' command to locate it :P.). Use that AOSP-fix file to overwrite the original file, make sure you clean the .o file of the same name to make sure it gets recompiled, and redo your 'make zImage' command.
[Hero, G2 Touch Android Development] dipje:
another question, what about ADB not working? Is that only on AOSP roms? Or is it in this kernel?

Is it easy to add? Need help? Or do roms need to modify something to work with this kernel and ADB?
[Hero, G2 Touch Android Development] fleming222:
dipje - You just need new drivers.

http://xdaforums.com/showthread.php?p=6579122#post6579122
[Hero, G2 Touch Android Development] dipje:
Hmm, but I was working under Linux (Ubuntu 10.04 amd64).

Weirdly enough, it _is_ working under Windows, I just have to re-tell Windows that it's an composite ADB device. I didn't eve update the driver package in my old SDK 2.1 directory yet.

Well, at least it's not the kernel then. I'll try playing around in my linux install.
[Hero, G2 Touch Android Development] NeBouse:
Finally i've managed to install this kernel (ben#22) on legendary 1.3.5 , by flashing the unlocked SPL.

It works great !!

Could someone give me a hint on how to setup the overclock widget ?

I mean , what values should i set ??

Actually i've set it to :

245 to 653 when screen on

245 to 384 when screen off

Sometimes my phone has problems to wake up , i get a black screen , so what values should i set ?

thanks in advance.
[Hero, G2 Touch Android Development] R0iZ:
1. Download OverclockWidget from Market (it's free)

2. Put the widget on your screen and make sure you allow it when the Super User permission request comes up(also check the remember option).

3. Reboot

4. Tap it once and select Advanced Setting

5. Check Differ Freq Screen off

Recommended settings:

Screen on: min- 691200 max- 691200

Screen off: min- 245760 max- 245760

6. Check auto start on boot and press save.
[Hero, G2 Touch Android Development] dipje:
I missed why you would need an unlocked SDL for that.. but nice you got it working :).

The easy answer is 'something higher than 245mhz'.

The complexer answer: In ben's kernel #22, there is a table with 'allowed' frequencies. In this table, the frequencies go from 245mhz directly to 480mhz.

So if you try to set '384mhz', it will go to the one directly below it, in this case 245mhz. And that is too low for the phone to (reliable) get out of sleep as so it seems.

So for you _now_, to let the phone wake, set your sleep frequencies to 480mhz.

Ben or someone else will modify the table to offer a wider range of frequencies (right? :P) in some time, so then you could set it to 280mhz or 384mhz in sleep.

But for now (Ben#22), remember that there is _nothing_ in between 245mhz and 480mhz, and 245mhz is actually a bit too low.
[Hero, G2 Touch Android Development] k0rner:
ramzswap module for the latest kernel

I have compiled ramzswap (compcache) module for the latest Benhaam kernel - see attachment.

To make it work:

1. unzip the file

2. push it to /system/lib/modules/ramzswap.ko

3. Add the following as startup script:

#!/system/bin/sh
/system/xbin/bb/insmod /system/lib/modules/ramzswap.ko disksize_kb=81920
/system/xbin/bb/swapon /dev/block/ramzswap0
echo "10" > /proc/sys/vm/swappiness

You will probably need to adjust insmod and swapon locations - these are for VillainROM 6, and may differ in other roms.

This example will add 80Mb compcache. adjust disksize_kb to change it.
[Hero, G2 Touch Android Development] androcheck:
Thanks for your note!

Sorry, I really didn't want to offend anyone. Normally I read the threads before I post, but it seems I really missed your post this time. :rolleyes:

But thank you for your hint!

Had no time until now, but I will try to compile with the AOSP-fix file tomorrow.

Regarding your question:

Which problems are there with adb? I did not test anything further, but I was able to connect to my Hero via "adb shell" when my touchscreen was not working.

I am working on x86 Ubuntu with "Android Debug Bridge version 1.0.26" (as "adb version" tells me). Sorry if I got something wrong and you meant something completly different. :)
[Hero, G2 Touch Android Development] NeBouse:
Well , #22 has no "pre-made" update.zip for the legendary rom (ramdisk problem).

So someone invited me to extract ramdisk from the legendary rom , and build my own update.zip.

But his method required linux , and i'm on windows.

Another one gave me another method , but it required the unlocked SPL to be able to flash the zImage in fastboot.

That's what i did ;)

Btw , many thanks for your hints with overclockwidget.
[Hero, G2 Touch Android Development] blackplatypus:
I compiled a kernel for 1.5 android (MCR) somehow the colors are messed up, they are too bright, am I missing some patch/libs?
[Hero, G2 Touch Android Development] androcheck:
Thanks again for this hint!

I compiled the kernel again and I can confirm:

The kernel works for me now on a AOSP ROM (aHero 0.9) and the touschscreen is working perfectly. :)

For the moment I just pulled the latest version from behnaams git repository and simply renamed the file "synaptics_i2c_rmi.c-AOSP-fix" to "synaptics_i2c_rmi.c". (in directory "drivers/input/touchscreen/").

At the moment I cannot tell very much, but at a first look, everything seems to work!

I also looked through "make menuconfig" before compiling but I didn't change anything for the moment.. But man, it feels good to be able now to tune my own kernel. :) I've built so many server and desktop kernels but that's my very first self-compiled kernel for a phone.

Many many thanks to behnaam, Toastcfh and all others who made this possible!! :) :)
[Hero, G2 Touch Android Development] dipje:
Wasn't ment to call names or be 'instructive', there were no angry-faces or multiple exclamations in it :).

Maybe I should use more smileys in posts like that, I just thought it funny you were asking something I asked + answered no 24hours before :P.
[Hero, G2 Touch Android Development] androcheck:
Nevermind... :)
[Hero, G2 Touch Android Development] jell:
if You would, You should...

but You probably don't even understand rules (GPL) on which Yours modifications to kernel should be accessible to any one user of Yours rom...

little question: where are that patches? anyone seen them?

benocharm: BFS is one of biggest **** which ever happend in linux kernel community (i have very bad experience with it on desktop since several past months) - could You provide (on that github) tree without this patch (after You will apply it)?
[Hero, G2 Touch Android Development] dipje:
No offense, but why are you (still) attacking? Am I the only one that thinks stressing the GPL is not working on a forum like XDA?

If he went behind an employers back to get sources and shares something from that with us, we should be happy. Shoving the GPL in his face clearly won't have the effect that he will share his sources... the reason he is NOT sharing them is because he's scared too. So trying to enforce the GPL will only result that he will not share anything anymore.

Be glad that if he has inside sources / information that he is willing to share something... and if it's all a hoax in the end, so what?

I said it on some different topic before: Most of the cool stuff on XDA happened from leaks or inside-information. Basicly kinda illegal stuff, those people probably signed a NDA somewhere to keep that stuff to themselves. You can't go forcing them to give it up unless they themselves think it is safe.
[Hero, G2 Touch Android Development] mikael120:
what exactly would he be afraid of? there is nothing in the kernel source that would allow anyone to identify him, besides if he really was as afraid as you said he is then he would not have released a rom based on the sources, he would probably have given it to some other dev instead. anyway at this point i don't think anyone actually gives a crap about his so called "patches" anyway as the .29 kernel in this thread is more stable than his kernel ever was.
[Hero, G2 Touch Android Development] dipje:
Point I was hoping to make is that it's not about how safe he is, but about how safe he feels, and that's only up to him.

I'll stop posting about this now, because it's offtopic. Feel free to PM or start another thread if you want to continue it :).
[Hero, G2 Touch Android Development] jell:
sorry, but try to read GPL, and stop writing about such things like NDA... if binary is build from sources on GPL - provider of such binary MUST give access to that sources and any his modifications in that sources to recipient of that binary. period.

if he do not accept GPL - he should stop abusing it by providing binaries build on modified sources.

btw. more illegal is hiding by HTC their modifications, than disclosure of such modifications by anyone...
[Hero, G2 Touch Android Development] ebguilbert:
color issues gone

I changed CPU_FREQ_ONDEMAND_MIN to 352000 in .config and added this value to the frecuency table in acpuclock-arm11 and compiled the kernel.

I've been testing for one day and the color and awake issues are gone!

Thanks for this kernel! It works really well!

PS: I dont use OW because I dont want to do overclocking..
[Hero, G2 Touch Android Development] intronauta:
What are really the frequencies supported? The sources defines ones, a user proposes others, you add another one ,....

http://xdaforums.com/showpost.php?p=6577640&postcount=264
[Hero, G2 Touch Android Development] dipje:
In the acpuclock-arm11.c file are multiple tables (also for the MSM7227 cpu, be sure not to alter those, they are not used on Hero-compiles).

I have _no_ understanding of the MSM72xx platform (7200a is used in the Hero, right?) let alone the kernel sources, but if I'm reading it and I want to be safe I think like this:

There is a table (struct) _defining_ usable frequencies. Search for the first table that is in a #ifdef block for 'TURBO MODE'. Per frequency, is contains 3 to 4 values (typing this from head so not exactly sure) with info that is unknown to me to define the frequencies (memory timings or stuff like that? really shooting in the dark).

Then next (like two pages down or something) is a second table / struct, again #ifdef'd with TURBO MODE, that says which of those defined frequencies to actually use / make available.

So when making up the frequency table, you can't just enter any hz value, you have to pick from the table defined a little bit earlier.

Now once again, I have NO idea if this is true at all, but it seems to make sense if I look at the code. Please correct this if it's absolutely not true, because a) I don't want false info hanging around b) I want to learn this stuff :).
[Hero, G2 Touch Android Development] ebguilbert:
I took the value from the table defined in msm72xx_tbl[] in file acpuclock-arm11.c. I dont really know if this value is supported, I just took one value above 245760 as suggested by petsasj. He was right about the sleeping frecuency too low.

If there is a "recommended value" above 245760 I also would want to know it.
[Hero, G2 Touch Android Development] dipje:
I'm using 352mhz and it's working fine (245mhz was giving my wake-up problems). 280mhz or even 250mhz might have also worked, but I'm thinking 352mhz is enough of a downclock already.
[Hero, G2 Touch Android Development] ebguilbert:
352 is the value I used and is working fine for me as well ;)
[Hero, G2 Touch Android Development] tiithe:
Hmm .. I use 245760 min and 710000 max, and no problems (Ben22 and Behero+) Battery lasts compared to the default kernel (from BeHero+) forever :) -- minimal use and flight mode at night - 3 days; with gps and wifi use - 2 days (before was maximum usage 1.5 days)

Tiit