【问题标题】:Error in linux cross compilation u-bootlinux交叉编译u-boot出错
【发布时间】:2013-12-20 03:21:24
【问题描述】:

当我在 ubuntu 中交叉编译 u-boot 代码并给出如下命令时

make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- distclean

错误是:

系统未配置 - 请参阅自述文件错误[1]

解决办法是什么?

谢谢。
哈迪克·加贾尔

【问题讨论】:

  • 什么是 "x-loder"?尝试make distcleanmake ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi-,而不是全部尝试。但是您可能需要为板配置 U-Boot,例如make myboard_configU-Boot manual
  • 看起来 u-boot 还没有为板配置。因此,现在不需要 distclean。 @sawdust x-loader 和 u-boot 分别是第一阶段和第二阶段的引导加载程序。

标签: bootloader u-boot


【解决方案1】:

要编译 U-Boot,最简单的方法是导出 CROSS_COMPILE 变量:

 $ export CROSS_COMPILE=/directory/.../arm-none-linux-gnueabi-

然后你必须选择板配置,例如:

$ make lpc4350-board_config

然后就可以编译了:

$ make

【讨论】:

    【解决方案2】:

    distclean 目标用于通过选择任何板/设备特定配置来撤消/清除对本地工作目录所做的任何更改。

    错误 System not configured -see readme Error[1] 表明当前的 u-boot 工作目录尚未为任何设备/板配置,因此 distclean 目标为 make 在这一点上是多余的。

    【讨论】:

      猜你喜欢
      • 2018-12-08
      • 1970-01-01
      • 2020-04-26
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-02-11
      相关资源
      最近更新 更多