yashsingh1/xdaforums huggingface dataset:
[Hero, G2 Touch Android Development] riemervdzee:
Version 1.2 of the Las Venturas kernel is out!

Changes of last Version 1.2:

Faster general IO output

Fixed some bugs concerning SD blocksizes, get some more IO speed

Fixes to the interactive governor

Newer vibration-code, less latency (small impact, but everything is welcome)

Ashmem flushing fix

Code cleanup

It should fix most of the IO problems we are having (by ~10%), although flykernel is just around ~0,5% faster on SD-card. I might have a better look at it later, but the fixes are good enough to release now :)

In fact reading or writing to /system/ or /data/ is faster than in standard fly. with around 5% actually.

Always wipe before flashing. The download is in the first post.

This might fix peoples problem with huge IO tasks like the music player? Curious about your findings people :) happy flashing
[Hero, G2 Touch Android Development] 1ceb0x:
ooh goodie. from the changelog it sounds really good! :D will flash this after I'm done playing with dsixda kitchen!
[Hero, G2 Touch Android Development] riemervdzee:
Bad upload, reuploading as we speak. (edit: reuploaded it, have fun!)

It is a nice release aye :)
[Hero, G2 Touch Android Development] cartman333:
Awesome im gonna flash it right now! :D thank you so much!

One question: what about the 2.6.38 kernel? is that possible to get it working for our old hero:D?
[Hero, G2 Touch Android Development] Loxxy:
LV 1.2 is awesome, noticeable improvement over 1.1 - great job :D
[Hero, G2 Touch Android Development] riemervdzee:
It is possible but it is gonna take too much time I'm afraid. The yaffs2 driver we are using at the .35 requires porting.
[Hero, G2 Touch Android Development] aleksandar.1:
Just flashed the LV1.2 ...

USB is not working (as mentioned in the OP), and i have this other issue... Call drops after 20second or so.... (i'm using heroine++ and update-hero-radio-63.18.55.06PU_6.35.15.14-signed radio)
[Hero, G2 Touch Android Development] riemervdzee:
Are you sure you wiped cache? Got no weird dalvik2ext script running? USB should work under most roms, unless it is sense 2.1. Then plugging out and in a few times should do the trick (don't blame me, but HTC. Their drivers are just bad... Really bad). Calling was never an issue. If you wiped correctly though, could you get me a kmesg log after the dropped call?

Cheers, R
[Hero, G2 Touch Android Development] aleksandar.1:
tnx for the quick reply!

Heroine ++ is a sense 2.1 rom :D

I have wiped Dalvik-cache, and cache partition....

I'm not able to export a kernel message log now... , i had to do a nandroid restore, had to make a few calls ...

I'll try this in a few days and give you the kmsg after a call drop (if any occur again) :)

And for usb, i don't want to ruin the phone's usb or pc's :D i bought a micro sd-card usb adapter :D
[Hero, G2 Touch Android Development] 1ceb0x:
I have no weird issues with the latest kernel. Everything works just as expected. No call drops, no usb mounting problems. Running under Ligux Coopoui 2.3.7 rom, also tried it in ICS 4.0.3 v2.2.1 and it works without a problem.

I have one issue thought: Riemer, update the thread's name to match the latest version xD!
[Hero, G2 Touch Android Development] riemervdzee:
Fixed ;)
[Hero, G2 Touch Android Development] riemervdzee:
So around ~600 downloads but hardly any feedback? Hows it running people? :)
[Hero, G2 Touch Android Development] Loxxy:
To be honest, superbly.

The 1.2 is lightweight but responsive, in short great work

:beer:
[Hero, G2 Touch Android Development] bluepinkpanther:
Simply: Great :)
[Hero, G2 Touch Android Development] lolo7291:
Well...no comment because it's just wonderfull :)

Seriously, it's really a great kernel with nothing to say except that there's nothing to say.

It's just perfect, I feel improvements(maybe it's only in my head)

