ads

Affichage des articles dont le libellé est compile. Afficher tous les articles
Affichage des articles dont le libellé est compile. Afficher tous les articles

samedi 19 septembre 2015

[help] i want to learn how to compile twrp and cm for my device



I am really want to learn to how to compile twrp and rom for my device. I had search many articles to learn,and i also had compiled twrp for my device but it does not work. Now i have cm12.1 and device source. If someone can teach me, i would very happy and thank you a lot.
Sorry for my bad English.
by the way, my device is nubia z9 mini



vendredi 18 septembre 2015

[Guide] How to Compile Your own ROM's for the Zenfone 2 Z00A/Z008



Well I've been getting a lot of questions on how users can take development into their own hands and start compiling your very own builds of your favorite ROM's. Because of this I have decided to write up a guide that will explain all the steps you need to take to compile a ROM.

NOTE: if your problem is that you cant get your build booting but you already know how to compile ROM's then skip to step 5

Step 1: Install A linux distribution

you will need to be on a linux distribution such as Ubuntu to compile android from source. You can do it on OSX as well but I don't have instructions for that because I haven't done it. So if you aren't on a linux distribution that will be the first thing you need to do. there's thousands of guides online on how to do that so go do that

Step 2: set up the build environment

you will need a lot of packages installed to successfully compile without any errors which ill list here

if you're using ubuntu or another debian based distro then type this in your terminal


Code:


sudo apt-get install bison build-essential curl flex git gnupg gperf libesd0-dev libncurses5-dev libsdl1.2-dev libwxgtk2.8-dev libxml2 libxml2-utils lzop openjdk-6-jdk openjdk-6-jre pngcrush schedtool squashfs-tools xsltproc zip zlib1g-dev g++-multilib gcc-multilib lib32ncurses5-dev lib32readline-gplv2-dev lib32z1-dev openjdk-7-jdk android androidsdk-uiautomatorviewer android-copyright android-src-vendor android-emulator android-tools-adb android-headers android-tools-adbd androidsdk-ddms  android-tools-fastboot androidsdk-hierarchyviewer android-tools-fsutils androidsdk-traceview yasm

you probably dont need all of those installed but its better to have one extra package then one missing package.

now that you have all the packages needed. its time to set up repo so you are able to sync the sources. type this into your terminal


Code:


mkdir -p ~/bin
curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
chmod a+x ~/bin/repo


Step 3: getting the ROM sources
time to play the waiting game! For this part of the guide I will explain how to fetch cyanogenmod's sources.

in your home folder, make a folder called cyanogenmod. Now open the folder and open a terminal inside of it.
inside the terminal type


Code:


repo init -u git://github.com/CyanogenMod/android.git -b cm-12.1

now you might get an error that says something like "Error, tell me who you are!" so you are going to want to type


Code:


git config --global user.email yourEmail@gmail.com

then

Code:


git config --global user.name YourGithubName

you can use fake credentials but i recommend making a git and using your real information.
now run the command once more

Code:


repo init -u git://github.com/CyanogenMod/android.git -b cm-12.1

now it will properly set up the repository. After that type in

Code:


repo sync

and wait for all the sources to download. It will probably take a few hours so I suggest you go do something else and come back later.

If you get any errors while syncing type

Code:


repo sync -j1 -f

Step 4: set up Zenfone specific sources
now that you have cyanogenmods sources downloaded you will need to add zenfones sources.
you can find the zenfone sources here:
https://github.com/CM-zenfone2

for now go into the .repo folder inside your cyanogenmod folder. you may have to enable "show hidden folders" in your file managers settings to see it. inside of this folder create another one called local_manifests . inside this folder create a file called local_manifest.xml .

now open that xml file with a text editor and paste this into it


Code:


