[Q] How to include latest hardware drivers and compile an AOSP kernel? - Nexus 4 Q&A, Help & Troubleshooting

Hello Everyone
I want to compile the AOSP kernel for nexus 4 including the latest hardware (qualcomm from codeaurora for example) drivers. No other modification.
Can someone point me to the right direction?
Thanks!

mpqo said:
Hello Everyone
I want to compile the AOSP kernel for nexus 4 including the latest hardware (qualcomm from codeaurora for example) drivers. No other modification.
Can someone point me to the right direction?
Thanks!
Click to expand...
Click to collapse
Maybe this could help:
Building Kernels - http://source.android.com/source/building-kernels.html
Binaries for Nexus 4 - https://developers.google.com/android/nexus/drivers#mako
Hope it helps!.
:cyclops:

@Galaxo60
Thanks for your reply
I know how to include the binaries posted by google, what I want is to build the binaries and use them myself

Related

[REQUEST] N8000 Kernel Source

I am about to build a kernel for N8000. But my problem is I can not download from samsung open source site (Very Slow Connection).
Can someone please mirror the update7(MD1) for me on a fast server like dev-host, android file host, mediafire or etc...?
Here's the Samsung open source site:
http://opensource.samsung.com/reception/receptionSub.do?method=search&searchValue=GT-N8000
Thanks in advance.
You may use my GitHub repository, which has a branch "merge-to-ss-jb" that is just the vanilla Samsung kernel, backed by the complete Linux tree.
Also, if you're interested in a complete, up-to-date tree (and what I'm running on my own GNote) you may browse my "kernel-forward" branch.
kcrudup said:
You may use my GitHub repository, which has a branch "merge-to-ss-jb" that is just the vanilla Samsung kernel, backed by the complete Linux tree.
Also, if you're interested in a complete, up-to-date tree (and what I'm running on my own GNote) you may browse my "kernel-forward" branch.
Click to expand...
Click to collapse
Thanks.
I have two questions if you don't mind.
1. Merge-to-ss-jb is the latest source (MD1)? Is it a good to go for a kernel to be based upon?
2. Is it alright with you that I base my kernel on your own kernel?
I appreciate it if you can help me with some kernel stuff as I am new to this.
Sent from my HTC One X using Tapatalk 4 Beta
csec said:
"merge-to-ss-jb" is the latest source (MD1)?
Click to expand...
Click to collapse
Yeah, it's essentially the official Linux kernel source up to version 3.0.31, overlaid with a cleaned-up version of the 1st Samsung JB kernel release, then each subsequent Samsung Open-Source Release (latest is "#7") is overlaid on top of that. If you build the HEAD of that branch, you'll have a vanilla Samsung kernel as of XXMCD1.
Is it alright with you that I base my kernel on your own kernel?
Click to expand...
Click to collapse
Of course! The entire Linux kernel is built upon Public collaboration; we all share from each other. My kernel has a few selected bits here and there from diverse places like CyanogenMod, Francisco Franco, Xstacy, the upstream kernel, Qualcomm, NVidia ...
I used to post my built kernel up in the ROM threads I used to use on my GNote, but someone complained and I don't really feel like being bothered with my own thread (don't have time for the inevitable newbie SPAM) so until if/when I do go "public" with it, the "kernel-forward" branch on GitHub is the best place to get what I'm running now.
kcrudup said:
Yeah, it's essentially the official Linux kernel source up to version 3.0.31, overlaid with a cleaned-up version of the 1st Samsung JB kernel release, then each subsequent Samsung Open-Source Release (latest is "#7") is overlaid on top of that. If you build the HEAD of that branch, you'll have a vanilla Samsung kernel as of XXMCD1.
Of course! The entire Linux kernel is built upon Public collaboration; we all share from each other. My kernel has a few selected bits here and there from diverse places like CyanogenMod, Francisco Franco, Xstacy, the upstream kernel, Qualcomm, NVidia ...
I used to post my built kernel up in the ROM threads I used to use on my GNote, but someone complained and I don't really feel like being bothered with my own thread (don't have time for the inevitable newbie SPAM) so until if/when I do go "public" with it, the "kernel-forward" branch on GitHub is the best place to get what I'm running now.
Click to expand...
Click to collapse
Great!
Thanks again.
Sent from my GT-N8000 using Tapatalk HD
csec said:
Great!
Thanks again.
Sent from my GT-N8000 using Tapatalk HD
Click to expand...
Click to collapse
Heard that the published sources have different wi-fi drivers than preinstalled stock kernel.
This is the main reason of allshare cast not working with custom kernels (on the contrary, some s3 custom kernels DO SUPPORT allshare cast), even if status=official and flash counter=0.
Anyone can confirm?
Anyone has the proper ones or know which one (i.e. from a different samsung device) to use?
gitHub link dead

4.3 kernel sources released! grab them here

