yashsingh1/xdaforums huggingface dataset:
[myTouch 3G, Magic Android Development] lodewj:
Carz12, you have the wifi driver compiled in the kernel when I look at the config.

It's my first time kernel compilation for an android device and I was using the Anykernel method as mentioned on the CM wiki page. (I'm only replacing an other kernel, not doing a full rom. But I want it signed and flashable) But since there's no module for the wifi, I assume I leave the system/lib/modules "as is" in the anykernel directory structure?

grtz

*update:

Did it this way but it didn't work :(

Ended up lookig at the provider logo for 10 minutes after flashing the kernel.

Guess I did something wrong but I have no idea what I did wrong ... anyone? :)
[myTouch 3G, Magic Android Development] carz12:
The wlan.ko gets compiled, it's in drivers/net/wireless/tiwlan1251.
[myTouch 3G, Magic Android Development] carz12:
I uploaded a zip and posted link in your thread to see.
[myTouch 3G, Magic Android Development] carz12:
Been running froyorider with my kernel and no problems so far.
[myTouch 3G, Magic Android Development] lodewj:
Looked for it but it wasn't there.

on the other hand, when I looked in the config-6.35v0.51

I found CONFIG_TIWLAN1251=Y

shouldn't that be M for module?

P.s. the flash didn't work out either as I mentioned in my previous updated post :( any ideas?

I could do it again and post a logcat if you want?
[myTouch 3G, Magic Android Development] carz12:
It builds as a module, its the way its set up, did you make paths to your android sdk and tools folders?
[myTouch 3G, Magic Android Development] lodewj:
ah darn, I followed this wiki page: http://wiki.cyanogenmod.com/index.php?title=How_to_build_a_kernel_port_for_CM6

So my bad, didn't do that. tought it was as simple as pulling the source, making the config and compile it with the right arch ... :D

Linux experience doesn't meet all the prequirements I guess (but hey, it helps ;) ).

I will do some reading first for setting up/installing the sdk and tools.

Sorry for the noob questions. And thanks for your fast and helpfull responses! :)

edit:

hmm, on the other hand ... It's "the http://android.git.kernel.org/repo" repo you are referring at?
[myTouch 3G, Magic Android Development] carz12:
Hey no problem, I'm just learning myself, I'm a mechanic by trade.
[myTouch 3G, Magic Android Development] carz12:
git://github.com/carz2/cm-kernel.git

Edit: I see where you are lol, ok you can download and compile aosp or cm to get the tools folder, its totally independent of the kernel source, its just for the tools folder.

http://source.android.com/source/download.html

I think you can get the tools folder separately as a download.
[myTouch 3G, Magic Android Development] lodewj:
hmm, basically, what I did first was following dferreira thread for compiling the full aosp froyo.

So I have pulled in a lot ;)

I have put 2 exports to my path in my .bashrc:

export PATH=$PATH:~/magicDroid/prebuilt/linux-x86/toolchain/arm-eabi-4.4.0/bin

export PATH=$PATH:~/magicDroid/out/host/linux-x86/bin

I Pulled in your source to a different folder, did a:

cp config-6.35v0.51 .config

make ARCH=arm CROSS_COMPILE=arm-eabi- menuconfig

Changed the default slab alocator to slub and did a:

make ARCH=arm CROSS_COMPILE=arm-eabi-

