yashsingh1/xdaforums huggingface dataset:
[HTC One V] Adi_Pat:
Oh, my bad.. I added it for auto root access.. Never mind. I'll remove my su and busybox binaries, and post build#3.. Thanks for testing :D

I will try to restrict boot-up frequencies for stability!

EIDT:

Can someone run mount under terminal emulator and tell me if partitions are mounted as YAFFS2 or EXT4?

App
[HTC One V] Adi_Pat:
Updated OP with Build 3 and Changelogs.

Enjoy Flashing :D

Well guys, I will take a break from this device now!

Will work on my other kernels till then!

Will be back in a few weeks, will still reply to all ur queries here :D

Cheers :)
[HTC One V] s4shyam95:
Great work! keep it up
[HTC One V] than33:
As You Wish :)

rootfs / rootfs rw,relatime 0 0

tmpfs /dev tmpfs rw,nosuid,noatime,nodiratime,mode=755 0 0

devpts /dev/pts devpts rw,noatime,mode=600 0 0

proc /proc proc rw,noatime,nodiratime 0 0

sysfs /sys sysfs rw,noatime,nodiratime 0 0

/dev/block/mmcblk0p25 /system ext4 ro,relatime,user_xattr,barrier=1,data=ordered 0 0

/dev/block/mmcblk0p26 /data ext4 rw,nosuid,nodev,noatime,user_xattr,barrier=1,data=ordered,noauto_da_alloc 0 0

/dev/block/mmcblk0p28 /cache ext4 rw,nosuid,nodev,noatime,user_xattr,barrier=1,data=ordered 0 0

/dev/block/mmcblk0p29 /devlog ext4 rw,nosuid,nodev,noatime,user_xattr,barrier=1,data=ordered 0 0

none /acct cgroup rw,relatime,cpuacct 0 0

tmpfs /mnt/asec tmpfs rw,noatime,mode=755,gid=1000 0 0

tmpfs /mnt/obb tmpfs rw,noatime,mode=755,gid=1000 0 0

none /dev/cpuctl cgroup rw,relatime,cpu 0 0

tmpfs /data/secure/data tmpfs rw,relatime,mode=771,uid=1000,gid=1000 0 0

tmpfs /data/secure/data tmpfs rw,noatime,mode=755,gid=1000 0 0

htcfs /data/htcfs fuse.htcfs rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other 0 0

/dev/block/vold/179:32 /mnt/emmc vfat rw,dirsync,nosuid,nodev,noexec,relatime,uid=1000,gid=1015,fmask=0702,dmask=0702,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0

/dev/block/vold/179:65 /mnt/sdcard vfat rw,dirsync,nosuid,nodev,noexec,relatime,uid=1000,gid=1015,fmask=0702,dmask=0702,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0

/dev/block/vold/179:65 /mnt/secure/asec vfat rw,dirsync,nosuid,nodev,noexec,relatime,uid=1000,gid=1015,fmask=0702,dmask=0702,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0

tmpfs /mnt/sdcard/.android_secure tmpfs ro,relatime,size=0k,mode=000 0 0

/dev/block/dm-0 /mnt/asec/se.nena.nenamark2-1 vfat ro,dirsync,nosuid,nodev,relatime,uid=1000,fmask=0222,dmask=0222,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0

/dev/block/dm-1 /mnt/asec/pl.idreams.jellydefense-1 vfat ro,dirsync,nosuid,nodev,relatime,uid=1000,fmask=0222,dmask=0222,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0

/dev/block/dm-2 /mnt/asec/com.rovio.angrybirdsrio-1 vfat ro,dirsync,nosuid,nodev,relatime,uid=1000,fmask=0222,dmask=0222,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0

/dev/block/dm-3 /mnt/asec/com.bejoymobile.dookid-1 vfat ro,dirsync,nosuid,nodev,relatime,uid=1000,fmask=0222,dmask=0222,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0

/dev/block/dm-4 /mnt/asec/com.rovio.angrybirds-1 vfat ro,dirsync,nosuid,nodev,relatime,uid=1000,fmask=0222,dmask=0222,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0