http://www.sammobile.com/2013/11/05/samsung-releases-android-4-3-kernel-source-for-galaxy-s3/
Wow man latest news isn t it?? Using Internet Explorer??
And? Could you explain a bit in how it help us?
Thanks.
Enviado desde mi GT-I9300 usando Tapatalk
It means we can finally have custom kernels woooooo
Sent from my GT-I9300 using XDA Premium 4 mobile app
Well, I downloaded the source kernel and I need a clear way how to compile it smoothly. I wonder whether I can flash the kernel via Odin or CWM to a rooted stock I9300XXUGMJ9 firmware or not. Will it work? Any walkthroughs?
ahmedmelm said:
Well, I downloaded the source kernel and I need a clear way how to compile it smoothly. I wonder whether I can flash the kernel via Odin or CWM to a rooted stock I9300XXUGMJ9 firmware or not. Will it work? Any walkthroughs?
Click to expand...
Click to collapse
http://source.android.com/source/building.html
Read everything on left hand side
-----------------------
Sent via tapatalk.
I do NOT reply to support queries over PM. Please keep support queries to the Q&A section, so that others may benefit
rootSU said:
http://source.android.com/source/building.html
Read everything on left hand side
Click to expand...
Click to collapse
That's way cool. But any matter to accelerate the process? Would really compiling this kernel and pushing it to existing ROM work?
What do you think source code is exactly? What is it you think you want?
-----------------------
Sent via tapatalk.
I do NOT reply to support queries over PM. Please keep support queries to the Q&A section, so that others may benefit
I know this is not a Q&A thread but could I ask? Does this release of source kernel code mean, that Samsung finally released the source code for the dreaded mali GPU driver and the FM radio blobs that we so need to make CM roms fully functional and smooth?
granets said:
I know this is not a Q&A thread but could I ask? Does this release of source kernel code mean, that Samsung finally released the source code for the dreaded mali GPU driver and the FM radio blobs that we so need to make CM roms fully functional and smooth?
Click to expand...
Click to collapse
No. Read following for explanation.
dhiru1602 said:
Blobs are userspace components which correspond to the HAL (Hardware Abstraction Layer). It is this layer which is responsible for communication between the kernel and the operating system. GPU kernel driver is opensource, but the GPU HAL is closed source. This is the case with all the devices, but on our device, much more components of the HAL are closed source like FIMC, FIMG, HWJPEG, TVOUT. Samsung doesn't release the source code for this components because it doesn't necessarily have to. Without the source code, we are forced to use the compiled binary which may or may not work properly. Since we are left without options, we often mess around with the Android framework, making dirty hacks to get them to work. We will not be able to futureproof our device with newer versions of Android unless we have the source code since making edits on compiled binaries is not possible and hence we have to wait for official releases so that we could get newer binaries (blobs). Here is the list of all the blobs that we use on our device. Having proprietary code is not uncommon, but Samsung doesn't release the source code for essential parts of the OS like Graphics subsystem, OMX and DSP, which makes things more complex provided there is no documentation for the SOC, nor they are wiling to help developers.
Click to expand...
Click to collapse
dhirend_6d said:
No. Read following for explanation.
Click to expand...
Click to collapse
Thanks for the explanation. So basicaly those kernel sources don't mean much. And I was so excited
granets said:
Thanks for the explanation. So basicaly those kernel sources don't mean much. And I was so excited
Click to expand...
Click to collapse
They mean as much as every other kernel source release. We still dont have everything we need to make AOSP work properly, but we can now get custom kernels for 4.3 touchwiz roms.
rootSU said:
They mean as much as every other kernel source release. We still dont have everything we need to make AOSP work properly, but we can now get custom kernels for 4.3 touchwiz roms.
Click to expand...
Click to collapse
These include the latest mali r3p2. So we have now userspace binaries + kernel source drivers. It makes this possible, which is awesome. It's coming for all exynos4 devices.

Nvidia Tegra Note 7 Sources..

Following the e-mail i have just had from Nvidia we now have Sources to which we can not use to hopefully make custom roms.
Sources can be found here: http://nv-tegra.nvidia.com/gitweb/?...0;hb=ae97277f0ad5e87aee6b3d26e9b8ee202e6c7853
Hopefully this will also aid Developers to make new custom roms for this great device.
As a side note we will also be getting 4.4.3 on the Tegra Note 7 as well.
Good news ! Thank you !
salfai said:
Good news ! Thank you !
Click to expand...
Click to collapse
No need to thank me, Thank Nvidia !
I had something in my bookmarks, See if it is helpful to you, It is something related to kernel source.
https://groups.google.com/forum/#!topic/android-kernel/MQcqU4j2mP8
http://www.google.com/url?q=http://...sntz=1&usg=AFQjCNE-x7fBD4ldLYFh5inLHL8zK0vx1Q
http://nv-tegra.nvidia.com/gitweb/?p=linux-2.6.git;a=shortlog;h=refs/heads/rel-tegranote-r4
Will have a look after syncing cm and nvidia repos
Edit: them links asratxda is basically the same link i have. Infact the same branch, but thanks for your post though mate.
Sent from my Desire HD using XDA Premium 4 mobile app
So after downloading the sources, I managed to sort my Android VM and build the sources.
The files that compiled worked and produced a Android 4.4 KitKat but just a 4.4 kitkat. So now its time to start working on Cyanogen Mod sources to see what needs to be ported from Nvidia's code to Cyanogen Mod's sources.
This is not a promise by me to get CM11 working on our device, i am going to have a dab and try. I am more likely to fail big time! wish me luck!
hacktrix2006 said:
So after downloading the sources, I managed to sort my Android VM and build the sources.
The files that compiled worked and produced a Android 4.4 KitKat but just a 4.4 kitkat. So now its time to start working on Cyanogen Mod sources to see what needs to be ported from Nvidia's code to Cyanogen Mod's sources.
This is not a promise by me to get CM11 working on our device, i am going to have a dab and try. I am more likely to fail big time! wish me luck!
Click to expand...
Click to collapse
Best Luck!!!!! :good::good::good::good:

