Firefly开源社区

打印 上一主题 下一主题

1126编译u-boot出错

20

积分

0

威望

0

贡献

技术小白

积分
20

1126编译u-boot出错

发表于 2022-4-18 18:13:12      浏览:5407 | 回复:3        打印      只看该作者   [复制链接] 楼主
问题描述及复现步骤:
从官方百度云盘下载固件,按如下步骤操作
#本压缩包内包含一个.repo目录,解压之后,在当前目录下执行以下操作.repo/repo/repo sync -l.repo/repo/repo sync -c --no-tags.repo/repo/repo start firefly --all
编译u-boot出现错误,错误日志已上传

build_err.txt

5.2 KB, 下载次数: 4, 下载积分: 灯泡 -1 , 经验 -1

回复

使用道具 举报

20

积分

0

威望

0

贡献

技术小白

积分
20
发表于 2022-4-18 18:22:12        只看该作者  沙发
使用vm16虚拟机,ubuntu-16.04.6-desktop-i386.iso系统
ufofhb@ubuntu:/home/fire_fly/sdk$ ./build.sh device/rockchip/rv1126_rv1109/aio-rv1126-jd4-BE-45.mk
processing board option: device/rockchip/rv1126_rv1109/aio-rv1126-jd4-BE-45.mk
processing option: device/rockchip/rv1126_rv1109/aio-rv1126-jd4-BE-45.mk
ufofhb@ubuntu:/home/fire_fly/sdk$ ./build.sh uboot
processing board option: uboot
processing option: uboot
============Start building uboot============
TARGET_UBOOT_CONFIG=rv1126
=========================================
## make rv1126_defconfig -j8
#
# configuration written to .config
#
/home/fire_fly/sdk/prebuilts/gcc/linux-x86/arm/gcc-linaro-6.3.1-2017.05-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-gcc
/home/fire_fly/sdk/prebuilts/gcc/linux-x86/arm/gcc-linaro-6.3.1-2017.05-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-gcc: 1: /home/fire_fly/sdk/prebuilts/gcc/linux-x86/arm/gcc-linaro-6.3.1-2017.05-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-gcc: ELF: not found
/home/fire_fly/sdk/prebuilts/gcc/linux-x86/arm/gcc-linaro-6.3.1-2017.05-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-gcc: 1: /home/fire_fly/sdk/prebuilts/gcc/linux-x86/arm/gcc-linaro-6.3.1-2017.05-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-gcc: Syntax error: Unterminated quoted string
/home/fire_fly/sdk/prebuilts/gcc/linux-x86/arm/gcc-linaro-6.3.1-2017.05-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-gcc: 1: /home/fire_fly/sdk/prebuilts/gcc/linux-x86/arm/gcc-linaro-6.3.1-2017.05-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-gcc: ELF: not found
/home/fire_fly/sdk/prebuilts/gcc/linux-x86/arm/gcc-linaro-6.3.1-2017.05-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-gcc: 1: /home/fire_fly/sdk/prebuilts/gcc/linux-x86/arm/gcc-linaro-6.3.1-2017.05-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-gcc: Syntax error: Unterminated quoted string
dirname: missing operand
Try 'dirname --help' for more information.
scripts/kconfig/conf  --silentoldconfig Kconfig
./scripts/binutils-version.sh: line 18: /home/fire_fly/sdk/prebuilts/gcc/linux-x86/arm/gcc-linaro-6.3.1-2017.05-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-as: cannot execute binary file: Exec format error
  CHK     include/config.h
  GEN     include/autoconf.mk.dep
  CFG     u-boot.cfg
  CFG     tpl/u-boot.cfg
  CFG     spl/u-boot.cfg