root@android:/ # mount --help
[HTC One V] Adi_Pat:
Thanks. Just wanted to check if everything is mounted as EXT4 or no.

Also someone gimme screenshots to tag on OP Plz.

And benchmarks also. @1Ghz @1.5Ghz @1.9Ghz @2Ghz.

Run 2-3times. Thanks. And also run Graphic benchmarks on nenamark2 with those frequencies.

Cheers :)
[HTC One V] 1ceb0x:
@Adi_Pat, great work dude. However I have a question: Why we should not "6) DO NOT USE ANY init.d scripts!!!!!!" ?

Cheers
[HTC One V] Adi_Pat:
It will mess up with my kernel configurations and hence reduce performance.

I have already tuned everything so additional scripts are not needed :)
[HTC One V] 1ceb0x:
yeah but scripts like a2sd or compcache can be used? or even these are included?
[HTC One V] Adi_Pat:
You can use.. But at your own risk. And is it really needed? A2SD is fine though.
[HTC One V] than33:
BUILD #3 is working very good. I didn't find any problem. Lionheart governer is best in my opinion for speed nad smartassv2 will be be probably best for battery.
[HTC One V] Adi_Pat:
Benchmarks? Would be interesting to see if my patches made any difference..
[HTC One V] ryanlow134:
How to overclock?
[HTC One V] hlavicka82:
Use an app to set the frequency. you can find some on play store. No-frills CPU control, or CPU Master.
[HTC One V] Lloir:
nice kernel, im not brave enough to oc up to 2ghz lol :P
[HTC One V] 1ceb0x:
I'm doing an almost fully benchmark using AnTuTu with almost all possible combinations. For me it is even stable at 1.9ghz. Will post loads of screenshots when I'm done!
[HTC One V] TeHashX:
Be careful, I overclocked mine to 2GHz and worked fine for 4 hours but after that the phone restarted and goes in bootloop, was hard to reset him.
[HTC One V] 1ceb0x:
That's because you set it to boot at 2ghz. I suggest you test it first in almost all situations and when you are 100% sure that your phone can handle it, thick the "set on boot" option.
[HTC One V] 1ceb0x:
AnTuTU benchmarks, latest version 3

So this is what I've found:

- It is interesting to see how low values you can achieve when the cpu is set to: 1.7 max, 768 min, smartassV2 - SIO. The score registered is 3062 and the other values are low. What's more interesting is that, with the same max value, but with min value of 245, smartassV2 - SIO, the score is 3857 - a high amount comparing with the first set. How come?

- The other fact interesting is while running benchmark at 2.0 - 245, smartassV2 - SIO, the score was 2887 - a fair score you might say. But comparing with the score I've got when using a slight decreased max speed - 1.9ghz, and the other specs unchanged (governor, min speed, i/o) you will ask yourself, how come? The score was 3992. Almost double!

I've not done almost all the possibilities, but there are a few shots you can take a look and compare them. I've only used SIO as I/O and smartassV2. If anyone can make the same tests with lionheart and SIO it will be greatly appreciated.

The speed that you will get using this kernel right here is incredible. A very good job Adi_Pat! I knew you can pull it off! Thank you so much for the kernel. You deserve a beer!

My current setup will be: 1.9 max, 768 min, smartassV2 and SIO scheduler since this seems the most highest score profile.
[HTC One V] ryanlow134:
was just wondering... wats the difference between smartassv2 conservative, userspace, Lionheart, ondemand and performance? sry... newbie here :)
[HTC One V] Adi_Pat:
Well actually, you should free up RAM before running benchmarks.

Also, I see a great improvement in I/O which is indicatinv that some of my patches worked!

Another thing is with each increasing freq step, there is an increase in graphic points too. I guess thats because Adreno 205 is an embedded GPU. And if you are getting low benchmarks on 2.016 Ghz that means the proc may not be supporting it ;)

I will still add lots of improvements to this kernel but after a break :D

I will soon set a donation email too though I don't expect any donations :D :P

