Compiling from the Sourcecode - myTouch 3G, Magic Android Development

Hi all, I've been googling around but didn't find any useful information, so I'm asking just in case. Is there any guide to compile the full Android sources (kernel+userspace) for the Sapphire?
I found information for the Dream, and I guess it will be similar, but android's kernel source doesn't even have the sapphire files (though I have a copy elsewhere), but I don't know which libraries I might need to add by myself to the destination images, or something else I need to have in consideration...
Thanks in advance!

Related

Compiling Android + Kernel from Source.

Hi there,
Now, I understand that there's a thread or two and a few web pages directed at compiling Android and its kernel from source.
However, the thread in question is months old, and didn't fully explain the process.
As for the web pages, they are mostly outdated and don't include enough information, not to mention desire specific instructions.
I think that, properly explained, building Android shouldn't be daunting, and everyone should be able to attempt it, if they wanted to.
So, I hope to compose a comprehensive guide on how to do just that.
The problem is that I myself have not been able to put enough instructions together to be able to complete a build. And there is no point digging up old threads.
So, If anyone who knows the ropes (that is, compiling android and a kernel from source) would be willing to lead the way, I'd happily turn it into an easy to understand guide.
Josh.
fllash said:
Hi there,
Now, I understand that there's a thread or two and a few web pages directed at compiling Android and its kernel from source.
However, the thread in question is months old, and didn't fully explain the process.
As for the web pages, they are mostly outdated and don't include enough information, not to mention desire specific instructions.
I think that, properly explained, building Android shouldn't be daunting, and everyone should be able to attempt it, if they wanted to.
So, I hope to compose a comprehensive guide on how to do just that.
The problem is that I myself have not been able to put enough instructions together to be able to complete a build. And there is no point digging up old threads.
So, If anyone who knows the ropes (that is, compiling android and a kernel from source) would be willing to lead the way, I'd happily turn it into an easy to understand guide.
Josh.
Click to expand...
Click to collapse
I followed this guide here and successfully compiled a modified HTC Kernel and I had very little Linux and Android experience.
Obviously instead of cloning the Cyanogen git, you just use the gits you wish to compile
Mekrel said:
I followed this guide here and successfully compiled a modified HTC Kernel and I had very little Linux and Android experience.
Obviously instead of cloning the Cyanogen git, you just use the gits you wish to compile
Click to expand...
Click to collapse
Thanks for the link
Though i don't fully understand the whole 'git' thing. Where do i find them? And how to i know which ones are the ones i want to use?
Josh
EDIT: Also, how do you 'edit' the kernel (i imagine it is somewhat like make menuconfig?). Also:
- Are these sense kernels?
- How do you add modules like OC and UV?
fllash said:
Thanks for the link
Though i don't fully understand the whole 'git' thing. Where do i find them? And how to i know which ones are the ones i want to use?
Josh
EDIT: Also, how do you 'edit' the kernel (i imagine it is somewhat like make menuconfig?). Also:
- Are these sense kernels?
- How do you add modules like OC and UV?
Click to expand...
Click to collapse
A git is a repository for source code, developers upload their source code there and can commit changes. The commit can allow descriptions of what was changed and also details the files changed.
The git system allows other people to add to the source if they have permission, or allows others to read the changes and download the source code.
Git links are usually posted by people who release software, as Android is GPL licensed so people have to release their source code if they're distributing their work.
Editing the kernel, take a look into the git and the commits and it will show you which files were changed and how exactly they were changed. That will give you the best understanding.
UV/OC is done by changing the acpu table in the architectures files and changing the minimum/maximum voltage figures in the board_bravo.c file.
The Cyanogen kernels are not Sense kernels no, it's a modified Google Kernel.
Thanks for the explanation. I followed the guide and built the rom, and it works (always a plus )
Now, the next thing is the kernel. How do I build a kernel with the CM tweaks integrated? I understand that all i would be doing is rebuilding the same one that is already installed, but im doing it to learn.
So, if i synced the GIT, does that include the CyanogenMOD kernel source? If it does, where is it and how do i rebuild it. If not, where do i find it?
Thanks,
Josh.

Dont know where to start