great work
[Hero, G2 Touch Android Development] saj222:
Sorry about that riemer.

I was using your latest on floyo 1.2. I use juice defender and it was reporting that my phone life increased 1.48 times or so. Less than 1.5 for sure.

With flykernel I regularly get 2.0 times increase.

Not sure if this means anything.

Oh and I select 264 and 652 as min and Max.
[Hero, G2 Touch Android Development] perdita2000:
At least for me, Compass and level (gravity sensor) don't work.

Regards,

Perdita2000
[Hero, G2 Touch Android Development] ChosSimbaOne:
Not using the hero as a daily driver anymore, but with the slight use I have had with the phone, seems great with 1.2 with flykernel i could only OC to 691 and with lv 1.2 i can get 710 stable :-) seems really great :-)
[Hero, G2 Touch Android Development] cartman333:
It runs smooth and stable:D i think its a bit better then flykernel
[Hero, G2 Touch Android Development] Olean:
just incredible!
[Hero, G2 Touch Android Development] lolo7291:
no,HERO!!!! (what the hell is incredible!?!):D
[Hero, G2 Touch Android Development] riemervdzee:
Thanks for the feedback people, I always need issues to look into ;) Positives ones are also interesting to see,

@ ChosSimbaOne, interesting to see that you can clock a little bit higher than with the flykernel. Is it quite stable on that frequency?

@ perdita2000, could you provide me a dmesg after you just booted and a logcat when android just booted up (so when you are able to see the homescreen). I guess something is a little bit off.

@ saj222, is the amount battery of hours you can get is any different though?
[Hero, G2 Touch Android Development] saj222:
My unscientific answer is: I think so but am not sure. What I'll do is flash LV 1.2 now and watch it closely over the next day or 2 and get you a better answer!

Thanks for supporting your kernel. :D
[Hero, G2 Touch Android Development] 1ceb0x:
Riemer, I can happily confirm that with 1.2 version I can OC my hero to 710 stable. On other versions, at 710 was fast but after a few seconds it will freeze. With the latest version is stable like a baby. I cannot believe that it doesn't freeze!

Thank you so much for this!
[Hero, G2 Touch Android Development] ralph745:
I am interested why Las_Venturax-0.6.2.zip is 4.10 mb , LV_1.2.zip 2.5 mb ??
[Hero, G2 Touch Android Development] riemervdzee:
The kernel binary has been optimalized for size instead of speed (longer but faster instructions, vs a few slower instructions). Please note that less size can increase the speed as well. Optimizing for size is in the end better for our hero's, and results in a faster phone. This is due to the small cache size in the CPU. If we had phones like super clusters, optimizing for speed would be a better idea.
[Hero, G2 Touch Android Development] saj222:
@riemervdzee, after allowing a couple days of normal usage and recharging I've found that the Juice Defender battery increase rate has hovered around 2.15x which is slightly higher than before with Flykernel13.

As for battery life, it is on par with normal usage at the very least. Seems to be slightly better when the phone in standby.

I noticed some weird 3G signal drop out that would occur sometimes when the phone would come out of standby. Can't recall this happening before, but then again my memory isn't the greatest... I don't even know if the kernel has anything to do with this though. Comments?

Overall, I think LV-1.2 will be my new all the time kernel. Thanks Riemer! :cool:
[Hero, G2 Touch Android Development] Gawis:
Hey Riemer,

Just flashed LV1.2 on my old Hero yesterday with CM7 and immediately noticed a serious difference!

My aunt is currently using it as a daily phone so will see how it goes :)

Thanks for your effort in this!

Sent from my SGSII CM9 with Tapatalk 2
[Hero, G2 Touch Android Development] borice91:
Thank you riemervdzee for your work.

Any news on the USB Tethering issue ?
[Hero, G2 Touch Android Development] AdmcPL:
Hi, I tried LV 1.2 on my Tegro 2.6 and I have problem with music again. I did full wipe and restore using Titanium Backup, cpufreqs are set to 614/172 smartassv2.

