Professional Documents
Culture Documents
1 2 1 Install CyanogenMod on the device 2 Install development support packages 1 2 3 4 5 6 7 8 9 2.1 Debian based Linux distributions 2.2 Red Hat based Linux distributions
3 Setup Repo 4 Download ROM Source Code 5 Download Kernel Source Code 6 Congure the Build 7 Make the build 8 Merge the build 9 Compiling wi kernel module
Setup Repo
Make sure you have a ~/bin directory, and setup repo. mkdir -p ~/bin curl http://android.git.kernel.org/repo > ~/bin/repo chmod a+x ~/bin/repo echo $PATH|grep ~/bin>/dev/null||export PATH="${PATH}":~/bin hash -r To validate the repo command is in your path, type 'which repo'. If you do not have ~/bin in $PATH by default and are using bash, do the following: echo "export PATH=\"\${PATH}\":~/bin" >>~/.bashrc eval . ~/.bashrc
~/android/kernel/cm-kernel/arch/arm/boot/zImage
adb shell mount -o remount,rw /system adb shell cp /system/lib/modules/wlan.ko /system/lib/modules/ wlan.ko.backup adb push wlan.ko /system/lib/modules/wlan.ko
Reboot the device. If all goes well, you should be using the newly compiled 'wlan.ko'.
cd ~/android/kernel tar -czf modules.tgz `find . | grep ko$` adb push modules.tgz /sdcard
Then, Copy the modules to your debian install (Replace <debian_root> with the root of your debian installation)
adb shell mkdir <debian_root>/lib/modules/`uname -r` cd <debian_root/lib/modules/`uname -r` tar -zxf /sdcard/modules.tgz
Last, Install the modules from debian (must be done as root). Log in to your debian installation using your method of choice, then:
depmod -a
If all goes well, depmod should produce no output. At this point you may load a kernel module from within debian by typing (as root):
modprobe <module_name> where <module_name> is the name of the kernel module without the .ko extension. You may remove a module by typing: modprobe -r <module_name>