EDIT: IOSCHED VR gives really good benchmarks but is not so stable when clocked at lower frequencies

:)

And you should always set max freq and min freq same when taking benchmarks. Because sometimes the governer scales it too low. Hence the low points.
[HTC One V] 1ceb0x:
Well, didn't knew that, but I've made it like I was gonna run it. With low and max frequency so it will give us some test points like per a normal day to day use. I doubt that you keep your cpu at 2ghz (2ghz min, 2ghz max). I had free ram, it had nothing installed, only benchmark and no-frills. I've also deleted some apk's that were useless (my phone was not imported from Europe but from Asia) and I had alot of useless apps baked in by a specific carrier. So ram was free enough!

Not only GPU gets increased, but even RAM too! And I/O gets increased but only by a few points.
[HTC One V] Adi_Pat:
Well, I am working on two-way call recording now.. hoping to get past some hurdles.
[HTC One V] sashapetrik:
the latest version: on my phone does not work on any firmware! does not even start! stuck on htc quietly brilliant! European phone
[HTC One V] TeHashX:
With the latest kernel it works, thx.
[HTC One V] maxwen:
Hi

I can also offer some help here if you like

Since I own a HTC One V I can maybe test those kernel builds "better"

or at least do some basic tests before providing it. This can maybe

"release" some pressure on Adi_Pat to to always wait for some

HTC One V owner to know if it boots or not.

I am a linux kernel dev for some time (years) so I have "basic knowledge" what I do :)

I am just new to Android dev. Can you give me some pointers about things like

-where can I get a cross toolchain?

-how to "package" a kernel into boot.img (are there some scripts doing this)

-any other information around this

Regards

max
[HTC One V] britbloke:
I'm an owner of a Canadian HTC One V from Koodo, which I unlocked to use on Rogers here in Canada.

I flashed your kernel yesterday and everything seemed to be running smoothly while I was just on wifi, but problems happened when I put in my Rogers SIM card.

My phone would lock up after 1 or 2 minutes meaning I would have to do a hard reboot (hold power for more than 10 seconds). Lock ups happened constantly so I reflashed your kernel a few times using the One V Tool, deleted cache, dalvik, data, etc, but the problem wouldn't go away.

I was also getting errors installing some apps from the Play store (error in package, etc).

In the end I used my nandroid backup to flash my stock kernel and things have been fine since.

I don't know if there are any logs I can attach (I would have to flash your kernel again first as my phone is working fine now). Where would the logs be located?
[HTC One V] ryanlow134:
adb lolcat

but i dunno how to specify the logcat...
[HTC One V] Lloir:
what do you mean specify the lolcat? as in where to save it to?
[HTC One V] hlavicka82:
Did you limit the frequency of the CPU? The latest kernel boots at the max frequency i.e. 2GHz, which I find very unfortunate becouse the phone might get unstable after a while. I recommend you to install No-frills CPU control and set the freq to 1GHz and choose noop scheduler and thick apply at boot. Then try the titanium kernel again
[HTC One V] Lloir:
well that explains my booting up and then sudden reboots.....thanks for pointing that out!
[HTC One V] britbloke:
Thanks, that worked.

What I did was go back to stock kernel where everything was fine. Install No Frills CPU, change the CPU settings to what you mentioned above making sure that SU granted the permission.

Then I reflashed Titanium kernel and everything is running well, at least at 1Ghz. I'll try bumping it now to 1.2 Ghz.
[HTC One V] ryanlow134:
I've been using 1.8Ghz, any higher than that, random reboot...
[HTC One V] shubhamchamaria:
1.5ghz is safe and good enough..
[HTC One V] shubhamchamaria:
@Adi_Pat: Can you set default frequency to 1.5GHz because although most people can change it after flashing kernel people with fresh Rom installs have to go through setup and during that period it Randomly Restarts, Goes into Bootloop etc....??
[HTC One V] Adi_Pat:
I will compile another kernel with 1.5Ghz max.. So I will put up two kernels with 1.5Ghz and 2.016Ghz.

