Newbie Dev: Building Android from Scratch for new Device (AOKP, Ainol) - Android

I have had experiences with gentoo and wish to try my hands at developing my own AOKP rom for a chinese tablet that is unsupported.
I am currently syncing my repo and wish to understand more before I proceed.
What will be the easiest way to get Android running if I compile AOKP? Given that the tablet runs ICS at the moment, will it work if I compile AOKP and port the existing kernel over?
I have also gotten my hands on the source codes for the tablet.

Do you have a device tree?
If not, first you should create one.
Then only you can compile android.

adil_ said:
Do you have a device tree?
If not, first you should create one.
Then only you can compile android.
Click to expand...
Click to collapse
I highly doubt that there is an existing device tree. Now comes the noob question: How can I check if there is an existing device tree???
Anyway, I have been extensively reading up on building android and gotten the AOKP sources and original manufacturer source. Am I right to say that as long as I can compile AOKP, I should be able to boot using an existing kernel??
As for the the two sources, should I copy over the original devices and hardware folder to the AOKP source before I build so as to ensure a compatible build???

tobyhund said:
I highly doubt that there is an existing device tree. Now comes the noob question: How can I check if there is an existing device tree???
Click to expand...
Click to collapse
Google.
Anyway, I have been extensively reading up on building android and gotten the AOKP sources and original manufacturer source. Am I right to say that as long as I can compile AOKP, I should be able to boot using an existing kernel??
Click to expand...
Click to collapse
No it is not right to say. While it is possible you will probably need to do extensive debugging along the way.
As for the the two sources, should I copy over the original devices and hardware folder to the AOKP source before I build so as to ensure a compatible build???
Click to expand...
Click to collapse
Depends on what source you are talking about. What source do you have exactly?

You could try my thread here: http://forum.xda-developers.com/showthread.php?t=1935162
It does have some nice links to.

Related

[Q] How To Compile AOSP/Cm10/or AOKP for Unsupported Devices?

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?

SlimKat / OmniROM for Mi3 Testing

