Asus ZENFONE 6 A600CG CyanogenMod Porting - Help - Asus Zenfone 6 Questions & Answers

Hi Devs!
I'm trying to let ZenFone 6 run CyanogenMod, but actually I'm stuck at the beginning!
I made a device tree and a small vendor tree, then I've also imported the kernel (took from Asus website) and i've put it in the cm12.1/kernel/asus/a600cg .
When I try to compile with the command mka it gives me this error:
Code:
find: "dummy": No such file or directory
find: "../../../../../../external/hamcrest/src": No such file or directory
find: "../../../../../../external/junit/src/org": No such file or directory
find: "../../../../../../external/hamcrest/src": No such file or directory
build/core/base_rules.mk:154: *** kernel/asus/a600cg/external/iproute2/ip: MODULE.TARGET.EXECUTABLES.ip already defined by external/iproute2/ip. Stopped.
#### make failed to build some targets (44 seconds) ####
Could you please help me? I would really love to compile it
Thanks!

Problem solved:
Just needed to delete the Android.mk file in kernel/asus/a600cg/external/iproute2/ip

@iRezHero , is that ok ? does sim and sd card working ?

ferhatayhan said:
@iRezHero , is that ok ? does sim and sd card working ?
Click to expand...
Click to collapse
Not yet ferhatayhan, it's still under development, i'll make a topic as i finish and solve all the bugs

Related

[Q] Kernel for AOSP build?

As the topic says. After 3 days of working, I finally built Gingerbread 2.3.7_r1 from sources. Now I got hit by another problem: Where I could get a kernel/source which is compatible with it? I'm stuck in the "Huawei" screen at the moment.
I would love to get my build up and running. Thanks in advance.
Unrealized said:
As the topic says. After 3 days of working, I finally built Gingerbread 2.3.7_r1 from sources. Now I got hit by another problem: Where I could get a kernel/source which is compatible with it? I'm stuck in the "Huawei" screen at the moment.
I would love to get my build up and running. Thanks in advance.
Click to expand...
Click to collapse
Huawei 2.6.35 will do fine. I'd suggest TomGiordano's kernel_huawei on 2.6.35 branch in GitHub.
Sent from my U8800 using Tapatalk 2
Thank you. Should I dump the newer propietary libs from the stock rom as well?
Also, seems like the kernel tree doesn't like me:
Code:
In file included from arch/arm/mach-msm/proc_comm.c:27:
arch/arm/mach-msm/smd_private.h:79:2: error: #error No SMD Package Specified; aborting
make[1]: *** [arch/arm/mach-msm/proc_comm.o] Error 1
make: *** [arch/arm/mach-msm] Error 2
Edit: hmm, now it started to compile with hw7x30_defconfig
Unrealized said:
Thank you. Should I dump the newer propietary libs from the stock rom as well?
Also, seems like the kernel tree doesn't like me:
Code:
In file included from arch/arm/mach-msm/proc_comm.c:27:
arch/arm/mach-msm/smd_private.h:79:2: error: #error No SMD Package Specified; aborting
make[1]: *** [arch/arm/mach-msm/proc_comm.o] Error 1
make: *** [arch/arm/mach-msm] Error 2
Click to expand...
Click to collapse
Stock ROM proprietary libs will do fine.
About the kernel error - did you do make hw7x30_defconfig?
It still seems to hang in the Huawei screen. It does the same with stock boot.img
I'm using this this device tree.
My build process is like this:
Code:
. build/envsetup.sh
lunch huawei_u8800-userdebug
make -j2
make otapackage
java -Xmx512m -jar out/host/linux-x86/framework/signapk.jar build/target/product/security/testkey.x509.pem build/target/product/security/testkey.pk8 out/target/product/u8800/huawei_u8800-ota-eng.unrealized.zip signed.zip
Not sure what's wrong here, with my old Gio it worked fine. Any help would be appreciated.
Unrealized said:
It still seems to hang in the Huawei screen. It does the same with stock boot.img
I'm using this this device tree.
My build process is like this:
Code:
. build/envsetup.sh
lunch huawei_u8800-userdebug
make -j2
make otapackage
java -Xmx512m -jar out/host/linux-x86/framework/signapk.jar build/target/product/security/testkey.x509.pem build/target/product/security/testkey.pk8 out/target/product/u8800/huawei_u8800-ota-eng.unrealized.zip signed.zip
Not sure what's wrong here, with my old Gio it worked fine. Any help would be appreciated.
Click to expand...
Click to collapse
Does ADB work or is it completely stuck?
running adb shell works. I guess it has something to do with the init?
Edit: added dmesg.. Seem to be a lot of problems there. I'd appreciate any help. If I could get my first build to succeed I would be able to work myself then.
Edit2: Also, I think there are problems in the device tree I'm using as I couldn't find a clean one. I'm redownloading the 2.3.7_r1 tree once again, I hope someone could link me the device tree to use.

