I've been trying for two days now to compile AGNi Kernel with Kexec-hardboot enabled under menuconfig>boot options and every damn time i get this error. If @psndna88 could help me it'd be nice.
here is the terminal
Code:
[email protected]:~/android/kernel$ make -j2 ARCH=arm
scripts/kconfig/conf --silentoldconfig Kconfig
CHK include/linux/version.h
UPD include/linux/version.h
CHK include/generated/utsrelease.h
UPD include/generated/utsrelease.h
HOSTCC scripts/genksyms/genksyms.o
Generating include/generated/mach-types.h
CC kernel/bounds.s
GEN include/generated/bounds.h
CC arch/arm/kernel/asm-offsets.s
GEN include/generated/asm-offsets.h
CALL scripts/checksyscalls.sh
SHIPPED scripts/genksyms/lex.c
SHIPPED scripts/genksyms/parse.h
CC scripts/mod/empty.o
SHIPPED scripts/genksyms/keywords.c
SHIPPED scripts/genksyms/parse.c
HOSTCC scripts/genksyms/lex.o
HOSTCC scripts/mod/mk_elfconfig
MKELF scripts/mod/elfconfig.h
HOSTCC scripts/mod/file2alias.o
HOSTCC scripts/genksyms/parse.o
HOSTCC scripts/mod/modpost.o
HOSTLD scripts/genksyms/genksyms
HOSTCC scripts/selinux/genheaders/genheaders
HOSTCC scripts/selinux/mdp/mdp
HOSTCC scripts/kallsyms
HOSTCC scripts/conmakehash
HOSTCC scripts/mod/sumversion.o
HOSTCC scripts/bin2c
HOSTLD scripts/mod/modpost
CC init/main.o
HOSTCC usr/gen_init_cpio
GEN usr/initramfs_data.cpio
AS usr/initramfs_data.o
LD usr/built-in.o
CC arch/arm/vfp/vfpmodule.o
CHK include/generated/compile.h
UPD include/generated/compile.h
CC init/do_mounts.o
AS arch/arm/vfp/entry.o
AS arch/arm/vfp/vfphw.o
CC arch/arm/vfp/vfpsingle.o
CC init/do_mounts_rd.o
CC arch/arm/vfp/vfpdouble.o
CC init/do_mounts_initrd.o
LD arch/arm/vfp/vfp.o
LD arch/arm/vfp/built-in.o
CC init/initramfs.o
LD arch/arm/mvp/commkm/built-in.o
CC [M] arch/arm/mvp/commkm/check_kconfig.o
CC [M] arch/arm/mvp/commkm/comm_ev_kernel.o
CC [M] arch/arm/mvp/commkm/comm.o
CC init/calibrate.o
CC init/version.o
/tmp/ccdjofq2.s: Assembler messages:
/tmp/ccdjofq2.s:194: Error: garbage following instruction -- `dmb ish'
/tmp/ccdjofq2.s:208: Error: garbage following instruction -- `dmb ish'
/tmp/ccdjofq2.s:2328: Error: garbage following instruction -- `dmb ish'
/tmp/ccdjofq2.s:2342: Error: garbage following instruction -- `dmb ish'
/tmp/ccdjofq2.s:2366: Error: garbage following instruction -- `dmb ish'
/tmp/ccdjofq2.s:2380: Error: garbage following instruction -- `dmb ish'
/tmp/ccdjofq2.s:2443: Error: garbage following instruction -- `dmb ish'
/tmp/ccdjofq2.s:2457: Error: garbage following instruction -- `dmb ish'
/tmp/ccdjofq2.s:2624: Error: garbage following instruction -- `dmb ish'
/tmp/ccdjofq2.s:2638: Error: garbage following instruction -- `dmb ish'
/tmp/ccdjofq2.s:2778: Error: garbage following instruction -- `dmb ish'
/tmp/ccdjofq2.s:2792: Error: garbage following instruction -- `dmb ish'
/tmp/ccdjofq2.s:2808: Error: garbage following instruction -- `dmb ish'
/tmp/ccdjofq2.s:2822: Error: garbage following instruction -- `dmb ish'
scripts/Makefile.build:305: recipe for target 'arch/arm/mvp/commkm/comm.o' failed
make[2]: *** [arch/arm/mvp/commkm/comm.o] Error 1
scripts/Makefile.build:441: recipe for target 'arch/arm/mvp/commkm' failed
make[1]: *** [arch/arm/mvp/commkm] Error 2
Makefile:955: recipe for target 'arch/arm/mvp' failed
make: *** [arch/arm/mvp] Error 2
make: *** Waiting for unfinished jobs....
LD init/mounts.o
LD init/built-in.o
[email protected]:~/android/kernel$
I am trying to compile this kernel because this thread.
Solved that one, but now one annoying one pops up
/home/lanimereala/android/omni/kernel/samsung/i9305/arm-cortex_a9-linux-gnueabihf-linaro_4.9.4/bin/arm-eabi-nm: 'arch/arm/boot/compressed/vmlinux': No such file
OBJCOPY arch/arm/boot/zImage
/home/lanimereala/android/omni/kernel/samsung/i9305/arm-cortex_a9-linux-gnueabihf-linaro_4.9.4/bin/arm-eabi-objcopy: 'arch/arm/boot/compressed/vmlinux': No such file
/home/lanimereala/android/omni/kernel/samsung/i9305/arch/arm/boot/Makefile:58: recipe for target 'arch/arm/boot/zImage' failed
make[1]: *** [arch/arm/boot/zImage] Error 1
/home/lanimereala/android/omni/kernel/samsung/i9305/arch/arm/Makefile:283: recipe for target 'zImage' failed
make: *** [zImage] Error 2
Solved that one, but now one annoying one pops up
/home/lanimereala/android/omni/kernel/samsung/i9305/arm-cortex_a9-linux-gnueabihf-linaro_4.9.4/bin/arm-eabi-nm: 'arch/arm/boot/compressed/vmlinux': No such file
OBJCOPY arch/arm/boot/zImage
/home/lanimereala/android/omni/kernel/samsung/i9305/arm-cortex_a9-linux-gnueabihf-linaro_4.9.4/bin/arm-eabi-objcopy: 'arch/arm/boot/compressed/vmlinux': No such file
/home/lanimereala/android/omni/kernel/samsung/i9305/arch/arm/boot/Makefile:58: recipe for target 'arch/arm/boot/zImage' failed
make[1]: *** [arch/arm/boot/zImage] Error 1
/home/lanimereala/android/omni/kernel/samsung/i9305/arch/arm/Makefile:283: recipe for target 'zImage' failed
make: *** [zImage] Error 2
Related
I use Linaro 2012.05 GCC 4.7 (arm-eabi) and when I compile stock Nexus S kernel I have these errors:
LD vmlinux.o
MODPOST vmlinux.o
WARNING: modpost: Found 4 section mismatch(es).
To see full details build your kernel with:
'make CONFIG_DEBUG_SECTION_MISMATCH=y'
GEN .version
CHK include/generated/compile.h
UPD include/generated/compile.h
CC init/version.o
LD init/built-in.o
LD .tmp_vmlinux1
KSYM .tmp_kallsyms1.S
AS .tmp_kallsyms1.o
LD .tmp_vmlinux2
KSYM .tmp_kallsyms2.S
AS .tmp_kallsyms2.o
LD vmlinux
SYSMAP System.map
SYSMAP .tmp_System.map
OBJCOPY arch/arm/boot/Image
Kernel: arch/arm/boot/Image is ready
AS arch/arm/boot/compressed/head.o
GZIP arch/arm/boot/compressed/piggy.gzip
AS arch/arm/boot/compressed/piggy.gzip.o
CC arch/arm/boot/compressed/misc.o
In file included from arch/arm/plat-samsung/include/plat/uncompress.h:30:0,
from arch/arm/mach-s5pv210/include/mach/uncompress.h:17,
from arch/arm/boot/compressed/misc.c:33:
arch/arm/plat-samsung/include/plat/regs-serial.h:284:27: warning: 'struct uart_port' declared inside parameter list [enabled by default]
arch/arm/plat-samsung/include/plat/regs-serial.h:284:27: warning: its scope is only this definition or declaration, which is probably not what you want [enabled by default]
CC arch/arm/boot/compressed/decompress.o
SHIPPED arch/arm/boot/compressed/lib1funcs.S
AS arch/arm/boot/compressed/lib1funcs.o
LD arch/arm/boot/compressed/vmlinux
arm-eabi-ld: error: DIV usage mismatch between arch/arm/boot/compressed/misc.o and output
arm-eabi-ld: error: DIV usage mismatch between arch/arm/boot/compressed/lib1funcs.o and output
make[2]: *** [arch/arm/boot/compressed/vmlinux] Errore 1
make[1]: *** [arch/arm/boot/compressed/vmlinux] Errore 2
make: *** [zImage] Errore 2
Click to expand...
Click to collapse
Can someone help me?
PS:
export ARCH=arm
export CROSS_COMPILE=arm-eabi-
export PATH=$PATH:~/android-toolchain-eabi/bin
Click to expand...
Click to collapse
div usage mismatch fix
See a potential solution here.
So I'm new at kernel developing and I'm running into an error. I am trying to compile a d2att kernel from cm10.1 so that I can tweak it. This is my log and the error i run into is at the end. Please help is you can.
[email protected]:~$ cd cm
[email protected]:~/cm$ export CROSS_COMPILE=/home/kevinflathers/android-ndk-r9/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86_64/bin/arm-linux-androideabi-
[email protected]:~/cm$ export ARCH=arm
[email protected]:~/cm$ make defconfig VARIANT_DEFCONFIG=cyanogen_d2att_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
*** Default configuration is based on 'versatile_defconfig'
drivers/media/video/msm/Kconfig:123:warning: choice value used outside its choice group
drivers/media/video/msm/Kconfig:128:warning: choice value used outside its choice group
KCONFIG_SELINUX((null))
KCONFIG_LOG_SELINUX((null))
KCONFIG_VARIANT(arch/arm/configs/cyanogen_d2att_defconfig)
KCONFIG_DEBUG((null))
#
# configuration written to .config
#
[email protected]:~/cm$ make -j3 ARCH=arm
scripts/kconfig/conf --silentoldconfig Kconfig
drivers/media/video/msm/Kconfig:123:warning: choice value used outside its choice group
drivers/media/video/msm/Kconfig:128:warning: choice value used outside its choice group
WRAP arch/arm/include/generated/asm/auxvec.h
WRAP arch/arm/include/generated/asm/bitsperlong.h
CHK include/linux/version.h
WRAP arch/arm/include/generated/asm/cputime.h
WRAP arch/arm/include/generated/asm/emergency-restart.h
UPD include/linux/version.h
WRAP arch/arm/include/generated/asm/errno.h
WRAP arch/arm/include/generated/asm/ioctl.h
WRAP arch/arm/include/generated/asm/irq_regs.h
WRAP arch/arm/include/generated/asm/kdebug.h
WRAP arch/arm/include/generated/asm/local.h
WRAP arch/arm/include/generated/asm/local64.h
WRAP arch/arm/include/generated/asm/percpu.h
WRAP arch/arm/include/generated/asm/poll.h
WRAP arch/arm/include/generated/asm/resource.h
WRAP arch/arm/include/generated/asm/sections.h
WRAP arch/arm/include/generated/asm/siginfo.h
WRAP arch/arm/include/generated/asm/sizes.h
CHK include/generated/utsrelease.h
UPD include/generated/utsrelease.h
HOSTCC scripts/kallsyms
CC scripts/mod/empty.o
HOSTCC scripts/mod/mk_elfconfig
MKELF scripts/mod/elfconfig.h
HOSTCC scripts/mod/file2alias.o
HOSTCC scripts/conmakehash
HOSTCC scripts/mod/modpost.o
HOSTCC scripts/mod/sumversion.o
Generating include/generated/mach-types.h
CC kernel/bounds.s
GEN include/generated/bounds.h
CC arch/arm/kernel/asm-offsets.s
In file included from include/linux/scatterlist.h:10,
from include/linux/dma-mapping.h:9,
from arch/arm/kernel/asm-offsets.c:15:
/home/kevinflathers/cm/arch/arm/include/asm/io.h:30:26: error: mach/msm_rtb.h: No such file or directory
make[1]: *** [arch/arm/kernel/asm-offsets.s] Error 1
make: *** [prepare0] Error 2
make: *** Waiting for unfinished jobs....
HOSTLD scripts/mod/modpost
[email protected]:~/cm$
TheReverend9 said:
So I'm new at kernel developing and I'm running into an error. I am trying to compile a d2att kernel from cm10.1 so that I can tweak it. This is my log and the error i run into is at the end. Please help is you can.
In file included from include/linux/scatterlist.h:10,
from include/linux/dma-mapping.h:9,
from arch/arm/kernel/asm-offsets.c:15:
/home/kevinflathers/cm/arch/arm/include/asm/io.h:30:26: error: mach/msm_rtb.h: No such file or directory
make[1]: *** [arch/arm/kernel/asm-offsets.s] Error 1
make: *** [prepare0] Error 2
make: *** Waiting for unfinished jobs....
HOSTLD scripts/mod/modpost
[email protected]:~/cm$
Click to expand...
Click to collapse
I think you solved this, you should post a solution for future searchers
I would also like to know how you fixed this...
titanic_fanatic said:
I would also like to know how you fixed this...
Click to expand...
Click to collapse
I don't remember fully but I believe it was a bad toolchain extension or download causing the problem
yeah, I'm definitely looking into building my own kernel for the note 2, so hope this could possibly help me. thanks again!
Hi good to see you.
I have some trouble, when i compile SierraVisor at OpenVirtualization for trustzone.
i read documentation about how to build Open virtualization SDK.
However i encounter compile error.
Before use tzone_sdk, i have to compile otz_linux.
this is error message.
I use ubuntu x64 12.04 and installed latest tool version such as gcc and so on.
///////////////////////////////////////////////////////////////////
patching file tools/usb/hcd-tests.sh
patching file tools/usb/Makefile
patching file arch/arm/include/asm/hardirq.h
patching file arch/arm/include/asm/smp.h
patching file arch/arm/kernel/smp.c
patching file arch/arm/common/gic.c
Hunk #1 succeeded at 395 with fuzz 2 (offset -1 lines).
patching file arch/arm/mach-vexpress/include/mach/motherboard.h
make ARCH=arm -C /home/chaser/TrustZone/trustzone/otz_linux/linux-otz fastmodel_ve_defconfig
make[1]: Entering directory `/home/chaser/TrustZone/trustzone/otz_linux/linux-otz'
HOSTCC scripts/basic/fixdep
HOSTCC scripts/basic/docproc
HOSTCC scripts/kconfig/conf.o
HOSTCC scripts/kconfig/kxgettext.o
SHIPPED scripts/kconfig/zconf.tab.c
SHIPPED scripts/kconfig/lex.zconf.c
SHIPPED scripts/kconfig/zconf.hash.c
HOSTCC scripts/kconfig/zconf.tab.o
HOSTLD scripts/kconfig/conf
#
# configuration written to .config
#
make[1]: Leaving directory `/home/chaser/TrustZone/trustzone/otz_linux/linux-otz'
make EXTRA_CFLAGS=-DOTZONE_ASYNC_NOTIFY_SUPPORT=y EXTRA_CFLAGS+=-DOTZONE_AMP_SUPPORT=y EXTRA_CFLAGS+= -j8 ARCH=arm -C /home/chaser/TrustZone/trustzone/otz_linux/linux-otz uImage
make[1]: Entering directory `/home/chaser/TrustZone/trustzone/otz_linux/linux-otz'
scripts/kconfig/conf --silentoldconfig Kconfig
make[1]: Leaving directory `/home/chaser/TrustZone/trustzone/otz_linux/linux-otz'
make[1]: Entering directory `/home/chaser/TrustZone/trustzone/otz_linux/linux-otz'
CHK include/linux/version.h
UPD include/linux/version.h
HOSTCC scripts/conmakehash
HOSTCC scripts/kallsyms
CC scripts/mod/empty.o
HOSTCC scripts/mod/mk_elfconfig
gcc: error: unrecognized command line option ‘-mlittle-endian’
gcc: error: unrecognized argument in option ‘-mabi=aapcs-linux’
gcc: note: valid arguments to ‘-mabi=’ are: ms sysv
gcc: error: unrecognized command line option ‘-mno-thumb-interwork’
make[3]: *** [scripts/mod/empty.o] Error 1
make[3]: *** Waiting for unfinished jobs....
CHK include/generated/utsrelease.h
UPD include/generated/utsrelease.h
make[2]: *** [scripts/mod] Error 2
make[2]: *** Waiting for unfinished jobs....
Generating include/generated/mach-types.h
make[1]: *** [scripts] Error 2
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory `/home/chaser/TrustZone/trustzone/otz_linux/linux-otz'
make: *** [linux_build] Error 2
///////////////////////////////////////////////////////////
I also try to compile delete -unrecongnized argument option. But the other compile error occured.
error is
kernel/bounds.c:1: error: bad value (armv5t) for -march= switch
kernel/bounds.c:1: error: bad value (armv5t) for -mtune= switch
How can i deal with this problem?
previously thanks
I am following this tutorial
http://forum.xda-developers.com/showthread.php?t=2152819
I get the following when i execute
$make maker.defconfig
$ echo $CROSS_COMPILE
/usr/bin/arm-none-eabi-
and when i execute
$make ARCH=arm
i get the following errors
CHK include/linux/version.h
CHK include/generated/utsrelease.h
HOSTCC scripts/basic/fixdep
make[1]: `include/generated/mach-types.h' is up to date.
CC kernel/bounds.s
gcc: error: unrecognized argument in option ‘-mabi=apcs-gnu’
gcc: note: valid arguments to ‘-mabi=’ are: ms sysv
gcc: error: unrecognized command line option ‘-mlittle-endian’
gcc: error: unrecognized command line option ‘-mapcs’
gcc: error: unrecognized command line option ‘-mno-sched-prolog’
make[1]: *** [kernel/bounds.s] Error 1
make: *** [prepare0] Error 2
Any idea how to resolve these
I got the same errors using Android NDK toolchain.
Thanks
Need a developer help here.
I've been trying to compile my first kernel from source but I'm running into the same error over and over again, no matter what arch I use (arm/arm64). I asked help on PM but people hate answering Support questions in PM. So I'm posting here in hope of getting help.
My device is an Acer Liquid Z530 with Mediatek mt6735 cpu and Mali-T720 GPU. Acer provided Lollipop 5.1 source code. Mediatek 6735 and 6753 don't seem to be like the older Mediatek cpus (mt65xx), so standard kernel compiling guides should work.
I followed this guide http://forum.xda-developers.com/android/software/ultimate-guide-compile-android-kernel-t2871276
Here's the last attempt log:
Code:
[email protected]:~$ cd android
[email protected]:~/android$ cd kernel
[email protected]:~/android/kernel$ ARCH=arm64 CROSS_COMPILE=~/aarch64-linux-android-5.3-kernel/bin/aarch64-linux-android- make cci6735_65u_l1_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
#
# configuration written to .config
#
[email protected]:~/android/kernel$ make menuconfig
HOSTCC scripts/kconfig/lxdialog/checklist.o
HOSTCC scripts/kconfig/lxdialog/inputbox.o
HOSTCC scripts/kconfig/lxdialog/menubox.o
HOSTCC scripts/kconfig/lxdialog/textbox.o
HOSTCC scripts/kconfig/lxdialog/util.o
HOSTCC scripts/kconfig/lxdialog/yesno.o
HOSTCC scripts/kconfig/mconf.o
HOSTLD scripts/kconfig/mconf
scripts/kconfig/mconf Kconfig
*** End of the configuration.
*** Execute 'make' to start the build or try 'make help'.
[email protected]:~/android/kernel$ make -j2
scripts/kconfig/conf --silentoldconfig Kconfig
make: aarch64-linux-android-gcc: Command not found
SYSHDR arch/x86/syscalls/../include/generated/uapi/asm/unistd_32.h
SYSHDR arch/x86/syscalls/../include/generated/uapi/asm/unistd_64.h
WRAP arch/x86/include/generated/asm/clkdev.h
SYSHDR arch/x86/syscalls/../include/generated/uapi/asm/unistd_x32.h
SYSTBL arch/x86/syscalls/../include/generated/asm/syscalls_32.h
SYSHDR arch/x86/syscalls/../include/generated/asm/unistd_32_ia32.h
CHK include/generated/uapi/linux/version.h
UPD include/generated/uapi/linux/version.h
SYSHDR arch/x86/syscalls/../include/generated/asm/unistd_64_x32.h
CHK include/generated/utsrelease.h
UPD include/generated/utsrelease.h
CC scripts/mod/empty.o
/bin/sh: 1: aarch64-linux-android-gcc: not found
make[2]: *** [scripts/mod/empty.o] Error 127
make[1]: *** [scripts/mod] Error 2
make: *** [scripts] Error 2
make: *** Waiting for unfinished jobs....
SYSTBL arch/x86/syscalls/../include/generated/asm/syscalls_64.h
[email protected]:~/android/kernel$
Code:
make: aarch64-linux-android-gcc: Command not found
Click to expand...
Click to collapse
You gotta add your toolchain to the PATH variable, otherwise it won't be found.
So go for
Code:
export PATH=*pathToToolChain*:$PATH
A convenient way is to include it into your shell rc file (e.g. .bashrc).
Cheers!
BlueFlame4 said:
You gotta add your toolchain to the PATH variable, otherwise it won't be found.
So go for
Code:
export PATH=*pathToToolChain*:$PATH
A convenient way is to include it into your shell rc file (e.g. .bashrc).
Cheers!
Click to expand...
Click to collapse
Thank you, exporting toolchain path in .baschrc got me pass that problem.
Now I'm running into another one:
Code:
[COLOR="Red"]drivers/input/touchscreen/mediatek/ft5336/ft_gesture_lib.a: error adding symbols: File in wrong format
make[5]: *** [drivers/input/touchscreen/mediatek/ft5336/built-in.o] Error 1
make[4]: *** [drivers/input/touchscreen/mediatek/ft5336] Error 2
make[3]: *** [drivers/input/touchscreen/mediatek] Error 2
make[2]: *** [drivers/input/touchscreen] Error 2
make[1]: *** [drivers/input] Error 2
make: *** [drivers] Error 2[/COLOR]
[COLOR="Green"][email protected]:~/android/kernel$ [/COLOR]