I am a bit busy with tests/studies this week. With any free time I will compile and upload!

I couldnt find the variable which defines boot up speed, hence this issue.

Sorry for the delay :)

Also I will be helping out Sandvold with AOSP kernel for One V since he is porting AOSP soon. So I cannot guarantee quick updates for this kernel.

Cheers :D
[HTC One V] britbloke:
I guess I spoke too soon.

I tried upping to 1.2Ghz but I encountered the same crashing and freezing as before.

Here is my first logcat.

And my second.

And third.

I'm now back to stock kernel.
[HTC One V] maxwen:
Hi

I made progress :)

Kernel based on sources from Adi_Pat is compiled

Now I am stuck at creating the boot.img

I have extracted stock boot.img and replaces ramdisk and kernel.

What are the correct mkbootimg parameters for the HTC?

Thanks

max
[HTC One V] than33:
I'm using 1.7 for second day without any problems. anything higher is unstable.

I know that it is possible to have 2.0GHz available, but by default max set to 1.5. Can you try to do that like this?
[HTC One V] maxwen:
Hi

Just a related question.

I have CWM installed but it seems that using restore from there is

not restoring my last backuped kernel after trying the kernel from Adi_Pat

I had to use fastboot flash to bring back my "original" kernel

Is this expected???

Thanks

max

EDIT: Reinstalling SuperSU was of course also needed after restoring
[HTC One V] jparasite:
Yeah, current scripts don't have the binary to overwrite the kernel/boot partition so you have to manually do it yourself.
[HTC One V] britbloke:
Being a noob at kernel flash, I discovered that a restore in CWM won't restore the boot.img.

I had to use the One Tool to flash the kernel to my backed up boot.img
[HTC One V] Adi_Pat:
My repack scripts never worked. So I always used dsixda Kitchen for repacking boot.img.

Make sure you add compiled modules to /lib/modules in ramdisk. And also insert wifi module on boot. Else wifi will be broken.

Take a look at my Android Toolchains repo.

www.github.com/AdiPat
[HTC One V] parkourz:
OC above 1.5 Ghz can be unstable - ok, I understand... but why dangerous? Android always defends him by reboot when OC is to high... If I'm wrong, correct me
[HTC One V] 1ceb0x:
you are right. but if you set it to a value that your phone will not support and thick the box "set at boot" you will end up in a bootloop when he restarts itself because it will start with that value. that's why people are mistaking this with a "soft brick"...

my phone can support value upto 1.9ghz and 2.0ghz also but I don't need to go that high!
[HTC One V] parkourz:
Ahh, you just calm me down :D

Mine phone runs on 2 Ghz to, but with 1,8 Ghz I have the best Antutu score - 2833, so I think it's the best :)
[HTC One V] maxwen:
Hi

Thanks. I will try it

max
[HTC One V] ryanlow134:
well.. i haven't try the benchmark yet, but i'm fine at 1.8Ghz :D
[HTC One V] flar2:
Good to know

Like some of the others, I couldn't get Build3 to boot up, it hangs on the HTC One screen. So I built a kernel with your source, changing the max frequency to 1.5GHz. Then used scripts to unpack your Build3 boot.img to get ramdisk and repack it with the kernel I compiled. I suspect this is why it wouldn't boot.

(I may have made other mistakes though, because I am new to cross compiling for arm/android)
[HTC One V] maxwen:
The "make" script from your git repository is doing that anyway - right?

I use that just only changed the directories for toolchain and build dir

Thanks

max

---------- Post added at 03:44 PM ---------- Previous post was at 03:39 PM ----------

Hi

Can you give me a "hint" where in the source this is done? :)

I want to do that too.

Thanks

max
[HTC One V] hlavicka82:
Hey guys which source from Adi_Pat do you use? I think there was the source under HTC One V which was broken and the one that worked is android_kernel_primou. But I might be mistaken.
[HTC One V] flar2:
Kernel/arch/arm/mach-msm/acpuclock-7x30.c

All I did was remove the higher frequency steps. There are two places to change in that file, you'll see them when you open the file.

