when compiling for kernel using comand make -j3 zImage the following error occurs:-
make: *** No rule to make target ‘zImage’. Stop.
Can you provide the output of following commands?
ls
git branch
echo $ARCH
echo $CROSS_COMPILE
ls
arch crypto include kernel net security
block Documentation init lib README sound
certs drivers ipc MAINTAINERS REPORTING-BUGS tools
COPYING firmware Kbuild Makefile samples usr
CREDITS fs Kconfig mm scripts virt
git branch
toradex_vf_4.4
echo $ARCH
arm
echo $CROSS_COMPILE
arm-linux-gnueabihf-
What is the output of
${CROSS_COMPILE}gcc --version
${CROSS_COMPILE}gcc --version
bash: /home/soumen/gcc-linaro/bin/arm-linux-gnueabihf-gcc: cannot execute binary file: Exec format error
Cross compiler does not work in your case. What is the output of
uname -m
file /home/soumen/gcc-linaro/bin/arm-linux-gnueabihf-gcc
uname -m
i686
file /home/soumen/gcc-linaro/bin/arm-linux-gnueabihf-gcc
/home/soumen/gcc-linaro/bin/arm-linux-gnueabihf-gcc: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.32, BuildID[sha1]=1eb91b4850acf22e281d1a7ec7ab60337f4f6d55, not stripped
You are using a 32 bit OS. You probably downloaded the 5.2 Linaro toolchain which will only work on 64 bit OS. Please note the following as already stated on article.
Note: Since the 14.11 release Linaro only provides x86_64 toolchains. If you use 32-bit Linux on your host machine (check using uname -m), you can still download the older 14.09 release which is still 32-bit:
Please download the Linaro toolchain supporting 32 bit OS and proceed further.