AnsweredAssumed Answered

How to set environment for building u-boot's fw_printenv for i.MX6Q

Question asked by Qiulong Li on Dec 7, 2015
Latest reply on Feb 13, 2018 by zhang hakwell

Hello

My environment is i.MX6Q and Android 4.4.2.

I want to build fw_printenv but get stuck,and this is my steps:

 

l@workspace-All-Series:~/android-4.4.2_sdi_in/bootable/bootloader/uboot-imx$ make distclean

l@workspace-All-Series:~/android-4.4.2_sdi_in/bootable/bootloader/uboot-imx$ make mx6q_sabresd_android_config

Configuring for mx6q_sabresd_android board...

l@workspace-All-Series:~/android-4.4.2_sdi_in/bootable/bootloader/uboot-imx$ export ARCH=arm

l@workspace-All-Series:~/android-4.4.2_sdi_in/bootable/bootloader/uboot-imx$ export CROSS_COMPILE=~/android-4.4.2_sdi_in/prebuilts/gcc/linux-x86/arm/arm-eabi-4.6/bin/arm-eabi-

l@workspace-All-Series:~/android-4.4.2_sdi_in/bootable/bootloader/uboot-imx$ make env

make -C tools/env all MTD_VERSION= || exit 1

make[1]: Entering directory `/home/l/android-4.4.2_sdi_in/bootable/bootloader/uboot-imx/tools/env'

/home/l/android-4.4.2_sdi_in/prebuilts/gcc/linux-x86/arm/arm-eabi-4.6/bin/arm-eabi-gcc -Wall -DUSE_HOSTCC -I/home/l/android-4.4.2_sdi_in/bootable/bootloader/uboot-imx/include crc32.c  fw_env.c  fw_env_main.c -o fw_printenv

In file included from crc32.c:14:0:

/home/l/android-4.4.2_sdi_in/prebuilts/gcc/linux-x86/arm/arm-eabi-4.6/bin/../lib/gcc/arm-eabi/4.6.x-google/include/stdint.h:3:26: fatal error: stdint.h: No such file or directory

compilation terminated.

fw_env.c:27:19: fatal error: errno.h: No such file or directory

compilation terminated.

fw_env_main.c:42:19: fatal error: stdio.h: No such file or directory

compilation terminated.

make[1]: *** [fw_printenv] Error 1

make[1]: Leaving directory `/home/l/android-4.4.2_sdi_in/bootable/bootloader/uboot-imx/tools/env'

make: *** [env] Error 1

 

I think I use wrong cross compiler,please help me what can I do.

Thank You

Qiulong Li

Outcomes