Firefox OS Porting to Motorola G

I and my friend are trying to port Firefox OS on Motorola G device. Because of our lack of experience in the field, we are stuck. Mozilla's documentation is not that helpful and we don't know at the moment how to continue.
What we did:
- created manifest xml for the device, based on unofficial cyanogenmod for Moto G.
- synced all sources
- added manually prebuilt kernel.
- tried to build everything but it doesn't build, of course, we don't know why.
The error seem to be:
Code:
make: *** No rule to make target `out/target/product/xt1032/obj/SHARED_LIBRARIES/libwpa_client_intermediates/export_includes', needed by `out/target/product/xt1032/obj/SHARED_LIBRARIES/libhardware_legacy_intermediates/import_includes'. Stop.
Welcome to the forums !
coldSense said:
I and my friend are trying to port Firefox OS on Motorola G device. Because of our lack of experience in the field, we are stuck. Mozilla's documentation is not that helpful and we don't know at the moment how to continue.
What we did:
- created manifest xml for the device, based on unofficial cyanogenmod for Moto G.
- synced all sources
- added manually prebuilt kernel.
- tried to build everything but it doesn't build, of course, we don't know why.
The error seem to be:
Code:
make: *** No rule to make target `out/target/product/xt1032/obj/SHARED_LIBRARIES/libwpa_client_intermediates/export_includes', needed by `out/target/product/xt1032/obj/SHARED_LIBRARIES/libhardware_legacy_intermediates/import_includes'. Stop.
Click to expand...
Click to collapse
Now I haven't been on these forums long but I'd like to say congrats on ur first post ! ;0 That error
Code:
make: *** No rule to make target `out/target/product/xt1032/obj/SHARED_LIBRARIES/libwpa_client_intermediates/export_includes', needed by `out/target/product/xt1032/obj/SHARED_LIBRARIES/libhardware_legacy_intermediates/import_includes'. Stop.
means there is no target to build the path. I need more info. What compiler are you using. Or are you just using the command prompt?What's the custom kernel, you could try using CM #2 Unoffical However that'd only work if ur Moto G is currently running android with CWM (to flash the kernel when u build it) Can u link to the mozilla post, I didn't bookmark it and I can be bothered to google it Can u send me what you've done so far pls. Thanks
Or are you just using the command prompt?
Click to expand...
Click to collapse
Yes, I'm using terminal to compile everything. Actually a specialized script for that purpose. Environment versions are:
g++ - 4.6
gcc - 4.6
Actually I'm using this guide .
Yes, I use Clockwork but before that there is building problem. Anyway, the link for porting is this.
The kernel I got is from here.
Admittedly, I know jack **** about android development, but I was under the impression that Firefox OS was based on an ICS kernel? I don't think the CM11 kernel works.
coldSense said:
Yes, I'm using terminal to compile everything. Actually a specialized script for that purpose. Environment versions are:
g++ - 4.6
gcc - 4.6
Actually I'm using this guide .
Yes, I use Clockwork but before that there is building problem. Anyway, the link for porting is this.
The kernel I got is from here.
Click to expand...
Click to collapse
Never seen that error before. Know wat it means tho. Have u tried complieing with Xcode (mac) or another 3rd part app ?
Apph3x said:
Never seen that error before. Know wat it means tho. Have u tried complieing with Xcode (mac) or another 3rd part app ?
Click to expand...
Click to collapse
No. I don't have and don't use mac computers, at least for now. I did this in Linux. It seems that it just doesn't read kernel/ directory or just ignores it.
Yeah
coldSense said:
No. I don't have and don't use mac computers, at least for now. I did this in Linux. It seems that it just doesn't read kernel/ directory or just ignores it.
Click to expand...
Click to collapse
It's like its invisible....
I solved (apparently) that problem by modifying variable TARGET_KERNEL_SOURCE (device/motorola/msm8226-common/BoardConfigCommon.mk) to be absolute path but now I have another error
Code:
make: *** No rule to make target `out/host/linux-x86/bin/acp', needed by `out/debug/host/linux-x86/bin/validatekeymaps'. Stop.
@coldSense
Try this way please
Code:
rm -rf out
rm -rf objdir-gecko
./build.sh gecko
then run
Code:
./build.sh gaia
and copy file from <build_path>/gaia/profile/webapps to <build_path>/out/project/<device_name>/system/b2g/webapps
Then replace all file from out/target/<product>/system to /system of AOSP ROM
then edit ramdisk follow https://developer.mozilla.org/en-US/Firefox_OS/Porting
and flash boot.img and /system you were edit to your Motolola G
Try this way please
Any luck with this? I might try myself, but curious if you can update.
Hi everyone !
I'm currently tryaing to build Firefox OS on own device.
I have this error :
Code:
$ lunch
You're building on Linux
Lunch menu... pick a combo:
1. aosp_arm-eng
2. aosp_x86-eng
3. aosp_mips-eng
4. vbox_x86-eng
5. cm_falcon-userdebug
6. mini_armv7a_neon-userdebug
Which would you like? [aosp_arm-eng] full_falcon
build/core/product_config.mk:222: *** Can not locate config makefile for product "falcon". Arrêt.
** Don't have a product spec for: 'full_falcon'
** Do you have the right repo manifest?
Could someone help me ?
Thanks a lot !
feherneoh said:
try full_falcon instead
Click to expand...
Click to collapse
Code:
$ lunch
You're building on Linux
Lunch menu... pick a combo:
1. aosp_arm-eng
2. aosp_x86-eng
3. aosp_mips-eng
4. vbox_x86-eng
5. cm_falcon-userdebug
6. mini_armv7a_neon-userdebug
Which would you like? [aosp_arm-eng] full_falcon
Invalid lunch combo: full_falcon
OR
Code:
$ ./build.sh full_falcon
including device/motorola/falcon/vendorsetup.sh
including device/generic/armv7-a-neon/vendorsetup.sh
build/core/product_config.mk:222: *** Can not locate config makefile for product "full_flo". Arrêt.
** Don't have a product spec for: 'full_flo'
** Do you have the right repo manifest?
> Build failed! <
Build with |./build.sh -j1| for better messages
If all else fails, use |rm -rf objdir-gecko| to clobber gecko and |rm -rf out| to clobber everything else.
A modification in device/motorola/falcon/vendorsetup.sh maybe ?
UPDATE :
Modifying vendorsetup.sh like this
add_lunch_combo full_falcon-eng
Can somebody explain me how to use a prebuilt kernel to build that please ?
Thank You
I have this error ... (in french)
Code:
No private recovery resources for TARGET_DEVICE falcon
make: *** Pas de règle pour fabriquer la cible « out/target/product/falcon/kernel », nécessaire pour « prebuilt ». Arrêt.
make: *** Attente des tâches non terminées....
h2o64 said:
Can somebody explain me how to use a prebuilt kernel to build that please ?
Thank You
I have this error ... (in french)
Code:
No private recovery resources for TARGET_DEVICE falcon
make: *** Pas de règle pour fabriquer la cible « out/target/product/falcon/kernel », nécessaire pour « prebuilt ». Arrêt.
make: *** Attente des tâches non terminées....
Click to expand...
Click to collapse
You can try to create the folder falcon-kernel inside device/motorola/ and put into it your kernel image.
In device/motorola/(your model) create the file AndroidBoard.mk and put inside:
ifeq ($(TARGET_PREBUILT_KERNEL),)
TARGET_PREBUILT_KERNEL := device/motorola/falcon-kernel/kernel
endif
Than try to rebuild.

