剛剛在xda找到的疑似製作核心教學
有那位大大英文不錯能幫翻譯
Tutorial: Compiling Wildfire S Kernel in Windows 7 – Ubuntu 11.10 32-bit
1. Download and install VirtualBox then install Ubuntu 11.10 32bit, after install go to settings shared folder mount your C: drive so you can copy paste from Ubuntu to Windows. Make Android folder in your Ubuntu home extract attached ndk-android in that folder. In terminal copy and paste this commands without quotes.
"sudo apt-get install git-core gnupg flex bison gperf libsdl-dev libesd0-dev libwxgtk2.6-dev build-essential zip curl libncurses5-dev zlib1g-dev valgrind"
Install Android Sdk Platform Tools search google how to do this. Install it in your android folder.
And in terminal type "sudo gedit .bashrc" without quotes and add following lines below then save.
# Android tools export PATH=${PATH}:~/android/android-sdk-linux/tools export PATH=${PATH}:~/android/android-sdk-linux/platform-tools export PATH=${PATH}:~/android/ndk-android/toolchains/arm-eabi-4.4.0/prebuilt/linux-x86/bin
Exit terminal then re run terminal.
2. Download Wildfire S kernel source from htcdev.com and extract to the android folder. In windows if you already installed ADB or in your adb folder open cmd prompt then connect your phone. Then copy paste this command “adb pull /proc/config.gz “ without the quotes. Then you will find config.gz in the adb folder put it to c:\then copy it to ubuntu. Copy it to kernel folder. In terminal Cd to your kernel folder then copy paste this command “gunzip config.gz” after that “mv config .config”.
3. In terminal lets edit the kernel shall we, cd to your WS kernel, type this command “make menuconfig” then just put * if you want it built in kernel then M if you like module. After making changes exit and save. If you want OC copy and replace files in kernel folder with the OC files attached, use find to search the location of files, some files Kconfig and Makefile open kernel same file compare if same then change cause I forgot what folder it should be located, but If I remeber coreectly it is in the same folder of the other files.
4.To build kernel copy paste this command to terminal “make j2 ARCH=arm CROSS_COMPILE=arm-eabi-” without quotes. Change j2 for 2 cores if you have 4 cores cpu change to j4. Wait for it to finish. When it's finished it will have the zimage and the module with last extension of .ko. Copy them to the attached archive anykernel updater .using winrar or ubuntu zip manager.
5. Copy to your phone sdcard then flash to Recovery. |