[q] compiling kernel probs!! - HTC Pico (Explorer)

I'm having problem while compiling kernel from source :
[email protected]:~$ cd Android/kernel
[email protected]:~/Android/kernel$ make ARCH=arm CROSS_COMPILE=arm-eabi- -j4
CHK include/linux/version.h
CHK include/generated/utsrelease.h
CC scripts/mod/empty.o
make[1]: `include/generated/mach-types.h' is up to date.
CC kernel/bounds.s
arm-eabi-gcc: No such file or directory
Is your PATH set correctly?
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....
make[1]: *** [kernel/bounds.s] Error 2
make: *** [prepare0] Error 2
[email protected]:~/Android/kernel$ ^C
[email protected]:~/Android/kernel$
Click to expand...
Click to collapse
In .bashrc I added this line at the end :
export PATH=${PATH}:Android/toolchains/arm-eabi-4.4.3/bin
export PATH=${PATH}:Android/bootimagetools/tools
Click to expand...
Click to collapse
What to do please help me :crying:
Thanks in advance

Edit .bashrc
In the first line of export change it
From:
export PATH=${PATH}:Android/toolchains/arm-eabi-4.4.3/bin
To:
export PATH=${PATH}:Android/toolchains/arm-eabi-4.4.3/bin/arm-eabi-
Other things seems to be fine
Please hit on the thanks button if you like my work.

Related

Kernel Compiling Errors?

I need help!
Here is my error.
Code:
/home/rootuser/kernel/scripts/gcc-version.sh: 25: arm-eabi-gcc: not found
/home/rootuser/kernel/scripts/gcc-version.sh: 26: arm-eabi-gcc: not found
make: arm-eabi-gcc: Command not found
CHK include/linux/version.h
make[1]: `include/asm-arm/mach-types.h' is up to date.
CHK include/linux/utsrelease.h
SYMLINK include/asm -> include/asm-arm
CC kernel/bounds.s
/bin/sh: arm-eabi-gcc: not found
make[1]: *** [kernel/bounds.s] Error 127
make: *** [prepare0] Error 2
I have been searching all over Google for a fix. I can't get anything to work!
Hey airbus what's this for ?? Gingerbread optimum??
it cannot find the crosscompiler gcc binary in ur path, hence the error.
bs828 said:
Hey airbus what's this for ?? Gingerbread optimum??
Click to expand...
Click to collapse
Yes It is, When this error is resolved, new rom will come out

SierraVisor Hypervisor compile error

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

[Q] need help kernel build

i tried to compile using linaro 4.8 toolchain but i always get this error... just a starter...
[email protected]:/usr/src/kernel# cd Vengeance-Kernel-MSM7x27
[email protected]:/usr/src/kernel/Vengeance-Kernel-MSM7x27# export ARCH=arm
[email protected]:/usr/src/kernel/Vengeance-Kernel-MSM7x27# export CROSS_COMPILE=/usr/src/toolchain/Linaro-Toolchain-4.8/bin/arm-linux-androideabi-
[email protected]:/usr/src/kernel/Vengeance-Kernel-MSM7x27# make
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
/usr/src/toolchain/Linaro-Toolchain-4.8/bin/../libexec/gcc/arm-linux-androideabi/4.8.1/cc1: error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or directory
make[1]: *** [kernel/bounds.s] Error 1
make: *** [prepare0] Error 2

/bin/sh: 1: aarch64-linux-android-gcc: not found

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]

[Kernel building error] SamSung Galaxy S6 G920L Kernel building error.

Hi everyone, I am gonna try to build my own kernel for my S6- G920L, but there was some errors that I havent figured out. I need your help.
I use, toolchain gcc 4.8 cross compiler.
Here is the result.
CHK include/generated/uapi/linux/version.h
CHK include/generated/utsrelease.h
CC scripts/mod/empty.o
arm-linux-androideabi-gcc: error: unrecognized command line option '-mgeneral-regs-only'
make[2]: *** [scripts/mod/empty.o] Error 1
make[2]: *** Waiting for unfinished jobs....
CC kernel/bounds.s
CC scripts/mod/devicetable-offsets.s
arm-linux-androideabi-gcc: error: unrecognized command line option '-mgeneral-regs-only'
make[1]: *** [kernel/bounds.s] Error 1
arm-linux-androideabi-gcc: error: unrecognized command line option '-mgeneral-regs-only'
make: *** [prepare0] Error 2
make: *** Waiting for unfinished jobs....
make[2]: *** [scripts/mod/devicetable-offsets.s] Error 1
make[1]: *** [scripts/mod] Error 2
make[1]: *** Waiting for unfinished jobs....
make: *** [scripts] Error 2
[email protected]:~/Downloads/laptrinhnhung/Kernel$
Thank you !
wrong toolchain mate.. you need to use the 4.9 arm64-linux-android as suggested in the readme for kernel in the sources
Sabermod prebuilt
for example or any other but minimum 4.9.. if you want to use a 5.0 you'll need to make some edits to the make file..
have fun
Thank you !. I got it done !... SOLVED

Categories

Resources