Help needed from rom builders

Hey, I'm learning how to build from aosp myself, but I'm doing something (or many things) wrong. I had already downloaded the hole source and I'm getting trouble when "make angler_defconfig". Here's what I've got:
Starting build with ninja
ninja: Entering directory `.'
ninja: error: unknown target 'angler_defconfig'
build/core/ninja.mk:148: recipe for target 'ninja_wrapper' failed
make: *** [ninja_wrapper] Error 1
#### make failed to build some targets (54 seconds) ####
[email protected]:~/WORKSPACE$
Could you please help me solve the problem? Maybe I'm using the wrong toolchain (arm instead of aarch64)? Or maybe the kernel that I could not clone the angler kernel .git since I could not find it. I already tried cloning many kernels in different directories, but could not solve it (will they conflict?). I will attach my workdir.
Your help woud be really appreciated.
You try export USE_NINJA=false ?
x714x said:
You try export USE_NINJA=false ?
Click to expand...
Click to collapse
Thanks
But now I got another error:
hey, seems like I didn't set up the kernel environment correctly to arm64 toolchain, could you help me?
Edit: the cloned is aarch64-linux-android-4.9, that I could not set up. Maybe use sabermod?
Error persists
I did set up sabermod, tried to set both franco and device tree kernel souce and did export ARCH=arm64, but error persists...
:/
Anyone?
Enviado de meu Nexus 6P usando Tapatalk

Android Native Build Issue error while building apk

Hello I Imorted a Github source code of Telegram. But when I am trying to build the apk then I got thwo type of error-
First is - External Native Build Issues which contain below details-
Build command failed.
Error while executing process C:\Users\The\AppData\Local\Android\Sdk\ndk-bundle\ndk-build.cmd with arguments {NDK_PROJECT_PATH=null APP_BUILD_SCRIPT=C:\Users\The\Desktop\ProjectXYZ\Appcode1\TMessagesProj\jni\Android.mk NDK_APPLICATION_MK=C:\Users\The\Desktop\ProjectXYZ\Appcode1\TMessagesProj\jni\Application.mk APP_ABI=armeabi-v7a NDK_ALL_ABIS=armeabi-v7a NDK_DEBUG=0 APP_PLATFORM=android-23 NDK_OUT=C:/Users/The/Desktop/ProjectXYZ/Appcode1/TMessagesProj/build/intermediates/ndkBuild/armv7_SDK23/release/obj NDK_LIBS_OUT=C:\Users\The\Desktop\ProjectXYZ\Appcode1\TMessagesProj\build\intermediates\ndkBuild\armv7_SDK23\release\lib NDK_APPLICATION_MK:=jni/Application.mk APP_PLATFORM:=android-14 APP_SHORT_COMMANDS=false LOCAL_SHORT_COMMANDS=false -B -n}
Android NDK: ERROR:C:\Users\The\Desktop\ProjectXYZ\Appcode1\TMessagesProj\jni\Android.mk:WebRtcAec: LOCAL_SRC_FILES points to a missing file
Android NDK: Check that C:/Users/The/Desktop/ProjectXYZ/Appcode1/TMessagesProj/jni/./libtgvoip/external/libWebRtcAec_android_armeabi-v7a.a exists or that its path is correct
process_begin: CreateProcess(NULL, "", ...) failed.
Click to expand...
Click to collapse
Second error pointed to toward file- <b>C:\Users\The\AppData\Local\Android\sdk\ndk-bundle\build\core\prebuilt-library.mk</b> which contains this -
Error44, 0) *** Android NDK: Aborting. Stop.
Open File
Click to expand...
Click to collapse
I am using latest android studio and source can be found from here- GitHub/DrKLO/Telegram

Building stock kernel for Huawei Y5II CUN-L01

Hello guys, first of all thanks for all the hard work you do for us noobs
So to begin, i am trying to build a simple kernel without any modifications (for now) using source code provided by Huawei on their official website (You will need to select Y5II(CUN-L01) to get something downloadable).
consumer*huawei*com/en/support/phones/y5ii/
(New user external url block)
DOWNLOADS
Y5II Open Source(CUN-LXX,Android5.1,kernel,en) | 2016-04-14 | 140.76 MB
Click to expand...
Click to collapse
I've tried at least 5 different toolchains, I've followed many tutorials for building kernels including the mediatek specific guides but without luck. I would be grateful if someone could point me in the right direction and tell me if I am the one doing something wrong or is the source code broken ?
From many tutorials i've followed i've come to some usual steps i do:
1.
export ARCH=arm
export SUBARCH=arm
export CROSS_COMPILE=/home/mita/toolchain/bin/arm-eabi-
2.
I create a .config using predefined config
make hq6735_35u_b1n_l1_defconfig
3.
I try to do a make clean - i get an error
4.
I try to do a make mrproper - also an error
5.
I try just make and make -j4 - also errors
I can post the errors i am receiving, i have experience with android application development but i can't figure out a way to track down errors like i did in Eclipse and Android Studio.
CLEAN .
CLEAN arch/arm/kernel
"CONFIG_TRUSTONIC_TEE_SUPPORT = "
scripts/Makefile.clean:17: /home/mita/Kernel_Development/kernel-3.10/drivers/misc/mediatek/cpu_stress/Makefile: No such file or directory
make[4]: *** No rule to make target '/home/mita/Kernel_Development/kernel-3.10/drivers/misc/mediatek/cpu_stress/Makefile'. Stop.
scripts/Makefile.clean:94: recipe for target 'drivers/misc/mediatek/cpu_stress' failed
make[3]: *** [drivers/misc/mediatek/cpu_stress] Error 2
scripts/Makefile.clean:94: recipe for target 'drivers/misc/mediatek' failed
make[2]: *** [drivers/misc/mediatek] Error 2
scripts/Makefile.clean:94: recipe for target 'drivers/misc' failed
make[1]: *** [drivers/misc] Error 2
Makefile:1040: recipe for target '_clean_drivers' failed
make: *** [_clean_drivers] Error 2
Click to expand...
Click to collapse
Edit 1:
I forgot to mention i tried building on multiple OS’s: Ubuntu 32bit and 64bit, Lubuntu 32bit and 64bit, Kali Linux 64bit, and even on Raspberry Pi (i know it’s low spec but i had to try building on arm device just to rule it out) - Raspbian Stretch.
Thanks in advance for all the help
Bump
Before bumping i’ve read the rules “Once every 24h bumping”
I just not sure if there is a button to bump or is post like this required, sorry in advance if there is a bump button.
Once again a bump...
I would really be grateful if someone could tell me if source is broken or not so i can know my next steps.

Categories

Resources