I want to add an option in a defconfig in the msm Android 10 kernel. Whenever I change the defconfig and run
build/build.sh
I get following error:
Code:
...
HOSTLD scripts/genksyms/genksyms
HOSTLD scripts/mod/modpost
UPD include/config/kernel.release
Using /home/mbuch/kernels/msm/private/msm-google as source for kernel
/home/mbuch/kernels/msm/private/msm-google is not clean, please run 'make mrproper'
in the '/home/mbuch/kernels/msm/private/msm-google' directory.
/home/mbuch/kernels/msm/private/msm-google/Makefile:1148: recipe for target 'prepare3' failed
make[2]: *** [prepare3] Error 1
Makefile:152: recipe for target 'sub-make' failed
make[1]: *** [sub-make] Error 2
Makefile:24: recipe for target '__sub-make' failed
make: *** [__sub-make] Error 2
To change the defconfig I ran the following commands:
1. Copy existing defconfig template to arch/arm64/configs/mydefconfig
2. From private/msm-google I run
Code:
make ARCH=arm64 mydefconfig
make ARCH=arm64 savedefconfig
build/build.sh
Related
Hi guys,
I tried to compile an android kernel following the tutorials that are on this forum, but there is something that doesn't works...
I installed the libraries indicated, and downloaded both NDK and Kernel sources, and I extracted it in my home folder.
Then I changed directory in the directory of the kernel and I made the three export indicated in tutorials:
export ARCH=arm
export CROSS_COMPILE=arm-linux-androideabi- (Here I also tried with "export CROSS_COMPILE=arm-eabi-")
export PATH=$PATH:~/android-ndk-r8/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin
Now I choosed a .config file in the arch/arm/configs directory and I used the command:
make *file config*
make menuconfig
And then, when I use the command "make -j2", I have some problems, in fact:
scripts/kconfig/conf --silentoldconfig Kconfig
CHK include/linux/version.h
CHK include/generated/utsrelease.h
CC scripts/mod/empty.o
arm-eabi-gcc: No such file or directory
Is your PATH set correctly?
make[2]: *** [scripts/mod/empty.o] Error 2
make[1]: *** [scripts/mod] Error 2
make: *** [scripts] Error 2
make: *** Waiting for unfinished jobs....
Can you tell me where I'm wrong please?
Thanks
I've been trying to build a modified kernel and decided to start out by building the kernel I'm currently using on my device from the dev's github.
without modifying anything, I followed this guide: http://forum.xda-developers.com/android/software/ultimate-guide-compile-android-kernel-t2871276
I get to the point where I type "make -j<cores>"(in step 6) and I get this:
Code:
[email protected]:~/android/kernel# make
make: /root/android/kernel/arm-eabi-4.4.3/bin/arm-eabi-gcc: Command not found
scripts/kconfig/conf --silentoldconfig Kconfig
make: /root/android/kernel/arm-eabi-4.4.3/bin/arm-eabi-gcc: Command not found
CHK include/linux/version.h
CHK include/generated/utsrelease.h
make[1]: 'include/generated/mach-types.h' is up to date.
CC kernel/bounds.s
/bin/sh: 1: /root/android/kernel/arm-eabi-4.4.3/bin/arm-eabi-gcc: not found
/root/android/kernel/./Kbuild:35: recipe for target 'kernel/bounds.s' failed
make[1]: *** [kernel/bounds.s] Error 127
Makefile:958: recipe for target 'prepare0' failed
make: *** [prepare0] Error 2
I dont know what I'm doing wrong, I've tried compiling with Kali Linux and Ubuntu.
I just can't get past this part.
Eventually I want to replace the wifi drivers with a modified one to allow the device to enter monitor mode.
Could someone please help?
Thank you.
Hi,
I want to compile Honor 4C kernel which I downloaded the source code from huawei website, I'm running Ubuntu 15.04 and arm-linux-gnueabihf-gcc Linaro 4.7.3 when I try to compile the source I get this error:
Code:
drivers/hisi/hi6xxx/hi6xxx_sim.c:24:24: fatal error: hi6xxx_sim.h: No such file or directory
compilation terminated.
scripts/Makefile.build:316: recipe for target 'drivers/hisi/hi6xxx/hi6xxx_sim.o' failed
make[3]: *** [drivers/hisi/hi6xxx/hi6xxx_sim.o] Error 1
scripts/Makefile.build:468: recipe for target 'drivers/hisi/hi6xxx' failed
make[2]: *** [drivers/hisi/hi6xxx] Error 2
scripts/Makefile.build:468: recipe for target 'drivers/hisi' failed
make[1]: *** [drivers/hisi] Error 2
Note: I am not sure where I should have put this thread but I was going to put it in the development section but I don't have a high enough post count. If this thread should be in another section please feel free to move it mods.
ok so i am trying to build my own kernel for the g5 and i have read that i need to build a clean unmodified kernel first in order to make sure everything is set up right. these are the errors i keep getting everytime without fail.
these are the compile commands.
[email protected]:~$ cd kernel;
[email protected]:~/kernel$ export /home/maxwell/Android/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/bin/aarch64-linux-android-
bash: export: `/home/maxwell/Android/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/bin/aarch64-linux-android-': not a valid identifier
[email protected]:~/kernel$ export CROSS_COMPILE=/home/maxwell/Android/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/bin/aarch64-linux-android-
[email protected]:~/kernel$ export ARCH=arm64
[email protected]:~/kernel$ make h1_global_com-perf_defconfigdrivers/soc/qcom/Kconfig:287:warning: choice value used outside its choice group
drivers/soc/qcom/Kconfig:292:warning: choice value used outside its choice group
arch/arm64/configs/h1_global_com-perf_defconfig:694:warning: override: reassigning to symbol INET_XFRM_MODE_BEET
arch/arm64/configs/h1_global_com-perf_defconfig:705:warning: override: reassigning to symbol LGE_SP_MIRRORING_CTRL_BL
#
# configuration written to .config
#
[email protected]:~/kernel$ make clean && make mrproper
CLEAN .
CLEAN arch/arm64/kernel/vdso
CLEAN arch/arm64/kernel
CLEAN crypto/asymmetric_keys
CLEAN firmware
CLEAN kernel/time
CLEAN kernel
CLEAN security/selinux
CLEAN usr
CLEAN .tmp_versions
CLEAN scripts/basic
CLEAN scripts/dtc
CLEAN scripts/genksyms
CLEAN scripts/kconfig
CLEAN scripts/mod
CLEAN scripts/selinux/genheaders
CLEAN scripts/selinux/mdp
CLEAN scripts
CLEAN include/config include/generated arch/arm64/include/generated
CLEAN .config .config.old .version include/generated/uapi/linux/version.h signing_key.priv signing_key.x509 x509.genkey
[email protected]:~/kernel$ make h1_global_com-perf_defconfig
HOSTCC scripts/basic/fixdep
HOSTCC scripts/kconfig/conf.o
SHIPPED scripts/kconfig/zconf.tab.c
SHIPPED scripts/kconfig/zconf.lex.c
SHIPPED scripts/kconfig/zconf.hash.c
HOSTCC scripts/kconfig/zconf.tab.o
HOSTLD scripts/kconfig/conf
drivers/soc/qcom/Kconfig:287:warning: choice value used outside its choice group
drivers/soc/qcom/Kconfig:292:warning: choice value used outside its choice group
arch/arm64/configs/h1_global_com-perf_defconfig:694:warning: override: reassigning to symbol INET_XFRM_MODE_BEET
arch/arm64/configs/h1_global_com-perf_defconfig:705:warning: override: reassigning to symbol LGE_SP_MIRRORING_CTRL_BL
#
# configuration written to .config
#
[email protected]:~/kernel$ make -j8
these are the errors.
scripts/Makefile.build:402: recipe for target 'drivers/usb' failed
make[1]: *** [drivers/usb] Error 2
In file included from drivers/soc/qcom/tracer_pkt_private.h:49:0,
from drivers/soc/qcom/tracer_pkt.c:18:
include/trace/define_trace.h:83:43: fatal error: ./tracer_pkt_private.h: No such file or directory
#include TRACE_INCLUDE(TRACE_INCLUDE_FILE)
^
compilation terminated.
scripts/Makefile.build:257: recipe for target 'drivers/soc/qcom/tracer_pkt.o' failed
make[3]: *** [drivers/soc/qcom/tracer_pkt.o] Error 1
make[3]: *** Waiting for unfinished jobs....
scripts/Makefile.build:402: recipe for target 'drivers/soc/qcom' failed
make[2]: *** [drivers/soc/qcom] Error 2
scripts/Makefile.build:402: recipe for target 'drivers/soc' failed
make[1]: *** [drivers/soc] Error 2
Makefile:945: recipe for target 'drivers' failed
make: *** [drivers] Error 2
[email protected]:~/kernel$
have the same error
edit: disabled TRACE_PKT in .config
please established devs help these guys as the g5 badly needs a good kernel.
Hello guys.
I have Galaxy s8 G950F Orero. I'm trying to compile a kernel to support monitoring mode and packet injection on external wifi adapter. I got a few errors when the build started.
I'm using Ubuntu 18.04 and aarch64/aarch64-linux-android-4.9 -b pie-release toolchain64
The error is:
/home/zerocount/kernel/kernel/Makefile:614: recipe for target 'scripts' failed
make[1]: *** [scripts] Error 2
make[1]: *** Waiting for unfinished jobs....
CHK include/generated/timeconst.h
CC kernel/bounds.s
UPD include/generated/timeconst.h
/home/zerocount/kernel/kernel/kernel/bounds.c:1:0: error: unknown value 'exynos-m1+crc+nofp' for -mcpu
/*
^
/home/zerocount/kernel/kernel/kernel/bounds.c:1:0: error: unknown value 'exynos-m1' for -mtune
/home/zerocount/kernel/kernel/./Kbuild:19: recipe for target 'kernel/bounds.s' failed
make[2]: *** [kernel/bounds.s] Error 1
/home/zerocount/kernel/kernel/Makefile:1117: recipe for target 'prepare0' failed
make[1]: *** [prepare0] Error 2
/home/zerocount/kernel/kernel/drivers/sensorhub/brcm/Makefile:57: ANDROID_MAJOR_VERSION : p
/home/zerocount/kernel/kernel/drivers/sensorhub/brcm/Makefile:58: ANDROID_PLATFORM_VERSION : 990000
make[1]: Leaving directory '/home/zerocount/kernel/out'
Makefile:150: recipe for target 'sub-make' failed
make: *** [sub-make] Error 2
I don't get it why it has to be so hard to build a kernel... I got errors and nothing more. Everytime i type make O=../out -j5 i got different errors.