AnsweredAssumed Answered

Issue in compiling u-boot(RIoT board i.MX 6solo) image.

Question asked by Ronak Vyas on Jun 4, 2018

I am using RIoT board (i.MX 6solo Cortex-A9). I have its data sheet http://www.mouser.com/ds/2/630/Riotboard_MCIMX6SOLO-316366.pdf  by following the instruction as per section 4.1 "Download and Run Linux or Android System" i am able to load the image on the board successafully. According to section 5.1.1 "Getting Tools and Source Code" i have download the source code, but when i am compile the source code as per section 5.1.2 "Compiling System Images" follow the instruction "Execute the following instructions to compile u-boot image" i am not able to build the code getting the following error. Please help me 

---------------------------------------------------------------------------------------------------------------------------------------------------------------

linuxtest1@linuxtest1:~$ cd ~ /u-boot-imx
linuxtest1@linuxtest1:~$ export ARCH=arm
linuxtest1@linuxtest1:~$ export CROSS_COMPILE=~/fsl-linaro-toolchain/bin/arm-fsl-linux-gnueabi-
linuxtest1@linuxtest1:~$ cd u-boot-imx/
linuxtest1@linuxtest1:~/u-boot-imx$ make distclean
linuxtest1@linuxtest1:~/u-boot-imx$ make mx6solo_RIoTboard_config
Configuring for mx6solo_RIoTboard board...
linuxtest1@linuxtest1:~/u-boot-imx$ make


Generating include/autoconf.mk
  /home/linuxtest1/fsl-linaro-toolchain/bin/../libexec/gcc/arm-fsl-linux-gnueabi/4.6.2/cc1: error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or directory