Not sure if that is sufficient, as I was not able to test the kernel. It compiled ok, but as I said earlier, I couldn't boot it, probably due to the way I packed the boot.img.

@hlavicka82: use android_kernel_primou
[HTC One V] maxwen:
Just confusing then that CWM writes

-Restoring boot image

:)

Regards

max

---------- Post added at 04:14 PM ---------- Previous post was at 04:06 PM ----------

Hi

Aaaah. Please help!

I think I have wiped out all from the kernel installation from Adi_Pat

-I reflashed boot.img from backup.

-I restored my last backup from CWM (with wipe out)

-Kernel version is correctly displayed

But it reboots soon after every restart :(

Regards

max
[HTC One V] jparasite:
Can you get a logcat, as well as possibly check what speed the CPU is running at?

Oh, I just realized that the whole boot.img not flashing might have something to do with S-ON/S-OFF (and CWM is attempting to flash but not able to).
[HTC One V] maxwen:
Hi

Problem is how to get the device long enough to live to do that :(

Since I am new - how can I collect a logcat?

Thanks

maxi

EDIT: Since I need that phone I will use RUU now :(
[HTC One V] maxwen:
Hi

Ok after RUU it seems to be stable again

I have not the slightest idea why this happend

But I think I will not be using this kernel for some days :)

Regards

max
[HTC One V] maxwen:
Hi

Uups I was using the wrong one too :)

But I didnt get if how to compile since there is no .config in git

How do I get the correct config?

Thanks

max

EDIT: Ok should have taken a closer look :)

is it titanium_defconfig :)

---------- Post added at 01:01 AM ---------- Previous post was at 12:11 AM ----------

Just to close this since I found it :)

This is done using adb logcat -right?

Regards

max

---------- Post added at 01:31 AM ---------- Previous post was at 01:01 AM ----------

Hi

My own build kernel boots fine! :D

Just crossing my fingers that it is also stable ;)

Yes ist is enough to comment those lines

I can only scale up to 1.5GHz

As Adi_Pat suggested I used dsixda Kitchen and it works fine

after you found all the tricks :)

http://xdaforums.com/showthread.php?t=633246

So thanks to Adi_Pat for his work and all the others here that helped

I can of course share my build if Adi_Pat is fine with that.

Regards

max
[HTC One V] flar2:
^^yep, I can confirm using dsixda's Kitchen to pack the boot.img works. I'm now using the modified version ofAdi_Pat's kernel I compiled the other night (limited to 1.5GHz). So far, so good.

EDIT:

I built kernels with max overclocks of 1.7 and 1.8 for testing . Both booted on my phone but 1.8 froze after a minute. I'm going to use 1.7GHz for a while.
[HTC One V] maxwen:
Hi

Great! :)

Regards

max
[HTC One V] Kewyang:
Can someone show me the full the instruction of installing this kernel? I just bought my phone last week. Im a very newbie for this. Appreciate if someone share.
[HTC One V] Adi_Pat:
Hmm, just bumped in..

Can you guys tell me what you'll are exactly trying to do?

PS: My present source is android_kernel_primou :D & titanium_defconfig
[HTC One V] Lloir:
Download the ONE TOOL, http://xdaforums.com/showthread.php?t=1676686 makes life easier to flash, instructions are within the app.

Also everything you need is in this thread

http://xdaforums.com/showpost.php?p=27472673&postcount=1

enjoy

-Lloir
[HTC One V] Adi_Pat:
See first unlock bootloader with instructions from HTC dev site.

Then flash via fastboot.

fastboot flash boot boot.img (Someone plz confirm)

done.

As I had promised, the 1.5Ghz Kernel is pinned up to OP!

Also can someone tell me how is the battery life compared to stock?

Enjoy!
[HTC One V] ryanlow134:
yes... thats correct...
[HTC One V] Adi_Pat:
Someone plz test new 1.5Ghz Kernel and also report about battery use.
[HTC One V] TeHashX:
v1.5Ghz Kernel is working fine, I use it at maximum frequency, Smartass v2, noop.