I can't listen songs because system kills music player service after 1-2 minutes. This can affect currently running app too. For example I was listening to musing and browsing web with opera mini. Suddenly music stoped and opera closed. What can I do? I don't want to upgrade to Android 2.2+ because I really like sense and I'm using flash player sometimes.

Also, which scheduler is better for me? I have lots of app installed (about 160), I'm using classic ext2 app2sd. Usually I got about 35 MB free ram.
[Hero, G2 Touch Android Development] troublecro:
Can I set up this kernel like flykernel for example,automaticlly OC my Hero with renaming: Flykernel-13-M710--m176?

I use VE 6.2 and I don't have CM tools for OC and I wouldn't like to use 3rd party app if i don't have to...
[Hero, G2 Touch Android Development] faZevoLv:
+1

music just stops randomly, but doesn't force close, and to play again I have to pause it, wait a few seconds, then press play and it status from the beginning :S it only happens using this kernel, any ideas?
[Hero, G2 Touch Android Development] troublecro:
Sorry for repeating myself,how must I rename 1.2 kernel to work Max/min 710/176?

"LV_1.2__-M710-m176"? Or?
[Hero, G2 Touch Android Development] aleksandar.1:
is this kernel supporting swap?

i partitioned my card with a sd-ext partition and a swap partition, and want to try it with a cm7.2 rom

Greetings,
[Hero, G2 Touch Android Development] Yukikaze_nuce:
It support swap :D. Have fun.
[Hero, G2 Touch Android Development] riemervdzee:
First of all, my appologizes for the late reply. It were some busy days lately.

Not really no, the original usb drivers are a mess. The 2.6.35 are much more stable, but use a different system for USB tethering. I need someone -with LV installed and a Sense rom- to try it and post me a logcat. They should be complaining about a missing file or so.. For AOSP ROMs, see for Erasmux's fix.

There is nothing I can do here.. the autokiller is quite the same, only the oom values are different (and this is too internal in Linux for me to change). Sense is just bloated, I'm afraid. Try to run as least apps as possible. Also try setting the autokiller parameters to influence which apps to kill.

No, as I always have disagreed with Erasmux to put such scripts into a kernel installing flashable. You see, the CPU frequencies ain't a kernel setting, but they are saved in the /system/etc/init.d/XXsomething. However... as the LV kernel doesn't do anything with this file, the script will remain to function.

To long, didn't read: You can install FlyKernel the renaming way, to get the wanted frequencies and then install LV for the kernel.

Try tweaking the autokiller parameters, there should be either apps for it or some ROM scripts.

Yes.
[Hero, G2 Touch Android Development] iHero96:
shall you update this? maybe with Linaro optimizations?
[Hero, G2 Touch Android Development] faZevoLv:
+1

I really hope its possible:D
[Hero, G2 Touch Android Development] riemervdzee:
I'm currently investigating Linaro aye. Not sure how it will affect LV (due the hero being only armv6), but a newer toolchain is always welcome. My previous is GCC 4.3.3, while I got the linaro gcc 4.6.3 toolchain now.

I think it would be more interesting to build both the ROM and kernel with the Linaro toolchains, and try to implement their source changes as well. I heard CM is also attempting to merge Linaro's changes?
[Hero, G2 Touch Android Development] faZevoLv:
Yes cyanogen is going to merge the linaro changes with their work, but then we need someone to build from source...
[Hero, G2 Touch Android Development] riemervdzee:
Or wait for some HeroC linaro build to port over? (I thought you lads were building CM from source though? ah well..).

Got the kernel compiling and booting with Linaro with the -Os tag, optimizing for size. But there is hardly a difference between my previous toolchain. Optimizing for speed (Linaro is focusing on this), breaks dma.. and results in a non-compilable kernel. Thinking of fixing it by some ugly hacks, maybe when I finally got some time again.