Generating include/autoconf.mk.dep
/home/linuxtest1/fsl-linaro-toolchain/bin/../libexec/gcc/arm-fsl-linux-gnueabi/4.6.2/cc1: error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or directory
for dir in tools examples/standalone examples/api ; do make -C $dir _depend ; done
make[1]: Entering directory `/home/linuxtest1/u-boot-imx/tools'
make[1]: Leaving directory `/home/linuxtest1/u-boot-imx/tools'
make[1]: Entering directory `/home/linuxtest1/u-boot-imx/tools'
make[1]: Nothing to be done for `_depend'.
make[1]: Leaving directory `/home/linuxtest1/u-boot-imx/tools'
make[1]: Entering directory `/home/linuxtest1/u-boot-imx/examples/standalone'
/home/linuxtest1/fsl-linaro-toolchain/bin/../libexec/gcc/arm-fsl-linux-gnueabi/4.6.2/cc1: error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or directory
/home/linuxtest1/fsl-linaro-toolchain/bin/../libexec/gcc/arm-fsl-linux-gnueabi/4.6.2/cc1: error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or directory
make[1]: *** No rule to make target `.depend', needed by `_depend'. Stop.
make[1]: Leaving directory `/home/linuxtest1/u-boot-imx/examples/standalone'
make[1]: Entering directory `/home/linuxtest1/u-boot-imx/examples/api'
make[1]: Nothing to be done for `_depend'.
make[1]: Leaving directory `/home/linuxtest1/u-boot-imx/examples/api'
make -C tools all
make[1]: Entering directory `/home/linuxtest1/u-boot-imx/tools'
gcc -g -Wall -idirafter /home/linuxtest1/u-boot-imx/include -idirafter /home/linuxtest1/u-boot-imx/include2 -idirafter /home/linuxtest1/u-boot-imx/include -I /home/linuxtest1/u-boot-imx/libfdt -I /home/linuxtest1/u-boot-imx/tools -DTEXT_BASE=0x27800000 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES -O -c -o mkimage.o /home/linuxtest1/u-boot-imx/tools/mkimage.c
gcc -g -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -idirafter /home/linuxtest1/u-boot-imx/include -idirafter /home/linuxtest1/u-boot-imx/include2 -idirafter /home/linuxtest1/u-boot-imx/include -I /home/linuxtest1/u-boot-imx/libfdt -I /home/linuxtest1/u-boot-imx/tools -DTEXT_BASE=0x27800000 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES -O -c -o crc32.o /home/linuxtest1/u-boot-imx/lib_generic/crc32.c
gcc -g -Wall -idirafter /home/linuxtest1/u-boot-imx/include -idirafter /home/linuxtest1/u-boot-imx/include2 -idirafter /home/linuxtest1/u-boot-imx/include -I /home/linuxtest1/u-boot-imx/libfdt -I /home/linuxtest1/u-boot-imx/tools -DTEXT_BASE=0x27800000 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES -O -c -o image.o /home/linuxtest1/u-boot-imx/common/image.c
gcc -g -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -idirafter /home/linuxtest1/u-boot-imx/include -idirafter /home/linuxtest1/u-boot-imx/include2 -idirafter /home/linuxtest1/u-boot-imx/include -I /home/linuxtest1/u-boot-imx/libfdt -I /home/linuxtest1/u-boot-imx/tools -DTEXT_BASE=0x27800000 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES -O -c -o md5.o /home/linuxtest1/u-boot-imx/lib_generic/md5.c
gcc -g -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -idirafter /home/linuxtest1/u-boot-imx/include -idirafter /home/linuxtest1/u-boot-imx/include2 -idirafter /home/linuxtest1/u-boot-imx/include -I /home/linuxtest1/u-boot-imx/libfdt -I /home/linuxtest1/u-boot-imx/tools -DTEXT_BASE=0x27800000 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES -O -c -o sha1.o /home/linuxtest1/u-boot-imx/lib_generic/sha1.c
gcc -g -Wall -idirafter /home/linuxtest1/u-boot-imx/include -idirafter /home/linuxtest1/u-boot-imx/include2 -idirafter /home/linuxtest1/u-boot-imx/include -I /home/linuxtest1/u-boot-imx/libfdt -I /home/linuxtest1/u-boot-imx/tools -DTEXT_BASE=0x27800000 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES -O -c -o fdt.o /home/linuxtest1/u-boot-imx/libfdt/fdt.c
gcc -g -Wall -idirafter /home/linuxtest1/u-boot-imx/include -idirafter /home/linuxtest1/u-boot-imx/include2 -idirafter /home/linuxtest1/u-boot-imx/include -I /home/linuxtest1/u-boot-imx/libfdt -I /home/linuxtest1/u-boot-imx/tools -DTEXT_BAS

E=0x27800000 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES -O -c -o fdt_ro.o /home/linuxtest1/u-boot-imx/libfdt/fdt_ro.c
gcc -g -Wall -idirafter /home/linuxtest1/u-boot-imx/include -idirafter /home/linuxtest1/u-boot-imx/include2 -idirafter /home/linuxtest1/u-boot-imx/include -I /home/linuxtest1/u-boot-imx/libfdt -I /home/linuxtest1/u-boot-imx/tools -DTEXT_BASE=0x27800000 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES -O -c -o fdt_rw.o /home/linuxtest1/u-boot-imx/libfdt/fdt_rw.c
gcc -g -Wall -idirafter /home/linuxtest1/u-boot-imx/include -idirafter /home/linuxtest1/u-boot-imx/include2 -idirafter /home/linuxtest1/u-boot-imx/include -I /home/linuxtest1/u-boot-imx/libfdt -I /home/linuxtest1/u-boot-imx/tools -DTEXT_BASE=0x27800000 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES -O -c -o fdt_strerror.o /home/linuxtest1/u-boot-imx/libfdt/fdt_strerror.c
gcc -g -Wall -idirafter /home/linuxtest1/u-boot-imx/include -idirafter /home/linuxtest1/u-boot-imx/include2 -idirafter /home/linuxtest1/u-boot-imx/include -I /home/linuxtest1/u-boot-imx/libfdt -I /home/linuxtest1/u-boot-imx/tools -DTEXT_BASE=0x27800000 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES -O -c -o fdt_wip.o /home/linuxtest1/u-boot-imx/libfdt/fdt_wip.c
gcc -g -Wall -idirafter /home/linuxtest1/u-boot-imx/include -idirafter /home/linuxtest1/u-boot-imx/include2 -idirafter /home/linuxtest1/u-boot-imx/include -I /home/linuxtest1/u-boot-imx/libfdt -I /home/linuxtest1/u-boot-imx/tools -DTEXT_BASE=0x27800000 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES -O -c -o os_support.o /home/li
nuxtest1/u-boot-imx/tools/os_support.c
gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -idirafter /home/linuxtest1/u-boot-imx/include -idirafter /home/linuxtest1/u-boot-imx/include2 -idirafter /home/linuxtest1/u-boot-imx/include -I /home/linuxtest1/u-boot-imx/libfdt -I /home/linuxtest1/u-boot-imx/tools -DTEXT_BASE=0x27800000 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES -O -o mkimage mkimage.o crc32.o image.o md5.o sha1.o fdt.o fdt_ro.o fdt_rw.o fdt_strerror.o fdt_wip.o os_support.o
strip mkimage
make[1]: Leaving directory `/home/linuxtest1/u-boot-imx/tools'
make -C examples/standalone all
make[1]: Entering directory `/home/linuxtest1/u-boot-imx/examples/standalone'
/home/linuxtest1/fsl-linaro-toolchain/bin/arm-fsl-linux-gnueabi-gcc -g -Os -fno-strict-aliasing -fno-common -ffixed-r8 -msoft-float -D__KERNEL__ -DTEXT_BASE=0x27800000 -I/home/linuxtest1/u-boot-imx/include -fno-builtin -ffreestanding -nostdinc -isystem /home/linuxtest1/fsl-linaro-toolchain/bin/../lib/gcc/arm-fsl-linux-gnueabi/4.6.2/include -pipe -DCONFIG_ARM -D__ARM__ -march=armv5 -Wall -Wstrict-prototypes -o hello_world.o hello_world.c -c
/home/linuxtest1/fsl-linaro-toolchain/bin/../libexec/gcc/arm-fsl-linux-gnueabi/4.6.2/cc1: error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or directory
/home/linuxtest1/fsl-linaro-toolchain/bin/../lib/gcc/arm-fsl-linux-gnueabi/4.6.2/../../../../arm-fsl-linux-gnueabi/bin/as: error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or directory
make[1]: *** [hello_world.o] Error 1
make[1]: Leaving directory `/home/linuxtest1/u-boot-imx/examples/standalone'
make: *** [examples/standalone] Error 2

linuxtest1@linuxtest1:~/u-boot-imx$

 

---------------------------------------------------------------------------------------------------------------------------------------------------------------

Outcomes