<?xml version="1.0" encoding="UTF-8"?>
<manifest>
  <!-- REMOVE AOSP PROJECTS -->
  <remove-project name="platform/hardware/intel/common/libmix" path="hardware/intel/common/libmix" />
  <remove-project name="platform/hardware/intel/common/libstagefrighthw" path="hardware/intel/common/libstagefrighthw" />
  <remove-project name="platform/hardware/intel/common/libva" path="hardware/intel/common/libva" />
  <remove-project name="platform/hardware/intel/common/omx-components" path="hardware/intel/common/omx-components" />
  <remove-project name="platform/hardware/intel/common/utils" path="hardware/intel/common/utils" />
  <remove-project name="platform/hardware/intel/common/wrs_omxil_core" path="hardware/intel/common/wrs_omxil_core" />
  <remove-project name="platform/hardware/intel/img/hwcomposer" path="hardware/intel/img/hwcomposer" />
  <remove-project name="platform/hardware/intel/img/libdrm" path="hardware/intel/img/libdrm" />
  <remove-project name="platform/hardware/intel/img/psb_video" path="hardware/intel/img/psb_video" />

  <!-- ADD CM-ZENFONE2 PROJECTS -->
  <project name="CM-zenfone2/android_hardware_intel_common_libmix" path="hardware/intel/common/libmix" remote="github" />
  <project name="CM-zenfone2/android_hardware_intel_common_libstagefrighthw" path="hardware/intel/common/libstagefrighthw" remote="github" />
  <project name="CM-zenfone2/android_hardware_intel_common_libva" path="hardware/intel/common/libva" remote="github" />
  <project name="CM-zenfone2/android_hardware_intel_common_omx-components" path="hardware/intel/common/omx-components" remote="github" />
  <project name="CM-zenfone2/android_hardware_intel_common_utils" path="hardware/intel/common/utils" remote="github" />
  <project name="CM-zenfone2/android_hardware_intel_common_wrs_omxil_core" path="hardware/intel/common/wrs_omxil_core" remote="github" />
  <project name="CM-zenfone2/android_hardware_intel_img_hwcomposer" path="hardware/intel/img/hwcomposer" remote="github" />
  <project name="CM-zenfone2/android_hardware_intel_img_libdrm" path="hardware/intel/img/libdrm" remote="github" />
  <project name="CM-zenfone2/android_hardware_intel_img_psb_video" path="hardware/intel/img/psb_video" remote="github" />

  <!-- CM-ZENFONE2 DEVICE PROJECTS -->
  <project name="CM-zenfone2/android_device_asus_Z00A" path="device/asus/Z00A" remote="github" />
  <project name="CM-zenfone2/android_device_asus_Z008" path="device/asus/Z008" remote="github" />
    <project name="CM-zenfone2/android_device_asus_mofd-common" path="device/asus/mofd-common" remote="github" />
  <project name="CM-zenfone2/android_kernel_asus_moorefield" path="kernel/asus/moorefield" remote="github" />
  <project name="CM-zenfone2/proprietary_vendor_asus" path="vendor/asus" remote="github" />

</manifest>


now save and close that xml file. go back to your terminal in the cyanogenmod folder and run

Code:


repo sync -j1 --force-sync

this will now pull in the zenfone files you need.

Step 5: adding device specific commits
this is probably the step that most people don't do and therefore get builds that won't boot. You need to add 4 very important commits to get your ROM properly booting.

commit 1
go inside of your external/tinyalsa folder and open a terminal then type in:


Code:


git fetch http://NicholasPace@review.teameos.org/a/external_tinyalsa refs/changes/27/627/1 && git cherry-pick FETCH_HEAD

now close the terminal and go to the folder system/core and open a terminal. type this in:

Code:


git fetch http://NicholasPace@review.teameos.org/a/system_core refs/changes/30/630/1 && git cherry-pick FETCH_HEAD

and

Code:


git fetch http://NicholasPace@review.teameos.org/a/system_core refs/changes/29/629/1 && git cherry-pick FETCH_HEAD

now go into the folder hardware/ril. Open the terminal and type:

Code:


git fetch http://NicholasPace@review.teameos.org/a/hardware_ril refs/changes/28/628/1 && git cherry-pick FETCH_HEAD

these are the 4 commits that those commands are adding for anybody interested:
https://github.com/TeamEOS/system_co...9300ef0f223a30
https://github.com/TeamEOS/system_co...d4889e4ff04369
https://github.com/TeamEOS/hardware_...6833ba385af654
https://github.com/TeamEOS/external_...3d195043307f46



now we have set everything we need properly to build the rom!

Step 6: Start the build
finally, time to start building! open a terminal in the cyanogenmod folder and type

Code:


. build/envsetup.sh

now type

Code:


brunch Z00A

for Z00A or

Code:


brunch Z008

for Z008.

this will also take a while depending on your computers specs (around 4 hours).
When its done you will find the zip in the folder out/target/product/Z00A (or Z008).

you can now put this zip on your device and flash away :)

to update sources and make a new build you can do repo sync and step 5 and 6 again

I hope this guide can help motivate people interested in building to give it a go as well as help grow the community even more then it already is! feel free to post any questions you have here and I will help to the best of my ability. :)



[HELP] i can't compile twrp and need help



i am new to compile twrp for my device--nubia z9 mini. I had face many problems but i can find the solutions . now i met a error that i can't solve and didn'tfind solution on the internet.
this is error:
no such file or directory“/home/hsl/cm12/out/target/product/nx511j/system/bin/linker” needed by “/home/hsl/cm12/out/target/product/nx511j/obj/SHARED_LIBRARIES/libbmlutils_intermediates/teamwin”.
anyone can help me? please......
sorry for bad english



mercredi 16 septembre 2015

Looking for a Kernel Developer to compile a kernel with adb enabled



Hi. I am looking for a kernel Developer to compile a kernel with ADB enabled. Nexus 4 digitizer issues have stopped me from accessing my phone. Thanks in advance.



lundi 14 septembre 2015