For a small Linaro testbuild:

http://www.mediafire.com/download.php?vec1pim6z10ftaf

Note there are hardly any differences in speed at first glance. I could use some testers for stability though :)
[Hero, G2 Touch Android Development] faZevoLv:
downloading now, will feedback soon:)

edit: No noticeable difference on heroine++, although WiFi doesn't work...

can't wait for future releases:D
[Hero, G2 Touch Android Development] 1ceb0x:
SIO scheduler

@Riemer

If I have the sio.ko file, can we implement SIO in this kernel - LV 1.2? Or I risk to end in a bootloader? :)

Cheers, and ignore my pm, I've done that thing!

Edit:

I have tried to make a folder called sio in modules, put the file there, set symlinks in updater-script, but it is not visible when trying to change scheduler from No-Frills.

Tried also to put only the sio-sched.ko file without folder (in modules), set symlinks in updater-script, but then again, it is not visible.

Giving my research on this thing, I found out that you cannot put this into modules (at least not on this kernel), and some scripts are pointing out to "/sys/block/mmc*/queue".

How can we implement this thing? I want to see if there are any difference between SIO and NOOP because on ICS, SIO works better...
[Hero, G2 Touch Android Development] CrashBX:
Would it be too much to ask to make the max frequency cap at 806.4mhz instead of 748mhz? Please?

I have been searching for 806mhz kernel everywhere and I cannot find it so if you could compile it for me, that would be wonderful!
[Hero, G2 Touch Android Development] kemoba:
Well a while back I had a little project to compile my own kernel and I managed to do it, it was OC-able to 762 MHz I think. Although I didn't build any modules with it so Wi-Fi didn't work. If you want I can build the modules too and give it to you. Its highly untested so I can't guarantee it will work, I only used it for a day :D if it works out ok I might finish it. I taught noone needs it when we have LV and Fly :D
[Hero, G2 Touch Android Development] CrashBX:
What toolchain were you using to compile it? I am using code sourcery and everytime I try to compile, I get the -mno-unaligned-access error.

It seems you have gotten it to work. How?
[Hero, G2 Touch Android Development] riemervdzee:
Try to remove the "-mno-unaligned-access" flag from the makefile. I dropped looking into linaro as it gave me stability problems. Let me know if you find anything interesting :)

Cheers, Riemer
[Hero, G2 Touch Android Development] colapro:
Is it possible to control the clock speed of the GPU in the Hero?
[Hero, G2 Touch Android Development] icemem:
is this the latest version of the kernel for the hero?
[Hero, G2 Touch Android Development] kemoba:
Yes
[Hero, G2 Touch Android Development] sotux:
I've compiled it with default configure file and installed on my stock 2.1 rom. Touch screen worked but no sound and the whole system frozen after ran a few minutes.

May be 2.1 rom can't use this version. Thank you for your effort. It's a great gift for Xmas. :)
[Hero, G2 Touch Android Development] Gawis:
This is becoming very exciting :)

Great job man!
[Hero, G2 Touch Android Development] riemervdzee:
Pushed the real fix to the touchscreen yesterday (using same numbers as .29 hero board files). It was first in polling mode, it also works but I guess it is more cpu expensive. It is now in interrupt.

Also got the microp driver partially working. Lightsensor causes the whole system to hang though, anyway leds do work now. Could have sworn I posted something similar here, but seems not. Will focus on sound now. Thinking of porting the H2W driver right away from .29. As Hero got specific changes in it. Don't think we'll get the sapphire working on this one.

Anyway here is the current list:
[Hero, G2 Touch Android Development] NervGaz:
Just a thought, the 128/256 conditional stuff, is it really needed or could it just be stripped out? Been looking at board-hero.h to try to get irq's etc to be resolved properly and from what I can tell the Hero only needs/uses the 256 stuff. Just wanted to see what you guys thought before I rip everything apart.
[Hero, G2 Touch Android Development] riemervdzee:
I want it removed aye. They were never in the original hero files, I believe they are more sapphire specific. Guess they were included as the .34 port is based on the saps ones.

