[Q] Compiling franco.Kernel - Nexus 7 Q&A, Help & Troubleshooting

I'm trying to compile latest kernel from @franciscofranco (should be r81). I downloaded the lollipop branch from the git repo and using the prebuild toolchain (arm-eabi-gcc (GCC) 4.6.x-google 20120106 (prerelease)) from google i got this:
drivers/cpufreq/cpufreq_userspace.c: In function 'cpufreq_set_userspace_governor':
drivers/cpufreq/cpufreq_userspace.c:115:7: warning: unused variable 'cpu0_set' [-Wunused-variable]
drivers/cpufreq/cpufreq_userspace.c:109:7: warning: unused variable 'old_governor' [-Wunused-variable]
CC drivers/cpufreq/cpufreq_ondemand.o
drivers/cpufreq/cpufreq_ondemand.c:145:27: error: conflicting types for 'get_cpu_idle_time'
include/linux/cpufreq.h:318:5: note: previous declaration of 'get_cpu_idle_time' was here
make[2]: *** [drivers/cpufreq/cpufreq_ondemand.o] Error 1
make[1]: *** [drivers/cpufreq] Error 2
make: *** [drivers] Error 2
I saw there some suggestions how to fix this (disable ondemand, extract defconfig from the kernel he supplies etc) but want to know if the source in the repo is the latest (updated an hour ago fro r81 i believe) and should i do something else when compiling.

Related

[Q] compiling kernel. Please give me some help.

