Getting an error when I try to do a CM build - Android Software Development

Hi, I'm trying to port over CM to the Dell Streak 7
I got the source. did a . build/envsetup.sh
then lunch
then I selected cyanogen_haromny-eng
let it do it's thing then did a make
I got this error: any idea on how to fix it?
1.
Docs droiddoc: out/target/common/docs/doc-comment-check
2.
htmlDir not a directory: out/target/common/docs/gen
3.
DroidDoc took 392 sec. to write docs to out/target/common/docs/doc-comment-check
4.
frameworks/base/core/java/android/content/Context.java:1169: error 1: Unresolved link/see tag "android.net.wimax.WimaxManager WimaxManager" in android.content.Context
5.
frameworks/base/core/java/android/content/Context.java:1477: error 1: Unresolved link/see tag "android.net.wimax.WimaxManager" in android.content.Context
6.
make: *** [out/target/common/docs/doc-comment-check-timestamp] Error 45
http://pastebin.com/ZV1u80Di
when the build first started making I also got this:
1.
build/core/base_rules.mk:479: warning: overriding commands for target `out/target/product/harmony/recovery/root/sbin/tune2fs'
2.
bootable/recovery/Android.mk:87: warning: ignoring old commands for target `out/target/product/harmony/recovery/root/sbin/tune2fs'
3.
find: `out/target/common/docs/gen': No such file or directory
4.
find: `out/target/common/docs/gen': No such file or directory
5.
find: `out/target/common/docs/gen': No such file or directory
6.
find: `out/target/common/docs/gen': No such file or directory
7.
find: `out/target/common/docs/gen': No such file or directory
any help would be appreciated

You aren't on ubuntu 11.04 by any chance are you? I'm getting the same error and that's the only explanation I can come up with...

Related

[Q] Compilation of OpenSwift 2.2.1

Anybody managed to compile OpenSwift 2.2.1 from github? I'm trying to do that for 2 days without success.
My last error is:
Code:
Install: out/target/product/swift/system/lib/libdiskconfig.so
Install: out/target/product/swift/system/bin/vold
Symlink: out/target/product/swift/system/bin/watchprops -> toolbox
Symlink: out/target/product/swift/system/bin/wipe -> toolbox
target Strip: wpa_cli (out/target/product/swift/obj/EXECUTABLES/wpa_cli_intermediates/wpa_cli)
Install: out/target/product/swift/system/bin/wpa_cli
target Strip: wpa_supplicant (out/target/product/swift/obj/EXECUTABLES/wpa_supplicant_intermediates/wpa_supplicant)
Copy: out/target/product/swift/system/bin/wpa_supplicant
target Strip: zipalign (out/target/product/swift/obj/EXECUTABLES/zipalign_intermediates/zipalign)
Install: out/target/product/swift/system/bin/zipalign
Target buildinfo: out/target/product/swift/system/build.prop
/bin/bash: -c: line 0: unexpected EOF while looking for matching `"'
/bin/bash: -c: line 1: syntax error: unexpected end of file
make: *** [out/target/product/swift/system/build.prop] Error 1
make: *** Deleting file `out/target/product/swift/system/build.prop'
Maybe we can share experience about compilation of OpenSwift in this thread?
I have the same issue. But not find a solution yet.
Early I've success compile whole system. But after last updates from github gets errors.
I found solutions for all recent errors on 4pda.ru.
This is the original post:
http://4pda.ru/forum/index.php?s=&showtopic=215440&view=findpost&p=6414296
just got wubi ubuntu 10.10 installed and git and python were a nightmare and repo wouldnt work until i went and edited repo myself so it installed fine. i worked out how to install python2.4 on 10.10 and git running nicely. when i do the sync command it starts downloading the whole cyanogen mod tree i just want whats on the openswift branch thats it. any advice on the whole source codes and compiling would be greatly apppreciated.

Compiling SlimLP

As of right now, I am attempting to compile SlimLP alpha 0.2 for the d2lte devices.
I have done it successfully with SlimKat 4.4.4 before
I'm getting some errors with make
I have no idea what I can do to fix it.. lol
[email protected]:~/slim$ make -j3 bacon
============================================
PLATFORM_VERSION_CODENAME=UNOFFICIAL
PLATFORM_VERSION=5.0
SLIM_VERSION=Slim-5.0.alpha.0.2-UNOFFICIAL-20141115-2052
TARGET_PRODUCT=slim_d2lte
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=krait
TARGET_GCC_VERSION=4.8
TARGET_GCC_VERSION_EXP=
TARGET_USE_O3=
TARGET_2ND_ARCH=
TARGET_2ND_ARCH_VARIANT=
TARGET_2ND_CPU_VARIANT=
HOST_ARCH=x86_64
HOST_OS=linux
HOST_OS_EXTRA=Linux-3.13.0-39-generic-x86_64-with-Ubuntu-14.04-trusty
HOST_BUILD_TYPE=release
BUILD_ID=LRX21T
OUT_DIR=/home/a/slim/out
============================================
find: `src': No such file or directory
find: `src': No such file or directory
find: `src': No such file or directory
find: `src': No such file or directory
find: `src': No such file or directory
find: `src': No such file or directory
find: `src': No such file or directory
find: `src': No such file or directory
find: `src': No such file or directory
find: `src': No such file or directory
find: `src': No such file or directory
find: `src': No such file or directory
find: `src': No such file or directory
find: `phone/java': No such file or directory
find: `phone/java': No such file or directory
find: `dummy': No such file or directory
build/core/copy_headers.mk:15: warning: overriding commands for target `/home/a/slim/out/target/product/d2lte/obj/include/qcom/display/copybit.h'
build/core/copy_headers.mk:15: warning: ignoring old commands for target `/home/a/slim/out/target/product/d2lte/obj/include/qcom/display/copybit.h'
build/core/copy_headers.mk:15: warning: overriding commands for target `/home/a/slim/out/target/product/d2lte/obj/include/qcom/display/copybit_priv.h'
build/core/copy_headers.mk:15: warning: ignoring old commands for target `/home/a/slim/out/target/product/d2lte/obj/include/qcom/display/copybit_priv.h'
build/core/Makefile:33: warning: overriding commands for target `/home/a/slim/out/target/product/d2lte/system/bin/rild'
build/core/base_rules.mk:551: warning: ignoring old commands for target `/home/a/slim/out/target/product/d2lte/system/bin/rild'
build/core/Makefile:33: warning: overriding commands for target `/home/a/slim/out/target/product/d2lte/system/lib/libreference-ril.so'
build/core/base_rules.mk:551: warning: ignoring old commands for target `/home/a/slim/out/target/product/d2lte/system/lib/libreference-ril.so'
build/core/Makefile:33: warning: overriding commands for target `/home/a/slim/out/target/product/d2lte/system/lib/libsecril-client.so'
build/core/base_rules.mk:551: warning: ignoring old commands for target `/home/a/slim/out/target/product/d2lte/system/lib/libsecril-client.so'
build/core/Makefile:33: warning: overriding commands for target `/home/a/slim/out/target/product/d2lte/system/etc/gps.conf'
build/core/base_rules.mk:551: warning: ignoring old commands for target `/home/a/slim/out/target/product/d2lte/system/etc/gps.conf'
PRODUCT_COPY_FILES frameworks/native/data/etc/handheld_core_hardware.xml:system/etc/permissions/handheld_core_hardware.xml ignored.
PRODUCT_COPY_FILES frameworks/native/data/etc/android.software.sip.voip.xml:system/etc/permissions/android.software.sip.voip.xml ignored.
build/core/Makefile:33: warning: overriding commands for target `/home/a/slim/out/target/product/d2lte/system/etc/mkshrc'
build/core/base_rules.mk:551: warning: ignoring old commands for target `/home/a/slim/out/target/product/d2lte/system/etc/mkshrc'
No private recovery resources for TARGET_DEVICE d2lte
make -C kernel/samsung/d2 O=/home/a/slim/out/target/product/d2lte/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE=" /home/a/slim/prebuilt/linux-x86/toolchain/linaro-4.7-13.04/bin/arm-linux-gnueabihf-" VARIANT_DEFCONFIG= SELINUX_DEFCONFIG= cyanogen_d2_defconfig
Install: /home/a/slim/out/host/linux-x86/bin/mkbootimg
make[1]: Entering directory `/home/a/slim/kernel/samsung/d2'
Install: /home/a/slim/out/host/linux-x86/bin/mkbootfs
Install: /home/a/slim/out/host/linux-x86/bin/checkpolicy
Install: /home/a/slim/out/host/linux-x86/bin/checkfc
target Prebuilt: fstab.qcom (/home/a/slim/out/target/product/d2lte/obj/ETC/fstab.qcom_intermediates/fstab.qcom)
target Symbolic: libdl (/home/a/slim/out/target/product/d2lte/symbols/system/lib/libdl.so)
Install: /home/a/slim/out/target/product/d2lte/system/usr/share/zoneinfo/tzdata
Install: /home/a/slim/out/target/product/d2lte/root/init.qcom.rc
Install: /home/a/slim/out/target/product/d2lte/root/init.qcom.usb.rc
Install: /home/a/slim/out/target/product/d2lte/root/init.rc
Install: /home/a/slim/out/target/product/d2lte/root/init.recovery.qcom.rc
Install: /home/a/slim/out/target/product/d2lte/root/res/images/charger/battery_fail.png
Install: /home/a/slim/out/target/product/d2lte/root/res/images/charger/battery_scale.png
Install: /home/a/slim/out/target/product/d2lte/root/ueventd.qcom.rc
/home/a/slim/out/host/linux-x86/bin/checkpolicy: loading policy configuration from /home/a/slim/out/target/product/d2lte/obj/ETC/sepolicy.recovery_intermediates/policy_recovery.conf
DumpPublicKey: /home/a/slim/out/target/product/d2lte/obj/PACKAGING/ota_keys_intermediates/keys <= build/target/product/security/testkey.x509.pem
java -jar /home/a/slim/out/host/linux-x86/framework/dumpkey.jar build/target/product/security/testkey.x509.pem > /home/a/slim/out/target/product/d2lte/obj/PACKAGING/ota_keys_intermediates/keys
device/samsung/msm8960-common/sepolicy/device.te:3:ERROR 'duplicate declaration of type/attribute' at token ';' on line 11302:
type gpu_device, dev_type;
# GPU (used by most UI apps)
checkpolicy: error(s) encountered while parsing configuration
make: *** [/home/a/slim/out/target/product/d2lte/obj/ETC/sepolicy.recovery_intermediates/sepolicy.recovery] Error 1
make: *** Waiting for unfinished jobs....
GEN /home/a/slim/out/target/product/d2lte/obj/KERNEL_OBJ/Makefile
#
# configuration written to .config
#
make[1]: Leaving directory `/home/a/slim/kernel/samsung/d2'
#### make failed to build some targets (47 seconds) ####
Did you get this figured out? Looks like a typo to me...
java -jar /home/a/slim/out/host/linux-x86/framework/dumpkey.jar build/target/product/security/testkey.x509.pem > /home/a/slim/out/target/product/d2lte/obj/PACKAGING/ota_keys_intermediates/keys
device/samsung/msm8960-common/sepolicy/device.te:3:ERROR 'duplicate declaration of type/attribute' at token ';' on line 11302:
check device.te on line 3 says it is a duplicate line

Compiling from CM Sources - Errors in build process...

Guys, I'm here because I need help on compiling the cm-12.0 branch on terminal.
I tried repo sync today to update my source tree and also downloaded device common, d802, vendor, kernel again.
Code:
Notice file: external/zlib/NOTICE -- /home/stryder/Lollipop/out/host/linux-x86/obj/NOTICE_FILES/src//lib64/libz.a.txt
make: *** No rule to make target `/home/stryder/Lollipop/out/host/linux-x86/bin/dtbTool', needed by `/home/stryder/Lollipop/out/target/product/d802/dt.img'. Stop.
make: *** Waiting for unfinished jobs....
Notice file: external/zlib/NOTICE -- /home/stryder/Lollipop/out/host/linux-x86/obj/NOTICE_FILES/src//lib/libz.a.txt
#### make failed to build some targets (01:19 (mm:ss)) ####
I'm posting these last parts of my terminal log which is where I keep getting this error.
Also in the beggining I have this.
Code:
find: `src': No such file or directory
find: `src': No such file or directory
find: `src': No such file or directory
"ebtables is disabled on this build"
find: `phone/java': No such file or directory
find: `phone/java': No such file or directory
find: `dummy': No such file or directory
I tried to change make file in device (deviceboot.mk). dtbToolCM to dtbTool and nothing.
Thanks guys and devs if you can help a G2 dev starter. I was used to build Sony devices now I have L90 and G2 for development.
Moderators if i I'm posting in wrong section, please let me know.
FIX: device/g2-common find mkbootimg.mk and changed from dtbToolCM to dtbTool. But it can change from source to source.

