U-boot 配置与编译

首先选择默认配置:

sun@machine:~/share/build/u-boot-2018.11$ make vexpress_ca15_tc2_defconfig
  HOSTCC  scripts/basic/fixdep
  HOSTCC  scripts/kconfig/conf.o
  YACC    scripts/kconfig/zconf.tab.c
  LEX     scripts/kconfig/zconf.lex.c
  HOSTCC  scripts/kconfig/zconf.tab.o
  HOSTLD  scripts/kconfig/conf
#
# configuration written to .config
#
sun@machine:~/share/build/u-boot-2018.11$

看到扁平设备树默认没有选择,并且 tetx_base 为0X80800000

最后选来选去,发现很多都不懂,而且不知道如何选择,果断 make distclean

然后全部使用默认配置:

make vexpress_ca15_tc2_defconfig

然后编译:

make ARCH=arm CROSS_COMPILE=arm-linux- -j4

当前目录下会生成 u-boot 开头的几个文件:

猜你喜欢

转载自www.cnblogs.com/CodingTheFuture/p/9971089.html