Unified kernel for msm8974 devices - Xperia Z2 Original Android Development

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.

Related

Any roms with the official source code???

Is there any rom with the official kernel sources??
Ivan's AOSP 4.4.4 and 5.0
NisseCool said:
Ivan's AOSP 4.4.4 and 5.0
Click to expand...
Click to collapse
Are you sure they are with official kernel? possible to post link?
pra300 said:
Are you sure they are with official kernel? possible to post link?
Click to expand...
Click to collapse
Yes i am sure. It's a developer working on xiaomi who made it. Here is the android 5.1 from him http://forum.xda-developers.com/xiaomi-mi-3/general/android-5-1-ivan-t3056153 and here is 4.4.4 http://en.miui.com/thread-44424-1-1.html
Ivan has a privat source. Not official.
These are the ones with official sources.
Try Bitti09's CM12:
http://forum.xda-developers.com/xiaomi-mi-3/development/rom-cyanogenmod-12-t3036066
(Link in thread posts)
Or audahadi's Temasek builds:
http://forum.xda-developers.com/xiaomi-mi-3/development/temasek-unofficial-cm12-t3012588
I should warn you, the official kernels are VERY unstable as of now, and the Devs are working on them as we speak...Expect a LOT of bugs.
(Wifi not working, bootloops, reboots, battery drain, pretty much everything is a WIP at this stage...)
NisseCool said:
Yes i am sure. It's a developer working on xiaomi who made it. Here is the android 5.1 from him http://forum.xda-developers.com/xiaomi-mi-3/general/android-5-1-ivan-t3056153 and here is 4.4.4 http://en.miui.com/thread-44424-1-1.html
Click to expand...
Click to collapse
Thanks for the links, 5.1 is not having official kernel and the 4.4.4 build is of Sept. 2014.... I did not find latest build.
The Dork Knight Rises said:
I should warn you, the official kernels are VERY unstable as of now
Click to expand...
Click to collapse
Do you think it could be some old kernel sources? May be MIUI uses some other kernel sources?
Or it is possible that MIUI devs did the same work as our dev do right now - fixing bugs in kernel sources?
I'm just trying to understang how it works
If MIUI have no bugs so either it basd on different kernel sources or MIUI devs already fixed all kernel sources bugs but not within branch released and within MIUI code instead.
PS: Sorry, I'm C# dev, not firmware dev, so have no clue how those things works :silly:

[ALE-Lxx] Huawei P8lite Kernel Sources

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?

Marshmallow source codes for Mediatek Devices

https://android.googlesource.com/kernel/mediatek/+/android-6.0.0_r0.6
https://android.googlesource.com/kernel/mediatek/+/android-mediatek-sprout-3.10-marshmallow
So Marshmallow kernel sources have been released. I expect that developers will be able to compile custom ROMs and kernels based on these.
joeyhuab said:
https://android.googlesource.com/kernel/mediatek/+/android-6.0.0_r0.6
https://android.googlesource.com/kernel/mediatek/+/android-mediatek-sprout-3.10-marshmallow
So Marshmallow kernel sources have been released. I expect that developers will be able to compile custom ROMs and kernels based on these.
Click to expand...
Click to collapse
Can't wait for first aosp build

[ROM] [6.0.1] AOSP yuga