All that "HERO_GPIO_MISC*_BASE" ain't hero native either. My choice is that if IRQs based on these definitions collide with the ones from the hero (probably commented below in the .h file) the hero original should be dominant.

So yeah, maybe the compass wifi bluetooth can be easy fixes.
[Hero, G2 Touch Android Development] NervGaz:
Pretty much what I was thinking, I'll have a stab at it when my daughter's having her afternoon nap.
[Hero, G2 Touch Android Development] riemervdzee:
btw, MSM_GPIO_TO_INT behaves the same as HERO_GPIO_TO_INT from .29. (the current one is also sapphire-style).

Might be wise to take this with ya, when changing irqs ;) Would prefer if things get tested ofc instead of using all the old definitions.
[Hero, G2 Touch Android Development] NervGaz:
Irq's should be device dependent and not change between kernel versions unless things are very different in the world of android compared to most other embedded stuff I've dealt with. Anyway later today we'll see what happens.
[Hero, G2 Touch Android Development] riemervdzee:
Yeah they should aye. Also keep in mind that for some BT/h2w/wifi we don't have any original hero definitions.They use other code, maybe port those pieces to .34?

Also, got any clue whats up with the file "board-hero-gpio.c"? Seems it is another sap-file, is it even necessary?
[Hero, G2 Touch Android Development] NervGaz:
It will be necessary if we continue to use sapphire ports if I get it right. From what I can tell it replaces gpio functions elsewhere in the hero board files. Semi guessing here tho, but that's the way I've figured it.
[Hero, G2 Touch Android Development] riemervdzee:
Hmm, the original hero sources uses "qdsp5_comp" while at the current kernel we use "qdsp5".

Could this be the reason why there is no sound yet? Or is it for audio-decoding only?

Don't have any other leads atm. Or maybe h2w?
[Hero, G2 Touch Android Development] riemervdzee:
Finally found the source we also need to update/port, all smd_* stuff found in the arch/arm/mach-msm/ folder.

However they differ quite much... Did a quick port and it seems to work :) finally got sound, yeah :) Hope to make a cleaner port soon, as this was a bit too quick'n dirty and I suppose some bugs may appear sooner or later. Note I haven't pushed to the GIT sources anything atm, due to this.

Also, with the smd stuff from the updated hero sources, sound works with both qdsp5 and qdsp5_comp. Anyone knows what the advantages are from the latter?
[Hero, G2 Touch Android Development] riemervdzee:
Well got the sound working at commit:

https://github.com/riemervdzee/cm-kernel/commit/ddce1ac7a20a896201c0ccaa7afaef25263ca3fc

(last file)

Had to add a hack something to exclude masking for the qdsp devices. I noticed it is more cleaner handled in the .35 kernel (especially at the msm one from code-aurora), however I could not "just" back-port it as it is quite deep nestled in everything.

Couldn't even use the original smd_* stuff from the hero, as that would result in failure of some other devices (like time, it got reset to 1:00 1 jan).

Anyway... microphone isn't working, so still no usable kernel I'm afraid ;) I believe it has something to do with the messed up irq stuff. We really have to get this fixed :-/
[Hero, G2 Touch Android Development] lynx2k50:
I really have to say "thank you". You are doing a some wonderfull progress and the best thing, you doenst discourage yourself (don't know if this is correct english - please correct me). So please dont stop your great work!

What do you want to do next as highest priority? Mic?
[Hero, G2 Touch Android Development] nenros:
In my opinion, you are hero of hero :)
[Hero, G2 Touch Android Development] riemervdzee:
Haha thanks, yeah I've heard I can be pretty stuborn on things when I got my mind at it. Even when the whole thing fails, I'll learn a thing or two :)