Galaxy S4- Compile Kernel From Source, But Wifi Won't Work!



I tried to compile the android kernel from source, my device is E330S, OS is Ubuntu 15.04 x64, version of toolchains is 4.7.
I downloaded the source code of 4.4 from opensource.samsung.com firstly, and follew the instructions of compiling. I got the zImage and packed it into boot.img, flashed it into my phone. All things work well except wifi, the button is unable to be checked, and no configuration file was created in /data/misc/wifi. I change the code to 5.0 and flash the kernel, the device won't boot. Finally i tried to use the code of arter from bitbucket.org/arter97/android_kernel_samsung_msm8974.git, but it won't work either.
The KitKat is the only one that works, i have copied all the *.ko into /system/lib/moduels, but the lsmod shows no modules is installed, .
I am a beginner of compiling the android kernel, is there any tips i missed?



dimanche 30 août 2015

How to compile XposedBridge?



Can someone give me the high level on how ya'll are compiling XposedBridge? I cloned the XpsedBridge repo, but not sure how to get it compiled into the XposedBridgeApi-*.jar that I'll include into my project.

Thanks,
Ryan



Need help to compile stock kernel



Hi All,
I need some help to compile Sony stock kernel for my Xperia ZU on Ubuntu 15.04. I downloaded the latest source from sony developer site:

14.5.A.0.270.tar.bz2

and downloaded Doomlord's pre-built tool chain from:
https://github.com/DooMLoRD/android_...toolchains.git

and exported the path with arm-linux-androideabi-4.7:
export CROSS_COMPILE=/home/vishwas/android/android_prebuilt_toolchains/arm-linux-androideabi-4.7/bin/arm-linux-androideabi-

Compilation started with:
make clean && make mrproper

Then, defconfig for Togari:
make ARCH=arm CROSS_COMPILE=$CROSS_COMPILE rhine_togari_row_defconfig

and then compiled kernel using:
make ARCH=arm CROSS_COMPILE=$CROSS_COMPILE -j4

I get error as:

Code:


MODPOST vmlinux.o
ERROR: modpost: Found 2 section mismatch(es).
To see full details build your kernel with:
'make CONFIG_DEBUG_SECTION_MISMATCH=y'
To build the kernel despite the mismatches, build with:
'make CONFIG_NO_ERROR_ON_MISMATCH=y'
(NOTE: This is not recommended)
/home/vishwas/android/14.5.A.0.270/kernel/scripts/Makefile.modpost:98: recipe for target 'vmlinux.o' failed
make[1]: *** [vmlinux.o] Error 1
Makefile:936: recipe for target 'vmlinux.o' failed
make: *** [vmlinux.o] Error 2


If I compile with "CONFIG_NO_ERROR_ON_MISMATCH=y", then there is no error in compilation:
make ARCH=arm CROSS_COMPILE=$CROSS_COMPILE CONFIG_NO_ERROR_ON_MISMATCH=y -j4

But, I am not sure this is correct or not.

Can anyone please help me on solving issue related to 'vmlinux.o' ?

Thanks



samedi 29 août 2015

Help! Compile CM 12.1



Hi everyone. I've managed to compile CM 12.1 and BlissPop for my P768, but does not work me anything about the kernel (vibration, baseband, brightness...) :( I used my github account for code. ( https://www.github.com/ignacio28 ) . If anyone knows anything, please help me in this. Thanks :)



mercredi 26 août 2015

[Q&A] [Dev][Recovery] TWRP 2.8.7.1 for G928C | first compile !!!



Q&A for [Dev][Recovery] TWRP 2.8.7.1 for G928C | first compile !!!

Some developers prefer that questions remain separate from their main development thread to help keep things organized. Placing your question within this thread will increase its chances of being answered by a member of the community or by the developer.

Before posting, please use the forum search and read through the discussion thread for [Dev][Recovery] TWRP 2.8.7.1 for G928C | first compile !!!. If you can't find an answer, post it here, being sure to give as much information as possible (firmware version, steps to reproduce, logcat if available) so that you can get help.

Thanks for understanding and for helping to keep XDA neat and tidy! :)



mardi 25 août 2015

[Dev][Recovery] TWRP 2.8.7.1 for G928C | first compile !!!



TWRP Recovery Project v2.8.7.1
Galaxy S6 Edge+

Download
https://www.androidfilehost.com/?fid=24052804347801406
Flash via Odin (need enabled OEM unlock)


Changelog
Web, Aug 26: first release - TWRP Recovery Project v2.8.7.1



[Dev] TWRP 2.8.7.1 for N920T - working now | First compile



TWRP Recovery Project v2.8.7.1
Galaxy Note 5 N920T

Download
https://www.androidfilehost.com/?fid=24052804347801345
Flash via Odin (need enabled OEM unlock)


Changelog
Web, Aug 26: first release - TWRP Recovery Project v2.8.7.1

Thank @jthrasher47 @charlieb620 - Tested :good: