yashsingh1/xdaforums huggingface dataset:
[Desire Android Development] snq-:
(modifications/addons for the _closed_source_ 2.6.35.10 htc kernel - for rom maintainers)

PATCHED KERNEL IMAGE

v01:

lzma-compressed kernel

o/c: 128MHz, 245MHz, 384MHz, 576-1152MHz (stepping: 38400kHz)

u/v: svs (@128000kHz: 950mV, @245000kHz: 975mV, @384000kHz: 1000mV, @576000kHz: 1075mV, @614400kHz: 1100mV, @652800kHz: 1100mV, @691200kHz: 1125mV, @729600kHz: 1150mV, @768000kHz: 1175mV, @806400kHz: 1200mV, @844800kHz: 1225mV, @883200kHz: 1250mV, @921600kHz: 1250mV, @960000kHz: 1275mV, @998400kHz: 1275mV, @1036800kHz: 1275mV, @1075200kHz: 1275mV, @1113600kHz: 1300mV, @1152000kHz: 1300mV)

cpu vdd regulator constraints expanded (800..1350mV)

patched out "Take the fastest speed available at the specified VDD level" (=full freq tab)

pre-cracked perflock (no need for perflock disabler module)

v02:

patched cpufreq code: set default cpu frequency constraints: 245..998MHz (with v01 cpu freq jumped to 1152 during the boot process)

v03:

trackpad-to-wake support (oj will not choke after a while when screen is off)

workaround for non-standard (extended) batteries (devices w/ stock htc battery are not affected)

v04:

2.6.35.10-g308ba26 base (new leak) with the same mods as v03

v05:

fixed htc akm8973 ("compass") driver (read more)

v06:

2.6.35.10-g3f43272 base (official gb update)

download: zImage-v06 (flashable v05-to-v06 kernel image+modules update package here)

--

MODDED WIFI DRIVER

min rssi threshold for scan results lowered (-88dBm -> -108dBm)

don't send "rssi low" events via wireless_send_event()

if you have messed up your framework/calibration file/etc with other "fixes", revert them

download:

2.6.35.10-gdd56551: bcm4329.ko

2.6.35.10-g308ba26: bcm4329.ko

ORIGINAL WIFI DRIVER

download:

2.6.35.10-g3f43272: bcm4329.ko

CIFS

(removed slow_work_* dependencies and patched with 2.6.31 oplock code)

download:

2.6.35.10-gdd56551: nls_utf8.ko, cifs.ko

2.6.35.10-g308ba26: nls_utf8.ko, cifs.ko

2.6.35.10-g3f43272: nls_utf8.ko, cifs.ko

EXT4

download:

2.6.35.10-gdd56551: jbd2.ko(dependecy), ext4.ko

2.6.35.10-g308ba26: jbd2.ko(dependecy), ext4.ko

2.6.35.10-g3f43272: jbd2.ko(dependecy), ext4.ko

TUN

download:

2.6.35.10-gdd56551: tun.ko

2.6.35.10-g308ba26: tun.ko

2.6.35.10-g3f43272: tun.ko

CPUFREQ: POWERSAVE, INTERACTIVE & SMARTASS