Hi every one I dont know where to start i want to make my own rom from source,build it,modify it etc.But i dont know where to start.I know how to build rom from source(learned it from the tutorial on source.android) but i dont know what do those codes mean.i searched on google but cant find an easy tutorial.If i build rom from source how do i make it work on my phone.How do i FIX bugs on my roms,modify it Help please
Check out the chef central section under android. There are a lot of great people working on making development accessible.
For a pure AOSP ROM you are going to have a bit more work, but be rewarded in the end. There is also cyanogenmod and other custom distributions you can build from source and modify.
If you are familiar with C and Java programming you can dig into the actual development more by writing apps or changing source code. If you don't you may want to start on that road. Other wise you will be basically cutting and pasting from everyone else, which doesn't get you any credit.
Themes are also a good place to start. There are lots of good guides in the theme section and people are willing to help if you ask nicely and appropriately.
I have done a bit of this foot work and come to the conclusion, I need to learn programming then come back to source. It is overwhelming to take on an entire operating system in a foreign language, especially when that language has to be perfect to function!
Good luck in your endeavors. Feel free to hit me up for the little knowledge I have!
Sent from my PC36100 using xda premium
But! where to learn
First i want to learn the basics of Rom
are you familiar with Java, C and C++? These are going to be very useful in understanding the "codes" as that is what they are written in. You are also going to have to build AOSP specific for your device, which will require adding your device to the device tree and extracting the necessary drivers and files that are specific to your device. Cyanogenmod has many devices already added to their github and you would simply clone the folder for your device, then build AOSP source and issue make using the device specific folder.
THIS is a helpful tool, and yes it will compile pure AOSP as well.
THIS is also a very helpful tutorial, and you can modify instructions to work for Gingerbread.
If you just want to learn to build and modify the source start with Cyanogenmod build from their source first. You can also build the kernel if you choose but that is a bit more complicated. After you have both of those building without errors then start making changes that you want to see.
The CM Wiki has some good info http://wiki.cyanogenmod.com/wiki/Building_from_source
http://wiki.cyanogenmod.com/wiki/Building_Kernel_from_source

[Android][Kerel][Cross-Compile] Compiling no-"kernel/common" source-code

Greetings Everyone.
I've searched this forum, but I didn't found any post related to this theme. My aim is to compile non "kernel/common" android's source code, in order to replace the applications inside the Android device (such as SG sIII). I've seen that "kernel/common" will wuild a Kernel Image but, by the way, I don't think that this code (ie. the one you could find in "frameworks/base/core", "dalvik", "bionic") could be put inside my image. My question is: how to compile this source code? In particular, I've seen that there is an Anrdroid.mk: should I use ndk-build? Or better, Is there a way to associate the build image generated with this ulterior build?
Thanks in advance.

[Q][EASY $30] Need to compile Android kernel - Help wanted

Hey guys,
After two weeks of research and trying myself, I have decided I need someone to help this linux noobie out.
What I am looking for is to change 1 value which is in 1 file in the kernel source.
I've found which file it is. The problem is that with all the tutorials I've read and kernels I tried to compile,
they don't seem to be working with the source code I need to compile.
Details:
Source code I need to compile is for Samsung Tablet 2 10.1 - GT-P5110
Source code can be found @ samsung's open source site (can't post link here ) ... search for "GT-P5110_ICS_Opensource.zip"
Value I need to change is in the company layer of kernel.
I have been able to compile this kernel and get a zImage and some modules.
But I fear this isn't enough, I think I need a system.img?!
In any case, is there anyone who can help me out?
Do I need something else, patch/boot.img? Maybe I'm overlooking another easy solution?
I'll give you $30 on your Paypal account, same day!!
***Please note that $30 is only for the first working solution/person who can help, not for every solution :angel:***

[Q] Could someone explain me how to compile this?

Hi, i'm sort of starting in Android Developement and I found a proof of concept that looked interesting because it might exploit a vulnerability that's present on my future application. I'd like to build it but I can't manage to... I have joined the source code that you can get from github as an attached file (and zipped it)
I hope somebody will be able to help me and explain how to do it,
Thanks,

Categories

Resources