Android Open Source Project for Sony Xperia Z.
'Complete' build from AOSP sources, which built from latest Google AOSP sources.
Warning:
This is an alpha version, so it's not for daily use!
Gapps:
http://opengapps.org/
Use pico or nano. After you installed gapps, do a factory reset /advanced wipe/ in recovery.
Current progress:
Working:
- 2D/3D working
- Audio
- Touchscreen
- Lights
- Bluetooth
- Wifi
- Gps
- Sensors
- SD Mount
- Ril /ongoing calls,sms/ & Data
- Nfc
Need to be fixed:
- Camera /blobs are not compatible, need to hack/
- Ril crashing on outgoing calls
Sources:
Lagan dev tree
Yuga dev tree
Kernel source
Credits:
SonyXperiaDev
Google
CyanogenMod Team
XDA:DevDB Information
AOSP for Xperia Z, ROM for the Sony Xperia Z
Contributors
kamarush
ROM OS Version: 6.0.x Marshmallow
ROM Kernel: Linux 3.4.x
Based On: AOSP
Version Information
Status: Alpha
Created 2015-11-14
Last Updated 2015-12-08
So... It begins.
Thank you for this ROM, I was waiting for it for 5 years
Aren't you the first person to port 6.0 for Xperia Z?
@up For yuga? Yes. But for pollux qsnc started to doing something with it. But it's first nearly stable 6.0 rom for fusion3 platform
And what about download links?
Yay! It's a shame that i've got only one Xperia Z
@UP
Download tab.
Morning surprise for me! Thank you Kamarush!
MrGohut said:
Yay! It's a shame that i've got only one Xperia Z
@UP
Download tab.
Click to expand...
Click to collapse
Ah Im using old theme
Sent from my Xperia Z using Tapatalk 2
So smooth it's this ROM c: But unusable for me without camera and incall sound
Please, add recovery in final release to make rom rootable
stuck on android
edi194 said:
So smooth it's this ROM c: But unusable for me without camera and incall sound
Please, add recovery in final release to make rom rootable
Click to expand...
Click to collapse
bro i stuck on android logo can you tell me how to resolve this.
Ess Arr said:
bro i stuck on android logo can you tell me how to resolve this.
Click to expand...
Click to collapse
Do a factory reset. I've saw that you have problem with 5.1 too, maybe you have changed partition file formats. Easily, flash stock from flashtool and then fastboot every file of this or 5.1 rom.
Can somebody send me a link to download?
jpacho89 said:
Can somebody send me a link to download?
Click to expand...
Click to collapse
On top is a download tab, just click on it
@kamarush If selinux cause so many problems, it cannot be disabled (permissive)? I think it'll help in fixing things
St.Jimmy90 said:
On top is a download tab, just click on it
Click to expand...
Click to collapse
Thanks mate
Hi, may I ask where I can find your kernel source for m build?
NFC fixed.
It was commented out.... Found this in source:
Code:
# !!! Intentionally commented out, we'll stop building
# the NXP stack in M, code will be removed in the
# next release.
# include $(BUILD_SHARED_LIBRARY)
# !!!
Thank you Google
So, incall audio and camera remains.
How to install gapps or recovery?
Thanks!
jpacho89 said:
How to install gapps or recovery?
Thanks!
Click to expand...
Click to collapse
I think it's completely unneeded. This is an alpha release. When i fix the incall audio, i'll push it to Beta and both will be included.
I'm waiting for beta then! And i can't wait for it
Kevinjoa said:
Hi, may I ask where I can find your kernel source for m build?
Click to expand...
Click to collapse
Hi
For this is from CM, with flo's adreno sources. You can find on github.

Device Tree for building AOSP

Can anyone upload the AOSP device tree for sprout to compile AOSP based ROM?
I'd like to build a proper Chroma ROM (the one currently built doesn't have supersu built in, no bootanimation, etc)
I cannot seem to build with CM's device tree, I've been messing with it all around to no avail
Thanks.
KcLKcL said:
Can anyone upload the AOSP device tree for sprout to compile AOSP based ROM?
I'd like to build a proper Chroma ROM (the one currently built doesn't have supersu built in, no bootanimation, etc)
I cannot seem to build with CM's device tree, I've been messing with it all around to no avail
Thanks.
Click to expand...
Click to collapse
https://www.reddit.com/r/androiddev...for_a_nonnexus/?_e_pi_=7,PAGE_ID10,8849235716
I hope this discussion help you have a look at it. And this too http://stackoverflow.com/questions/29077612/build-aosp-rom-with-cyanogenmod-device-files
Thanks, I finally figured out everything, AOSP doesn't do inline kernel building like CM so I need to make sure Android.mk exists on the kernel folder. That exactly what my problem is.
Happy to help...i hope we see numbsr of quality aosp builds from you.Aosp roms on this device has been a bit buggy uptill now.Best luck buddy.

Categories

Resources