(you don't have to pass symbol addresses)

download:

2.6.35.10-gdd56551: cpufreq_interactive.ko, cpufreq_smartass.ko, cpufreq_powersave.ko

2.6.35.10-g308ba26: cpufreq_interactive.ko, cpufreq_smartass.ko, cpufreq_powersave.ko

2.6.35.10-g3f43272: cpufreq_interactive.ko, cpufreq_smartass.ko, cpufreq_powersave.ko

PERFLOCK DISABLER

(c) Michael Huang <coolbho3000@gmail.com>

(you don't have to pass symbol addresses)

download:

2.6.35.10-gdd56551: perflock_disable.ko (you don't need this with the pre-cracked kernel image above)

2.6.35.10-g308ba26: perflock_disable.ko (you don't need this with the pre-cracked kernel image above)

2.6.35.10-g3f43272: perflock_disable.ko (you don't need this with the pre-cracked kernel image above)

BTRFS

download:

2.6.35.10-gdd56551: btrfs.ko

2.6.35.10-g308ba26: btrfs.ko

2.6.35.10-g3f43272: btrfs.ko
[Desire Android Development] Alex-V:
wow thanks ;)

The good old modules :) :)

good work

with kind regards...Alex
[Desire Android Development] Nekromantik:
can we flash the governors into any of the Desire S Roms?
[Desire Android Development] foobar66:
Thanks snq.

Did you compile these from source? If so, can you pls provide link to kernel source.
[Desire Android Development] Alex-V:
download file: cpufreq_interactive.ko is the same as cpufreq_smartass.ko

with kind regards..Alex
[Desire Android Development] KennyDumah:
How do we enable them?

Copied already all of them to modules.

And now? :D
[Desire Android Development] KennyDumah:
Or could someone compile a kernel with that modules?
[Desire Android Development] Muxeu:
cpufreq_smartass.ko
[Desire Android Development] KennyDumah:
No one? :)

Please? :rolleyes:
[Desire Android Development] Droidzone:
Hi snq. Sorely need a kernel for the new gingerbread sense with support for ext 4.that's the only problem that prevents me from uploading a new starburst..

Swyped with my Starburst based Desire. Please ignore any typos or grammos.
[Desire Android Development] LeeDroid:
They will be in tonights build..

THANKS snq- !

Sent from me LeeDrOiD loaded Desire HD using the Android XDA Premium app
[Desire Android Development] Droidzone:
Excellent news. Thanks Lee.. :)

Thanks a lot, snq..

Swyped with my Starburst based Desire. Please ignore any typos or grammos.
[Desire Android Development] Alex-V:
Thanks :)

with kind regards..Alex
[Desire Android Development] snq-:
cifs added
[Desire Android Development] kl_arnet:
I knew it DroidZone!

Can't wait for your release! Lees' rom is ok but missing data2sd is pain in the arse. Snq saves the day again!

Swyped from Desire.
[Desire Android Development] ieftm:
There is no source for it. He probably used Desire S source, as it's similar. Add the correct version magic, done.

See above. Please stop quoting yourself.
[Desire Android Development] Droidzone:
Indeed. We're lucky to have such a dedicated kernel dev.

Swyped with my Starburst based Desire. Please ignore any typos or grammos.
[Desire Android Development] coolexe:
Here is flashable.zip, all modules included...

http://wbss.ro/coolexe/Extra/modules.zip
[Desire Android Development] Muxeu:
coolexe: could you take a look to RCMix v07 /init.d ?

What about /init.d/dtapp there?

Will be your zip works with it?
[Desire Android Development] coolexe:
Give me that file plz...n yes zip file works with Robo v7
[Desire Android Development] snq-:
zImage-iefv04 (-g308ba26-based)

for all previous releases, the lzma compressed stream starts at file offset 0x1F21 and ends before the .got/.got.plt sections, payload is compressed with lzma-4.43 (--best compression level), you can simply run it through lzcat

(repacking would be more tricky, as one has to be familiar with the bootstrap/decompression code, and know how/when/where to fix up vectors)

another way to modify existing/add new functionality would be the way coolbho3k did with his perflock_disable module
[Desire Android Development] snq-:
thanks. patched image & modules for 2.6.35.10-g308ba26 added
[Desire Android Development] coolexe:
Hi,

10x snq..

here is flashable.zip

http://wbss.ro/coolexe/Extra/2.6.35.10-g308ba26-v4.zip
[Desire Android Development] siedkins:
Thanks for posting a zip !

Sorry for the newbie questions. I'm running LeeDroid 3.0.5 (based on Asia WWE 3.06.707.0). Can I flash the new kernel or can I replace the kernel in your zip file for v3 and flash that instead ? (would I need to take off signature if I change the one of the files in there?)

Lee has yet to implement the Wifi Fix or SNQ's v3. And I'm no good at installing it manually so wanted to flash.
[Desire Android Development] Muxeu:
Looks like new modules should be placed to /system/modules/2.6.35.10-g308ba26/

When mod's in /system/modules/:

# modprobe bcm4329
modprobe bcm4329
modprobe: chdir(2.6.35.10-g308ba26): No such file or directory
# modprobe cpufreq_smatass
modprobe cpufreq_smatass
modprobe: chdir(2.6.35.10-g308ba26): No such file or directory

