Jump to content

CM7 build kernel?


Guest FelixL

Recommended Posts

I want to include the USB host mode into a CM7 kernel.

Sven has a short instruction on his homepage:

http://sven.killig.de/android/Blade/usb_host/

Eclair kernel(2.6.29) source code

changedfiles.zip (Leave out arch/arm/mach-msm/acpuclock.c, drivers/cpufreq to disable memory bus overclocking)

ehci-msm7201_Blade.tbz for MSM7227

I wanted to try this with the source of CM7, leave out the changedfiles.zip (since they only get the Eclair-Kernel properly working but don't relate to the USB host mode), and include the ehci-msm7201_Blade-parts.

At first, I need to get the source of the current kernel.

mkdir ~/cm-kernel-usbhost/

cd ~/cm-kernel-usbhost/

git clone git://github.com/CyanogenMod/cm-kernel.git

cd cm-kernel

git branch -r

git checkout --track -b cm-2.6.34 origin/android-msm-2.6.34

export CCOMPILER=~/android-ndk-r4b/build/prebuilt/linux-x86/arm-eabi-4.4.0/bin/arm-eabi-

mv g1-cm-kern-2.6.34-usbhost.config .config

make ARCH=arm CROSS_COMPILE=$CCOMPILER

This is for the HTC G1 from here: http://forum.xda-developers.com/showthread.php?t=794643 . I think I have to change at least the lines "git checkout --track -b cm-2.6.34 origin/android-msm-2.6.34" (since the kernel is .32) and mv g1-cm-kern-2.6.34-usbhost.config .config.

Here are my questions:

a ) Is there any chance this would work?

b ) What is the proper substitute for "git checkout --track -b cm-2.6.34 origin/android-msm-2.6.34"

c ) Do I even need an other .config? It's not mentioned on Svens page for the Blade.

Greetings and thanks, FelixL

Edited by FelixL
Link to comment
Share on other sites

I want to include the USB host mode into a CM7 kernel.

Sven has a short instruction on his homepage:

http://sven.killig.de/android/Blade/usb_host/

I wanted to try this with the source of CM7, leave out the changedfiles.zip (since they only get the Eclair-Kernel properly working but don't relate to the USB host mode), and include the ehci-msm7201_Blade-parts.

At first, I need to get the source of the current kernel.

This is for the HTC G1 from here: http://forum.xda-developers.com/showthread.php?t=794643 . I think I have to change at least the lines "git checkout --track -b cm-2.6.34 origin/android-msm-2.6.34" (since the kernel is .32) and mv g1-cm-kern-2.6.34-usbhost.config .config.

Here are my questions:

a ) Is there any chance this would work?

b ) What is the proper substitute for "git checkout --track -b cm-2.6.34 origin/android-msm-2.6.34"

c ) Do I even need an other .config? It's not mentioned on Svens page for the Blade.

Greetings and thanks, FelixL

AFAIK CM7 on the blade doesn't use the CM kernel, instead it uses the one here https://github.com/TomGiordano/kernel_zte_blade or one of the forks from this.

Edited by rjm2k
Link to comment
Share on other sites

Had a try right now, pulled the .config from my Blade with CM7, and did make. Is it normal that hundreds of questions appear, that seam to be for x86 computers?

nope, you sure you put the .config in the correct place? also used the correct comand line fo the build, including cross compiler etc

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.