Hey guys, I'm compiling SlimKat for this device right now, and since I don't own the device, I'll need testers...so, who's interested in the fun?
pandasa123 said:
Hey guys, I'm compiling SlimKat for this device right now, and since I don't own the device, I'll need testers...so, who's interested in the fun?
Click to expand...
Click to collapse
I always like the fun....pm me
pandasa123 said:
Hey guys, I'm compiling SlimKat for this device right now, and since I don't own the device, I'll need testers...so, who's interested in the fun?
Click to expand...
Click to collapse
I am also in..let me know when ready for testing.
Kernel!?
How is it possible without xiaomi releasing the kernel source?
sivasagaru said:
How is it possible without xiaomi releasing the kernel source?
Click to expand...
Click to collapse
People have ported cm11. Use their boot.img
....i having such a difficult time with this...there are so many build errors because of the lack of cm kernel source...
pandasa123 said:
....i having such a difficult time with this...there are so many build errors because of the lack of cm kernel source...
Click to expand...
Click to collapse
Cm posts all their kernel source. Slim roms require a custom kernel. I build slim for a few devices and cm kernels seldom work so without the kernel source for the device it may not be an option.
I'm in! haha been using SlimKat on my i9100G so quite some times already
pandasa123 said:
....i having such a difficult time with this...there are so many build errors because of the lack of cm kernel source...
Click to expand...
Click to collapse
download the caf kernel sources (can't remember which tag. 3.5.2.2?), map the kernel source from the device config as usual.
then make bootimage (which will install the headers),
finally, remove the configs for source built kernel, and map the dt image and zImage
the compiling is making it further and further...hopefully it won't break
BUILD FINISHED! http://forum.xda-developers.com/xiaomi-mi-3/orig-development/rom-slimkat-t2846759
I'm pretty sure I can build OmniROM. Anyone interested in that? (High chance of it not working though)
don't worry Just do it
pandasa123 said:
I'm pretty sure I can build OmniROM. Anyone interested in that? (High chance of it not working though)
Click to expand...
Click to collapse
Did I just read Omni Rom ? 200 % up for it !! let it boot or not .. But I'll test for sure
TheDj408 said:
Did I just read Omni Rom ? 200 % up for it !! let it boot or not .. But I'll test for sure
Click to expand...
Click to collapse
Lol I'm trying to get enough money for a small server. My laptop is super full (see SIG). But I want to build omni and 2 other ROMs for the cancro.
I would advise all to read this. Action will be taken in the next few days.
http://forum.xda-developers.com/xiaomi-mi-3/orig-development/attention-devs-t2848736
zelendel said:
I would advise all to read this. Action will be taken in the next few days.
http://forum.xda-developers.com/xiaomi-mi-3/orig-development/attention-devs-t2848736
Click to expand...
Click to collapse
Ok guys, I am petitioning Xiaomi. Help me keep some development alive.
https://www.change.org/petitions/xiaomi-release-mi3-kernel-source
LET'S GO!

[Q] How to build AOSP rom for unsupported new device?

Hi, I have a samsung Galaxy Tab 4 10.1 tablet but it has very small developer community so I couldn't find any AOSP roms suitable with my device. Is it possible to make an AOSP rom work on my tab or is it possible to build rom for my tab? Please help, thanks in advance.
Sent from my SM-T530 using XDA Premium 4 mobile app
mhmtemnacr said:
Hi, I have a samsung Galaxy Tab 4 10.1 tablet but it has very small developer community so I couldn't find any AOSP roms suitable with my device. Is it possible to make an AOSP rom work on my tab or is it possible to build rom for my tab? Please help, thanks in advance.
Sent from my SM-T530 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
If you have knowledge in making a whole new device tree from scratch, then it'll be possible. But you also need to find the right kernel source. For building AOSP from source you need 3 components:
device tree
kernel source
vendor tree
If you have these 3, you can start building.
GeekyDroid said:
If you have knowledge in making a whole new device tree from scratch, then it'll be possible. But you also need to find the right kernel source. For building AOSP from source you need 3 components:
device tree
kernel source
vendor tree
If you have these 3, you can start building.
Click to expand...
Click to collapse
Hi, thanks for reply. I don't know how to obtain those. Is there a noobish-written tutorial or something to help me get started? And, can I find these kernel sources, etc in the http://opensource.samsung.com/ because my device is samsung.
mhmtemnacr said:
Hi, thanks for reply. I don't know how to obtain those. Is there a noobish-written tutorial or something to help me get started? And, can I find these kernel sources, etc in the http://opensource.samsung.com/ because my device is samsung.
Click to expand...
Click to collapse
There is no tutorial for this. But you can take an example: https://github.com/CyanogenMod/android_device_samsung_i9300
This is a device tree for Samsung Galaxy S3 International version. You can get all these from your device itself. For vendor look here: https://github.com/TheMuppets/proprietary_vendor_samsung/tree/cm-11.0/i9300
But vendor is very easy. But I don't think you can make it as for now. I think you should first start building a ROM for a device which has all his dependencies on CM's repo. Start with this tutorial: http://forum.xda-developers.com/nexus-4/general/guide-cm11-how-to-build-cyanogenmod-11-t2515305
Read through this http://forum.xda-developers.com/showthread.php?t=2195858

[Q] AOSP kernel from source?

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?

can someone help port a ROM over.

Since the source tree has been released on deepflex's github it is now posible to port over ubuntu touch!
Can someone port over ubuntu touch?
JakesDen said:
Since the source tree has been released on deepflex's github it is now posible to port over ubuntu touch!
Can someone port over ubuntu touch?
Click to expand...
Click to collapse
Ubuntu touch is not going to be a big priority, no one uses it! More important is the AOSP based ROM's like CM, Omni etc.
If you want Ubuntu touch that bad I would suggest learning how to do this yourself.
Jonny said:
Ubuntu touch is not going to be a big priority, no one uses it! More important is the AOSP based ROM's like CM, Omni etc.
If you want Ubuntu touch that bad I would suggest learning how to do this yourself.
Click to expand...
Click to collapse
I want to use it and have been waiting for the sources to be published just for this!
I just want someone to help guide me through porting it
JakesDen said:
I want to use it and have been waiting for the sources to be published just for this!
I just want someone to help guide me through porting it
Click to expand...
Click to collapse
Search around, I'm sure there are lots of guides for it on XDA, all you have to do is look
Jonny said:
Search around, I'm sure there are lots of guides for it on XDA, all you have to do is look
Click to expand...
Click to collapse
ok

Categories

Resources