For the battery life is to soon to say something, maybe after some days of use.

Here are the benchmarks
[HTC One V] sashapetrik:
TITANIUM KERNEL BUILD#3 ( 1.5 Ghz Max frequency) works fine! Thank you! last stock rom!
[HTC One V] maxwen:
Hi

Is using a "Mobile network" connection working for all of you?

I get reboots as soon as I try using it (WiFi seems to be ok)

I have limited the kernel speed now to 1GHz to make sure

this is not the problem.

Can this be kernel related?

Thanks

max

EDIT: logcat shows just before the reboot

E/AndroidRuntime(25919): *** FATAL EXCEPTION IN SYSTEM PROCESS: android.server.ServerThread

Dont know oif this is really related :(

The backtrace is

E/AndroidRuntime(28239): java.lang.RuntimeException: Error receiving broadcast Intent { act=com.htc.sync.provider.weather.result cat=[1__] flg=0x10 (has extras) } in com.htc.lockscreen.weather.LocationCtrl$3@410bf258

But I dont have the "Weather" applet in my lockscreen
[HTC One V] sonertekgul:
I have a question about overclock, with which program you're making overclock? Or is it enough to just flashing kernel.

Thks.
[HTC One V] TeHashX:
To change the cpu clock you may use one of following:

1 - AnTuTu CPU Master

2 - No-frills CPU Control

3 - SetCPU for Root Users (witch is not free)

There are more apps on the market but it's your decision witch one to use.
[HTC One V] sonertekgul:
Can someone explain or direct me somewhere about turning stock kernel??

Thks
[HTC One V] maxwen:
Hi

What you mean with "turning"?

Changing, restoring, ....?

regards

max
[HTC One V] sonertekgul:
I ment flashing the stock kernel of htc one v

Thks
[HTC One V] maxwen:
Hi

If you dont have a backup - which you should always have when trying a

different kernel :)

Get it out of the RUU rom.zip and flash

Find the correct RUU here http://xdaforums.com/showthread.php?t=1591059

Description how to get the img out of the RUU is here

http://xdaforums.com/showthread.php?t=1706070

Just Instead of recovery_signed.img use boot_signed.img

and of course use flash boot instead of flash recovery

and no need to do the lock "thing"

regards

max
[HTC One V] sonertekgul:
Actually I got the file from myONEv RC1.1 rom pages from add-on folder section which is named as ''stock.kernel.zip''

And I dont know how to flash it.

Is it the same way; changing name of the folder as''boot.img''

and from fastboot screen typing ''fastboot flash boot boot.img''

Are these steps right??
[HTC One V] maxwen:
Hi

boot.img is NO folder it is a single file!

Dont know about myONEv RC1.1 maybe better ask there

regards

max
[HTC One V] sonertekgul:
can u just tell me how to flash it, assume that I have the file??
[HTC One V] maxwen:
You already wrote it correctly :)

'fastboot flash boot boot.img''

regards

max
[HTC One V] Adi_Pat:
@maxwen,

Can you help me get vdd stats support into this kernel? (Controling voltages via terminal)

I tried but wasn't able to get it to work :|
[HTC One V] maxwen:
Hi

Actually I am not very familiar with vdd. Can you PM me some

pointers about it?

Regards max
[HTC One V] artbu24:
whether the kernel can be loaded on our original soft. unlocked bootloader and root
[HTC One V] maxwen:
Hi

Maybe I am a little bit "old shool" :)

But I think it would make sense to always boot using 1GHz by default

Overclocking it "afterwards" is always possible. But using a

"safe" default would reduce the problem of bootloops if you

set it to high cause then you just need to make sure that your

"set frequency" app is disabled which can be done "faster" :)

Is setting a lower frequency by default in the kernel possible?

So setting a specific frequency from the fequency table as default.

I looked into the original HTC kernel code where there seems

to be a "kind" of limiting the frequency table to what the CPU "says"

This code is removed for the Titanium kernel.

Can this code be adapted to have something like a "default" frequency?

Thanks

max