Hi Toradex,
I am trying to compile uboot from source code. Here is what I have done:
- git clone -b 2014.04-toradex git://git.toradex.com/linux-toradex.git
- cd
- wget -c https://releases.linaro.org/components/toolchain/binaries/5.2-2015.11-2/arm-linux-gnueabihf/gcc-linaro-5.2-2015.11-2-x86_64_arm-linux-gnueabihf.tar.xz
- tar xvf gcc-linaro-5.2-2015.11-2-x86_64_arm-linux-gnueabihf.tar.xz
- ln -s gcc-linaro-5.2-2015.11-2-x86_64_arm-linux-gnueabihf gcc-linaro
- export ARCH=arm
- export PATH=~/gcc-linaro/bin/:$PATH
- export CROSS_COMPILE=arm-linux-gnueabihf-
- echo “export ARCH=arm” >> ~/export_compiler
- echo “export PATH=~/gcc-linaro/bin/:$PATH” >> ~/export_compiler
- echo “export CROSS_COMPILE=arm-linux-gnueabihf-” >> ~/export_compiler
- source ~/export_compiler
- export PATH=$PATH:$HOME/u-boot-toradex/tools
- sudo apt-get install u-boot-tools
- cd
- cd u-boot-toradex
- make apalis_imx6q2g_config
- make -j3 2>&1 | tee build.log
During compilation, I encountered this error:
make -j3 2>&1 | tee build.log
GEN include/autoconf.mk.dep
GEN include/autoconf.mk
In file included from include/linux/compiler.h:40:0,
from include/linux/byteorder/little_endian.h:12,
from /home/mark/u-boot-toradex-v2.3_2/u-boot-toradex/arch/arm/include/asm/byteorder.h:29,
from include/compiler.h:112,
from include/image.h:19,
from /home/mark/u-boot-toradex-v2.3_2/u-boot-toradex/include/common.h:94:
include/linux/compiler-gcc.h:93:30: fatal error: linux/compiler-gcc5.h: No such file or directory
compilation terminated.
In file included from include/linux/compiler.h:40:0,
from include/linux/byteorder/little_endian.h:12,
from /home/mark/u-boot-toradex-v2.3_2/u-boot-toradex/arch/arm/include/asm/byteorder.h:29,
from include/compiler.h:112,
from include/image.h:19,
from /home/mark/u-boot-toradex-v2.3_2/u-boot-toradex/include/common.h:94:
include/linux/compiler-gcc.h:93:30: fatal error: linux/compiler-gcc5.h: No such file or directory
compilation terminated.
CHK include/config/uboot.release
CHK include/generated/timestamp_autogenerated.h
UPD include/generated/timestamp_autogenerated.h
HOSTCC scripts/basic/fixdep
UPD include/config/uboot.release
CHK include/generated/version_autogenerated.h
UPD include/generated/version_autogenerated.h
CC arch/arm/lib/asm-offsets.s
CC lib/asm-offsets.s
In file included from include/linux/compiler.h:40:0,
from include/linux/byteorder/little_endian.h:12,
from /home/mark/u-boot-toradex-v2.3_2/u-boot-toradex/arch/arm/include/asm/byteorder.h:29,
from include/compiler.h:112,
from include/image.h:19,
from include/common.h:94,
from arch/arm/lib/asm-offsets.c:15:
include/linux/compiler-gcc.h:93:30: fatal error: linux/compiler-gcc5.h: No such file or directory
In file included from include/linux/compiler.h:40:0,
from include/linux/byteorder/little_endian.h:12,
from /home/mark/u-boot-toradex-v2.3_2/u-boot-toradex/arch/arm/include/asm/byteorder.h:29,
from include/compiler.h:112,
from include/image.h:19,
from include/common.h:94,
from lib/asm-offsets.c:15:
include/linux/compiler-gcc.h:93:30: fatal error: linux/compiler-gcc5.h: No such file or directory
compilation terminated.
/home/mark/u-boot-toradex-v2.3_2/u-boot-toradex/./Kbuild:83: recipe for target 'arch/arm/lib/asm-offsets.s' failed
make[1]: *** [arch/arm/lib/asm-offsets.s] Error 1
make[1]: *** Waiting for unfinished jobs....
compilation terminated.
/home/mark/u-boot-toradex-v2.3_2/u-boot-toradex/./Kbuild:34: recipe for target 'lib/asm-offsets.s' failed
make[1]: *** [lib/asm-offsets.s] Error 1
Makefile:1002: recipe for target 'prepare0' failed
make: *** [prepare0] Error 2
Am i doing something wrong or is there supposed to be a include/linux/compiler-gcc5.h file?