trying to compile B32 kernel source - ZTE Axon 7 Questions & Answers

I'm a beginner trying to compile source. I can't pass "make msm-perf_ailsa_ii_defconfig".
As the error suggests, the /vendor/ directory does not exist. But /qcom/Kconfig has the line,
Code:
source "drivers/soc/qcom/vendor/Kconfig"
. Thanks for any help.
Code:
[email protected]:~/kernel1/msm-3.18$ make clean
[email protected]:~/kernel1/msm-3.18$ make mrproper
[email protected]:~/kernel1/msm-3.18$ make msm-perf_ailsa_ii_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:836: can't open file "drivers/soc/qcom/vendor/Kconfig"
scripts/kconfig/Makefile:105: recipe for target 'msm-perf_ailsa_ii_defconfig' failed
make[1]: *** [msm-perf_ailsa_ii_defconfig] Error 1
Makefile:542: recipe for target 'msm-perf_ailsa_ii_defconfig' failed
make: *** [msm-perf_ailsa_ii_defconfig] Error 2
[email protected]:~/kernel1/msm-3.18$

That's because the source is broken. Even if you fix the compile errors it won't boot. You can thank ZTE for that.

Related

[Q] problem with building kernel[solved]

Hi every one I have a problem with compiling zImage of a3000 kernel so i enter these coomands:
Code:
export TARGET_BUILD_VARIANT=eng TARGET_PRODUCT=a3000_prc_3gfull MTK_ROOT_CUSTOM=/mediatek/custom/ TARGET_KERNEL_VERSION=3.4.5 &&export PATH=arm-eabi-linaro-4.6.2/bin/:$PATH&&export CROSS_COMPILE=arm-eabi-&&export ARCH=arm
then for setup:
Code:
make menuconfigscripts/kconfig/mconf Kconfig
*** End of the configuration.
*** Execute 'make' to start the build or try 'make help'.
I don't touch configurations.
problem is here
Code:
[B][SIZE="4"][U]make zImage[/U][/SIZE][/B]
CHK include/linux/version.h
CHK include/generated/utsrelease.h
make[1]: `include/generated/mach-types.h' is up to date.
CC arch/arm/kernel/asm-offsets.s
In file included from include/linux/timex.h:174:0,
from include/linux/sched.h:57,
from arch/arm/kernel/asm-offsets.c:13:
[B][U][SIZE="4"][COLOR="black"][COLOR="Red"]/media/***/****/kernel/arch/arm/include/asm/timex.h:15:24: fatal error: mach/timex.h: No such file or directory
compilation terminated.
make[1]: *** [arch/arm/kernel/asm-offsets.s] Error 1
make: *** [prepare0] Error 2[/COLOR][/COLOR][/SIZE][/U][/B]

How to make Samsung Note 3 modules from Samsung Source

Would you help me make sense of the make output below? Does this mean I was not able to build all the modules? I believe I only got one module, and given the errors below, I don't think the file is a valid working target. How do I fix this error please?
correctly?
[email protected]:~/WORKING_DIRECTORY$ make CFLAGS_MODULE=-fno-pic modules
scripts/kconfig/conf --silentoldconfig Kconfig
sound/soc/codecs/audience/Kconfig:40:warning: type of 'SND_SOC_ES_SLIM' redefined from 'boolean' to 'tristate'
sound/soc/codecs/audience/Kconfig:43:warning: type of 'SND_SOC_ES_I2C' redefined from 'boolean' to 'tristate'
sound/soc/codecs/audience/Kconfig:44:warning: choice value used outside its choice group
sound/soc/codecs/audience/Kconfig:41:warning: choice value used outside its choice group
CHK include/linux/version.h
CHK include/generated/utsrelease.h
make[1]: `include/generated/mach-types.h' is up to date.
CC arch/arm/kernel/asm-offsets.s
GEN include/generated/asm-offsets.h
CALL scripts/checksyscalls.sh
HOSTCC scripts/genksyms/genksyms.o
SHIPPED scripts/genksyms/lex.lex.c
SHIPPED scripts/genksyms/keywords.hash.c
SHIPPED scripts/genksyms/parse.tab.h
HOSTCC scripts/genksyms/lex.lex.o
SHIPPED scripts/genksyms/parse.tab.c
HOSTCC scripts/genksyms/parse.tab.o
HOSTLD scripts/genksyms/genksyms
CC scripts/mod/empty.o
MKELF scripts/mod/elfconfig.h
HOSTCC scripts/mod/file2alias.o
HOSTCC scripts/mod/modpost.o
HOSTCC scripts/mod/sumversion.o
HOSTLD scripts/mod/modpost
CC [M] drivers/scsi/scsi_wait_scan.o
Building modules, stage 2.
MODPOST 1 modules
ERROR: "module_layout" [drivers/scsi/scsi_wait_scan.ko] undefined!
ERROR: "__aeabi_unwind_cpp_pr0" [drivers/scsi/scsi_wait_scan.ko] undefined!
ERROR: "__aeabi_unwind_cpp_pr1" [drivers/scsi/scsi_wait_scan.ko] undefined!
ERROR: "scsi_complete_async_scans" [drivers/scsi/scsi_wait_scan.ko] undefined!
ERROR: "wait_for_device_probe" [drivers/scsi/scsi_wait_scan.ko] undefined!
make[1]: *** [__modpost] Error 1
make: *** [modules] Error 2
[email protected]:~/WORKING_DIRECTORY$
What source are you using, and why do you need to build Samsung modules from source?
In addition to previous poster's questions:
Are talking about Xposed modules here?
And what ROM?
I got it from opensource.samsung.com. I am trying to add to the modules. I have to appologize; I may not have answered your question. If there is a specific version number or what not I can look up, please let me know so I can provide it.
Morningstar said:
What source are you using, and why do you need to build Samsung modules from source?
Click to expand...
Click to collapse
I apologize I do not know the difference between exposed vs. other kinds of modules. Could you please elaborate? What I did was to unpack the Kernel.tar.gz and Platform.tar.gz; I downloaded the version of AOSP metioned in the readme file. I set the environment settings as instructed in the readme files and configred the Makefile with the right CROSS_COMPILE setting. I then ran make successfully. Looked for *.ko files, and did not find a single one. Then I issued make module, and it stated to enable dynamic loadable modules. So I did that using menuconfig or xconfig; I have to check. Then I ran make modules, and I got the following errors:
Code:
[email protected]:~/WORKING_DIRECTORY$ make modules
scripts/kconfig/conf --silentoldconfig Kconfig
sound/soc/codecs/audience/Kconfig:40:warning: type of 'SND_SOC_ES_SLIM' redefined from 'boolean' to 'tristate'
sound/soc/codecs/audience/Kconfig:43:warning: type of 'SND_SOC_ES_I2C' redefined from 'boolean' to 'tristate'
sound/soc/codecs/audience/Kconfig:44:warning: choice value used outside its choice group
sound/soc/codecs/audience/Kconfig:41:warning: choice value used outside its choice group
CHK include/linux/version.h
CHK include/generated/utsrelease.h
make[1]: `include/generated/mach-types.h' is up to date.
CC arch/arm/kernel/asm-offsets.s
GEN include/generated/asm-offsets.h
CALL scripts/checksyscalls.sh
CC [M] drivers/scsi/scsi_wait_scan.o
Building modules, stage 2.
MODPOST 1 modules
ERROR: "__aeabi_unwind_cpp_pr0" [drivers/scsi/scsi_wait_scan.ko] undefined!
ERROR: "__aeabi_unwind_cpp_pr1" [drivers/scsi/scsi_wait_scan.ko] undefined!
ERROR: "scsi_complete_async_scans" [drivers/scsi/scsi_wait_scan.ko] undefined!
ERROR: "wait_for_device_probe" [drivers/scsi/scsi_wait_scan.ko] undefined!
make[1]: *** [__modpost] Error 1
make: *** [modules] Error 2
Someguyfromhell said:
In addition to previous poster's questions:
Are talking about Xposed modules here?
And what ROM?
Click to expand...
Click to collapse

Samsung Galaxy S5 G-900FD Kernel compilation error

I've been trying to compile kernel from samsung source for last few weeks but failed everytime.
At start everything goes fine almost. The problem is with the last step of compilation of the kernel.
Whenever I run the command:
HTML:
make -j5
it comes up with the error:
HTML:
scripts/kconfig/conf --silentoldconfig Kconfig
sound/soc/codecs/audience/Kconfig:40:warning: type of 'SND_SOC_ES_SLIM' redefined from 'boolean' to 'tristate'
sound/soc/codecs/audience/Kconfig:43:warning: type of 'SND_SOC_ES_I2C' redefined from 'boolean' to 'tristate'
boolean symbol SND_SOC_MAX98506 tested for 'm'? test forced to 'n'
sound/soc/codecs/audience/Kconfig:44:warning: choice value used outside its choice group
sound/soc/codecs/audience/Kconfig:41:warning: choice value used outside its choice group
CHK include/linux/version.h
CHK include/generated/utsrelease.h
make[1]: 'include/generated/mach-types.h' is up to date.
CC arch/arm/kernel/asm-offsets.s
In file included from include/linux/scatterlist.h:10:0,
from include/linux/dma-mapping.h:9,
from arch/arm/kernel/asm-offsets.c:15:
/media/sf_Krnl/Kernel/arch/arm/include/asm/io.h:30:26: fatal error: mach/msm_rtb.h: No such file or directory
#include <mach/msm_rtb.h>
^
compilation terminated.
/media/sf_Krnl/Kernel/./Kbuild:81: recipe for target 'arch/arm/kernel/asm-offsets.s' failed
make[1]: *** [arch/arm/kernel/asm-offsets.s] Error 1
Makefile:999: recipe for target 'prepare0' failed
make: *** [prepare0] Error 2
I've tried it a lot of times by changing directories, folder and terminals but nothing worked.
Further, I've used all these toolchians I mentioned here:
Code:
UBER Toolchian 7 (arm-eabi)
UBER toolchian 4.9 (arm-eabi)
NDK 4.9 (arm-eabi)
Sabermod 4.9 (arm-eabi)
linaro 4.9 (arm-eabi)
but all failed.
Help me please.

A2017U Stock Oreo Kernel Source Compiler Error

wondering if anyone can help me,
i downloaded the stock ZTE axon 7 kernel source looking to make some minor changes, upon trying to compile the source with NO CHANGES i get this error
HOSTCC scripts/basic/fixdep
HOSTCC scripts/kconfig/conf.o
HOSTCC scripts/kconfig/zconf.tab.o
HOSTLD scripts/kconfig/conf
drivers/soc/qcom/Kconfig:905: can't open file "drivers/soc/qcom/vendor/Kconfig"
scripts/kconfig/Makefile:109: recipe for target 'msm-perf-ailsa_ii_defconfig' failed
make[1]: *** [msm-perf-ailsa_ii_defconfig] Error 1
Makefile:546: recipe for target 'msm-perf-ailsa_ii_defconfig' failed
make: *** [msm-perf-ailsa_ii_defconfig] Error 2
is there anyway to fix this or is the source just broken
@extremetempz: You will most likely never get an answer here, the average XDA user doesnt know how to compile a kernel. I can do so for Linux, I run Gentoo Linux as my primary OS and maintain my own custom kernel that I compiled from source code, to support features that I need. But I have never compiled an Android kernel.
I think Superuser/Stack Exchange or GitHub would be a better place for you to post this.

Exec format error when building Google Kernel for Nexus 7 2012

Hi,
I am trying to build kernel for Nexus 7 (2012) but it is giving my exec format error. The commands and the errors are shown below:
Code:
LIFEBOOK-S761:~/Desktop$ git clone https://android.googlesource.com/kernel/tegra.git
Cloning into 'tegra'...
remote: Sending approximately 758.70 MiB ...
remote: Counting objects: 102, done
remote: Finding sources: 100% (8/8)
remote: Total 4341886 (delta 3657743), reused 4341880 (delta 3657743)
Receiving objects: 100% (4341886/4341886), 758.70 MiB | 10.87 MiB/s, done.
Resolving deltas: 100% (3657743/3657743), done.
LIFEBOOK-S761:~/Desktop$ cd tegra/
LIFEBOOK-S761:~/Desktop/tegra$ git checkout android-tegra3-grouper-3.1-kitkat-mr2
Checking out files: 100% (38132/38132), done.
Branch 'android-tegra3-grouper-3.1-kitkat-mr2' set up to track remote branch 'android-tegra3-grouper-3.1-kitkat-mr2' from 'origin'.
Switched to a new branch 'android-tegra3-grouper-3.1-kitkat-mr2'
LIFEBOOK-S761:~/Desktop/tegra$ export ARCH=arm
LIFEBOOK-S761:~/Desktop/tegra$ export SUBARCH=arm
LIFEBOOK-S761:~/Desktop/tegra$ export CROSS_COMPILE=/home/user/Desktop/arm-eabi-4.6/bin/arm-eabi-
LIFEBOOK-S761:~/Desktop/tegra$ make tegra3_android_defconfig
#
# configuration written to .config
#
LIFEBOOK-S761:~/Desktop/tegra$ make -j4
/home/user/Desktop/arm-eabi-4.6/bin/arm-eabi-gcc: 1: /home/user/Desktop/arm-eabi-4.6/bin/arm-eabi-gcc: Syntax error: "(" unexpected
scripts/kconfig/conf --silentoldconfig Kconfig
/home/user/Desktop/arm-eabi-4.6/bin/arm-eabi-gcc: 1: /home/user/Desktop/arm-eabi-4.6/bin/arm-eabi-gcc: Syntax error: "(" unexpected
CHK include/linux/version.h
UPD include/linux/version.h
HOSTCC scripts/kallsyms
CC scripts/mod/empty.o
/bin/sh: 1: /home/user/Desktop/arm-eabi-4.6/bin/arm-eabi-gcc: Exec format error
scripts/Makefile.build:305: recipe for target 'scripts/mod/empty.o' failed
make[2]: *** [scripts/mod/empty.o] Error 2
scripts/Makefile.build:441: recipe for target 'scripts/mod' failed
make[1]: *** [scripts/mod] Error 2
make[1]: *** Waiting for unfinished jobs....
HOSTCC scripts/selinux/genheaders/genheaders
HOSTCC scripts/selinux/mdp/mdp
Makefile:506: recipe for target 'scripts' failed
make: *** [scripts] Error 2
make: *** Waiting for unfinished jobs....
Can you please tell what I might be doing wrong or what could be the problem?

Categories

Resources