I have downloaded the Linux kernel from code aurora using as per the instructions in the i.MX porting guide:
$ export CROSS_COMPILE=arm-linux-gnueabihf-
$ export ARCH=arm
$ git clone https://source.codeaurora.org/external/imx/linux-imx -b imx_4.14.98_2.0.0_ga
$ cd linux-imx
$ make distclean
$ make imx_v7_defconfig
$ make
This behaves correctly and builds the kernel without error.
When I try to do the same for u-boot from code aurora, again following the porting guide:
$ export CROSS_COMPILE=arm-linux-gnueabihf-
$ export ARCH=arm
$ git clone https://source.codeaurora.org/external/imx/uboot-imx -b imx_v2018.03_4.14.98_2.0.0_ga
$ cd uboot-imx
$ make clean
$ make mx6sabresd_defconfig
$ make u-boot.imx
U-boot fails to build and I get the following error:
scripts/kconfig/conf --silentoldconfig Kconfig
CHK include/config.h
UPD include/config.h
CFG u-boot.cfg
In file included from ./include/common.h:21:0:
include/config.h:6:10: fatal error: configs/.h: No such file or directory
#include <configs/.h>
^~~~~~~~~~~~
compilation terminated.
scripts/Makefile.autoconf:79: recipe for target 'u-boot.cfg' failed
make[1]: *** [u-boot.cfg] Error 1
make: *** No rule to make target 'include/config/auto.conf', needed by 'include/config/uboot.release'. Stop.
Any ideas as to what is causing u-boot to not build?
解決済! 解決策の投稿を見る。
After "make mx6sabresd_defconfig", try choosing your board from "make menuconfig --> ARM architecture --> MX6 board select".
Hello,
the following may be helpful:
https://mediawiki.compulab.com/index.php/U-Boot:_Introduction_to_U-Boot_development
Regards,
Yuri.
After "make mx6sabresd_defconfig", try choosing your board from "make menuconfig --> ARM architecture --> MX6 board select".
Hi Tahsin,
Thanks for the help. That worked. I'm pretty sure this step wasn't mentioned in the i.MX Porting Guide PDF. But at least I know for the future.
Best regards
Duncan