When modules in /system/modules/2.6.35.10-g308ba26/

# modprobe nls_utf8
modprobe nls_utf8
# modprobe cifs
modprobe cifs
# modprobe cpufreq_smartass
modprobe cpufreq_smartass
# modprobe cpufreq_powersave
modprobe cpufreq_powersave

But bcdm4329 does not work for me.

# modprobe bcm4329
modprobe bcm4329

20:57:48.579 Debug WifiService 622 setWifiEnabled =truemAirplaneModeOverwridden =false
20:57:48.580 Debug WifiService 622 setWifiEnabledBlocking:Enable Wifi
20:57:48.580 Info WifiHW 622 wifi_load_driver enter
20:57:48.580 Info WifiHW 622 check_driver_loaded
20:57:48.580 Info WifiHW 622 insmod
20:57:48.580 Info WifiHW 622 wifi_load_driver end error 2
20:57:48.580 Error WifiService 622 Failed to load Wi-Fi driver.
20:57:48.580 Debug NetSharing_NSReceiver 1875 onReceive : android.net.wifi.WIFI_STATE_CHANGED
20:57:48.580 Debug NetSharing 1875 wifi enabled change, state = true
20:57:48.686 Debug NetSharing_NSReceiver 1875 onReceive : android.net.wifi.WIFI_STATE_CHANGED
20:57:48.686 Debug NetSharing 1875 wifi enabled change, state = true

The default 4329 from HTCCN_CHS_3.12.1400.1 works good
[Desire Android Development] snq-:
no they don't

either use insmod or do a cd /system/lib/modules; ln -s . 2.6.35.10-g308ba26 before modprobing

because you moved it (to a subdir)

as does this one

# uname -a
Linux localhost 2.6.35.10-g308ba26 #1 PREEMPT Wed May 4 22:47:29 CST 2011 armv7l GNU/Linux
# grep 'bcm' /proc/modules
bcm4329 228247 0 - Live 0xbf0b5000
# md5sum /system/lib/modules/bcm4329.ko
341409b60ce02b4bd5db528a3b587166 /system/lib/modules/bcm4329.ko
# ifconfig eth0
eth0: ip 192.168.30.20 mask 255.255.255.0 flags [up broadcast running multicast]
[Desire Android Development] Muxeu:
snq- yep. All works. I don't know what was wrong ;)
[Desire Android Development] thanito:
Hi snq,

I have a quick question,I have neophyte's 1.9.9 latest Rom and I am experiencing really low in call volume,I know that he is using your kernels. Is this kernel related?

Thanks for your contribution in everything mate,

T.
[Desire Android Development] ieftm:
Thanks, testing now :)

Yep, I just found both the original gzip-compressed sections (original kernel) and the lzma-sections. Pulling these through gunzip / lzma -d gave me an Image, so that worked :)

That made disassembly workable, allowing me some insight into what you patched between v02/v03.

But you're right, repacking is more tricky ;) I'll see what I can find.
[Desire Android Development] thanito:
Snq,

Can you please look into the low in call volume issue??

Still got it with neo's 2.0.1 ROM.

could it be ril or radio related?? I am pretty convinced that it is kernel related though

Regards,

T.
[Desire Android Development] dexter93:
Hey snq! Any chance of having the source of this kernel on git? Thanks
[Desire Android Development] siedkins:
There is no source - please read the thread
[Desire Android Development] dexter93:
I had heard of it, but I wasn't sure. That's why I asked. Thanks :)
[Desire Android Development] roalex:
bump for squash fs again :)

having fonts/modules/xbin in such a form would save valuable space (for cm hboot for instance :D)
[Desire Android Development] godutch:
Can you do anything with the source for the desire hd kernel because it has just been released?:

http://dl4.htc.com/RomCode/Source_and_Binaries/ace-2.6.35-gb-MR.tar.gz

http://developer.htc.com/
[Desire Android Development] alexdiaz:
He can't, Ace has a different platform.
[Desire Android Development] TomLeeDesire:
Hi guys, Hi Prof

Just discovering that new kernel as i was stupidly waiting in Lee's 2.4.1 thread for GB...