after that, there was no wifi module :(

But aside from that, I tried to package it and sign it with the Option 1: Koush's AnyKernel zip file from the CM wiki but without the step of copying the wifi module. Thinking that in the worst case scenario, it should work but without wifi. but it didn't even boot :(

Did I miss a step?

edit:

going to the night shop for a bottle of batida de coco .... A nice fresh pina colada to keep my brains cool ;)
[myTouch 3G, Magic Android Development] carz12:
When you changed the allocator it breaks other things you have to fix.

try it with slab, Look at merlos(gmellini on git) kernel, he runs slub

"

Edit:"KERNEL_DIR=~/carz-kernel/cm-kernel" needs to be in your path also

make ARCH=arm CROSS_COMPILE=arm-eabi- KERNEL_DIR=~/carz-kernel/cm-kernel

Also you can make an alias, .bash_aliases

alias makekernel='make ARCH=arm CROSS_COMPILE=~/path/to/arm-eabi-4.4.0/bin/arm-eabi- KERNEL_DIR=~/carz-kernel/cm-kernel'
[myTouch 3G, Magic Android Development] lodewj:
argh, you've got to be kidding me? :p

Darn, Will check his changes then.

Yeah, indeed, you don't want to see my list of aliases (cdrecord and video encoding stuff ..) :D

I'll try with the KERENEL_DIR.

Thnx, pina colada coming your way

edit:

gmellini = pershoot?
[myTouch 3G, Magic Android Development] carz12:
merlos on here gmellini on github http://github.com/gmellini
[myTouch 3G, Magic Android Development] lodewj:
hmm, he seems to be using slab as well in his latest git. :(
[myTouch 3G, Magic Android Development] Switch33:
I re-compiled with slub being the only change and it would no longer boot, logcat was showing it was having issues with the file systems.
[myTouch 3G, Magic Android Development] lodewj:
I see. Trying some things out right now.

How do you package your kernel for an updatable zip file? (the same way as I did?)

Can't thank you enough for your help! :)
[myTouch 3G, Magic Android Development] Switch33:
I turned off a lot of the debugging and it seems to boot quicker now. I'm not sure how you did yours but you just have to unpack a boot.img and replace the kernel inside it then rebuild it.
[myTouch 3G, Magic Android Development] lodewj:
Yeah, when I did my first router project on an embedded appliance I had to read a lot to sort out performance issues on memory and cpu restricted devices. debugging is one of those things.

There are a lot of things that can be done to improve boot time. The calibration routine is also such a thing. This is where the bogomips of the cpu are calculated at boottime. You could set it statically instead of dynamicaly calculate it at boot time. (loops_per_jiffy variable)

This can be done by passing the lpj=xxxxx parameter to the bootloader.

I'll have to digg up that ebook again. :D

I use the anymethod kernel of CM for packaging it.
[myTouch 3G, Magic Android Development] carz12:
I have debugging enabled, yes, I get more info that way, it's not error free yet.
[myTouch 3G, Magic Android Development] lodewj:
I succeeded with using the slob allocator. But I don't seem to get rid of that sleep bug ...

Sometimes I have to to push the button ~5 times before it wakes properly. (screen and button backlights turn on but the screen stays empty). Even with normal clocks :(

going to pull in a cm nightly build this evening and see if it still occurs ...
[myTouch 3G, Magic Android Development] Switch33:
Someone who is experiencing the sleep bug told me that when it happens it unlocks when they plug in the usb. So the bug might be related to waking with buttons only.
[myTouch 3G, Magic Android Development] lodewj:
It's pretty weird. The bug first occured to me when I was meddling with the kernel yesterday night.

And it was working all the time (it was connected trough usb).

When I unplugged it, and I wanted to wake it up, it happend for the first time. Now it randomly behaves like this ... grrr :rolleyes:
[myTouch 3G, Magic Android Development] lodewj:
small update. I tried your 0.52 and when I pulled the phone from the usb cable it did a reboot :confused:

And for one reason or another, the green led (indicating a full charge, when on the charger, stays on as wel)
[myTouch 3G, Magic Android Development] carz12:
Ok, I redid most of the code over the weekend, Did anyone notice microphone wasn't working? It caused a reboot.

Major overhaul: http://www.multiupload.com/QR4G837VS1

I still haven't been able to reproduce the wake bug though.
[myTouch 3G, Magic Android Development] lodewj:
Hmm, when I boot know I get a nice screen with an exclamation mark and SORRY!

it reads: Process system is not respondig.

:/

edit: rebooted again and now it's running. I'll keep my fingers crossed and keep you up-to-date.

If it happens again, I'll film it this evening, so you can see what happens. Will run a adb logcat as well then. Maybe we can get something usefull out of there.

When the screen doesn't want to wake, the backlight and backlight of the buttons does, the screen even reacts to touch gestures (haptic feedback). So it's just the screen not resuming properly.
[myTouch 3G, Magic Android Development] nate_benji:
I think its a bug where when the usb is plugged in, the wake works perfect, and it unlocks every time. But as soon as you unplug the usb, the problems with the waking and unlocking the screen happens..
[myTouch 3G, Magic Android Development] Switch33:
Rogers just cut my data a couple hrs ago and I noticed an added string to the kernel version in 'About Phone', "-g540786d-dirty". Have they started scanning the network for new ways to cut us off?
[myTouch 3G, Magic Android Development] hol17:
I have the same string attached, my data though -- still on. They better not be trying to cut us off yet again; we still haven't gotten out of Android 1.5 with ROGERS yet.
[myTouch 3G, Magic Android Development] eyegor:
Just a quick question.

Why can't ncommanders backported camera drivers that work on the old radio work for the new one as well?
[myTouch 3G, Magic Android Development] alan090:
have you checked on cyanogens changes that got the slide and hero camera to work? I would think these changes could be used with the NR version as well to get the camera working, just a thought ;0 I wouldnt be able to tell though
[myTouch 3G, Magic Android Development] carz12:
Haven't looked at it lately but I have fixed mic and changed over all code in comp to the updated 2.6.34-2 code, all thats left is cam now, it starts but no screen, power drain issue is fixed now too, I'll update first post with link to update also.

http://www.multiupload.com/0KE7Q35Q3N
[myTouch 3G, Magic Android Development] carz12:
New version v0.63
[myTouch 3G, Magic Android Development] capychimp:
whats the diff carz?

i tired your last kernel, have some troubles but am sure it's the init's i need to spice up for the sense ;)
[myTouch 3G, Magic Android Development] carz12:
not a lot, just some clean up

diff --git a/arch/arm/mach-msm/qdsp5_comp/adsp.h b/arch/arm/mach-msm/qdsp5_comp/adsp.h
index a4e4756..b8e2de0 100755
--- a/arch/arm/mach-msm/qdsp5_comp/adsp.h
+++ b/arch/arm/mach-msm/qdsp5_comp/adsp.h
@@ -22,6 +22,7 @@
#include <linux/types.h>
#include <linux/msm_adsp.h>
#include <mach/msm_rpcrouter.h>
+#include <mach/msm_rpc_version.h>
#include <mach/msm_adsp.h>

int adsp_pmem_fixup(struct msm_adsp_module *module, void **addr,
@@ -121,8 +122,6 @@ struct adsp_info {
#define RPC_ADSP_RTOS_MTOA_NULL_PROC 0
#define RPC_ADSP_RTOS_APP_TO_MODEM_PROC 2
#define RPC_ADSP_RTOS_MODEM_TO_APP_PROC 2
-#define RPC_ADSP_RTOS_MODEM_TO_APP_EVENT_INFO_PROC 3
-#define RPC_ADSP_RTOS_MODEM_TO_APP_INIT_INFO_PROC 4

Sense rom?
[myTouch 3G, Magic Android Development] capychimp:
yeah i just have a few issues to sort out, and i am sure i can do it in the ramdisk, and then i would be at same point, just missing cam ;)
[myTouch 3G, Magic Android Development] shadow_empire1:
sorry if already posted....

How do I flash it?

1.) update-cm-6.0.0-DS-RC3-6355-signed.zip

2.) carz_6.35_v0.63-signed.zip

? thx
[myTouch 3G, Magic Android Development] capychimp:
that should work for you
[myTouch 3G, Magic Android Development] carz12:
google apps too if you want them, http://mirror.kanged.net/gapps/gapps-mdpi-tiny-20100814-signed.zip
[myTouch 3G, Magic Android Development] t3hflame:
Keep up the good work carz12! :)
[myTouch 3G, Magic Android Development] carz12:
I've updated the first post with the new cm6 release and a new kernel, no, the cam still doesnt work but it's closer, everything else I've tested so far works.
[myTouch 3G, Magic Android Development] dBartoz:
I'm trying your port right now, it looks great!

