ye_ge 2017-04-26 12:07 采纳率: 100%
浏览 1930
已采纳

Uboot移植问题,求指教

小弟用的是华清的FS4412 v2的开发板,在进行他们给提供的Uboot移植实验时做到EMMC初始化时,编译后总是出错,不知道该怎解决,小弟自己已经研究了还几天了,就是解决不了,希望大神门给解决一下
出错的信息如下:
Generating include/autoconf.mk
Configuring for fs4412 board...
Generating include/autoconf.mk
Generating include/autoconf.mk.dep
arm-none-linux-gnueabi-gcc -DDO_DEPS_ONLY \
-g -Os -fno-common -ffixed-r8 -msoft-float -D__KERNEL__ -DCONFIG_SYS_TEXT_BASE=0x43E00000 -I/home/linux/yunshiming/Source_Code/u-boot-2013.01-fs4412/include -fno-builtin -ffreestanding -nostdinc -isystem /home/linux/yunshiming/system/gcc-4.6.4/bin/../lib/gcc/arm-arm1176jzfssf-linux-gnueabi/4.6.4/include -pipe -DCONFIG_ARM -D__ARM__ -marm -mno-thumb-interwork -mabi=aapcs-linux -march=armv7-a -Wall -Wstrict-prototypes -fno-stack-protector -Wno-format-nonliteral -Wno-format-security -fstack-usage \
-o lib/asm-offsets.s lib/asm-offsets.c -c -S
if [ -f arch/arm/cpu/armv7/exynos/asm-offsets.c ];then \
arm-none-linux-gnueabi-gcc -DDO_DEPS_ONLY \
-g -Os -fno-common -ffixed-r8 -msoft-float -D__KERNEL__ -DCONFIG_SYS_TEXT_BASE=0x43E00000 -I/home/linux/yunshiming/Source_Code/u-boot-2013.01-fs4412/include -fno-builtin -ffreestanding -nostdinc -isystem /home/linux/yunshiming/system/gcc-4.6.4/bin/../lib/gcc/arm-arm1176jzfssf-linux-gnueabi/4.6.4/include -pipe -DCONFIG_ARM -D__ARM__ -marm -mno-thumb-interwork -mabi=aapcs-linux -march=armv7-a -Wall -Wstrict-prototypes -fno-stack-protector -Wno-format-nonliteral -Wno-format-security -fstack-usage \
-o arch/arm/cpu/armv7/exynos/asm-offsets.s arch/arm/cpu/armv7/exynos/asm-offsets.c -c -S; \
else \
touch arch/arm/cpu/armv7/exynos/asm-offsets.s; \
fi
Generating include/generated/asm-offsets.h
tools/scripts/make-asm-offsets arch/arm/cpu/armv7/exynos/asm-offsets.s include/generated/asm-offsets.h
Generating include/generated/generic-asm-offsets.h
tools/scripts/make-asm-offsets lib/asm-offsets.s include/generated/generic-asm-offsets.h
for dir in tools examples/standalone examples/api arch/arm/cpu/armv7 ; do \
make -C $dir _depend ; done
make[1]: Entering directory /home/linux/yunshiming/Source_Code/u-boot-2013.01-fs4412/tools'
make[1]: Nothing to be done for
_depend'.
make[1]: Leaving directory /home/linux/yunshiming/Source_Code/u-boot-2013.01-fs4412/tools'
make[1]: Entering directory
/home/linux/yunshiming/Source_Code/u-boot-2013.01-fs4412/examples/standalone'
make[1]: Nothing to be done for _depend'.
make[1]: Leaving directory
/home/linux/yunshiming/Source_Code/u-boot-2013.01-fs4412/examples/standalone'
make[1]: Entering directory /home/linux/yunshiming/Source_Code/u-boot-2013.01-fs4412/examples/api'
make[1]: Nothing to be done for
_depend'.
make[1]: Leaving directory /home/linux/yunshiming/Source_Code/u-boot-2013.01-fs4412/examples/api'
make[1]: Entering directory
/home/linux/yunshiming/Source_Code/u-boot-2013.01-fs4412/arch/arm/cpu/armv7'
make[1]: Nothing to be done for _depend'.
make[1]: Leaving directory
/home/linux/yunshiming/Source_Code/u-boot-2013.01-fs4412/arch/arm/cpu/armv7'
make -C tools all
make -C arch/arm/cpu/armv7 start.o
make[1]: Entering directory /home/linux/yunshiming/Source_Code/u-boot-2013.01-fs4412/tools'
make[1]: *** No rule to make target
/home/linux/myfile/arm/u-boot-2013.01-fs4412/tools/gen_eth_addr.c', needed by gen_eth_addr.o'. Stop.
make[1]: Leaving directory
/home/linux/yunshiming/Source_Code/u-boot-2013.01-fs4412/tools'
make: *** [tools] Error 2
make: *** Waiting for unfinished jobs....
make[1]: Entering directory /home/linux/yunshiming/Source_Code/u-boot-2013.01-fs4412/arch/arm/cpu/armv7'
make[1]: *** No rule to make target
/home/linux/myfile/arm/u-boot-2013.01-fs4412/include/asm-offsets.h', needed by start.o'. Stop.
make[1]: Leaving directory
/home/linux/yunshiming/Source_Code/u-boot-2013.01-fs4412/arch/arm/cpu/armv7'
make: *** [arch/arm/cpu/armv7/start.o] Error 2
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
There are some error(s) while building uboot, please use command make to check.
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

  • 写回答

1条回答

  • ye_ge 2017-04-28 08:26
    关注

    是操作步骤有问题,把tools目录下的fs4412sql文件删除后,执行clean,然后重新编译就可以了

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 用visual studi code完成html页面
  • ¥15 聚类分析或者python进行数据分析
  • ¥15 逻辑谓词和消解原理的运用
  • ¥15 三菱伺服电机按启动按钮有使能但不动作
  • ¥15 js,页面2返回页面1时定位进入的设备
  • ¥50 导入文件到网吧的电脑并且在重启之后不会被恢复
  • ¥15 (希望可以解决问题)ma和mb文件无法正常打开,打开后是空白,但是有正常内存占用,但可以在打开Maya应用程序后打开场景ma和mb格式。
  • ¥20 ML307A在使用AT命令连接EMQX平台的MQTT时被拒绝
  • ¥20 腾讯企业邮箱邮件可以恢复么
  • ¥15 有人知道怎么将自己的迁移策略布到edgecloudsim上使用吗?