The vdd levels sysfs interface i was using doesn't work anymore as it seems it has changed a bit...

Is there a new way for 2.6.35.10 ?

Thanks Prof, still an amazing work :)
[Desire Android Development] TomLeeDesire:
And also, does the kernel support 2 way call recording?
[Desire Android Development] m0narx:
aufs

Hi, snq-. Can you build AUFS module for this kernel?
[Desire Android Development] futureng:
2.6.35 'How do I use oxygen at or Cayongen. Because when I installed those published here, have a continuous problem. For example, the camera does not work or have problems with wireless.
[Desire Android Development] Komadyret:
May the reason be that this is a Sense kernel? ;p

Your problems with oxygen and cyanogen may be solved with a non-sense kernel...
[Desire Android Development] futureng:
where is "non-sense kernel"?
[Desire Android Development] dexter93:
Check the desire index ;)
[Desire Android Development] mayurh:
Snq nice work dude

One question IM using robo rcmix s , v 3 of your kernel,

Sometimes when my phone is in standby the data connection gets inactive n when I wake device it comes on again, could it b the kernel?
[Desire Android Development] *damo*:
Hi, please could you add swap support for this kernel as it would really help us with memory issues on sense 3, thanks

HTC Swyped from my Sense 3 Desire using XDA Premium
[Desire Android Development] -viperboy-:
Hey guys, I just brought my voltage mod over to the Desire. On the EVO, I didn't support Sense kernels since there was already a voltage mod for Sense. I can bring support for my scripts to the Desire I just need some people to test. Please PM me so I can get this working for you guys :)
[Desire Android Development] Alex-V:
a very good idea...is it possible..?

with kind regards..Alex
[Desire Android Development] Anakha56:
Not sure if it is related to the ROM or the kernel. Insertcoin (talking about the one in my sig) ROM's use this kernel as do the majority of Sense ROM's and we have run into a slight problem. The car dock's are being picked up as USB chargers not AC chargers, so under heavy use: navigation the battry is discharging faster than it can be charged. Just bringing it up...
[Desire Android Development] NeoPhyTe.x360:
+1 for this.
[Desire Android Development] Alex-V:
Please..if you can...we really need swap..with the new gingerbread sense hd roms...

with kind regards...Alex
[Desire Android Development] idanfima:
I offered the idea of swap to damo on the sense 3.0 post long time ago.

And the only problem for what I know is that we cant do it without the source code.

But! maybe -snq is able to do it, by the way, the other option is compcache maybe that will help us to.
[Desire Android Development] *damo*:
I am uploading my data2ext+ rom right now which helps a lot, makes things really fast and rosie almost never crashes

HTC Swyped from my Sense 3 Desire using XDA Premium
[Desire Android Development] Alex-V:
Ok thx for info :)

with kind regards..Alex
[Desire Android Development] Alex-V:
sounds good :)

with kind regards...Alex
[Desire Android Development] snq-:
new kernel image (v05):

fixed off-by-one bug (missing value for register H1Z@0xc4) in latest htc akm8973 driver that caused calibration failure in akmd

(that funny HOFFSET*.z values in /data/misc/AK8973Prms.txt)

original

(objdump output, comments by me)

modified

remove b0rked calibration file (might be optional)

recalibrate your compass

outdoor calibration highly recommended (magnetic interference)
[Desire Android Development] andQlimax:
Do you fixed a bug that all gingerbread roms have? :eek:

No words...You are still the number one! ;)

Thanks
[Desire Android Development] jeffreyljb:
Hey robo

Here our sense king snq- release new kernel version,I think you are going to work on new ROM version.
[Desire Android Development] Jakedude2011:
Really nice work, snq-!

Thx for this milestone! :)
[Desire Android Development] Alex-V:
wow..big thanks :)

with kind regards..Alex
[Desire Android Development] TomLeeDesire:
Who would dare to doubt?

Bravo Maître !!
[Desire Android Development] maxvanni:
Snq I think god will leave a special place for you:)
[Desire Android Development] jeffreyljb:
Can anybody pack a flashable zip file for v5? Thank you in advanced.

JeffreyLI
[Desire Android Development] abc001:
Thanks for the update! Is it possible to have a patch for two-way recording also?
[Desire Android Development] ravish_919:
That's great news. Compass finally got fixed... Thanks for ur great work
[Desire Android Development] ch1lko:
the link is in the first post

