ads

samedi 12 septembre 2015

Building CWM for new device



Hello,

I have Huawei MediaPad 7 Youth, rooted. And, any rom or recovery is not released. So i wanted to build it yourself. For start i want to say, im not newbie, im a programmer, but in C++ and building (mainly other sources) am newbie.

So, for first, i dumped a boot.img and recovery.img . dump_image command its not on my device, i tryied install a busybox etc.. but none, so i manually dumped it with dd.

Next, on my Ubuntu i installed all dependecies and synchronized CM10.2 repo. Then i builded otatools (make -j2 otatools) and i taked envsetup. I dont know, but envsetup dont added to path to execs like unpackbootimg etc. so i do that manually (i resynced twice a repo, but i still got this trouble). I extracted needed files from boot.img, and from output of mkvendor.sh i taked a lunch and makerecoveries.sh .

After some tryies of compile (still got some trouble) i ended here and now i dont know what to do. Console output:

Code:


gamiee@gamibuntu:~/Plocha/android$ . build/tools/device/makerecoveries.sh cm_msm8610-eng
cm_msm8610-eng
1 Products
Recovery Version: 6.0.4.6
Trying dependencies-only mode on a non-existing device tree?

============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.3.1
CM_VERSION=10.2-20150912-UNOFFICIAL-msm8610
TARGET_PRODUCT=cm_msm8610
TARGET_BUILD_VARIANT=eng
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=generic
HOST_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-3.19.0-28-generic-x86_64-with-Ubuntu-14.04-trusty
HOST_BUILD_TYPE=release
BUILD_ID=JLS36I
OUT_DIR=/home/gamiee/Plocha/android/out
============================================

============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.3.1
CM_VERSION=10.2-20150912-UNOFFICIAL-msm8610
TARGET_PRODUCT=cm_msm8610
TARGET_BUILD_VARIANT=eng
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=generic
HOST_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-3.19.0-28-generic-x86_64-with-Ubuntu-14.04-trusty
HOST_BUILD_TYPE=release
BUILD_ID=JLS36I
OUT_DIR=/home/gamiee/Plocha/android/out
============================================
PRODUCT_COPY_FILES device/generic/goldfish/data/etc/apns-conf.xml:system/etc/apns-conf.xml ignored.
No private recovery resources for TARGET_DEVICE msm8610
build/core/tasks/kernel.mk:59: ***************************************************************
build/core/tasks/kernel.mk:60: * Using prebuilt kernel binary instead of source              *
build/core/tasks/kernel.mk:61: * THIS IS DEPRECATED, AND WILL BE DISCONTINUED                *
build/core/tasks/kernel.mk:62: * Please configure your device to download the kernel        *
build/core/tasks/kernel.mk:63: * source repository to kernel/huawei/msm8610
build/core/tasks/kernel.mk:64: * See http://wiki.cyanogenmod.org/w/Doc:_integrated_kernel_building
build/core/tasks/kernel.mk:65: * for more information                                        *
build/core/tasks/kernel.mk:66: ***************************************************************
Can't open kernel/huawei/msm8610/arch/arm/configs/: Adresár alebo súbor neexistuje at -e line 1. #Directory or file doesnt exists
Can't open kernel/huawei/msm8610/arch/arm/configs/: Adresár alebo súbor neexistuje at -e line 1.
build/core/tasks/kernel.mk:229: warning: overriding commands for target `/home/gamiee/Plocha/android/out/target/product/msm8610/kernel'
build/core/Makefile:44: warning: ignoring old commands for target `/home/gamiee/Plocha/android/out/target/product/msm8610/kernel'
Install: /home/gamiee/Plocha/android/out/target/product/msm8610/recovery/root/sbin/nandroid-md5.sh
Install: /home/gamiee/Plocha/android/out/target/product/msm8610/recovery/root/sbin/killrecovery.sh
Install: /home/gamiee/Plocha/android/out/target/product/msm8610/recovery/root/sbin/parted
Install: /home/gamiee/Plocha/android/out/target/product/msm8610/recovery/root/sbin/sdparted
Install: /home/gamiee/Plocha/android/out/host/linux-x86/bin/clang-tblgen
Install: /home/gamiee/Plocha/android/out/host/linux-x86/bin/tblgen
acp: unable to remove '/home/gamiee/Plocha/android/out/host/linux-x86/bin/clang-tblgen': No such file or directory
make: *** [/home/gamiee/Plocha/android/out/host/linux-x86/bin/clang-tblgen] Chyba 1 #Error 1
make: *** Čaká sa na nedokončené úlohy.... #Waiting to unfinished task
acp: unable to remove '/home/gamiee/Plocha/android/out/host/linux-x86/bin/tblgen': No such file or directory
make: *** [/home/gamiee/Plocha/android/out/host/linux-x86/bin/tblgen] Chyba 1 #Error 1
build error!


And now i dont know really what to do... I looked google etc, but nothing dont found. So, what to do now? :)

Thankie



Aucun commentaire:

Enregistrer un commentaire