Hi,
I want to build an AOSP kernel from source. I'm running a 5.1.1 AOSP build, so I'm trying to find out where I can get the source for 5.1.1 AOSP. Is there any source code for all Qualcomm MSM chipset devices in general? Thanks.
Bump; anyone got ideas?
You will have to find the source for your device. There is no one for all kernel source. If you are already running an aosp build then the kernel is already included
zelendel said:
You will have to find the source for your device. There is no one for all kernel source. If you are already running an aosp build then the kernel is already included
Click to expand...
Click to collapse
So would I build with that kernel? Or can I use Motorola source? Will Motorola's 5.0.2 source code work with 5.1.1?
GreyArmour said:
So would I build with that kernel? Or can I use Motorola source? Will Motorola's 5.0.2 source code work with 5.1.1?
Click to expand...
Click to collapse
It may work but there will be bugs. As for the source that depends on the device your using and the set up. I have not touched a moto in years but I know that stick HTC and Samsung kernels don't work on aosp based roms so you will have tons if trouble shooting to do if you try
zelendel said:
It may work but there will be bugs. As for the source that depends on the device your using and the set up. I have not touched a moto in years but I know that stick HTC and Samsung kernels don't work on aosp based roms so you will have tons if trouble shooting to do if you try
Click to expand...
Click to collapse
OK. Would using the kernel that came with my AOSP ROM to build a kernel be wrong or is that alright?
Related
As stated in the cm 10.1 dev thread lets keep the general CM discussions here instead of cluttering the dev thread.
Great idea - now we can have all the misguided, misinformed speculation we want as to what hurdles have yet to be cleared before the DNA gets official CM nightly support
jk
Haha, exactly.
Actually, I think efforts might soon be underway to port straight AOSP as well I hope what I've heard (I can't give details, so please don't ask) comes to fruition.
That'd be great. I've been trying to learn more about programming and the build system so I can start helping out with some of it. I've setup ubuntu and sync and build cm every couple of days and I've been messing with building aokp since its based on cm.
AOKP, PA, PAC ROMs me want
Also some AOSP kernels as well
Sent from my TF300T using Tapatalk 2
I made a few changes and aokp started to build but I came across an error and haven't had time to look into it. If I get it built I'll try to learn some more about git and upload the source
skynet11 said:
Actually, I think efforts might soon be underway to port straight AOSP as well I hope what I've heard (I can't give details, so please don't ask) comes to fruition.
Click to expand...
Click to collapse
Why pure aosp as opposed to CM?
123421342 said:
Why pure aosp as opposed to CM?
Click to expand...
Click to collapse
Because a lot of popular ROMs out there are based on AOSP rather than on CM. Besides, there's always room for both right?
I'd love to try pure AOSP. I've always had HTC devices so I never got the pure Android experience.
123421342 said:
Why pure aosp as opposed to CM?
Click to expand...
Click to collapse
because I want android and not all the stuff that comes with CM, if I want themes and mods ill do them myself
Does anyone have any resources that break down the build process?
I'm pretty excited for the 10.1 rom to become a daily driver. Once it's complete I hope to see possible other roms that are desensed... I'm sick of sense! I want some unadulterated android (or close to it)!
why would you want an aosp kernel? how are they better?
atishpatel2012 said:
why would you want an aosp kernel? how are they better?
Click to expand...
Click to collapse
Sense kernels won't work on aosp and the stock one they included in CM can't be overclocked or undervolted.
Nowak4G said:
Sense kernels won't work on aosp and the stock one they included in CM can't be overclocked or undervolted.
Click to expand...
Click to collapse
The kernel we are using right now is our stock kernel with cm commits. It doesn't include overclock or any other features because they could cause more bugs. Better to work all the bugs out of cm before you start doing things that could introduce more. Cplamer has already said that he has run a custom kernel with cm on his DNA so it is definitely going to happen. Just have to wait or build your own kernel unfortunately.
amathophobia said:
The kernel we are using right now is our stock kernel with cm commits. It doesn't include overclock or any other features because they could cause more bugs. Better to work all the bugs out of cm before you start doing things that could introduce more. Cplamer has already said that he has run a custom kernel with cm on his DNA so it is definitely going to happen. Just have to wait or build your own kernel unfortunately.
Click to expand...
Click to collapse
The other reason is because they're making so many changes to cm right now to get it working that a new kernel would have to be released for every update. I believe T1gartist has been running cm oc'd with a custom kernel as well
Sent from my Nexus 7 using Tapatalk 2
If you have the source it's not hard to add overclocking.
I'm not a dev or anything but I built AOKP
TheDanimal said:
I'm not a dev or anything but I built AOKP
Click to expand...
Click to collapse
Can u upload the build.
I wud like to test it out.
What all features are working ? Are all" Whats Working" features CM10.1 working for it ?
Sorry for asking all these questions.
BTW, u should create a new thread in Orig. Android Dev. with AOKP build :victory:
I am still trying to get Jelly Bean on a device right now. I went from trying to port a JB ROM from a clone to just plain out compiling an AOSP ROM. I already got everything set up. I am even compiling a ROM right now. (full-eng). I figured that this was the option for all devices but being an idiot i started reading and the 10 options or so didnt include my device. It was nexus and samsung phones. Is there a way to compile AOSP or even Cm10.1 or AOKP for an Unsupported device? I am dying to find out and get this released!
Any help will be greatly appreciated!
The main thing is you will need a kernel to support the device. So you will have to track sown the kernel source code.
Wayne Tech Nexus
zelendel said:
The main thing is you will need a kernel to support the device. So you will have to track sown the kernel source code.
Wayne Tech Nexus
Click to expand...
Click to collapse
I have a kernel source code for it. This is it right here: https://github.com/leopesto/kernel_mtk6577
Can i build AOSP Jelly bean from that? And if so. how?
Droid Premium said:
I have a kernel source code for it. This is it right here: https://github.com/leopesto/kernel_mtk6577
Can i build AOSP Jelly bean from that? And if so. how?
Click to expand...
Click to collapse
Well you need to know it that is a JB kernel to begin with. Then I would look at the tut for building a kernel. Just a heads up. Most of the MTK so called kernel source is never the full and proper source code.
Wayne Tech Nexus
zelendel said:
Well you need to know it that is a JB kernel to begin with. Then I would look at the tut for building a kernel. Just a heads up. Most of the MTK so called kernel source is never the full and proper source code.
Wayne Tech Nexus
Click to expand...
Click to collapse
Well i have that one and a source code from a clone (TCL-S600). I am almost positive that that kernel will work. My goal is to either compile some sort of Jelly Bean ROM for this device or De-grade it to Gingerbread. The users on this device don't like ICS for multiple reasons so I am just trying to do what they asked. Any suggestions?
linux kernel 4.1 released why are we still using 3.0? I am just wondering
nhmanas said:
linux kernel 4.1 released why are we still using 3.0? I am just wondering
Click to expand...
Click to collapse
Porting a new linux kernel to a device is not simple. It brings a lot of stability issues if the kernel version is too new, and so most developers stick with a LTS release such as v3.4.104. Most s2 kernels are at kernel version 3.0.101 because it is found to be stable, and so they stick with the mentality that 'if it ain't broke, don't fix it'.
gsstudios said:
Porting a new linux kernel to a device is not simple. It brings a lot of stability issues if the kernel version is too new, and so most developers stick with a LTS release such as v3.4.104. Most s2 kernels are at kernel version 3.0.101 because it is found to be stable, and so they stick with the mentality that 'if it ain't broke, don't fix it'.
Click to expand...
Click to collapse
I really love your kernel and you are the new kernel master of i9100 now for me. Then why don't you use v3.4.104? My friend's phone is s4 mini and he is using a v3.4.x.x kernel. I think it is stable to use
nhmanas said:
I really love your kernel and you are the new kernel master of i9100 now for me. Then why don't you use v3.4.104? My friend's phone is s4 mini and he is using a v3.4.x.x kernel. I think it is stable to use
Click to expand...
Click to collapse
Honestly, I think I don't have enough developing experience to do such task chhapil is also thinking to update linux version, but is also unsure whether to upgrade to a newer version or downgrade to 3.4.104.
gsstudios said:
Honestly, I think I don't have enough developing experience to do such task chhapil is also thinking to update linux version, but is also unsure whether to upgrade to a newer version or downgrade to 3.4.104.
Click to expand...
Click to collapse
Thank you for your replies. I have 2 more questions.
1. What are the pros of upgrading 3.4.104 kernel
2. So our device is official cm12.1 now and sources are online. Will you release a lollipop kernel?
nhmanas said:
Thank you for your replies. I have 2 more questions.
1. What are the pros of upgrading 3.4.104 kernel
2. So our device is official cm12.1 now and sources are online. Will you release a lollipop kernel?
Click to expand...
Click to collapse
http://forum.xda-developers.com/galaxy-s2/development-derivatives/kernel-dorimanx-lp-5-x-x-t3145879
nhmanas said:
Thank you for your replies. I have 2 more questions.
1. What are the pros of upgrading 3.4.104 kernel
2. So our device is official cm12.1 now and sources are online. Will you release a lollipop kernel?
Click to expand...
Click to collapse
1. Some pros of updating Linux kernel could include increased speed and security (since 3.0.101 kernels are not updated anymore) .
2. I guess you didn't see my Sig? Noppy already linked my dorimanx lp kernel thread. Yes, it works perfectly with cm12.1, however doesn't work yet on other roms like paranoid android and slimlp.
gsstudios said:
1. Some pros of updating Linux kernel could include increased speed and security (since 3.0.101 kernels are not updated anymore) .
2. I guess you didn't see my Sig? Noppy already linked my dorimanx lp kernel thread. Yes, it works perfectly with cm12.1, however doesn't work yet on other roms like paranoid android and slimlp.
Click to expand...
Click to collapse
omg thats what I'm waiting for thanks for all mate
Does someone wants to help me making an AOSP device tree?
Would bring some more roms to our device
I already started with a branch and commented out some compiling errors:
https://github.com/benschhold/android_device_oneplus_oneplus2/tree/aosp
Any help is appreciated.
@regalstreak
maybe something for you if you are interested
benschhold said:
@regalstreak
maybe something for you if you are interested
Click to expand...
Click to collapse
The problem is the kernel source. Ain't it? We need to rebegin from the plain linux kernel src imo idk
regalstreak
regalstreak said:
The problem is the kernel source. Ain't it? We need to rebegin from the plain linux kernel src imo idk
regalstreak
Click to expand...
Click to collapse
angler custom kernel work on both cm/aosp so i didnt thought about that
and isnt oxygen stock kernel aosp + oneplus patches? maybe we could start from there
benschhold said:
angler custom kernel work on both cm/aosp so i didnt thought about that
and isnt oxygen stock kernel aosp + oneplus patches? maybe we could start from there
Click to expand...
Click to collapse
Oxygen is based on caf so it is difficult. But not impossible. Did you build tho? We can get it booting easily. But ril and some stuff womt work.
regalstreak
regalstreak said:
Oxygen is based on caf so it is difficult. But not impossible. Did you build tho? We can get it booting easily. But ril and some stuff womt work.
regalstreak
Click to expand...
Click to collapse
im currently stuck at busybox error which i couldnt solve but not sure if its device related, tried on screwd rom and that have a lot of optimizations which cought caused that
i have to try again on another aosp source
benschhold said:
im currently stuck at busybox error which i couldnt solve but not sure if its device related, tried on screwd rom and that have a lot of optimizations which cought caused that
i have to try again on another aosp source
Click to expand...
Click to collapse
Make pure aosp source. And clone busybox from cm if its still not fixed. Its not a device error.
regalstreak said:
Make pure aosp source. And clone busybox from cm if its still not fixed. Its not a device error.
Click to expand...
Click to collapse
yep, im syncing
will try cm busybox if errer persists
benschhold said:
yep, im syncing
will try cm busybox if errer persists
Click to expand...
Click to collapse
screwd rom woo my fav rom !!
Sent from my ONE A2003 using XDA-Developers mobile app
does someone know where to define where kernel source is stored?
the typical TARGET_KERNEL_SOURCE is not working
when to try to build inline its always looking in out/ folder
Man, wish I could help but lack the skills.. Plenty of Linux machines on hand though.. Where do I start?
@benschhold, @King_lilrowrow wrote on his Twitter acc about 20 days ago he built NX Rom using only AOSP code. Doesn't that mean he had to make an AOSP tree? I would ask him for help
MaxtremePL said:
@benschhold, @King_lilrowrow wrote on his Twitter acc about 20 days ago he built NX Rom using only AOSP code. Doesn't that mean he had to make an AOSP tree? I would ask him for help
Click to expand...
Click to collapse
Trees or it didn't happen!
builds are going through compiling now
but are not booting
lets see
benschhold said:
builds are going through compiling now
but are not booting
lets see
Click to expand...
Click to collapse
Take your time [emoji1] [emoji7]. Can't wait. I have always loved pure AOSP
Sent from my ONE A2003 using Tapatalk
benschhold said:
builds are going through compiling now
but are not booting
lets see
Click to expand...
Click to collapse
Post some logcat, maybe we can help
WaxLarry said:
Post some logcat, maybe we can help
Click to expand...
Click to collapse
as far as i now its not possible to take one when not passing oneplus logo
i just compile another one and lets hope for the best :fingers-crossed:
i've already built aosp for lg g3.. i'm downloading right now n-preview2 sources i will help, i'll let you know once i will have everything ready
benschhold said:
as far as i now its not possible to take one when not passing oneplus logo
i just compile another one and lets hope for the best :fingers-crossed:
Click to expand...
Click to collapse
The problem is the kernel, i've already had this kind of problem.
Are you compiling your own kernel? If yes, which sources?
Basically in lollipop the kernel is compiled uncompressed with appended dtb, since MM, kernel is compressed and dtb is included in kernel.
WaxLarry said:
The problem is the kernel, i've already had this kind of problem.
Are you compiling your own kernel? If yes, which sources?
Basically in lollipop the kernel is compiled uncompressed with appended dtb, since MM, kernel is compressed and dtb is included in kernel.
Click to expand...
Click to collapse
no i went back to screwd cause aosp just wont find my kernel source
i fckd it up elsewhere
there is a solution for this. set in your baord config like this
Code:
BOARD_CUSTOM_BOOTIMG_MK := device/oneplus/oneplus2/mkbootimg.mk
and take the file from cm for example
still no aosp rom with oms support . aosp roms runs better than cm roms in my view .
sudipto ranjan said:
still no aosp rom with oms support . aosp roms runs better than cm roms in my view .
Click to expand...
Click to collapse
Good luck for building one by your self
Sent from my Redmi 3S using Tapatalk
I asked to know if any aosp rom is under construction or not
sudipto ranjan said:
I asked to know if any aosp rom is under construction or not
Click to expand...
Click to collapse
No, you didn't ask anything, there are no question marks in the OP.
The kernel source its there, Android source is there too. Go build yourself a ROM.
The closest right now is LineageOS, you can find it on Development section
moralesnery said:
No, you didn't ask anything, there are no question marks in the OP.
The kernel source its there, Android source is there too. Go build yourself a ROM.
The closest right now is LineageOS, you can find it on Development section
Click to expand...
Click to collapse
stop being so rude lol non one asked you to build it,go build yourself a better attitude. He just asked is there rom since all roms so far are full of bugs.
moralesnery said:
No, you didn't ask anything, there are no question marks in the OP.
The kernel source its there, Android source is there too. Go build yourself a ROM.
The closest right now is LineageOS, you can find it on Development section
Click to expand...
Click to collapse
1st of all who the hell asked you to build ??
So why are you doing this show off.if devs want to build they will. We are here to give our opinion and suggestion.
How about we all take a chill pill and relax a little for a bit. There are clear misunderstandings from posts that could have been worded more clearly, so we'll leave it at that.
As for AOSP roms running smoother than CM/LOS, CM/LOS is based on AOSP. Speed in roms is different the type of changes that are implemented into the rom, like how AOSPA is using LTO throughout their repos. Some AOSP roms add in compiler optimizations to speed up performance (like AOSPA), but it will cause regressions on certain devices with older/faulty hardware. Just my 2 cents, overall, performance on CM/LOS is not much different than any other AOSP rom out there, since they're essentially the same when it's down to the basics.