Do you have any news about the camera? It would be fantastic to have it working too!
[myTouch 3G, Magic Android Development] djmaxi:
Keep it up works great, if we get the cam is gonna be hard to beat!!

:)
[myTouch 3G, Magic Android Development] reflog@gmail.com:
First of all - thanks for your great job, the mod is nearly perfect!

two gripes:

1. the camera - like the others, anxiously waiting for some news on this

2. minor wakeup issue - when pressing 'menu', the phone wakes up only partially (buttons are lit), but the screen is black. if after that I press 'end' and 'menu' again, then it wakes completely. any ideas?
[myTouch 3G, Magic Android Development] :
Did you or did any one else get the sleep/wake issue when they were plugged into their battery charger or usb and then pull the plug during a boot?

That is the only time it has ever happened to me.
[myTouch 3G, Magic Android Development] reflog@gmail.com:
No, I am pretty sure in my case it's unrelated
[myTouch 3G, Magic Android Development] :
With some outside help we got the camera partially working (it sort of works using Camera Magic, but the stock camera app and the camcorder does not work).

The dev made some updates to carz12's .34 kernel and the source is posted.

http://xdaforums.com/showthread.php?t=691366
[myTouch 3G, Magic Android Development] tertiumsquid:
How would I go about taking this kernel and using it in the "stock" CM6?
[myTouch 3G, Magic Android Development] :
http://xdaforums.com/showpost.php?p=8305113&postcount=1210
[myTouch 3G, Magic Android Development] ampees:
What is the progress on the camera issue?