/home/fire_fly/sdk/prebuilts/gcc/linux-x86/arm/gcc-linaro-6.3.1-2017.05-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-gcc: 1: /home/fire_fly/sdk/prebuilts/gcc/linux-x86/arm/gcc-linaro-6.3.1-2017.05-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-gcc: ELF: not found
/home/fire_fly/sdk/prebuilts/gcc/linux-x86/arm/gcc-linaro-6.3.1-2017.05-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-gcc: 1: /home/fire_fly/sdk/prebuilts/gcc/linux-x86/arm/gcc-linaro-6.3.1-2017.05-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-gcc: Syntax error: Unterminated quoted string
/home/fire_fly/sdk/prebuilts/gcc/linux-x86/arm/gcc-linaro-6.3.1-2017.05-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-gcc: 1: /home/fire_fly/sdk/prebuilts/gcc/linux-x86/arm/gcc-linaro-6.3.1-2017.05-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-gcc: ELF: not found
/home/fire_fly/sdk/prebuilts/gcc/linux-x86/arm/gcc-linaro-6.3.1-2017.05-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-gcc: 1: /home/fire_fly/sdk/prebuilts/gcc/linux-x86/arm/gcc-linaro-6.3.1-2017.05-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-gcc: ELF: not found
scripts/Makefile.autoconf:50: recipe for target 'include/autoconf.mk.dep' failed
make[1]: *** [include/autoconf.mk.dep] Error 1
make[1]: *** Waiting for unfinished jobs....
/home/fire_fly/sdk/prebuilts/gcc/linux-x86/arm/gcc-linaro-6.3.1-2017.05-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-gcc: 1: /home/fire_fly/sdk/prebuilts/gcc/linux-x86/arm/gcc-linaro-6.3.1-2017.05-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-gcc: Syntax error: Unterminated quoted string
/home/fire_fly/sdk/prebuilts/gcc/linux-x86/arm/gcc-linaro-6.3.1-2017.05-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-gcc: 1: /home/fire_fly/sdk/prebuilts/gcc/linux-x86/arm/gcc-linaro-6.3.1-2017.05-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-gcc: ELF: not found
/home/fire_fly/sdk/prebuilts/gcc/linux-x86/arm/gcc-linaro-6.3.1-2017.05-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-gcc: 1: /home/fire_fly/sdk/prebuilts/gcc/linux-x86/arm/gcc-linaro-6.3.1-2017.05-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-gcc: Syntax error: Unterminated quoted string
/home/fire_fly/sdk/prebuilts/gcc/linux-x86/arm/gcc-linaro-6.3.1-2017.05-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-gcc: 1: /home/fire_fly/sdk/prebuilts/gcc/linux-x86/arm/gcc-linaro-6.3.1-2017.05-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-gcc: Syntax error: Unterminated quoted string
scripts/Makefile.autoconf:79: recipe for target 'u-boot.cfg' failed
make[1]: *** [u-boot.cfg] Error 1
scripts/Makefile.autoconf:86: recipe for target 'tpl/u-boot.cfg' failed
make[1]: *** [tpl/u-boot.cfg] Error 1
scripts/Makefile.autoconf:82: recipe for target 'spl/u-boot.cfg' failed
make[1]: *** [spl/u-boot.cfg] Error 1
make: *** No rule to make target 'include/config/auto.conf', needed by 'include/config/uboot.release'.  Stop.
ERROR: Running build_uboot failed!
ERROR: exit code 2 from line 523:
    ./make.sh $RK_UBOOT_DEFCONFIG $UBOOT_COMPILE_COMMANDS

回复

使用道具 举报

1万

积分

14

威望

13

贡献

管理员

Rank: 9Rank: 9Rank: 9

积分
11182

优秀版主

发表于 2022-4-19 09:18:11        只看该作者  板凳
你的 linux 系统是 32 位的?
回复

使用道具 举报

20

积分

0

威望

0

贡献

技术小白

积分
20
发表于 2022-4-19 12:03:43        只看该作者  地板
使用vm16虚拟机,系统是ubuntu-16.04.6-desktop-i386.iso系统 是32位的系统
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

友情链接 : 爱板网 电子发烧友论坛 云汉电子社区 粤ICP备14022046号-2
快速回复 返回顶部 返回列表