I'm a noob in building kernels and since nobody else is trying, i'm trying to build a custom kernel from source .111 using this guide:
http://forum.xda-developers.com/android/software/ultimate-guide-compile-android-kernel-t2871276
I'm stuck at step 5, where i'm supposed to find a defconfig file for m4 aqua(tulip) but i can't seem to find it, can anyone help?
The defconfig is msm-perf_defconfig
Related
Hello, i'm trying to compile kernel for Nexus 4 on debian 7,
i've downloaded ndk with toolchains, sources from android site, and followed many guides to compile kernel, but after make command, i can't find anywhere the zImage file, it should be in arch/arm/boot/ but it isn't there, no errors during compiling.
I've already compiled kernel for linux, and this seems strange :/
can anybody help me please?
thanks in advance
I'm trying to build a kernel. I'm currently using a Nexus 4, which has 3.4.0 kernel.
I'd like to know how to merge the patches up to 3.4.96, how is it done actually?
I tried patching my source with the patch from kernel.org but it didn't work (so many files were failed to patch) and when I skip them, I couldn't get it to compile (failed when 'make')
Is there any guide on how to do this? I've Googled & Searched yet I didn't get anything (or maybe I skipped something)
Bump, anyone?
HEY GUYS,
My device is M8tl and I want to build an ElementalX kernel.... However, I am not familiar with it .I searched rhe forum but I cannot find a tourial like this....I have downloaded My device's kernel source from HTCDEV.com and ElementalX kernel source from GitHub... Can anyone tell me what to do next?Waiting for reply...
So the phone manufacturer has provided kernel source and lets assume that it compiles and deploys fine.
What are the steps to upgrade the kernel to a newer version?
Lots of threads that I read suggest looking for another kernel that is based on a similar device and using that.
However, what happens if there is no similar device?
What steps do you take to upgrade a kernel in this case?
Would I just find the equivalent base in the android kernel source and git diff and patch each commit until I got to the version I wanted then try to fix any compile errors?
I can't seem to find a thread with the actual fine details of the kernel upgrade process.
I didn't get round to upgrading my kernel.
Does anyone have a developers guide on the steps to update your kernel source code?
So, I recently got a ASUS Zenfone 4 Selfie Pro, the phone is stuck on android 7.1 and doesn't have any roms, nothing, just TWRP. So I'm on a journey trying to build stuff for this device from the ground up, I already made a device tree based on Zenfone 3 (which has the same SoC) and I tried to build lineage/cyanogenmod 14.1 for it and got a lot of kernel errors, so I went to try to compile the kernel from the source ASUS gave on their website and uploaded it to my github. In this past 3 days was able to fix and workaround some of the errors I got while building, but now I'm stuck on this one: https://hastebin.com/iqisuzegeg.coffeescript | any help would be greatly apreciated .
For easier access to the kernel source I uploaded it to my github and made some fixes/workarounds for some errors: https://github.com/2003Frost/android_kernel_asus_Z01M_stock
I'm using Linaro 7.5.0 as arm64 toolchain.
I'm using Zorin OS 15.2 as OS.
If any more information is needed I'll be glad to give out.
0
Seppppx said:
Hmm. There is probably no definition for 'drivers/platform' and 'drivers/platform/msm' . But there is a reference (probably). Also have you tried to build the kernel with the defconfig "the manual way". If there is something wrong with the kernel I have almost no way of helping you because I'm not a real developer.
EDIT : There is a kernel source for your phone that on a developer's github https://github.com/shakalaca/android_kernel_asus_zd552kl . That is also the person who is the maintainer for official twrp. He has some large commits on the kernel so his kernel should build.
Click to expand...
Click to collapse
I already tried his kernel and got the same exact error :/
I didn't understand fully what you said with "the manual way" but I'm trying to compile the kernel outside the rom build environment, by using my device's defconfig and compiling with linaro.
0
Seppppx said:
By the manual way I mean the with the defconfig. Also I made a pull request to your Device Tree (adds persist partition and Shakalaca's kernel).
Also if you're trying to build with defconfig there is a tutorial by google. https://source.android.com/setup/build/building-kernels-deprecated .
After that you will have to put it to the boot image. Another guide for that. https://source.android.com/setup/build/building-kernels#embedding-into-Android .
Edit : Isn't the Android kernel build with the defconfig when you run a source build? I think it actually builds the kernel when you build android so you don't build the kernel separately.
Click to expand...
Click to collapse
I accepted your pull request. Yes when you build a rom from source it also compiles the kernel, but I wasn't able to build the rom because it gave me kernel errors, so I went and started compiling separately because it's easier to fix kernel errors like this.
I am not using Google's tutorial, I'm following one that has almost the same steps and I'm using the same toolchain.
0
Seppppx said:
By toolchain you mean tools that you need to compile a kernel? Why doesn't one just install the tools needed to compile a kernel source.
The guide I linked doesn't specify any toolchain (thus idk if I need one). It also doesn't have anything to do with build.sh script used to compile a kernel. Instead it uses the defconfig. The commands are actually very simple.
cd kernel-source_code
export ARCH=arm64
export CROSS_COMPILE=aarch64-linux-android-
make ZD552KL-Phoenix_defconfig
make
Also have you tried to build another kernel that you are sure builds? If another kernel builds. The issues have to do something with the kernel itself. If it does not it's most likely something else.
Click to expand...
Click to collapse
To compile a kernel from source you need something a cross compiler or toolchain in my case I'm actually using the exact same commands you commented with linaro toolchain/cross compiler (aarch64-linux-android). As far as I know you need that to compile a kernel and I don't think the toolchain is the problem but the kernel itself. I can try another kernel later to see if it compiles.
0
Seppppx said:
Okay thanks!
If you manage to compile the kernel for your device make sure to mention/quote me. I would like to contribute. I'm on my way to make another pull request (now about cameras).
Click to expand...
Click to collapse
If you want to talk to me more quickly you can message me on telegram https://t.me/Frost_2003
0