[Q] Building ROM from downloaded Source - Android Q&A, Help & Troubleshooting

Hey,
I have downloaded the source code for my device - Lenovo S6000-H from the lenovo website but after reading many guides cant figure out how to compile it as all the rest use git to get the source.
I also dont think I need to change any enviromental variables as its the source for my model.
Using ubuntu 12.04.3 with JDK 6u35 and have the latest Android JDK/NDK
I have downloaded and install all needed programs and set up all my paths in ~/.bashrc
There isnt a single make file I can use to compile the whole system or does it need to be done in individual parts?
Couldnt find a lunchrc file either so unsure on how to compile it to get a flashable rom..
Any help appreciated

chuckie987 said:
Hey,
I have downloaded the source code for my device - Lenovo S6000-H from the lenovo website but after reading many guides cant figure out how to compile it as all the rest use git to get the source.
I also dont think I need to change any enviromental variables as its the source for my model.
Using ubuntu 12.04.3 with JDK 6u35 and have the latest Android JDK/NDK
I have downloaded and install all needed programs and set up all my paths in ~/.bashrc
There isnt a single make file I can use to compile the whole system or does it need to be done in individual parts?
Couldnt find a lunchrc file either so unsure on how to compile it to get a flashable rom..
Any help appreciated
Click to expand...
Click to collapse
See if these threads helps:
[Tutorial] How to compile a kernel
[Q] Build Kernel MT6577 - Can't boot after build

Thanks they did help but I dont think the source code they provided is complete as getting File not found errors,
In file included from mediatek/platform/mt6589/kernel/core/mt_spm_idle.c:19:0:
../mediatek/platform/mt6589/kernel/core/include/mach/env.h:3:30: fatal error: partition_define.h: No such file or directory
mediatek/platform/mt6589/kernel/core/camera_isp.c:40:31: fatal error: ../smi/smi_common.h: No such file or directory
#include "../smi/smi_common.h"

chuckie987 said:
Thanks they did help but I dont think the source code they provided is complete as getting File not found errors,
In file included from mediatek/platform/mt6589/kernel/core/mt_spm_idle.c:19:0:
../mediatek/platform/mt6589/kernel/core/include/mach/env.h:3:30: fatal error: partition_define.h: No such file or directory
mediatek/platform/mt6589/kernel/core/camera_isp.c:40:31: fatal error: ../smi/smi_common.h: No such file or directory
#include "../smi/smi_common.h"
Click to expand...
Click to collapse
You must try others sources.
I have the same problem as you. I'm able to compile various MT6577 sources but none works on my device.
Good luck and happy compiling. :fingers-crossed:

Related

[Q] Building from source (I have the files already)

I already have the source file for my phone (Samsung Conquer 4g) from http://opensource.samsung.com/ but I want to know how to build it. I want to get some things straight first. When I unzipped it I get two other zips, one named platform and the other named kernel. The file system would be the one named platform correct? After that I am wondering how I can build a flashable, bootable rom. I am on ubuntu 12.04. I am not trying to port, I am trying to update than mod it with root and etc. Coding would be useful. Thanks.
itzdarockz said:
I already have the source file for my phone (Samsung Conquer 4g) from http://opensource.samsung.com/ but I want to know how to build it. I want to get some things straight first. When I unzipped it I get two other zips, one named platform and the other named kernel. The file system would be the one named platform correct? After that I am wondering how I can build a flashable, bootable rom. I am on ubuntu 12.04. I am not trying to port, I am trying to update than mod it with root and etc. Coding would be useful. Thanks.
Click to expand...
Click to collapse
Tutorial in my signature. You downloaded kernel source, not device repo source. Platform just contains files that have been modified from the android source to build the kernel for your device.
私のEVO 3Dから送信される。

[Q] aspiring developer

So i've compiled my first build from source (NS4G) and have a few questions.
1. after its completed compilation what is the directory/path that i can find the files i need. Ive uploaded a screenshot of the path i think it is however it doesnt contain a system.img file why is that and do i need it?
2.Once i have the correct files how to i place them for use in the emulator?
thank you for any help.

[Help]Problems getting Proprietary Files/Binary/Blobs

Hello, my device is a Samsung Galaxy Music and I've been trying to make a device tree and needed to get the proprietary files. Using ADB in windows, I wanted to execute the extract-files.sh in my stock rom and if I'm correct it should be inside /vendor/samsung/ivoryss in my case, however, the vendor folder exists but inside there are only two files: a folder called pittpatt and a file named gfx.fw . Also used a command to search files and searched for extract-files.sh however it wasn't there. Do I'm doing something wrong? Should I do it from a linux OS like Ubuntu? Also I downloaded the source from the Samsung Open Source Release Center. Are there the proprietary files?
My phone is rooted and it has USB debugging activated.
Edit: Also I tried extracting boot.img and its files however it has exactly the same files of recovery.img so I'm completely lost...
Edit2: Oh I'm sorry, I should had post this on Android Q&A, Help & Troubleshooting, is there a way to move it without reposting it?

Need Some Help With a File

I downloaded a source file and compiled it with NDK in Linux. Upon running it it gives me the error 'Bus error'. Does anyone know how to fix this. Any help would be appreciated. The files in question are here: https://github.com/betalphafai/CVE-2015-6640.

How do I extract blobs from cm14.1 without connecting my device?

Hi,
I'm working on my first build. I am working on a remote server and I cannot plug my device to the server to extract proprietary blobs. I did a little reading which recommended I download and extract the CM14.1 ROM however when I "$ ./extract-files.sh /home/Downloads/lineage" it gives me a whole bunch of "cannot stat" "No such file or directory"
I search for the files where I extracted the rom and those files aren't there.
Any ideas?
pt80chip said:
Hi,
I'm working on my first build. I am working on a remote server and I cannot plug my device to the server to extract proprietary blobs. I did a little reading which recommended I download and extract the CM14.1 ROM however when I "$ ./extract-files.sh /home/Downloads/lineage" it gives me a whole bunch of "cannot stat" "No such file or directory"
I search for the files where I extracted the rom and those files aren't there.
Any ideas?
Click to expand...
Click to collapse
Search here for your espicific device and add it to your local_manifests
https://github.com/TheMuppets
FSadino said:
Search here for your espicific device and add it to your local_manifests
https://github.com/TheMuppets
Click to expand...
Click to collapse
Thank you, that worked for me.

Categories

Resources