Trying to build a kernel in particular Franco for Nexus 5 (hammerhead)
So I made a folder and I git clone this repository.
https://github.com/franciscofranco/hammerhead
I did a make config and I have 1k of options. Am I building the options for the Linux kernel? I figured that was already configured.
Do I need to build this kernel with a toolkit Linaro?
Any help or directions would be great! Thanks!
Related
Can anyone perhaps provide a tutorial of how to compile an HTC kernel? I have experience in compiling kernels for Android but it was for the Samsung Moment, a very different beast both in hardware and software setups.
read this http://forum.xda-developers.com/showthread.php?t=1039854
kernel compiling in less than 10 sentences:
great place to start is forking toastcfh's evo 3d kernel source - https://github.com/toastcfh/htc-8660-kernel
using the aosp toolchain (repo sync aosp in the prebuilt dir) and compiling.
once you have the zImage, merge it up with a ramdisk. i'd probably start with the stock kernel's ramdisk. that will give the boot.img to flash.
Hi,
I gitted the android source and I successfully built a zip using cyanogenmod 9's repo. However, I am curious to know where the kernel was being generated. I searched through the whole thing and I couldn't find the kernel source in the android source anywhere. Is this something that is pre-compiled and saved as a zImage? I really want to replace this zImage with my own compiled one but I am not sure how to merge the android source and the kernel source into one thing.
Thanks guys,
I know this is fairly noobish but whatevs...
nevermind...Found it in device/htc folder...
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 am needing to make a kernel for a certain device. There aren't any source codes available for that device but there are for multiple clones out there. I am running Linux Mint Debian edition and i cant find a guide for compiling a kernel on debian. If someone could please guide me to one I would be most glad!
Droid Premium said:
I am needing to make a kernel for a certain device. There aren't any source codes available for that device but there are for multiple clones out there. I am running Linux Mint Debian edition and i cant find a guide for compiling a kernel on debian. If someone could please guide me to one I would be most glad!
Click to expand...
Click to collapse
This is the main and most active Guide for Kernel compiling out here:
[Tutorial] Building Your First Kernel
Even if its specified for Ubuntu, it technically should work on any Linux variants.
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