I want to build a custom kernel and then a native program some sort of daemon.
I want to get original kernel with my modifications.
How to setup build environment?
Which host OS to use for development?
Which compiler?
I found samsung kernel repository in android sources and I've got sources from opensource.samsung.com (froyo + update_JPM + update2)
So which sources to use for my Galaxy S?
Is there are any guides to build kernel and native root level applications (mods, daemons, drivers ...)?
Unified kernel for msm8974 devices
hi all
we are cooking 1 kernel for all msm8974 devices for all custom roms
Source
https://github.com/sonyxperiadev/kernel
in this moment Z1 (honami) and Z2 (sirius) are tested
feel free to fork, joyn and push back
XDA:DevDB Information
Unified , Kernel for the Sony Xperia Z2
Contributors
jerpelea, Kali-, tilal6991, cdesai
Kernel Special Features:
Version Information
Status: Testing
Created 2014-10-07
Last Updated 2014-10-13
By "custom" you mean based on stock roms or AOSP-derived?
adwinp said:
By "custom" you mean based on stock roms or AOSP-derived?
Click to expand...
Click to collapse
both
depending on what an developer wants to build
What will the impact of this project be on areas that have been problems for aosp projects such as hardware drivers ?
furrypotato said:
What will the impact of this project be on areas that have been problems for aosp projects such as hardware drivers ?
Click to expand...
Click to collapse
1 kernel to rule them all means that 1 hal fixed in 1 device works on all devices
1 patch merged in kernel to fix something fixes same problem on all devices
jerpelea said:
1 kernel to rule them all means that 1 hal fixed in 1 device works on all devices
1 patch merged in kernel to fix something fixes same problem on all devices
Click to expand...
Click to collapse
I hope I'm not presumptuous or wrong: will it come with CWM and/or TWRP recovery versions?
Many thanks.
bonderbond said:
I hope I'm not presumptuous or wrong: will it come with CWM and/or TWRP recovery versions?
Many thanks.
Click to expand...
Click to collapse
this is just source code so depends on developers on what android fork is used
jerpelea said:
both
depending on what an developer wants to build
Click to expand...
Click to collapse
Unless I'm mistaken, the sony source doesn't work with pure AOSP. All AOSP or derivatives roms use the CM android_kernel_sony_msm8974pro or forks of it.
My question is thus the following: is this kernel source compatible with AOSP or like "kernel-copyleft", only with stock rom derivatives?
My custom kernel works on the latter, but I need to use the "msm8974pro" trees for pure AOSP.
Unless I'm missing something?
adwinp said:
Unless I'm mistaken, the sony source doesn't work with pure AOSP. All AOSP or derivatives roms use the CM android_kernel_sony_msm8974pro or forks of it.
My question is thus the following: is this kernel source compatible with AOSP or like "kernel-copyleft", only with stock rom derivatives?
My custom kernel works on the latter, but I need to use the "msm8974pro" trees for pure AOSP.
Unless I'm missing something?
Click to expand...
Click to collapse
it works perfectly on aosp and derivates
new guides published
http://developer.sonymobile.com/knowledge-base/open-source/open-devices/
kernel is rebased
z3 platform (shinano) added to kernel
https://github.com/sonyxperiadev/kernel/commits/aosp/LNX.LA.3.5.1-01110-8x74.0
status
z1 - bringup in progress
z2 - boots
z3 - boots
feel free to push fixes
broadcom wifi is now merged in kernel
crash has been fixed
broadcom wifi crash fixed
Can't boot
@jerpelea I've compiled AOSP Lollipop and it boots fine. I've compiled the kernel from 3.5.2.2 branch of the unified kernel source and successfully made zImage. I've combined the zImage with the resulting dtb and the ramdisk from the AOSP build. I can't get the device to boot for some reason. It's stuck at the Sony boot logo. Did I miss a step ? I've searched online but couldn't get enough help about this.
Tried the same with Kitkat too but same result. Doesn't go past the sony boot logo.
UPDATE
Got it to work The command line argument in the guide provided has android boot device as qcom whereas the one compiled during AOSP has it as "shinano" Took me 1 build to understand this Back to work again
hi All
Busy weeks ....months ...
Progress so far
- unified 3.4 kernel is stable for daily use and community tweaking
As some of you have already seen we have started work on comunity 3.10 unified kernel
This kernel is not finished and not stable but is an invitation for developers to joyn, test and improve a kernel built "by community for community"
Br
J
build guide has been updated for easy reading
http://developer.sonymobile.com/kno...evices/how-to-build-and-flash-a-linux-kernel/
hi all
kernel 3.10 is progressing nice
it can soon be used on SONY AOSP Project
master branch on devices uses 3.10 kernel
l-mr0 branch uses 3.4 kernel
br
J
hi all
3.10 is progressing nice
at this point can be used for L MR1 and shows good battery savings
more enhancements and bugfixes will come soon
br
J
Hi @jerpelea, which of the branches should be used for the 3.10 kernel?
I ll be appreciated that the unified kernel can support d6563.
So I've started learning how to build a kernel given the source code, but I was wondering- since I got the Android 5.1 OTA will I be able to use the 5.0.2 kernel source for now to test on 5.1 until the source for 5.1 is on github? Or is this a bad idea that I should not even consider?
I have no idea. I think if you look up faux123 on Google+ he'll answer it for ya....?
In case you are not aware, here are the kernel sources for the Huawei P8lite. This means that you can now build CyanogenMod or custom kernels for this phone.
Downloads
ALE-L02/ALE-L21/ALE-L23
ALE-L04 (Old 4.4.4 Source)
After seeing the interest for CyanogenMod or a similar AOSP ROM, there is a guide here that shows you how to port CM to a new device. Unfortunately, I can't do it because I don't own the device but if you try, best of luck
If dd98 agrees, i would use this thread to discuss and collect info about how to compile an armv8a kernel for our phone.
By the way, if i run this command in the phone console:
uname -a
It says our stock kernel is for armv7l. Is it normal?
Has anybody already tried to compile from source? Any success?
Any further development on this?
@dd98 I have device and willing to port can you guide on how to do this?
I'm going to try enable USB OTG for B170 for ALE-L21.
Oh.. This is and old thread..
There are already some developers busy with development of custom roms for the Huawei P8 Lite.
There kernel and the source can already been build for android 5 and android 6.
http://forum.xda-developers.com/p8lite/general/kernel-boot-stock-android-6-0-t3344841
Cyanogenmod is for the moment a problem because of good vendor files.
For now only wifi is working on AOSP builds, as long that there is no RIL ( calling ) you can't do anything with the Custom rom.
I'm personally have buid a bootable rom with Omnirom.
Source for that rom you can find here : https://github.com/olrak2/android_device_huawei_alice/
Somebody tried enable usb otg?
is it possible to run Android using the latest stable linux kernel instead of sticking with the LTS version ? I mean instead of using 3.18.x, use 5.1.15, latest stable as of today according to the git releases https://www.kernel.org/
If so, is there a guide on how to do so, I mean:
* Which options are critical to enable in the interactive menuconfig
* if its needed to compile modules for this version or only the kernel image is enough ?
I've manually built many linux kernels for optimizing linux distros but never did so for an Android device, so something may be different, specially the stuff related to kernel modules