Showing posts with label compile. Show all posts
Showing posts with label compile. Show all posts

Friday, 22 July 2016

How can I compile the Kernel of the Meizu Pro 5?



Hi,

I have a Meizu Pro 5 Ubuntu Edition, and I try to Compile the Meizu Pro 5 Kernel from here: github.com/meizuosc/m576 using the Compiler from here: android.googlesource.com/platform/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9

I compiled the Kernel using thr following commands:

Code:


make ARCH=arm64 CROSS_COMPILE=aarch64-linux-android- pro5_defconfig
make ARCH=arm64 CROSS_COMPILE=aarch64-linux-android-


It did compile, and I got a arch/arm64/boot/Image

Then, I tried to replace the current kernel on my phone with the new one. I copied the partition bootimg from my Phone using dd, extracted the files zImage, bootimg.cfg and initrd.img using the command "abootimg -x bootimg.img", removed the line "bootsize" from the bootimg.cfg, and created, flashed and started a new bootimg.img using the following commands:

Code:


abootimg --create bootimg.img -f bootimg.cfg -k zImage -r initrd.img
fastboot flash recovery bootimg.img
fastboot oem reboot recovery


However, the Phone just froze on the Meizu splash screen. Am I doing something wrong?

PS: If I recreate the bootimg.img using the original Kernel, the Phone starts normally.



Tuesday, 19 July 2016

Compile Samsung Open Source



I am trying to compile the Samsung Open Source file located here: http://opensource.samsung.com/recept...rchValue=g900a. The one I am looking to compile is the OF2 file. However, I do not know how to build the platform file. Does anyone know how to do it or could offer some help?



[HELP] How to compile Android stock ROM from source code?



Hello guys, I updated my phone to 5.0.2 and now I need to downgrade back to 4.4.4 urgently. I have downloaded source code of ROM exactly for model at Lenovo support site, however, I don't know how to compile it so it will be flashable from internal memory. I'm using Ubuntu 14.04 LTS.
Please help!



Monday, 11 July 2016

How to I can compile kernel 3.10.xx for mt6582 ?



I'm a mt6582 phone, specifically the Avvio 795.

I put this here because my phone does not have an assigned subforum, do not know or God.:fingers-crossed:

what happens is that this brand does not support your phone with updates, as most of Chinese phones :(, and my intention is to give life back to my cell, with a new kernel and a new version of Android.

What I need is to tell me what I need for this (kernel stock, programs, a brain :p. Etc ...) and obviously as I get these things, because by that mark, does not share the "source code" of your devices then I need to know if the boot.img can be done or not. Or at least as I can get required for this mission.

Thanks... bros... :D



Monday, 4 July 2016

[FIXED] [Solution] Kernel Won't Compile - Makefile609 Error !!



Hello guys while compiling kernel for OpT (MM), I am getting this error.. how to solve this?


Code:


rohan@rohantech:~/android/kernel/oneplus2$ make msm8994-OnePlus2_defconfig
  HOSTCC  scripts/basic/fixdep
  HOSTCC  scripts/kconfig/conf.o
  HOSTCC  scripts/kconfig/zconf.tab.o
In file included from scripts/kconfig/zconf.tab.c:2503:0:
scripts/kconfig/menu.c: In function ‘get_symbol_str’:
scripts/kconfig/menu.c:567:18: warning: ‘jump’ may be used uninitialized in this function [-Wmaybe-uninitialized]
    jump->offset = r->len - 1;
                  ^
scripts/kconfig/menu.c:528:19: note: ‘jump’ was declared here
  struct jump_key *jump;
                  ^
  HOSTLD  scripts/kconfig/conf
arch/arm64/configs/msm8994-OnePlus2_defconfig:685:warning: unexpected data
warning: (PCI_MSM && AMD_IOMMU) selects PCI_MSI which has unmet direct dependencies (PCI && ARCH_SUPPORTS_MSI)
warning: (SND_SOC_APQ8074 && SND_SOC_MSM8994) selects SND_SOC_MSM_HDMI_CODEC_RX which has unmet direct dependencies (SOUND && !M68K && !UML && SND && SND_SOC && FB_MSM_MDSS_HDMI_PANEL && (SND_SOC_MSM8974 || SND_SOC_APQ8084 || SND_SOC_MSM8994))
warning: (ARCH_MSM) selects DEVFREQ_GOV_MSM_BW_HWMON which has unmet direct dependencies (PM_DEVFREQ && (ARCH_MSM_KRAIT || ARCH_MSM_BIMC_BWMON))
warning: (PCI_MSM && AMD_IOMMU) selects PCI_MSI which has unmet direct dependencies (PCI && ARCH_SUPPORTS_MSI)
warning: (SND_SOC_APQ8074 && SND_SOC_MSM8994) selects SND_SOC_MSM_HDMI_CODEC_RX which has unmet direct dependencies (SOUND && !M68K && !UML && SND && SND_SOC && FB_MSM_MDSS_HDMI_PANEL && (SND_SOC_MSM8974 || SND_SOC_APQ8084 || SND_SOC_MSM8994))
warning: (ARCH_MSM) selects DEVFREQ_GOV_MSM_BW_HWMON which has unmet direct dependencies (PM_DEVFREQ && (ARCH_MSM_KRAIT || ARCH_MSM_BIMC_BWMON))
#
# configuration written to .config
#
rohan@rohantech:~/android/kernel/oneplus2$ make -j4
Makefile:609: Cannot use CONFIG_CC_STACKPROTECTOR_REGULAR: -fstack-protector not supported by compiler
Makefile:800: *** multiple target patterns.  Stop.



please help this noob ;_; I am using this kernel source : https://github.com/OnePlusOSS/androi.../oneplus/6.0.1 and wanna build a kernel for ParanoidAndroid ROM.. if it's wrong one then pls do guide me the right kernel.. :)


EDIT: Fixed with this command :
export SUBARCH=arm64
export CROSS_COMPILE=/home/rohan/android/kernel/toolchain1/bin/aarch64-linux-android-



Sunday, 3 July 2016

Error compile TW SystemUI



Hey everyone !

Every time I try to compile a 5.0.1 TW SystemUI I've got this error : "[Fatal Error] AndroidManifest.xml:1:1: Content is not allowed in prolog"
With all other SystemUI it's fine.. Anyone know how to fix this ?



Saturday, 2 July 2016

[req]to compile cwm or twrp to micromax knight2(e471)



Can anyone compile twrp for me(knight 2 device) .I can provide stock files.
DEVICE:MICROMAX KNIGHT2
PROCESSR:QUALCOMM SNAPDRAGON 615
DEVICE UNROOTEED