[Q] Kernel Comiling - Android Q&A, Help & Troubleshooting

Hello everyone this is my first post ..i am trying to compile a kernel for android and i came across different web pages which confused me i am new to compiling kernel ...i downloaded sdk tools and downloaded source for kernel and when i run make xxx_deconfig i get error no rules to make target ..please help me with step by step guide for compiling kernel and which tools to use thanks

Related

[Q] Modifying a stock ROM/kernel

Hello! I'm not sure am I allowed to post this kind of question in this forum, but I couldn't find any better place.
I would like to modify (edit) my SGS II's ROM/kernel. I've already downloaded source from opensource.samsung.com (GT-I9100_OpenSource_Update2, 2.3.5).
I'm not new to programming but I just don't know how to "edit" that ROM/kernel. I have Visual Studio (I know the basics of C/C++, and I'm good at C#). Kernel is the lowest-level "program" so I guess it's written either in C or C++.
So what I'm wondering is how do I open the kernel or ROM in Visual Studio and am I able to compile it later with VS? (I just saw compiling tutorials and everyone is compiling on Linux (I'll install it if necessary)).
You don't have to write me step-by-step guide, but just help me a bit.
Sorry for my bad English by the way.
Link to download GT-I9100_OpenSource_Update2 from linux shell
If anyone is trying to download the files from linux shell, you need to find the file's "attach_id" which you put in the cmdline below to download what you need.
In this case (attach_id=1584) it's GT-I9100_OpenSource_Update2.zip
Code:
wget --post-data="method=downLoad&attach_id=1584&down_purpose=EETC" https://opensource.samsung.com/reception/reception_main.do?method=downLoad

[DEV] Bada Kernel

Many time after search and code read we finaly find kernel Bada
But of course like Rebellios say's we need also right code from samsung
Ther's all revision 3
Also there's OLK4 revision 4 but need call and explain for what exactly need it then maybe they give a link for the last OLK4 V4
There's all links for LK4a source
HTC DREAM OLK4 complet kernel :
http://ertos.nicta.com.au/downloads/okl4-android-3.0.tar.bz2
Ps : Also pray to some codder's make Exe to AMSS.BIN and APPS_COMPRESSED decompress it !!!
Source Update in Time...
If you need other developers....
If you need other developers to help you decompress those files, try the other forums of this site like the android development kitchens etc coz the "serious" devs are there and dont visit this section of xda very much at all.
They may have the tools or are willing to mod their tools to dissect the files your talking about.
try this forum moderated by developers
http://forum.xda-developers.com/forumdisplay.php?f=613

VM env. for Stock ROM and Mod

Hi,
I'm currently woring on creating a complete VM and a document with instraction of getting from compile to flahsing from begining.
The complete enviroment will be set and ready with the Stock ROM (currently targeting 4.0.2.A.0.58) and the Android OS.
This will allow users to be able to take this VM and start right a away to change the Stock ROM and integrate changes for that from other modes.
will update this thread when it's done. and links for download (unless someone will be faster the me )
18/12 Update:
Just now finish creating an working and compiling enviroment with 2.3.4_r1 of Android
now working on making it to work with the Sony Ericson source code...
Regards,
LaBBa.
Hi,
I need a little help here... i have followed the steps in Google:
http://source.android.com/source/initializing.html
and also the Journal:
http://journal.tianhao.info/2010/12/compile-android-gingerbread-on-ubuntu-10-10/
i have compiled the code and got it up and running and also in emulator with the command line that was written in the Journal and the Android is working..
now i try to understand the Sony Ericson guide:
http://developer.sonyericsson.com/wp/2011/05/06/how-to-build-a-linux-kernel/
I have downloaded the ARM cross-compiler and installed it, was really bad instructions on how to install it. but just need to run: sh ./the_downloaded.bin
and installed it correctly
after installing the ARM cross-compiler successfully done a make to the kernel but only after fixing the symbolic link that from some reason was attach to 0x86 arch and not arm.
the paths where different since i used the default installer path and match the same version that they used: 2010q1
so first done this for the .config :
ARCH=arm CROSS_COMPILE=~/CodeSourcery/Sourcery_G++_Lite/bin/arm-none-linux-gnueabi- make semc_zeus_defconfig
Click to expand...
Click to collapse
then run the make:
ARCH=arm CROSS_COMPILE=~/CodeSourcery/Sourcery_G++_Lite/bin/arm-none-linux-gnueabi- make
Click to expand...
Click to collapse
now i got kernel compiled!
the question is:
i know that with the Android compiling i got 3 files in the /source_android/out/target/product/generic:
1. ramdisk.img
2. system.img
3. userdata.img
do i need to use the ramdisk from the Android for the next steps of SE guide ?
1. Getting a RAM disk and extract it
2. Re-package it with all of the kernel of SE that we just compiled
3. Assembling the boot.img using the mkbootimg
moreover, after i assemble the files i want to make a really clean installation and cleaning all the flash and installing all in a vanilla mod.
what should be the next steps ?
Regards,
LaBBa.
I thought that the community here will help in this small matter so we will have more pepole that could join the efforts of making brtter and cooller roms... I guess I was wrong. All I wanted to do is help the dev community and create the full step by step guide to starting developers in the android world....
Sadly I'm forced to end this thread due to lake of knowledge...
Sent from my R800i using XDA App
labbala said:
I thought that the community here will help in this small matter so we will have more pepole that could join the efforts of making brtter and cooller roms... I guess I was wrong. All I wanted to do is help the dev community and create the full step by step guide to starting developers in the android world....
Sadly I'm forced to end this thread due to lake of knowledge...
Sent from my R800i using XDA App
Click to expand...
Click to collapse
im sorry i would help but i dont know much lol srry no one that knew could or would help
hi,
I hope that you are able to get this working.
i will use it when it is finished
Edit: what have you exactly done?
Maybe i can help
all i wanted to do is to download all the source codes and compile it and then creat the same version (for this case the .58) manually and get to the same images that need to be flahed.
i wanted to create from this a complete tut that others that have allot of knowladge in development could start working without the stragling of setting up an eviroment or all the issues about how to get from compiling to acctuall creating an .img to flash it on your device.
just a simple "out of the box" solution so pepole could get and work right a way without wasting time in assembling the source codes and setting then env.
ok, and where are you?
I mean what have you done for now??
please see the second post.. it's all there..
yes you need that ramdisk for the kernel.
but you need to edit the ramdisk to work with the xperia play.
i can do that, can you upload it??
what i'm going to do now is, i'm going to upload all the VM to the web and write the complete tutrial for all the steps i have done so far and then we could continue. thank you for trying to help!
ok,
if you need some help PM me!

Help needed - boot.img from i9070p

Hello. I want to create my own rom with help of this thread: http://forum.xda-developers.com/showthread.php?t=1801690
I got dsixda's kitchen working properly and system folder from non-branded samsung rom. But the problem is boot.img i spent over 3 hours at finding a way to pull it. I found only to install x64 ubuntu in virtual machine, compile kernel from samsung opensource files and then get boot.img from kernel. Could anybody get boot.img for i9070p or give me good advice how to do it easy way?

[Q] Is it possible to build kernel with cygwin?

Dear devs, is it possible to build kernel like new Amin or Scritch based somehow with cygwin?
Because i tryed yesterday and gives error`s and i am totally new too building and i used this guide http://forum.xda-developers.com/showthread.php?t=1686310
the only part which i dont have in that is the adb pull /proc/config.gz because we dont have that file in our proc folder in the cm10based roms.
And used the make semc_es209ra_defconfig which gave errors about main.o file afterwards i tryed the semc_es209ra_capk_defconfig which turned out the same... What am i doing wrong here. I hope someone like Amin or Scritch can make a guide for the kernels like every step they do that would be realy awsome. I found many differnt ways on google but i am unsure now how to do it now. Because in mind i now we use kernel.sin or zImage and maybe those guide is for .img or something. I hope someone can give a nice detailed guide on this. Because i want to try eventualy to help the community to test new thing or port or something like that.
Greetz..

Categories

Resources