Hello. When i try compile my kernel i got some errors
I'm using theese commands:
Code:
make ARCH=arm iconiaa500_defconfig
with no problems it says 'configuration written to .config' then i cant find that file.
whet i try to compile it with this command
Code:
make ARCH=arm CROSS_COMPILE=/home/myhomedir./A500-kernel/toolchains/arm-2009q3/bin/arm-none-eabi- -j3
then at the end i get something like:
Code:
drivers/usb/host/ehci-hub.c:130: warning: 'ehci_adjust_port_wakeup_flags' defined but not used
drivers/usb/host/ehci-lpm.c:20: warning: 'ehci_lpm_set_da' defined but not used
drivers/usb/host/ehci-lpm.c:40: warning: 'ehci_lpm_check' defined but not used
net/mac80211/tx.c: In function 'ieee80211_subif_start_xmit':
net/mac80211/tx.c:1753: warning: unused variable 'mppath'
arch/arm/boot/compressed/piggy.lzo.S: Assembler messages:
arch/arm/boot/compressed/piggy.lzo.S:4: Error: file not found: arch/arm/boot/compressed/piggy.lzo
make[2]: *** [arch/arm/boot/compressed/piggy.lzo.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [arch/arm/boot/compressed/vmlinux] Error 2
make: *** [zImage] Error 2
make: *** Waiting for unfinished jobs....
anyone knows whats problem? thanks for spending some time. Sorry for bad english.
I was try many guides include nethams and sp3dev's
HTML:
http://forum.xda-developers.com/showthread.php?t=1158260&page=24
HTML:
http://forum.xda-developers.com/showthread.php?t=1158260&page=9
I'm using astarasikov-iconia-gnu-kernel source.
Sorry for bad English.
Tautvaldas said:
Hello. When i try compile my kernel i got some errors
Sorry for bad English.
Click to expand...
Click to collapse
You may want to post this in the main Android Dev thread.
where? Questions and Answers? maybe.
Never mind, thanks, no need it anymore, I've got it, fixed all problems and found solutions. thanks.
One more question. If i set initrd files location in kernel config, can i unpack initramfs.cpio from my compiled kernel zImage after compile it. I tryed unpack .config file from zImage, it works fine, but i want unpack initramfs if it possible?

[Q/A] Build Errors and such...

Ok guys lets all post our build errors here for a more organized help and support. And so that we can help each other out
Sent from my Gnome Shelled Mako
Good idea , hope someone will know this one.
Export includes file: hardware/libhardware_legacy/audio/Android.mk -- /home/elio/android/omni/out/target/product/mako/obj/SHARED_LIBRARIES/audio_policy.default_intermediates/export_includes
Export includes file: hardware/qcom/display/libgenlock/Android.mk -- /home/elio/android/omni/out/target/product/mako/obj/SHARED_LIBRARIES/libgenlock_intermediates/export_includes
Export includes file: device/lge/mako/camera/mm-camera-interface/Android.mk -- /home/elio/android/omni/out/target/product/mako/obj/SHARED_LIBRARIES/libmmcamera_interface2_intermediates/export_includes
make: *** No rule to make target `/home/elio/android/omni/out/target/product/mako/obj/KERNEL_OBJ/usr', needed by `/home/elio/android/omni/out/target/product/mako/obj/SHARED_LIBRARIES/libgenlock_intermediates/genlock.o'. Stop.
make: *** Waiting for unfinished jobs....
Import includes file: /home/elio/android/omni/out/target/product/mako/obj/SHARED_LIBRARIES/libmmcamera_interface2_intermediates/import_includes
Click to expand...
Click to collapse
i have been trying to build for mako and i get stuck at this error.
i'm ubuntu 12.04 64bit.
Looks like a kernel error.
Add this lines to your local_manifest
Code:
<project name="omnirom/android_device_lge_mako" path="device/lge/mako" remote="github" revision="android-4.3" />
<project name="omnirom/android_kernel_lge_mako" path="kernel/lge/mako" remote="github" revision="android-4.3" />
then
Code:
repo sync -j4 && make clean && . build/envsetup.sh && time brunch mako
fix for most errors
Gnome said:
Ok guys lets all post our build errors here for a more organized help and support. And so that we can help each other out
Sent from my Gnome Shelled Mako
Click to expand...
Click to collapse
I am just starting out on building Roms but for almost any error even if you can't fix it just delete your folder/directory with the source and reinitialize repo in a new directory
Sent from my lg optimus f6 which boot loader can't be unlocked I'm never getting a new lg phone
help
alright ive been trying to port kitkat to my f6 for a week or so and i just hit this error and yes i have included msmb_camera.h in my PATH and put it in a few dirs named media also in my usr/bin and /bin and /sbin can anyone find how to fix it here it is
Code:
make: *** [/home/ryan/android/system/out/target/product/f6mt/obj/SHARED_LIBRARIES/libOmxVenc_intermediates/venc/src/video_encoder_device.o] Error 1
make: *** Waiting for unfinished jobs....
In file included from hardware/qcom/camera/QCamera2/stack/mm-camera-interface/src/mm_camera_channel.c:40:0:
hardware/qcom/camera/QCamera2/stack/mm-camera-interface/../common/mm_camera_interface.h:34:31: fatal error: media/msmb_camera.h: No such file or directory
compilation terminated.
In file included from hardware/qcom/camera/QCamera2/stack/mm-camera-interface/src/mm_camera_stream.c:44:0:
hardware/qcom/camera/QCamera2/stack/mm-camera-interface/../common/mm_camera_interface.h:34:31: fatal error: media/msmb_camera.h: No such file or directory
compilation terminated.
In file included from hardware/qcom/camera/QCamera2/stack/mm-camera-interface/src/mm_camera.c:42:0:
hardware/qcom/camera/QCamera2/stack/mm-camera-interface/../common/mm_camera_interface.h:34:31: fatal error: media/msmb_camera.h: No such file or directory
compilation terminated.
In file included from hardware/qcom/camera/QCamera2/stack/mm-camera-interface/src/mm_camera_interface.c:40:0:
hardware/qcom/camera/QCamera2/stack/mm-camera-interface/../common/mm_camera_interface.h:34:31: fatal error: media/msmb_camera.h: No such file or directory
compilation terminated.
make: *** [/home/ryan/android/system/out/target/product/f6mt/obj/SHARED_LIBRARIES/libmmcamera_interface_intermediates/src/mm_camera_channel.o] Error 1
make: *** [/home/ryan/android/system/out/target/product/f6mt/obj/SHARED_LIBRARIES/libmmcamera_interface_intermediates/src/mm_camera_stream.o] Error 1
make: *** [/home/ryan/android/system/out/target/product/f6mt/obj/SHARED_LIBRARIES/libmmcamera_interface_intermediates/src/mm_camera.o] Error 1
make: *** [/home/ryan/android/system/out/target/product/f6mt/obj/SHARED_LIBRARIES/libmmcamera_interface_intermediates/src/mm_camera_interface.o] Error 1
UPADTE
alright i solved this by puting msmb_camera.h in hardware/qcom/msm8x74/kernel-headers/media
please hit that thanks button if i helped
codingninja62001 said:
alright ive been trying to port kitkat to my f6 for a week or so and i just hit this error and yes i have included msmb_camera.h in my PATH and put it in a few dirs named media also in my usr/bin and /bin and /sbin can anyone find how to fix it here it is
Code:
make: *** [/home/ryan/android/system/out/target/product/f6mt/obj/SHARED_LIBRARIES/libOmxVenc_intermediates/venc/src/video_encoder_device.o] Error 1
make: *** Waiting for unfinished jobs....
In file included from hardware/qcom/camera/QCamera2/stack/mm-camera-interface/src/mm_camera_channel.c:40:0:
hardware/qcom/camera/QCamera2/stack/mm-camera-interface/../common/mm_camera_interface.h:34:31: fatal error: media/msmb_camera.h: No such file or directory
compilation terminated.
In file included from hardware/qcom/camera/QCamera2/stack/mm-camera-interface/src/mm_camera_stream.c:44:0:
hardware/qcom/camera/QCamera2/stack/mm-camera-interface/../common/mm_camera_interface.h:34:31: fatal error: media/msmb_camera.h: No such file or directory
compilation terminated.
In file included from hardware/qcom/camera/QCamera2/stack/mm-camera-interface/src/mm_camera.c:42:0:
hardware/qcom/camera/QCamera2/stack/mm-camera-interface/../common/mm_camera_interface.h:34:31: fatal error: media/msmb_camera.h: No such file or directory
compilation terminated.
In file included from hardware/qcom/camera/QCamera2/stack/mm-camera-interface/src/mm_camera_interface.c:40:0:
hardware/qcom/camera/QCamera2/stack/mm-camera-interface/../common/mm_camera_interface.h:34:31: fatal error: media/msmb_camera.h: No such file or directory
compilation terminated.
make: *** [/home/ryan/android/system/out/target/product/f6mt/obj/SHARED_LIBRARIES/libmmcamera_interface_intermediates/src/mm_camera_channel.o] Error 1
make: *** [/home/ryan/android/system/out/target/product/f6mt/obj/SHARED_LIBRARIES/libmmcamera_interface_intermediates/src/mm_camera_stream.o] Error 1
make: *** [/home/ryan/android/system/out/target/product/f6mt/obj/SHARED_LIBRARIES/libmmcamera_interface_intermediates/src/mm_camera.o] Error 1
make: *** [/home/ryan/android/system/out/target/product/f6mt/obj/SHARED_LIBRARIES/libmmcamera_interface_intermediates/src/mm_camera_interface.o] Error 1
UPADTE
alright i solved this by puting msmb_camera.h in hardware/qcom/msm8x74/kernel-headers/media
please hit that thanks button if i helped
Click to expand...
Click to collapse
Most likely Omni does not have any non-Nexus devices that compile the camera HAL from source, and as a result does not yet pull in kernel headers for the camera HAL.
https://github.com/omnirom/android_...mmit/6736097aeaed860eefdf90ebbb145cc310b564b4 can give you a rough idea of how to convert something set to use prebuilt kernel headers to one that uses headers from the kernel being built.
What's an f6???
Entropy512 said:
Most likely Omni does not have any non-Nexus devices that compile the camera HAL from source, and as a result does not yet pull in kernel headers for the camera HAL.
https://github.com/omnirom/android_...mmit/6736097aeaed860eefdf90ebbb145cc310b564b4 can give you a rough idea of how to convert something set to use prebuilt kernel headers to one that uses headers from the kernel being built.
What's an f6???
Click to expand...
Click to collapse
okey it isn't omni its cyanogenmod and f6 as LG optimus f6 a budget phone that ive working on a port for and can you explain in a little more detail and my KERNEL_OBJ/usr is empty so no source there
---------- Post added at 05:13 PM ---------- Previous post was at 04:35 PM ----------
Entropy512 said:
Most likely Omni does not have any non-Nexus devices that compile the camera HAL from source, and as a result does not yet pull in kernel headers for the camera HAL.
https://github.com/omnirom/android_...mmit/6736097aeaed860eefdf90ebbb145cc310b564b4 can give you a rough idea of how to convert something set to use prebuilt kernel headers to one that uses headers from the kernel being built.
What's an f6???
Click to expand...
Click to collapse
Hey can you help me with this new error i had fixed that one yesterday not much detail it spits out do you know how to declare GRALLOC_USAGE_PRIVATE_INTERNAL_ONLY or fix this
Code:
frameworks/native/libs/gui/Surface.cpp: In member function 'virtual android::status_t android::Surface::lock(ANativeWindow_Buffer*, ARect*)':
frameworks/native/libs/gui/Surface.cpp:818:29: error: 'GRALLOC_USAGE_PRIVATE_INTERNAL_ONLY' was not declared in this scope
make: *** [/home/ryan/android/system/out/target/product/f6mt/obj/SHARED_LIBRARIES/libgui_intermediates/Surface.o] Error 1
make: *** Waiting for unfinished jobs....
Please help me
build/core/base_rules.mk:316: warning: overriding commands for target `/home/govind/n/out/target/product/Z00L/system/xbin/wget' ./external/busybox/Android.mk:171: warning: ignoring old commands for target `/home/govind/n/out/target/product/Z00L/system/xbin/wget' vendor/cm/build/tasks/kernel.mk:285: warning: overriding commands for target `/home/govind/n/out/target/product/Z00L/obj/KERNEL_OBJ/.config' build/core/tasks/kernel.mk:209: warning: ignoring old commands for target `/home/govind/n/out/target/product/Z00L/obj/KERNEL_OBJ/.config' vendor/cm/build/tasks/kernel.mk:299: warning: overriding commands for target `TARGET_KERNEL_BINARIES' build/core/tasks/kernel.mk:220: warning: ignoring old commands for target `TARGET_KERNEL_BINARIES' vendor/cm/build/tasks/kernel.mk:348: warning: overriding commands for target `kerneltags' build/core/tasks/kernel.mk:252: warning: ignoring old commands for target `kerneltags' vendor/cm/build/tasks/kernel.mk:353: warning: overriding commands for target `kernelconfig' build/core/tasks/kernel.mk:255: warning: ignoring old commands for target `kernelconfig' vendor/cm/build/tasks/kernel.mk:372: warning: overriding commands for target `/home/govind/n/out/target/product/Z00L/kernel' build/core/tasks/kernel.mk:269: warning: ignoring old commands for target `/home/govind/n/out/target/product/Z00L/kernel' Starting build with ninja ninja: Entering directory `.' ninja: error: '/home/govind/n/out/target/product/Z00L/obj/SHARED_LIBRARIES/libqmiservices_intermediates/export_includes', needed by '/home/govind/n/out/target/product/Z00L/obj/EXECUTABLES/wcnss_service_intermediates/import_includes', missing and no known rule to make it make: *** [ninja_wrapper] Error 1 #### make failed to build some targets (25 seconds) #### Build step 'Execute shell' marked build as failure FTP: Current build result is [FAILURE], not going to run. Finished: FAILURE
https://hastebin.com/qixotiyuqo.sql plz help me in sorting out this error

[SOLVED] Help compiling kernel?

Wondering if someone can help? I'm trying to compile the CM kernel.
I'm running Fedora 20 64-bit and have installed the relevant packages from this post:
http://marcofalchi.blogspot.co.uk/2013/11/fedora-20-compile-cyanogenmod-110-part-1.html
I'm using this guide to build the kernel:
http://forum.xda-developers.com/showthread.php?t=1748297
However no matter what toolchain I use, I get the following error:
Code:
In file included from arch/arm/mach-msm/perf_trace_counters.h:126:0,
from arch/arm/mach-msm/perf_trace_counters.c:14:
include/trace/define_trace.h:79:43: fatal error: ./perf_trace_counters.h: No such file or directory
compilation terminated.
make[1]: *** [arch/arm/mach-msm/perf_trace_counters.o] Error 1
make[1]: *** Waiting for unfinished jobs....
CC kernel/exec_domain.o
make: *** [arch/arm/mach-msm] Error 2
make: *** Waiting for unfinished jobs....
Can anyone shed any light? I've also tried compiling ayysir's kernel with the same result.
Update: Never mind, I copied arch/arm/mach-msm/perf_trace_counters.h to include/trace/ and it worked.
Feels like a bit of a hack and I probably did something wrong, but it compiled and I have a zImage - now to see if it will boot.
dougiebee said:
Wondering if someone can help? I'm trying to compile the CM kernel.
I'm running Fedora 20 64-bit and have installed the relevant packages from this post:
http://marcofalchi.blogspot.co.uk/2013/11/fedora-20-compile-cyanogenmod-110-part-1.html
I'm using this guide to build the kernel:
http://forum.xda-developers.com/showthread.php?t=1748297
However no matter what toolchain I use, I get the following error:
Code:
In file included from arch/arm/mach-msm/perf_trace_counters.h:126:0,
from arch/arm/mach-msm/perf_trace_counters.c:14:
include/trace/define_trace.h:79:43: fatal error: ./perf_trace_counters.h: No such file or directory
compilation terminated.
make[1]: *** [arch/arm/mach-msm/perf_trace_counters.o] Error 1
make[1]: *** Waiting for unfinished jobs....
CC kernel/exec_domain.o
make: *** [arch/arm/mach-msm] Error 2
make: *** Waiting for unfinished jobs....
Can anyone shed any light? I've also tried compiling ayysir's kernel with the same result.
Update: Never mind, I copied arch/arm/mach-msm/perf_trace_counters.h to include/trace/ and it worked.
Feels like a bit of a hack and I probably did something wrong, but it compiled and I have a zImage - now to see if it will boot.
Click to expand...
Click to collapse
For future reference only! Here is the solution: Solution
kostoulhs said:
For future reference only! Here is the solution: Solution
Click to expand...
Click to collapse
OR https://github.com/CyanogenMod/andr...fc90dab#diff-0d7cf45734954beb174f815cd5fd45b7

[HELP] Android kernel compiling error.

Hi every body, I am trying to compile kernel for SamSung Galaxy S5 (SM-G906K).
I always get this error message, i don't know how to solve it. Please help me !
Thank you all!
__________________________________________________ ______
/home/vip7009pro/Kernel2/drivers/gpu/gpu_sysfs/Kbuild:29: **** Make sure target file is defined. Check the TARGET and GPU configs in Makefile and Kernel Config. Module won't work without target file. ****
scripts/Makefile.clean:17: /home/vip7009pro/Kernel2/drivers/media/isdbt/fc8150/Makefile: No such file or directory
make[4]: *** No rule to make target `/home/vip7009pro/Kernel2/drivers/media/isdbt/fc8150/Makefile'. Stop.
make[3]: *** [drivers/media/isdbt/fc8150] Error 2
make[2]: *** [drivers/media/isdbt] Error 2
make[1]: *** [drivers/media] Error 2
make: *** [_clean_drivers] Error 2
[email protected]:~/Kernel2$ make mrproper
/home/vip7009pro/Kernel2/drivers/gpu/gpu_sysfs/Kbuild:29: **** Make sure target file is defined. Check the TARGET and GPU configs in Makefile and Kernel Config. Module won't work without target file. ****
scripts/Makefile.clean:17: /home/vip7009pro/Kernel2/drivers/media/isdbt/fc8150/Makefile: No such file or directory
make[4]: *** No rule to make target `/home/vip7009pro/Kernel2/drivers/media/isdbt/fc8150/Makefile'. Stop.
make[3]: *** [drivers/media/isdbt/fc8150] Error 2
make[2]: *** [drivers/media/isdbt] Error 2
make[1]: *** [drivers/media] Error 2
make: *** [_clean_drivers] Error 2
_________________________________________
Any body help me ?
Hi~ please reply for my message
nguyen_vh said:
Any body help me ?
Click to expand...
Click to collapse
Hi......
Do you solved this problem?
I am trying Compile custom kernel for Galaxy s5 ,too..
I have same problem ....
Please Contact me if you solve this problem & success custom kernel compile.
[email protected]
thanks!
build_kernel.sh
samsung provides script for succesful compiling of kernel from source: build_kernel.sh
sudo apt-get install git
git clone https://android.googlesource.com/platform/prebuilts/gcc/linux-x86/arm/arm-eabi-4.8 (i used this version because samsung used 4.8 to compile my g901f kernel)
my paths:
/home/kriomag/Kernel
/home/arm-eabi-4.8
for above paths i used (started from Kernel folder):
export ARCH=arm
export CROSS_COMPILE=$(pwd)/../arm-eabi-4.8/bin/arm-eabi-
mkdir output
make -C $(pwd) O=output apq8084_sec_defconfig VARIANT_DEFCONFIG=apq8084_sec_kccat6_eur_defconfig SELINUX_DEFCONFIG=selinux_defconfig (this line outputs after few warnings .config file needed to "make")
make -j4 -C $(pwd) O=output (this line starts compiling, after long time it gives zImage - kernel file in output/arch/arm/boot);
all you need is to correct paths in this script to yours paths and use g906k variant configs names. This above example is from my compilation of g901f kernel.
Im facing this problem aswell, did you find a fix already?
Found the Solution!
Kriomag's solution worked! It looks like those errors are associated with the CROSS_COMPILE path. Be sure to use the appropriate toolchain for your export CROSS_COMPILE command. For me, I kept typing "/home/user/arm-eabi-4.8/bin/" which resulted in the same error about checking the "TARGET"; Instead of "/home/user/arm-eabi-4.8/bin/arm-eabi-" Turns out, when I git cloned from the URL provided by Kriomag, the scripts are written without the prefix "arm-eabi-"
Kriomag!

OmniROM 6.0 build error for Pixel C

General information:
1. I can't found the kernel source from android.com and android source repos.
2. I was setup build environment for OmniROM, and I was tested build manta with success.
3. I was config the device repo in .repo/local_manifests/default.xml with https://android.googlesource.com/device/google/dragon/ and https://android.googlesource.com/device/google/dragon-kernel/
4. Changed all aosp_dragon to omni_dragon, add TWRP config to BoardConfig.mk, add TARGET_PREBUILT_KERNEL := device/google/dragon-kernel/Image.fit to device.mk
5. Download and extract vendor file from https://developers.google.com/android/nexus/drivers#dragon using MXC14G version.
6. Modified tools/roomservice.py for disabled check dragon online.(Make it compile)
My build step:
cmd:
cd /media/dev/source/OmniROM/
brunch dragon
Wait for complete, it report error:
Code:
Export includes file: external/tinycompress/Android.mk -- /media/dev/source/OmniROM/out/target/product/dragon/obj_arm/SHARED_LIBRARIES/libtinycompress_intermediates/export_includes
make: *** No rule to make target '/media/dev/source/OmniROM/out/target/product/dragon/obj/KERNEL_OBJ/usr', needed by '/media/dev/source/OmniROM/out/target/product/dragon/obj_arm/SHARED_LIBRARIES/libtinycompress_intermediates/compress.o'
The full log in http://pastebin.com/drM6Fe2R
I tried build the external/tinycompress package only, it return error.
cmd:
mm external/tinycompress
Report error:
Code:
No private recovery resources for TARGET_DEVICE dragon
build/core/tasks/kernel.mk:104: ***************************************************************
build/core/tasks/kernel.mk:105: * Using prebuilt kernel binary instead of source *
build/core/tasks/kernel.mk:106: * THIS IS DEPRECATED, AND WILL BE DISCONTINUED *
build/core/tasks/kernel.mk:107: * Please configure your device to download the kernel *
build/core/tasks/kernel.mk:108: * source repository to kernel/google/dragon
build/core/tasks/kernel.mk:109: * See http://forum.xda-developers.com/wiki/ROM/Integrated_Kernel_Build
build/core/tasks/kernel.mk:110: * for more information *
build/core/tasks/kernel.mk:111: ***************************************************************
build/core/tasks/kernel.mk:271: warning: overriding recipe for target '/media/dev/source/OmniROM/out/target/product/dragon/kernel'
build/core/Makefile:72: warning: ignoring old recipe for target '/media/dev/source/OmniROM/out/target/product/dragon/kernel'
make: Nothing to be done for 'external/tinycompress'.
The full log in http://pastebin.com/DaHjPmHk
Can't you help me fix this build erro?
kendling said:
General information:
1. I can't found the kernel source from android.com and android source repos.
2. I was setup build environment for OmniROM, and I was tested build manta with success.
3. I was config the device repo in .repo/local_manifests/default.xml with https://android.googlesource.com/device/google/dragon/ and https://android.googlesource.com/device/google/dragon-kernel/
4. Changed all aosp_dragon to omni_dragon, add TWRP config to BoardConfig.mk, add TARGET_PREBUILT_KERNEL := device/google/dragon-kernel/Image.fit to device.mk
5. Download and extract vendor file from https://developers.google.com/android/nexus/drivers#dragon using MXC14G version.
6. Modified tools/roomservice.py for disabled check dragon online.(Make it compile)
My build step:
cmd:
cd /media/dev/source/OmniROM/
brunch dragon
Wait for complete, it report error:
Code:
Export includes file: external/tinycompress/Android.mk -- /media/dev/source/OmniROM/out/target/product/dragon/obj_arm/SHARED_LIBRARIES/libtinycompress_intermediates/export_includes
make: *** No rule to make target '/media/dev/source/OmniROM/out/target/product/dragon/obj/KERNEL_OBJ/usr', needed by '/media/dev/source/OmniROM/out/target/product/dragon/obj_arm/SHARED_LIBRARIES/libtinycompress_intermediates/compress.o'
The full log in http://pastebin.com/drM6Fe2R
I tried build the external/tinycompress package only, it return error.
cmd:
mm external/tinycompress
Report error:
Code:
No private recovery resources for TARGET_DEVICE dragon
build/core/tasks/kernel.mk:104: ***************************************************************
build/core/tasks/kernel.mk:105: * Using prebuilt kernel binary instead of source *
build/core/tasks/kernel.mk:106: * THIS IS DEPRECATED, AND WILL BE DISCONTINUED *
build/core/tasks/kernel.mk:107: * Please configure your device to download the kernel *
build/core/tasks/kernel.mk:108: * source repository to kernel/google/dragon
build/core/tasks/kernel.mk:109: * See http://forum.xda-developers.com/wiki/ROM/Integrated_Kernel_Build
build/core/tasks/kernel.mk:110: * for more information *
build/core/tasks/kernel.mk:111: ***************************************************************
build/core/tasks/kernel.mk:271: warning: overriding recipe for target '/media/dev/source/OmniROM/out/target/product/dragon/kernel'
build/core/Makefile:72: warning: ignoring old recipe for target '/media/dev/source/OmniROM/out/target/product/dragon/kernel'
make: Nothing to be done for 'external/tinycompress'.
The full log in http://pastebin.com/DaHjPmHk
Can't you help me fix this build erro?
Click to expand...
Click to collapse
I'd look at one of the other Nexus device trees to see how they set up inline kernel build and properly Omni-fied it. I haven't done it in such a long time I don't really remember the exact details.
anyone can help me ?
Code:
OBJCOPY arch/arm/boot/zImage
Kernel: arch/arm/boot/zImage is ready
make[1]: Leaving directory `/home/ibrahim/wave/kernel/samsung/aries'
make -C kernel/samsung/aries O=/home/ibrahim/wave/out/target/product/wave/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE=" "/home/ibrahim/wave/prebuilts/gcc/linux-x86/arm/arm-eabi-4.8/bin/"/arm-eabi-" dtbs
make[1]: Entering directory `/home/ibrahim/wave/kernel/samsung/aries'
make[2]: *** No rule to make target `dtbs'. Stop.
make[1]: *** [sub-make] Error 2
make[1]: Leaving directory `/home/ibrahim/wave/kernel/samsung/aries'
make: [TARGET_KERNEL_BINARIES] Error 2 (ignored)
make -C kernel/samsung/aries O=/home/ibrahim/wave/out/target/product/wave/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE=" "/home/ibrahim/wave/prebuilts/gcc/linux-x86/arm/arm-eabi-4.8/bin/"/arm-eabi-" modules
make[1]: Entering directory `/home/ibrahim/wave/kernel/samsung/aries'
CHK include/linux/version.h
I did found the problem!!
Because I did add the lines to aosp_dragon.mk below:
Code:
# Inherit from our custom product configuration
$(call inherit-product, vendor/omni/config/common_tablet.mk)
After that, I got new errors:
1. Failed to compile mkbootimg.c
Code:
target C: utility_mkbootimg <= system/core/mkbootimg/mkbootimg.c
system/core/mkbootimg/mkbootimg.c: In function 'print_id':
system/core/mkbootimg/mkbootimg.c:82:5: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for (unsigned i = 0; i < id_len; i++) {
^
system/core/mkbootimg/mkbootimg.c:82:5: note: use option -std=c99, -std=gnu99, -std=c11 or -std=gnu11 to compile your code
build/core/binary.mk:801: recipe for target '/media/dev/source/OmniROM/out/target/product/dragon/obj/UTILITY_EXECUTABLES/utility_mkbootimg_intermediates/mkbootimg.o' failed
make: *** [/media/dev/source/OmniROM/out/target/product/dragon/obj/UTILITY_EXECUTABLES/utility_mkbootimg_intermediates/mkbootimg.o] Error 1
make: *** 正在等待未完成的任务....
2. Failed to compile compress.c
Code:
target thumb C: audio.usb.default_32 <= hardware/libhardware/modules/usbaudio/audio_hal.c
In file included from bionic/libc/include/signal.h:32:0,
from bionic/libc/include/sys/select.h:33,
from bionic/libc/include/unistd.h:35,
from external/tinycompress/compress.c:61:
/media/dev/source/OmniROM/out/target/product/dragon/obj/KERNEL_OBJ/usr/include/asm/sigcontext.h:53:2: error: unknown type name '__uint128_t'
__uint128_t vregs[32];
^
build/core/binary.mk:801: recipe for target '/media/dev/source/OmniROM/out/target/product/dragon/obj_arm/SHARED_LIBRARIES/libtinycompress_intermediates/compress.o' failed
make: *** [/media/dev/source/OmniROM/out/target/product/dragon/obj_arm/SHARED_LIBRARIES/libtinycompress_intermediates/compress.o] Error 1
make: *** 正在等待未完成的任务....
make: *** wait: 没有子进程。 停止。
Anyone can help me?
About __uint128_t problem, do this:
https://github.com/omnirom/android_...mmit/80349b926351ca5992973e4a0357ca649a602faa
Blue59 said:
anyone can help me ?
Code:
OBJCOPY arch/arm/boot/zImage
Kernel: arch/arm/boot/zImage is ready
make[1]: Leaving directory `/home/ibrahim/wave/kernel/samsung/aries'
make -C kernel/samsung/aries O=/home/ibrahim/wave/out/target/product/wave/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE=" "/home/ibrahim/wave/prebuilts/gcc/linux-x86/arm/arm-eabi-4.8/bin/"/arm-eabi-" dtbs
make[1]: Entering directory `/home/ibrahim/wave/kernel/samsung/aries'
make[2]: *** No rule to make target `dtbs'. Stop.
make[1]: *** [sub-make] Error 2
make[1]: Leaving directory `/home/ibrahim/wave/kernel/samsung/aries'
make: [TARGET_KERNEL_BINARIES] Error 2 (ignored)
make -C kernel/samsung/aries O=/home/ibrahim/wave/out/target/product/wave/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE=" "/home/ibrahim/wave/prebuilts/gcc/linux-x86/arm/arm-eabi-4.8/bin/"/arm-eabi-" modules
make[1]: Entering directory `/home/ibrahim/wave/kernel/samsung/aries'
CHK include/linux/version.h
Click to expand...
Click to collapse
@Blue59
make[2]: *** No rule to make target `dtbs'.
Click to expand...
Click to collapse
The problem is , your kernel's Makefile not have dtbs make rule.
See https://github.com/kendling/android_kernel_google_dragon/blob/m/arch/arm64/Makefile
dtbs: prepare scripts
$(Q)$(MAKE) $(build)=$(boot)/dts
dtbs_install:
$(Q)$(MAKE) $(dtbinst)=$(boot)/dts
Click to expand...
Click to collapse
Hi everybody,
I was fixed all problem and build success.
After build success, the boot.img can't bootup.
Tablet display "OS on your tablet is damaged. Need recovery."
Yes, I fixed it too.
Now my build was all success and success bootup.
I want to release the ROM later.
Thanks all!

Categories

Resources