Is there any release newer than carz_6.35_v0.67-signed?

Thanks in advance

Ampe

------------------------

HTC Magic 32a

Running: CM6 FroyoRedux-1.9.5

SPL: 1.76.2007

Kernel: 2.6.34.2-cyanogenmod (carz_6.35_v0.67-signed)

Radio: 6.35.08.29

Recovery: recovery-RA-Magic32A-6.35-v1.6.2
[myTouch 3G, Magic Android Development] Brillntred06:
can anyone tell me where to get the clock and date widget that's on the first page?
[myTouch 3G, Magic Android Development] carz12:
retro clock on the market
[myTouch 3G, Magic Android Development] carz12:
Posted logcat and dmesg, cam starts, no errors, also no preview pic, just sits there. Same with barcode scanner, starts, thinks all is fine but has no pic. Anyone with coding skills?
[myTouch 3G, Magic Android Development] htcmg2:
will this port work with cm6.1 rc1???
[myTouch 3G, Magic Android Development] carz12:
I tried quickly but it didn't boot, i'll have a look.
[myTouch 3G, Magic Android Development] :
Did you try taking a pic on a lower resolution and also using ToyCam and anCorder(beta)?
[myTouch 3G, Magic Android Development] carz12:
I finally have some new news, I've sorted out some of the camera issues, I get a preview in barcode scanner now, it doesn't lock though.

bigger news is that although preview doesn't work the cam actually takes pics fine at all resolutions. No video, related to no preview.

The key was that old radio used old camera libs and new radio uses the new camera libs like hero and nexus. Now for the v4l2 issues lol.

I'll post a new dmesg and logcat when I post this new compile to test.
[myTouch 3G, Magic Android Development] :
Nice work carz. I look forward to testing.....
[myTouch 3G, Magic Android Development] carz12:
Updated first post:

Posted new kernel to try, I will post to git when I get more fixed unless someone really wants it.
[myTouch 3G, Magic Android Development] ziyouwa:
Please update your git. I make a lunch for sapphire new radio use it. Thanks
[myTouch 3G, Magic Android Development] :
Carz, I flashed v0.70 over FroyoRider 2.1 last night. So far it's been running great without any problems.
[myTouch 3G, Magic Android Development] carz12:
nice, I noticed that some youtube vids dont work on hq, I went back to .67 and they still arent working on hq, never noticed that before, not sure its a kernel problem
[myTouch 3G, Magic Android Development] Maxxy13:
Is this port still being worked on? What are the other solutions allowing to run Froyo with 6.35 radio on 32A/Magic?