6.0.1 kernel

Is there any kernel for Android 6.0.1 on Nexus 7 2012?
Yes, every 6.x ROM provides a kernel, too, or what are you looking for? If you are looking for sources, you might want to have a look at my Github.
AndDiSa said:
Yes, every 6.x ROM provides a kernel, too, or what are you looking for? If you are looking for sources, you might want to have a look at my Github.
Click to expand...
Click to collapse
I am looking for kernel that enables overclocking. I searched forum but there are only kernels for Lollipop, not Marshmallow.
Probably you would like to have a look on Daniel_hk's kernel for Omni ROM. If I got it right, he implemented some overclocking into it, but I did not test it.
AndDiSa said:
Probably you would like to have a look on Daniel_hk's kernel for Omni ROM. If I got it right, he implemented some overclocking into it, but I did not test it.
Click to expand...
Click to collapse
So just flash OmniROM for 6.0.1? And the kernel is included? Or is there a separate file for kernel that must be flashed?
His Omni-build should include the OC-kernel directly.
Looking for a kernel on Nexus 7 2012 (3G) to fix baseband_XMM_power wakelock
@williamlaw: my kernel has the patch included. Most likely I'll upload a fastboot flashable zip today or tomorrow onto my Android 6 AOSP on Grouper thread.
AndDiSa said:
@williamlaw: my kernel has the patch included. Most likely I'll upload a fastboot flashable zip today or tomorrow onto my Android 6 AOSP on Grouper thread.
Click to expand...
Click to collapse
Thanks for your work but i am using 3G version.

Question Build Nothing OS source code?

Hello.
I want to compile and flash a custom fork of the Nothing OS. My issue is that I have never compiled and built an android OS before. I have built other OSes before for other devices but that was with instructions. I'd like to understand how I can build the Nothing OS and how I might find out that in the future for other android forks.
I know I need the source code from here and I know I need the devicetree from here. But I do not know how.
Thank you!
snakehater said:
Hello.
I want to compile and flash a custom fork of the Nothing OS. My issue is that I have never compiled and built an android OS before. I have built other OSes before for other devices but that was with instructions. I'd like to understand how I can build the Nothing OS and how I might find out that in the future for other android forks.
I know I need the source code from here and I know I need the devicetree from here. But I do not know how.
Thank you!
Click to expand...
Click to collapse
You can't build a closed source rom like NothingOS, they only provided device tree and kernel sources for custom rom development and custom kernel building.
acuicultor said:
You can't build a closed source rom like NothingOS, they only provided device tree and kernel sources for custom rom development and custom kernel building.
Click to expand...
Click to collapse
Alright, but, if I were to compile and flash the kernel sources, what would be missing from the system that is proprietary? Would I even have a UI or would it only be the core kernel?
You answered your question, if you build the kernel source you'll get only the kernel which doesn't have any ui itself, you still missing everything from the rom.
snakehater said:
Alright, but, if I were to compile and flash the kernel sources, what would be missing from the system that is proprietary? Would I even have a UI or would it only be the core kernel?
Click to expand...
Click to collapse
acuicultor said:
You answered your question, if you build the kernel source you'll get only the kernel which doesn't have any ui itself, you still missing everything from the rom.
Click to expand...
Click to collapse
Alright, so basically, this is only a fork from the original android repo, with changes so it runs on the nothing phone, and nothing more?
The kernel just allows the operating system to talk to the hardware so you still need an operating system. Your best bet is to grab a custom ROM if you really want to build from scratch or you can create a magisk mod that customizes the stock ROM.
snakehater said:
Hello.
I want to compile and flash a custom fork of the Nothing OS. My issue is that I have never compiled and built an android OS before. I have built other OSes before for other devices but that was with instructions. I'd like to understand how I can build the Nothing OS and how I might find out that in the future for other android forks.
I know I need the source code from here and I know I need the devicetree from here. But I do not know how.
Thank you!
Click to expand...
Click to collapse
Gotta have it working on the OnePlus Nord N200 and I'd be interested

Categories

Resources