http://dl.dropbox.com/u/13432479/msm-2.6.35-bravo-GB/g308ba26/v04_to_v05-img-upd-flash.zip
[Desire Android Development] andQlimax:
That zip is only if u already have the version 04
[Desire Android Development] Vatrox:
Forgive me for a silly question, but I don't get one thing - what's the difference/advantage of flashing v04 to v05 update instead of full v05 zip?

Why should I do that? Running InsertCoin v25, which as far as I know, is based on v04 kernel.
[Desire Android Development] andQlimax:
No difference..But on the first post there is only one flashable zip, no full update..just no one created a full update zip, because devs are already putting the new kernel directly into their roms
[Desire Android Development] Vatrox:
Right, I thought there were two different zips, my bad. Now that I checked it, zImage-v05 inside of the zip package is the same - should have checked it earlier :)

Cheers!
[Desire Android Development] Srkineo:
ty snq! You should know that not a 10th of al the thx's that belong to you are in this thread... all the ppl that use the roms that use ur kernell thank the their cooks...

and I must say... everything is so smooth in our sense roms today..

<3 TY!
[Desire Android Development] jeffreyljb:
Got it,thank you.
[Desire Android Development] dazzlet:
I want to flash the latest kernel but I dont have version 4 flashed so I am unable to flash version 5 where can I download version 4 from?

Thanks
[Desire Android Development] Droidzone:
snq, would it be possible to release a v05 zimage based on the old leak... Tried the new kernel and modules on the old one and got bootloops on app installs..
[Desire Android Development] nuflood:
hi!

please please please add the two way recording fix to the kernel.

thanks!
[Desire Android Development] dexter93:
Hey snq! Love your work, but I've got a question: why is this kernel closed source?

Thanks!:D

Sent from my HTC Desire
[Desire Android Development] Mekrel:
because there is no source, HTC have no released the source so all of the modules and fixes are done through a hex editor of the compiled kernel and other modules.
[Desire Android Development] abc001:
+1. I am waiting too!
[Desire Android Development] Flashmaniac:
:facepalm:

thats a CLOSED Source Kernel.
[Desire Android Development] LoDRpR:
I'm currently facing a problem and I suspect it is the kernel causing it:

- using roms that have snq kernel embedded (Leedroid Froyo, Leedroid GB Sense, InsertCoin 1.0.5) I cannot connect to a hidden SSID wifi network

- using roms with different kernels (like Redux) I'm not having any issue connecting to the same hidden SSID

- there have been absolutely no changes made to the wifi network while testing.

Do you think you can help me with this?

Thanks!
[Desire Android Development] nuflood:
other kernels for GB added this fix so it can be done.
[Desire Android Development] kszaq:
"Other kernels" are based on AOSP which source is available. You can't modify closed source kernel just like that, you have to fiddle with hex editor (= fixing bugs is possible but adding features hardly not). We have to wait for HTC to release GB kernel sources.
[Desire Android Development] ppcalex:
hey guys,

just one thing that i thought of since i moved from cm7 to insertcoin:

is it possible to add high intensity flashlight into the sense-kernel?

i know it's closed source atm but maybe somebody is able to add that feature somehow
[Desire Android Development] Cactus42:
Just wondering if a non UV version of the kernel would be a possibility?
[Desire Android Development] nuflood:
oh. I see.

ok. then I'll wait aswell.

Thanks for clearing it up!
[Desire Android Development] ozneb:
+ 1

Is it possible to do a not undervolt version (because of reboot on certain apps like copilot), or doing an app to change undervolt parameters like on other Kernels.

Thanks
[Desire Android Development] m0nn3:
hi snq..

have you included the audio mod ?

or can i included manually ?

i cant find it..

i use the insertCoin rom..

Tanks man !!!
[Desire Android Development] sagaff:
Sorry, I don't know much about kernels but whats the difference between the two below:

2.6.35.10-gdd56551: cpufreq_interactive.ko, cpufreq_smartass.ko, cpufreq_powersave.ko