Update: I've just tried to flash 0.7 port over the latest CM nightly and it stuck in the bootloop (on the first boot screen).
[myTouch 3G, Magic Android Development] :
I had the same problem. After some testing it looks like it's either the wlan.ko or the libgps.so are incompatible with the libandroidserver.so.

It would be awesome if someone could figure out a fix to this problem because then we could use carz's latest with the latest CM build.
[myTouch 3G, Magic Android Development] alex_canada:
Would be great if someone could update this kernel to make it work with CM6 :)
[myTouch 3G, Magic Android Development] raindrop2012:
do you have any kernel that can be used on [Rom][32A][6.35] CM-6.1.0 - FroyoRider v2

Do you have any kernel that can be used on [Rom][32A][6.35] CM-6.1.0 - FroyoRider v2.1 (23-Oct-2010), and can overclock to 710MHZ?

Thanks !
[myTouch 3G, Magic Android Development] vonwang:
cann't download it

why i can't downl it，when i clike it notes that it cann“t find .
[myTouch 3G, Magic Android Development] capychimp:
If its WLAN.ko we can hexedit us out of it
[myTouch 3G, Magic Android Development] Maxxy13:
The logcat simply says "libandroidserver.so failed to load". How to check which module at fault?
[myTouch 3G, Magic Android Development] jgcaap:
Please domt leave this work . :D

How can i use this kernel port on the cm6.1 final? Cause i flash it and doesnt boot. What am i doing wrong? Thanks
[myTouch 3G, Magic Android Development] bonesy:
You need to talk to Ninpo on the hero forums or on www.villainrom.co.uk irc#

hes a legend with kernels and he fixed the hero camera im pretty sure he can do this if u ask nice enough
[myTouch 3G, Magic Android Development] jgcaap:
thank you for the great suggestion. I'll ask him i hope he helps :D
[myTouch 3G, Magic Android Development] carz12:
I have some news. Gingerbread fully working on the new radio
[myTouch 3G, Magic Android Development] :
Is Gmail working fine?

Are you able to play high def videos on Youtube over wifi?

Cam?
[myTouch 3G, Magic Android Development] johmir:
Details Please and can would you share it with us please pretty please
[myTouch 3G, Magic Android Development] carz12:
Well I've been on my rom I compiled last night all day, so far zero problems.

I'm pulling from ezterry's git

modifying the build for our 6355 radios

I'm using a modified version of my 2.6.34 kernel with the usb updated from htc/cm sources

I'm using all the proprietaries except I'm using the libcamera.so from the hero and the liboemcamera.so from the htc/rogers 2.1 sense rom update.

Cam works, video works, 3d works, gmail sync's for me so far, no sms lag, no phone lag when getting calls. Google sign in works from start.

Now I can start adding in what I want to the GB rom.

It's been a lot of fun learning C, I'm a mechanic by trade and have some resto's on the go so not a lot of time lately.

And my wife thinks I have a girlfriend named Android lol, maybe I can sleep now.

Edit: I'll put together something flash-able tonight, it's vanila gingerbread with root, the kernel i'm testing now is running at 614 instead of the current 576, I think maybe some of the problems people are having with wake and such might be because their phone can't do 576, I might compile a 528 stock speed kernel for people with the problem to test, also I have no european gps fix in this yet.
[myTouch 3G, Magic Android Development] carz12:
Gingerbread for our new radio magic/sapphires

http://xdaforums.com/showthread.php?t=956280
[myTouch 3G, Magic Android Development] tig33r:
Do you want release flashable zip or more instruction about include your kernel to other roms?