[ Guide ] [ Tutorial ] Compiling 64 bit Android Kernel [ Yureka ] [ NOOB Friendly ]

This is My first post on XDA
From the day I owned YUreka I always wished to compile my own kernel. I searched on the web for compiling 64bit android kernel but didn't get satisfying results. So I did some research and asked some android developers, I got help from some developers but some of the developer refused may be due to their attitude or may be they didn't want to share their ideas / knowledge. Anyways here's a guide for compiling 64 bit kernel. I have also made a video tutorial check that out [ status == uploaded ].
What will YU need :
1. Ubuntu 64 Bit OS
2. Good Internet Connection.
3. Usable Brain.
4. Basic Knowledge of Linux.
Lets Start
First we need to get some important stuff / tools / software .
1. Open Ubuntu Software center and install JDK 7 or JDK 8
2. Open terminal and run the following command
Code:
sudo apt-get install libncurses5-dev
Code:
sudo apt-get install git-core gnupg flex bison gperf build-essential zip curl libc6-dev libncurses5-dev:i386 x11proto-core-dev libx11-dev:i386 libreadline6-dev:i386 libgl1-mesa-glx:i386 libgl1-mesa-dev g++-multilib tofrodos python-markdown libxml2-utils xsltproc zlib1g-dev:i386
Code:
sudo ln -s /usr/lib/i386-linux-gnu/mesa/libGL.so.1 /usr/lib/i386-linux-gnu/libGL.so
Code:
sudo apt-get install -y ccache &&echo 'export PATH="/usr/lib/ccache:$PATH"' | tee -a ~/.bashrc &&source ~/.bashrc && echo $PATH
Code:
export USE_CCACHE=1
Code:
mkdir ~/bin
Code:
export PATH=~/bin:$PATH
Code:
curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/bin/repo
Code:
chmod a+x ~/bin/repo
Now YU'r Linux machine is all set to compile kernel.
3. Now YU need to download a toolchain. I have uploaded the toolchain that i used for compiling the kernel. Click from here > h t t p s ://drive.google.com/open?id=0B9D4jOdpRzZHOURMTS1VaXplc0U
4. Time to download Kernel sources. For this tutorial I am using Varun Chitre's Thunderzap kernel. Here is the link for thunderzap's sources > h t t p s ://github.com/varunchitre15/thunderzap_tomato
.Select branch as cm 12.1 from left and press download on the right.
5. Make a directory "android-kernel" under "/Home" and place both the zips in "android-kernel" directory.
6. Extract both the zips. Now YU will have two folders one of toolchain and other of kernel source.
7. YU no more need the zip files just delete both the zips.
8. Open the kernel source folder and type the following code.
9. Run the following command to point the variable to toolchains path :
Code:
export CROSS_COMPILE=/home/r0h4n/android-kernel/aarch64-linux-android-4.9-uber-master/bin/aarch64-linux-android-
If YU followed along with me YU will just have to change the name of the user ( replace <r0h4n> with <YU'r username> )
10. Time to Compile your kernel :
Code:
export ARCH=arm64
Code:
export SUBARCH=arm64
Code:
export USE_CCACHE=1
Code:
make cyanogenmod_tomato-64_defconfig
The name of defconfig file may be different check it in "kernel_source/arch/arm64/defconfig/"
Code:
make menuconfig
Here YU can explore various options. I'll not explain everything in detail here.
Now the final command make. It takes a parameter -jn. Where ( n = # of threads per core + 1 )
I have a Dual core processor with 2 thread per processor so for me it is " make -j3 ".
Code:
make -j3
Now sit back and relax.......let the kernel compile
Got a compilation error ?
Post it here.
Now we need to create a flashable zip. Download this kernel flash zip from here > h t t p s : //drive.google.com/open?id=0B9D4jOdpRzZHdTJibndqQzhVdFk
1. Extract kernel.zip.
2. Navigate to tools in "/kernel".
3. Open "kernel_source/arch/arm64/boot/".
4. Copy "Image".
5. Replace it with the "Image" in "/kernel/tools/Image".
6. Copy "kernel_source/driver/stagging/prima/wlan.ko" and replace it with "kernel/system/lib/modules/wlan.ko".
7. Goto "/kernel" select all the three folders "META-INF", "system", "tools" and rezip it.
8. Flash the zip via recovery and now YU'r Phone rocks YU'r own compile kernel.
Rohan459 said:
This is My first post on XDA
Click to expand...
Click to collapse
Life saver for the 64bit part, thank you very much! :good::good::good:
some issues
Hello, i'm trying to compile this kernel (for xiaomi redmi note 3 "kenzo") https://github.com/cyanogenmod/android_kernel_xiaomi_msm8956/tree/stable/cm-13.0-ZNH5Y, and get the flashable zip.
I made a few tries and i can't do it, i going to tell you my problems and how i could fix some of them.
Error 1:
when i try to compile i get this error:
scripts/Makefile.build:455: recipe for target 'drivers/video/msm' failed
make[2]: *** [drivers/video/msm] Error 2
scripts/Makefile.build:455: recipe for target 'drivers/video' failed
make[1]: *** [drivers/video] Error 2
make[1]: *** Waiting for unfinished jobs....
I solved it changing a line in /home/user/Desktop/android_kernel_xiaomi_msm8956-stable-cm-13.0-ZNH5Y/drivers/video/msm/msm_dba/msm_dba.c
I changed #include <msm_dba_internal.h> for rhis #include "msm_dba_internal.h"
After that i get another error.
Error 2:
After solve Error 1, when i try to compile i get this error:
make[1]: *** No rule to make target 'arch/arm64/boot/dts/msm8956-mtp.dtb', needed by 'arch/arm64/boot/Image.gz-dtb'. Stop.
make[1]: *** Waiting for unfinished jobs....
OBJCOPY arch/arm64/boot/Image
/home/guille/Desktop/android_kernel_xiaomi_msm8956-stable-cm-13.0-ZNH5Y/arch/arm64/Makefile:84: recipe for target 'Image.gz-dtb' failed
make: *** [Image.gz-dtb] Error 2
make: *** Waiting for unfinished jobs....
This error i solved disabling this line #CONFIG_BUILD_ARM64_APPENDED_DTB_IMAGE=y in cyanogenmod_kenzo_defconfig, but i don't know if this is the correct way.
After that changes i get finally the image (used in the tutorial) and image.gz, then i proced to put the image and wlan.ko in in kernel.zip, but when i flash it the phone don't boot.
What can i do?
P.S.: Sorry my bad english.
Hello the friend really super guide and especially the only one or with whom I managed to compile my own kernel.
Is especially as said in the OP I contact a lot of kernel dev and nobody answered so I will have only one person to thank lol.
omega691 said:
Hello, i'm trying to compile this kernel (for xiaomi redmi note 3 "kenzo") https://github.com/cyanogenmod/android_kernel_xiaomi_msm8956/tree/stable/cm-13.0-ZNH5Y, and get the flashable zip.
I made a few tries and i can't do it, i going to tell you my problems and how i could fix some of them.
Error 1:
when i try to compile i get this error:
scripts/Makefile.build:455: recipe for target 'drivers/video/msm' failed
make[2]: *** [drivers/video/msm] Error 2
scripts/Makefile.build:455: recipe for target 'drivers/video' failed
make[1]: *** [drivers/video] Error 2
make[1]: *** Waiting for unfinished jobs....
I solved it changing a line in /home/user/Desktop/android_kernel_xiaomi_msm8956-stable-cm-13.0-ZNH5Y/drivers/video/msm/msm_dba/msm_dba.c
I changed #include <msm_dba_internal.h> for rhis #include "msm_dba_internal.h"
After that i get another error.
Error 2:
After solve Error 1, when i try to compile i get this error:
make[1]: *** No rule to make target 'arch/arm64/boot/dts/msm8956-mtp.dtb', needed by 'arch/arm64/boot/Image.gz-dtb'. Stop.
make[1]: *** Waiting for unfinished jobs....
OBJCOPY arch/arm64/boot/Image
/home/guille/Desktop/android_kernel_xiaomi_msm8956-stable-cm-13.0-ZNH5Y/arch/arm64/Makefile:84: recipe for target 'Image.gz-dtb' failed
make: *** [Image.gz-dtb] Error 2
make: *** Waiting for unfinished jobs....
This error i solved disabling this line #CONFIG_BUILD_ARM64_APPENDED_DTB_IMAGE=y in cyanogenmod_kenzo_defconfig, but i don't know if this is the correct way.
After that changes i get finally the image (used in the tutorial) and image.gz, then i proced to put the image and wlan.ko in in kernel.zip, but when i flash it the phone don't boot.
What can i do?
P.S.: Sorry my bad english.
Click to expand...
Click to collapse
Change directory and try again
Sent from my Redmi 3S using Tapatalk
i have this error:
sound/soc/msm/msm8996.c:34:26: fatal error: device_event.h: No such file or directory
#include <device_event.h>
^
compilation terminated.
i'm on ubuntu 16.04.02 x64
i think the problem is the library "libevent-dev" but i don't understand how to fix it because libevent-dev is installed
problem in yureka
i rooted my phone long back.. but i didnt used it...lots of problems in it it is in boot loop amd when ever it is luckily on wifi is not working ...it is not even displaying near by wifi and not even data connection ,i thought of new cm12 rom and flashed it stiill same issue. and more over after flashing stock cm12 and it is still in boot loop..please help
Hello there,
i am having this said problem when i follow your tutorial on how to build a 64bit kernel.
Code:
In file included from include/linux/compiler.h:54:0,
from include/uapi/linux/stddef.h:1,
from include/linux/stddef.h:4,
from /home/protox/android/berlin_kernel/include/uapi/linux/posix_types.h:4,
from include/uapi/linux/types.h:13,
from include/linux/types.h:5,
from include/linux/mod_devicetable.h:11,
from scripts/mod/devicetable-offsets.c:2:
include/linux/compiler-gcc.h:106:30: fatal error: linux/compiler-gcc7.h: No such file or directory
#include gcc_header(__GNUC__)
^
compilation terminated.
/home/protox/android/berlin_kernel/scripts/mod/Makefile:34: recipe for target 'scripts/mod/devicetable-offsets.s' failed
make[2]: *** [scripts/mod/devicetable-offsets.s] Error 1
scripts/Makefile.build:468: recipe for target 'scripts/mod' failed
make[1]: *** [scripts/mod] Error 2
make[1]: *** Waiting for unfinished jobs....
HOSTCC scripts/dtc/livetree.o
HOSTCC scripts/dtc/srcpos.o
HOSTCC scripts/dtc/treesource.o
HOSTCC scripts/dtc/util.o
HOSTCC scripts/dtc/dtc-lexer.lex.o
HOSTCC scripts/dtc/dtc-parser.tab.o
HOSTLD scripts/dtc/dtc
Makefile:559: recipe for target 'scripts' failed
make: *** [scripts] Error 2
make: *** Waiting for unfinished jobs....
Can you please help me out mate
Thanks
hello sir can you help me please??
my device is redmi note 4x ( mido ) snapdragon 625 64 bit i build kernel without error but when i want to flash it on my device
device not boot to system but to fastboot mod and need to flash other kernel to make it boot ?? any idea about that ?
Compiling kernrl
I need some help if any body is out there .after months of trying and trying i am finally able to compli my kernel .after is completes with no error i go to arch/arm64/boot and all i have is am image.gz and and image no ziamge or nothing ive goigle it but i cant figure out whats the next step
akino553 said:
hello sir can you help me please??
my device is redmi note 4x ( mido ) snapdragon 625 64 bit i build kernel without error but when i want to flash it on my device
device not boot to system but to fastboot mod and need to flash other kernel to make it boot ?? any idea about that ?
Click to expand...
Click to collapse
The kernel has not compiled properly...
fowler82 said:
I need some help if any body is out there .after months of trying and trying i am finally able to compli my kernel .after is completes with no error i go to arch/arm64/boot and all i have is am image.gz and and image no ziamge or nothing ive goigle it but i cant figure out whats the next step
Click to expand...
Click to collapse
Find a zip with the image.gz and image file and replace the files with ur compiled files.
Rohan459 said:
Find a zip with the image.gz and image file and replace the files with ur compiled files.
Click to expand...
Click to collapse
Once I build the kernel and I build the modules how do i find them to load them does anybody no
Toolchains
fowler82 said:
Once I build the kernel and I build the modules how do i find them to load them does anybody no
Click to expand...
Click to collapse
go in kernel root directory and within search box look for .ko files. It will give you a list of modules from where you can copy them and paste in your new ROM system/lib/modules directory.
can any device use the kernel.zip to flash the boot.img after replacing wlan.ko ?
Rohan459 said:
This is My first post on XDA
From the day I owned YUreka I always wished to compile my own kernel. I searched on the web for compiling 64bit android kernel but didn't get satisfying results. So I did some research and asked some android developers, I got help from some developers but some of the developer refused may be due to their attitude or may be they didn't want to share their ideas / knowledge. Anyways here's a guide for compiling 64 bit kernel. I have also made a video tutorial check that out [ status == uploaded ].
What will YU need :
1. Ubuntu 64 Bit OS
2. Good Internet Connection.
3. Usable Brain.
4. Basic Knowledge of Linux.
Lets Start
First we need to get some important stuff / tools / software .
1. Open Ubuntu Software center and install JDK 7 or JDK 8
2. Open terminal and run the following command
Code:
sudo apt-get install libncurses5-dev
Code:
sudo apt-get install git-core gnupg flex bison gperf build-essential zip curl libc6-dev libncurses5-dev:i386 x11proto-core-dev libx11-dev:i386 libreadline6-dev:i386 libgl1-mesa-glx:i386 libgl1-mesa-dev g++-multilib tofrodos python-markdown libxml2-utils xsltproc zlib1g-dev:i386
Code:
sudo ln -s /usr/lib/i386-linux-gnu/mesa/libGL.so.1 /usr/lib/i386-linux-gnu/libGL.so
Code:
sudo apt-get install -y ccache &&echo 'export PATH="/usr/lib/ccache:$PATH"' | tee -a ~/.bashrc &&source ~/.bashrc && echo $PATH
Code:
export USE_CCACHE=1
Code:
mkdir ~/bin
Code:
export PATH=~/bin:$PATH
Code:
curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/bin/repo
Code:
chmod a+x ~/bin/repo
Now YU'r Linux machine is all set to compile kernel.
3. Now YU need to download a toolchain. I have uploaded the toolchain that i used for compiling the kernel. Click from here > h t t p s ://drive.google.com/open?id=0B9D4jOdpRzZHOURMTS1VaXplc0U
4. Time to download Kernel sources. For this tutorial I am using Varun Chitre's Thunderzap kernel. Here is the link for thunderzap's sources > h t t p s ://github.com/varunchitre15/thunderzap_tomato
.Select branch as cm 12.1 from left and press download on the right.
5. Make a directory "android-kernel" under "/Home" and place both the zips in "android-kernel" directory.
6. Extract both the zips. Now YU will have two folders one of toolchain and other of kernel source.
7. YU no more need the zip files just delete both the zips.
8. Open the kernel source folder and type the following code.
9. Run the following command to point the variable to toolchains path :
Code:
export CROSS_COMPILE=/home/r0h4n/android-kernel/aarch64-linux-android-4.9-uber-master/bin/aarch64-linux-android-
If YU followed along with me YU will just have to change the name of the user ( replace <r0h4n> with <YU'r username> )
10. Time to Compile your kernel :
Code:
export ARCH=arm64
Code:
export SUBARCH=arm64
Code:
export USE_CCACHE=1
Code:
make cyanogenmod_tomato-64_defconfig
The name of defconfig file may be different check it in "kernel_source/arch/arm64/defconfig/"
Code:
make menuconfig
Here YU can explore various options. I'll not explain everything in detail here.
Now the final command make. It takes a parameter -jn. Where ( n = # of threads per core + 1 )
I have a Dual core processor with 2 thread per processor so for me it is " make -j3 ".
Code:
make -j3
Now sit back and relax.......let the kernel compile
Got a compilation error ?
Post it here.
Now we need to create a flashable zip. Download this kernel flash zip from here > h t t p s : //drive.google.com/open?id=0B9D4jOdpRzZHdTJibndqQzhVdFk
1. Extract kernel.zip.
2. Navigate to tools in "/kernel".
3. Open "kernel_source/arch/arm64/boot/".
4. Copy "Image".
5. Replace it with the "Image" in "/kernel/tools/Image".
6. Copy "kernel_source/driver/stagging/prima/wlan.ko" and replace it with "kernel/system/lib/modules/wlan.ko".
7. Goto "/kernel" select all the three folders "META-INF", "system", "tools" and rezip it.
8. Flash the zip via recovery and now YU'r Phone rocks YU'r own compile kernel.
Click to expand...
Click to collapse
created kernel using tutorial,,,but this kernel boots in fastboot mode only..
dont know why..
device is lenovo k6 note(sd430 msm8937)
please help
i am facing this error and can not resolve the problem.
property '#gpio-cells' in node /soc/msm_cdc_pinctrl_us_euro_sw or bad phandle (referred from /soc/sound:qcom,cdc-us-eu-gpios[0])
arch/arm64/boot/dts/qcom/msm8953-pmi8937.dtb: Warning (gpios_property): Missing property '#gpio-cells' in node /soc/cdc_comp_pinctrl or bad phandle (referred from /soc/sound:qcom,cdc-comp-gpios[0])
arch/arm64/boot/dts/qcom/msm8953-pmi8937.dtb: Warning (gpios_property): Missing property '#gpio-cells' in node /soc/msm_cdc_pinctrl_pri or bad phandle (referred from /soc/sound:qcom,pri-mi2s-gpios[0])
arch/arm64/boot/dts/qcom/msm8953-pmi8937.dtb: Warning (gpios_property): Missing property '#gpio-cells' in node /soc/msm_cdc_pinctrl_quin or bad phandle (referred from /soc/sound:qcom,quin-mi2s-gpios[0])
arch/arm64/boot/dts/qcom/msm8953-pmi8937.dtb: Warning (gpios_property): Missing property '#gpio-cells' in node /soc/msm_cdc_pinctrl_us_euro_sw or bad phandle (referred from /soc/sound-9335:qcom,cdc-us-eu-gpios[0])
arch/arm64/boot/dts/qcom/msm8953-pmi8937.dtb: Warning (gpios_property): Missing property '#gpio-cells' in node /soc/msm_cdc_pinctrl_quin or bad phandle (referred from /soc/sound-9335:qcom,quin-mi2s-gpios[0])
arch/arm64/boot/dts/qcom/msm8953-pmi8937.dtb: Warning (interrupts_property): interrupts size is (12), expected multiple of 8 in /soc/[email protected]
CC lib/mpi/generic_mpih-lshift.o
DTC arch/arm64/boot/dts/qcom/msm8953-ext-codec-rcm-overlay.dtbo
Error: ../arch/arm64/boot/dts/qcom/msm8953-audio-cdp.dtsi:14.1-11 syntax error
FATAL ERROR: Unable to parse input tree
scripts/Makefile.dtbo:24: recipe for target 'arch/arm64/boot/dts/qcom/msm8953-ext-codec-rcm-overlay.dtbo' failed
make[3]: *** [arch/arm64/boot/dts/qcom/msm8953-ext-codec-rcm-overlay.dtbo] Error 1
../scripts/Makefile.build:653: recipe for target 'arch/arm64/boot/dts/qcom' failed
make[2]: *** [arch/arm64/boot/dts/qcom] Error 2
arch/arm64/Makefile:194: recipe for target 'dtbs' failed
make[1]: *** [dtbs] Error 2
make[1]: *** Waiting for unfinished jobs..

Need Help

Hi
I try sailfish on redmi note 3 to Porten
I did everything as described in the manual
but whenever I make -j4 hybris hal I inspire get the following error message .... maybe can have someone help me
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=6.0.1
CM_VERSION=13.0-20160829-UNOFFICIAL-kenzo
TARGET_PRODUCT=cm_kenzo
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm64
TARGET_ARCH_VARIANT=armv8-a
TARGET_CPU_VARIANT=generic
TARGET_2ND_ARCH=arm
TARGET_2ND_ARCH_VARIANT=armv7-a-neon
TARGET_2ND_CPU_VARIANT=cortex-a53
HOST_ARCH=x86_64
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.4.0-34-generic-x86_64-with-LinuxMint-18-sarah
HOST_BUILD_TYPE=release
BUILD_ID=MMB29U
OUT_DIR=/home/n1ce/ANDROID_ROOT/out
============================================
find: ‘../opt/telephony/src/java/android/provider’: No such file or directory
find: ‘../opt/telephony/src/java/android/telephony’: No such file or directory
find: ‘../opt/telephony/src/java/android/telephony/gsm’: No such file or directory
find: ‘../opt/net/voip/src/java/android/net/rtp’: No such file or directory
find: ‘../opt/net/voip/src/java/android/net/sip’: No such file or directory
find: ‘../opt/telephony/src/java/android/provider’: No such file or directory
find: ‘../opt/telephony/src/java/android/telephony’: No such file or directory
find: ‘../opt/telephony/src/java/android/telephony/gsm’: No such file or directory
find: ‘../opt/net/voip/src/java/android/net/rtp’: No such file or directory
find: ‘../opt/net/voip/src/java/android/net/sip’: No such file or directory
find: ‘../../frameworks/data-binding/baseLibrary/src/main’: No such file or directory
find: ‘../../frameworks/data-binding/library/src/main’: No such file or directory
find: ‘../../frameworks/data-binding/library/src/doc’: No such file or directory
find: ‘../../frameworks/support/annotations’: No such file or directory
find: ‘../../frameworks/support/v4’: No such file or directory
find: ‘../../frameworks/support/v7/gridlayout’: No such file or directory
find: ‘../../frameworks/support/v7/cardview’: No such file or directory
find: ‘../../frameworks/support/v7/mediarouter’: No such file or directory
find: ‘../../frameworks/support/v7/palette’: No such file or directory
find: ‘../../frameworks/support/v8/renderscript’: No such file or directory
find: ‘../../frameworks/support/v13’: No such file or directory
find: ‘../../frameworks/support/v17/leanback’: No such file or directory
find: ‘../../frameworks/support/design’: No such file or directory
find: ‘../../frameworks/support/percent’: No such file or directory
find: ‘../../frameworks/support/recommendation’: No such file or directory
find: ‘../../frameworks/support/v7/preference’: No such file or directory
find: ‘../../frameworks/support/v14/preference’: No such file or directory
find: ‘../../frameworks/support/v17/preference-leanback’: No such file or directory
find: ‘../../frameworks/support/customtabs’: No such file or directory
find: ‘../../frameworks/multidex/library/src’: No such file or directory
find: ‘../../frameworks/multidex/instrumentation/src’: No such file or directory
find: ‘../../frameworks/support/v7/appcompat/src’: No such file or directory
find: ‘../../frameworks/support/v7/recyclerview/src’: No such file or directory
find: ‘../opt/telephony/src/java/android/provider’: No such file or directory
find: ‘../opt/telephony/src/java/android/telephony’: No such file or directory
find: ‘../opt/telephony/src/java/android/telephony/gsm’: No such file or directory
find: ‘../opt/net/voip/src/java/android/net/rtp’: No such file or directory
find: ‘../opt/net/voip/src/java/android/net/sip’: No such file or directory
find: ‘../../external/nist-sip/java’: No such file or directory
find: ‘../../external/tagsoup/src’: No such file or directory
external/speex/Android.mk:55: TODOArm64: enable neon in libspeex
build/core/copy_headers.mk:15: warning: overriding recipe for target '/home/n1ce/ANDROID_ROOT/out/target/product/kenzo/obj/include/qcom/display/copybit.h'
build/core/copy_headers.mk:15: warning: ignoring old recipe for target '/home/n1ce/ANDROID_ROOT/out/target/product/kenzo/obj/include/qcom/display/copybit.h'
build/core/copy_headers.mk:15: warning: overriding recipe for target '/home/n1ce/ANDROID_ROOT/out/target/product/kenzo/obj/include/qcom/display/copybit_priv.h'
build/core/copy_headers.mk:15: warning: ignoring old recipe for target '/home/n1ce/ANDROID_ROOT/out/target/product/kenzo/obj/include/qcom/display/copybit_priv.h'
build/core/copy_headers.mk:15: warning: overriding recipe for target '/home/n1ce/ANDROID_ROOT/out/target/product/kenzo/obj/include/qcom/display/c2d2.h'
build/core/copy_headers.mk:15: warning: ignoring old recipe for target '/home/n1ce/ANDROID_ROOT/out/target/product/kenzo/obj/include/qcom/display/c2d2.h'
hybris/hybris-boot/Android.mk:67: ********************* /boot appears to live on /dev/block/bootdevice/by-name/boot
hybris/hybris-boot/Android.mk:68: ********************* /data appears to live on /dev/block/bootdevice/by-name/userdata
No private recovery resources for TARGET_DEVICE kenzo
target SharedLib: libc (/home/n1ce/ANDROID_ROOT/out/target/product/kenzo/obj/SHARED_LIBRARIES/libc_intermediates/LINKED/libc.so)
hybris/hybris-boot/fixup-mountpoints "kenzo" "/home/n1ce/ANDROID_ROOT/out/target/product/kenzo/obj/ROOT/hybris-recovery_intermediates/init"
Fixing mount-points for device kenzo
hybris/hybris-boot/fixup-mountpoints: 61: hybris/hybris-boot/fixup-mountpoints: Syntax error: ")" unexpected (expecting ";;")
hybris/hybris-boot/Android.mk:195: recipe for target '/home/n1ce/ANDROID_ROOT/out/target/product/kenzo/obj/ROOT/hybris-recovery_intermediates/init' failed
make: *** [/home/n1ce/ANDROID_ROOT/out/target/product/kenzo/obj/ROOT/hybris-recovery_intermediates/init] Error 2
make: *** Deleting file '/home/n1ce/ANDROID_ROOT/out/target/product/kenzo/obj/ROOT/hybris-recovery_intermediates/init'
make: *** Waiting for unfinished jobs....
hybris/hybris-boot/fixup-mountpoints "kenzo" "/home/n1ce/ANDROID_ROOT/out/target/product/kenzo/obj/ROOT/hybris-boot_intermediates/init"
Fixing mount-points for device kenzo
hybris/hybris-boot/fixup-mountpoints: 61: hybris/hybris-boot/fixup-mountpoints: Syntax error: ")" unexpected (expecting ";;")
hybris/hybris-boot/Android.mk:154: recipe for target '/home/n1ce/ANDROID_ROOT/out/target/product/kenzo/obj/ROOT/hybris-boot_intermediates/init' failed
make: *** [/home/n1ce/ANDROID_ROOT/out/target/product/kenzo/obj/ROOT/hybris-boot_intermediates/init] Error 2
make: *** Deleting file '/home/n1ce/ANDROID_ROOT/out/target/product/kenzo/obj/ROOT/hybris-boot_intermediates/init'
target SharedLib: libm_32 (/home/n1ce/ANDROID_ROOT/out/target/product/kenzo/obj_arm/SHARED_LIBRARIES/libm_intermediates/LINKED/libm.so)
/home/n1ce/ANDROID_ROOT/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/bin/../lib/gcc/aarch64-linux-android/4.9.x/../../../../aarch64-linux-android/bin/ld: /home/n1ce/ANDROID_ROOT/out/target/product/kenzo/obj/STATIC_LIBRARIES/libc_common_intermediates/libc_common.a(__bionic_clone.o)(.text+0x18): unresolvable R_AARCH64_CONDBR19 relocation against symbol `__set_errno_internal'
/home/n1ce/ANDROID_ROOT/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/bin/../lib/gcc/aarch64-linux-android/4.9.x/../../../../aarch64-linux-android/bin/ld: final link failed: Nonrepresentable section on output
collect2: error: ld returned 1 exit status
build/core/shared_library_internal.mk:80: recipe for target '/home/n1ce/ANDROID_ROOT/out/target/product/kenzo/obj/SHARED_LIBRARIES/libc_intermediates/LINKED/libc.so' failed
make: *** [/home/n1ce/ANDROID_ROOT/out/target/product/kenzo/obj/SHARED_LIBRARIES/libc_intermediates/LINKED/libc.so] Error 1
#### make failed to build some targets (36 seconds) ####
No frameworks library? Did u sync the repo correctly? And is sailfish os compatible with your device tree(android versions).
Are kernel sources of redmi note 3 are out???
What did u do?
I thank them it was a great tip I have all errors resolved now but now I have a new , there are not the mount point found although I did it but matrimonial right
help is really welcome
View attachment 3877392
View attachment 3877393
View attachment 3877394

Categories

Resources