2.6.35.10-g308ba26: cpufreq_interactive.ko, cpufreq_smartass.ko, cpufreq_powersave.ko
[Desire Android Development] Srkineo:
Just to be curious... why cant a kernel overclock further than 1152?
[Desire Android Development] Iceberger:
Is destroying your phone a good enough reason?
[Desire Android Development] Srkineo:
I was looking for a technical awnser... but ty for the sarcasm
[Desire Android Development] bookerok:
snq-, every time i have disconnect mobile data (edge) in all sense 2.1 firmware, i`am used different radios, thats why i think that GB kernel has a BIG bug :(

can you fix it?
[Desire Android Development] Meaple:
Not really. It just reboots. Most people can get to 1190MHz, personally my phone can go to 1228MHz.
[Desire Android Development] CrazyCypher:
Hy, my phone is perfectly stable, no restarts or frezes since install on 1152Mhz, any chance to overclock to 1.2 or 1.25? I'm using Insertcoin 1.0.8 Stable
[Desire Android Development] howdid:
there is no need to OC your phone so high, 1. u don´t know how your phone handle higher oc´s 2. much higher battery drain 3. there is realy no need, anything is running perfectly with just 998mhz
[Desire Android Development] CrazyCypher:
1. That's what I want to find out :) 2. I dont really care about this 3.I just want to see how high can I go without restarts.

So, if anyone has any idea how to overclock to 1.2Ghz, please help me :)
[Desire Android Development] jasio2k:
Hi

Sorry for stupid question but I can't catch this ->

What is the diffrence between ?????

2.6.35.10-gdd56551

2.6.35.10-g308ba26
[Desire Android Development] andQlimax:
Are kernel that come from two different leaked ruu
[Desire Android Development] Cactus42:
Anyone know if it's possible to remove the OC/UV functionality from this kernel - my Desire hates UV (reboots the phone if it drops the frequency and voltage while I'm doing something like browser, Maps etc).
[Desire Android Development] andQlimax:
The kernel is OC/UV capable, but there is no OC/UV applied different from default values I think
[Desire Android Development] Cactus42:
I was under the impression that "@245000kHz: 975mV, @998400kHz: 1275mV" etc meant that it dropped the voltage when dropping the frequency. As far as I'm aware the default action of the HTC kernels is to scale the frequency automatically - When I've installed SetCPU it shows that the frequency is scaling between 245 and the 998 by default.

I don't mind the frequency scaling itself, just the drop in voltage as my Desire gets very flaky on 975mv - I've had this issue since the HD ROMs using HAVS and SVS Kernels last year, but there were non-uv options available for those kernels
[Desire Android Development] DirkStorck:
Hi snq-

Is it possible to add the

Interface to query/set cpu supply voltages for every frequency like in the Kernel for LeeDroid 2.x or is that not required with this kernel?

Thank you! :)
[Desire Android Development] eliteforce:
want to ask is it possible to include recording update?

http://xdaforums.com/showthread.php?t=993793
[Desire Android Development] Tepes4:
Call recording

+1 plz snq!
[Desire Android Development] koyannaing:
+1 please consider it. Thanks
[Desire Android Development] andQlimax:
That patch can be easily applied when htc will release the kernel source..

Now, there is no source available, so I think is about impossible to hex-edit the kernel to add that patch

snq already did a miracle to adding some fixes and modules to this kernel
[Desire Android Development] eliteforce:
before htc will release the kernel source its impossible to include call recorder?
[Desire Android Development] PlayPetepp:
My understanding is that you can't fiddle around the kernel driver when it's closed source. That's why we don't have trickle charge (siberes battfix) or call recording yet. :)

Smashed with my AceSMod007 loaded HTC Desire.
[Desire Android Development] Droidzone:
Flashable zip for v5 with 2.6.35.10-g308ba26 modules, which will also add a script to load all modules at boot time.

http://www.box.net/shared/m7v7kb4c6avbbna4tizm
[Desire Android Development] inamak:
Can EAP/LEAP please please please be added to this kernel.

I'm currently using Reflex S but i can't connect to work wifi (cisco-leap)

Worked fin in leedroid 2.x
[Desire Android Development] eliteforce:
Droidzone could you explain which 2.6.35.10-g308ba26 modules are included

didnt understand