Sorry for my bad english :(
[myTouch 3G, Magic Android Development] carz12:
I can make one, what else gb is for our phones?

Sent from a Gingerbread cookie on my Sapphire 32a 6.35 using XDA app
[myTouch 3G, Magic Android Development] tig33r:
Package zip with 614 oc kernel will be superb.
[myTouch 3G, Magic Android Development] Taknarosh:
Just out of curiosity, would this kernel allow a Froyo/Gingerbread Sense UI port to have working camera and camcorder? If I recall that was the only thing holding back Froyo Sense UI ROMS.
[myTouch 3G, Magic Android Development] :
Capy sent me his froyo sense rom to test with carz's kernel. I have not gotten around to it, but will try maybe tonight.

My guess is the camera won't work without some effort if at all but who knows....
[myTouch 3G, Magic Android Development] carz12:
I posted to git all my changes for Gingerbread, if I felt like compiling CM6.1 myself I could probably get cam working on it to, I think i'll wait till his current GB tree can build for DS.
[myTouch 3G, Magic Android Development] :
Yeah, Capy's Froyo Sense runs really nicely on your latest 614 MHz kernel (at least from my short test just now), but the camera does not work.

It's doesn't force close or anything. The image is just blurred a lot.
[myTouch 3G, Magic Android Development] svpb:
im looking at the thread trying to find any information on your new 710mhz kernel. but i feel the thread may be dead .... is anyone looking here?
[myTouch 3G, Magic Android Development] carz12:
updated OP with newest kernel for AOSP/CM7 gingerbread
[myTouch 3G, Magic Android Development] svpb:
im trying to flash you newest kernel over the newest Giant_rider Cronos but keep getting a Validation failed for the dump_image.

is this an issue with the .zip / or my recovery or is the zip not meant to be a direct flash (from zip)

EDIT : my bad, i should of read more of the OP and found i should be downloading the "0.70" file and not the first zip listed... thank.. i have boot ..

if i see issues ill submit the logcat lines
[myTouch 3G, Magic Android Development] svpb:
your kernel 0.70 is Awesome with GBRider 2.3.4, top speed in cm parts is only 576mhz. ide like 614mhz (that my sweet spot)

but this is great on my phone. super fast boot . super responsive.

i just took 13 pictures and no issue with my call audio.

just looked at my logcat and not a single warning from boot to now (5min on)

ill be testing this kernel , but so far very happy.

wifi ... good

Signal ...good

no viable delay with screen on/off
[myTouch 3G, Magic Android Development] Unkjcr:
That kernel is outdated.. You need to flash the first zip from the OP (carz-2.6.34.4-06262011-6355-signed.zip). I'm not sure, but i think you need carz's clockworkmod recovery from CM7 thread in order to flash this. If you have one of the recent RA recoveries you just need to turn zip verification off. :)

Cheers
[myTouch 3G, Magic Android Development] svpb:
so im going to tonight:

nandroid backup

Flash new recovery

backup / repartition / restore my sdcard

restore nandroid backup

flash new kernel

unless carz can fix the zip validation, ;)

a couple questions:

1. what recovery would you recommend

2. how does this new kernel perform. i was hoping for some feed back over the course of today , but nothing yet
[myTouch 3G, Magic Android Development] Unkjcr:
Hi there! :)

I use carz's clockworkmod recovery and i had no problem at all flashing the new kernel. About the kernel update itself, you just have to flash it! No excuses! It brings back the stability, speed and battery autonomy to carz's CM7. :D

Cheers
[myTouch 3G, Magic Android Development] zenga:
Just one question.

With new kernel sound is ok?

I flash it and still have problems after taking a photo.

The kernel only takes one second to flash. Is it normal?

Thanks
[myTouch 3G, Magic Android Development] Unkjcr:
Hi! :)

Only one second exactly? If yes then probably the kernel is not being flashed right. Try to download the file again. Which recovery do you have? :)
[myTouch 3G, Magic Android Development] zenga:
Hi

I have Carz-Clockworkmod-v4.0.0.2-recovery, and try to reeflash, but still the same result.
[myTouch 3G, Magic Android Development] Unkjcr:
When you try to flash the zip, what appears on the screen? Something about kernel install changer or something similar? The flash process of the kernel don't take too much time, but 1 second it's not normal. :/
[myTouch 3G, Magic Android Development] zenga:
It's not normal and it's not flashing.

Kernel it's still at 2.6.34.2

What am i doing wrong?:mad:

I am flashing normaly. I have flashed rom's and stuff million times.