Hi guys, long time no post. I have updated this guide on how to build kernels for Falcon so that anyone can learn! It's pretty simple once you get the hang of it. So yeah, here we go!
WARNING: I am not responsible for any damages to your phone or computer or pet unicorn. When you modify the wrong partitions, set too many jobs for your compiler, break your keyboard out of frustration etc., that is not anyone's fault but yours. Or your pet unicorn.
Now you can put it on your phone and flash it!
Quote:
Prerequisites: - You must have a Linux firmware running on your computer (I suggest Builduntu because you can skip the next one [build environment setup]) - Build environment setup (Put the this in terminal and follow instructions) - Patience and a heart willing to learn - You need to know the languages C, C++, Java, Ruby, Python... NOT! You don't need to know ANY coding languages. [MOTIVATIONAL SPEECH] Truth be told, when I first started out developing, I knew NO coding languages except for HTML and a little bit of Java. Both have nothing to do with kernels! I actually learned how to do this when I suffered from a concussion. So if you really want to learn how to kernel dev and you give up halfway, just know that a 14/15 year old kid could do it.. [/MOTIVATIONAL SPEECH] |
Quote:
Your Personal Handbook to the Following: - Anything inside "CODE" boxes, type it into your terminal. If you can't find terminal, then press CTRL, ALT, t. - If I were you, I would write these by hand instead of copying and pasting it because after a certain amount of times, you will remember the linux commands and it will be easier for you to compile more kernels for different devices - Use this thread as a "Help Me" button. Ask for help! |
Quote:
A New Beginning: Let's start out with something simple, getting the actual code: Code: git clone https://github.com/cyanogenmod/android_kernel_motorola_msm8226 Once that's done, open up your file manager and rename the folder (should be android_kernel_motorola_msm8226) to whatever you want. I will refer it as "mykernel". |
Quote:
Pokemon! For this tutorial, we will be using a Sabermod 4.7 toolchain to compile. I WOULD teach you how to compile with 4.8+, but it creates errors that will take even longer for me to write about sooooooooo :fingers-crossed:. Now to get the toolchain: Code: git clone https://github.com/SaberMod/android_prebuilts_gcc_linux-x86_arm_sabermod-arm-eabi-4.7 Now go into you folder where the kernel source is stored... Code: cd mykernel |
Quote:
You're Almost There!: Time to set-up the compiler! Code: export CROSS_COMPILE=/home/(insert linux home name here)/toolchain/bin/arm-eabi- This next line tells it that your defconfig (the toolchain's manual for compiling the kernel) that it's in the arch/arm/configs folder. Code: export ARCH=arm Code: make falcon_defconfig MuHAHHAHAHa |
Quote:
THE HARD (coding) PART You ready for this? HERE IT IS! TIME TO BUILD THE KERNEL! Code: make -j4 If you have an error during the waterfall of code, find the part where it actually says *error* (you'll probably have to scroll upwards) and search it on Google or post it here. |
Quote:
THE BEST PART If you manage to get something that says "the kernel zImage is ready" or something like that, that means you've made it! You have officially compiled your own kernel from source! Now you need to put it in a flashable zip. Download this file and open it up, but DON'T EXTRACT IT. Now go to your kernel source then "CTRL + F" and search for "zimage-dtb". Find it and put it in the "kernel" folder of "FalconKernel - Signed.zip". Then "CTRL + F" and search ".ko". Copy radio-iris-transport.ko and put it in the system/lib/modules (not pronto) of the zip. Then find wlan.ko and rename it to pronto_wlan.ko. Copy and paste it in system/lib/modules/pronto of the zip. |
0 commentaires:
Enregistrer un commentaire