Anyway next step will be getting those gpios set correctly to the irqs. Then to be honest I hope the microphone magically will work (and some more stuff) or else see whether it is deeper or not.
[Hero, G2 Touch Android Development] NervGaz:
Now that Christmas with family is more or less over I'll be able to have a look for a bit longer than 5 minutes at a time. I'll drop an update when I do. Now to feed the baby.
[Hero, G2 Touch Android Development] NervGaz:
My development VM died a tragic death, so I'm restoring it now. Should teach me to start taking regular snapshots. Anyway, I was having a look at board-hero.h and it strikes me that it contains a lot of crap we don't need like camera buttons, I'm gonna have a go at editing the .29 file to work with the rest of the files but thought I'd check if it has been done already.
[Hero, G2 Touch Android Development] riemervdzee:
Yup it is quite a mess. Basically it is a copy of sapphires board file, then added some parts of the original .29 to it at the end.

I figured out the GPIOs today, so we can use the normal gpio.c and generic-gpio.c files. instead of having another one (from sapphire as well). So a lot of stuff can be removed now :) However some stuff can still depend on the sapphire values, like bluetooth.

Other changes:

Disabled microp_i2c driver, as the leds sometimes causes random reboots. Crappy assed driver...

Switched from qdsp5_comp to qdsp5 again. Sound-input does now work with it :) the former gave a null exception/oopsy. However soundoutput-level is a bit low.

Anyway I'm currently running the kernel for 3 hours now. Works really nice now. No reboots and quite usable. Too bad for the leds though.

Will come up with a downloadable soon as well, for the non-dev lads wanting to try it out.

I will start pushing today soon.

Edit:

Also worthy to mention; Erasmux started to in-cooperate all made changes to the .34 CM-kernel into the .35 CM-kernel.

Maybe he can update on it us later
[Hero, G2 Touch Android Development] ZeppeMan:
What advantages does .34 bring over .29 kernel?

Better performance?..?
[Hero, G2 Touch Android Development] :
And possibly better compatibility with new Android OS's (like Gingerbread).
[Hero, G2 Touch Android Development] ZeppeMan:
ahh nice!

really nice to see the progress!
[Hero, G2 Touch Android Development] riemervdzee:
Cleaned it up a little as well now, placed big "UNDER REVIEW" at the parts which aren't really "hero-native".

Anyway WiFi is also working now :) Can't test bluetooth, but I try to get it ported. Maybe someone else can test it. (will post a flashable zip soon).
[Hero, G2 Touch Android Development] elelinux:
Nice follow this thread with great interest, has not had an opportunity myself because of all my free time goes to the rom development. :D
[Hero, G2 Touch Android Development] riemervdzee:
I'm really happy of the progress today :) ported lots of stuff today, gpios are now handled correctly and there isn't a device-specific version for it. Sound is now ok, microphone also works. Even (bit unexpected tbh) WiFi :)

Will be using this as my daily kernel I think. Best way to test stuff and there aren't anymore reboots lately.

not working:

green/red led and trackball led. Disabled, caused random reboots when blinking (microp driver)

lightsensor. Disabled, causes the whole system to hang @ boot (microp driver)

Camera. Preview-mode works, but taking pictures makes the whole thing "hang"

Bluetooth. No idea on this one...

all audio jack stuff, H2W is not correct.

accelerometer (bma150 driver, included but needs updating)

Link to flashable for the interested, should be for all ROMs:

http://www.riemervanderzee.com/download/kernel-signed.zip

Anyway now comes the harder stuff. The rewriting parts of drivers:

- microp_i2c which handles all the leds and lightsensor stuff is a mess and unfortunally doesn't work.

- accelerometer doesn't work at all? haven't had any look at it.

- Maybe do something with the camera one?

- qdsp5_comp has some more functions than qdsp5, however soundinput doesn't work on that one (null exception).