Firefly开源社区

12
发表新贴
打印 上一主题 下一主题

[Linux] Linux版块--编译Ubuntu固件出错,请帮忙看看问题,非常感谢!

24

积分

0

威望

0

贡献

技术小白

积分
24

Linux版块--编译Ubuntu固件出错,请帮忙看看问题,非常感谢!

发表于 2021-12-29 16:41:31      浏览:5886 | 回复:17        打印      只看该作者   [复制链接] 楼主
行业主板:AIO-3399J  下载资料:Linux-SDK源码包(仅支持RK3399)
按照https://wiki.t-firefly.com/zh_CN/AIO-3399J/linux_compile_gpt.html#这个步骤一步一步操作,最终编译出错。
1、成功安装要求的依赖包;
2、下载完成后先验证一下 MD5 码;

3、解压 Firefly_Linux_SDK 分卷压缩包

依次执行完以下三步
.repo/repo/repo sync -l.repo/repo/repo sync -c --no-tags.repo/repo/repo start firefly --all
4、更新 Firefly_Linux_SDK

5、编译SDK前配置
下载文件找不到rk3399_ubuntu18.04_LXDE.img.tgz这个,使用下载文件中ubuntu_20.04_RK3399_ext4_v2.10-51-g7ecad547_20210907-0918_DESKTOP.img替代
在SDK根目录下创建ubunturootfs文件夹,使用FileZilla软件将ubuntu_20.04_RK3399_ext4_v2.10-51-g7ecad547_20210907-0918_DESKTOP.img发送到ubunturootfs文件夹。

修改device/rockchip/RK3399/aio-3399j-ubuntu.mk文件如下:

全自动编译,结果如下:

不知道问题出在哪,请帮忙看下,谢谢!


回复

使用道具 举报

24

积分

0

威望

0

贡献

技术小白

积分
24
发表于 2021-12-29 16:59:15        只看该作者  沙发
============Start building uboot============
TARGET_UBOOT_CONFIG=rk3399
=========================================
## make rk3399_defconfig -j8
#
# configuration written to .config
#
scripts/kconfig/conf  --silentoldconfig Kconfig
  CHK     include/config.h
  CFG     u-boot.cfg
  GEN     include/autoconf.mk.dep
  CFG     spl/u-boot.cfg
  CFG     tpl/u-boot.cfg
  GEN     include/autoconf.mk
  GEN     tpl/include/autoconf.mk
  GEN     spl/include/autoconf.mk
  CHK     include/config/uboot.release
  CHK     include/generated/timestamp_autogenerated.h
  UPD     include/generated/timestamp_autogenerated.h
  HOSTLD  scripts/dtc/dtc
/usr/bin/ld: scripts/dtc/dtc-parser.tab.o:(.bss+0x10): multiple definition of `yylloc'; scripts/dtc/dtc-lexer.lex.o:(.bss+0x0): first defined here
collect2: error: ld returned 1 exit status
make[2]: *** [scripts/Makefile.host:108:scripts/dtc/dtc] 错误 1
make[1]: *** [scripts/Makefile.build:425:scripts/dtc] 错误 2
make: *** [Makefile:491: scripts] Error 2
make: *** Waiting for unfinished jobs....
  CHK     include/config.h
  CFG     u-boot.cfg
ERROR: Running build_uboot failed!
ERROR: exit code 2 from line 454:
    ./make.sh $RK_UBOOT_DEFCONFIG $UBOOT_COMPILE_COMMANDS
每一步我都截图了,但是不知道为啥编辑时显示,提交后就不显示,现在补粘贴编译结果如上。
回复

使用道具 举报

899

积分

0

威望

6

贡献

技术大神

Rank: 8Rank: 8

积分
899
发表于 2021-12-30 09:44:04        只看该作者  板凳
我们的uboot使用的是firefly-rk3399_defconfig,你这个不对呀
回复

使用道具 举报

24

积分

0

威望

0

贡献

技术小白

积分
24
发表于 2021-12-30 09:59:55        只看该作者  地板
我将aio-3399j-ubuntu.mk中的内容改为了如下:
#!/bin/bash
  2
  3 CMD=`realpath $BASH_SOURCE`
  4 CUR_DIR=`dirname $CMD`
  5
  6 source $CUR_DIR/firefly-rk3399-ubuntu.mk
  7
  8 # uboot defconfig
  9 export RK_UBOOT_DEFCONFIG=firefly-rk3399_defconfig
10
11 # kernel defconfig
12 export LINUX_KERNEL_DEFCONFI=firefly_linux_defconfig
13
14 # kernel dts
15 export RK_KERNEL_DTS=rk3399-firefly-aio
16
17 # parameter for GPT table
18 export RK_PARAMETER=parameter-ubuntu.txt
19
20 # packagefile for make update image
21 export RK_PACKAGE_FILE=rk3399-ubuntu-package-file
22
23 # rootfs image path
24 export RK_ROOTFS_IMG=ubunturootfs/ubuntu_20.04_RK3399_ext4_v2.10-51-g7ecad547_20210907-0918_DESKTOP.img
25
然后运行./build.sh aio-3399j-ubuntu.mk,结果如下:
processing option: aio-3399j-ubuntu.mk
switching to board: /home/bill/ubuntu/rk3399_linux_release_v2.5.1_20210301/device/rockchip/rk3399/aio-3399j-ubuntu.mk
然后运行./build.sh,结果还是有问题:
processing option: allff
============================================
TARGET_ARCH=arm64
TARGET_PLATFORM=rk3399
TARGET_UBOOT_CONFIG=firefly-rk3399_defconfig
TARGET_SPL_CONFIG=
TARGET_KERNEL_CONFIG=firefly_linux_defconfig
TARGET_KERNEL_DTS=rk3399-firefly-aio
TARGET_TOOLCHAIN_CONFIG=
TARGET_BUILDROOT_CONFIG=
TARGET_RECOVERY_CONFIG=
TARGET_PCBA_CONFIG=rockchip_rk3399_pcba
TARGET_RAMBOOT_CONFIG=
============================================
============Start building uboot============
TARGET_UBOOT_CONFIG=firefly-rk3399_defconfig
=========================================

configs/CS-R1_main-rk3399-JD4_defconfig
configs/android6.0-rk3399_defconfig
configs/dserve_dsrv9703c_defconfig
configs/evb-aarch32-rk3308_defconfig
configs/evb-px30_defconfig
configs/evb-rk3036_defconfig
configs/evb-rk3066_defconfig
configs/evb-rk3128_defconfig
configs/evb-rk3229_defconfig
configs/evb-rk3288-rk1608_defconfig
configs/evb-rk3288_defconfig
configs/evb-rk3308_defconfig
configs/evb-rk3326_defconfig
configs/evb-rk3328_defconfig
configs/evb-rk3399_defconfig
configs/evb-rv1108_defconfig
configs/fennec-rk3288_defconfig
configs/firefly-rk3288_defconfig
configs/firefly-rk3328_defconfig
configs/firefly-rk3399_defconfig
configs/gva-rk3229_defconfig
configs/kylin-rk3036_defconfig
configs/lion-rk3368_defconfig
configs/miqi-rk3288_defconfig
configs/nokia_rx51_defconfig
configs/phycore-rk3288_defconfig
configs/popmetal-rk3288_defconfig
configs/puma-rk3399_defconfig
configs/px30_defconfig
configs/rk1806_defconfig
configs/rk1808_defconfig
configs/rk3036_defconfig
configs/rk3126_defconfig
configs/rk3128_defconfig
configs/rk3128x_defconfig
configs/rk322x_defconfig
configs/rk3288_defconfig
configs/rk3308-aarch32_defconfig
configs/rk3308_defconfig
configs/rk3326-aarch32_defconfig
configs/rk3326_defconfig
configs/rk3328_defconfig
configs/rk3368_defconfig
configs/rk3399_defconfig
configs/rk3399pro_defconfig
configs/roc-rk3399-pc-plus_defconfig
configs/roc-rk3399-pc_defconfig
configs/rv1126-mini-template_defconfig
configs/rv1126_defconfig
configs/sheep-rk3368_defconfig
configs/tinker-rk3288_defconfig
configs/vyasa-rk3288_defconfig

ERROR: No configs/firefly-rk3399_defconfig_defconfig
ERROR: Running build_uboot failed!
ERROR: exit code 1 from line 454:
    ./make.sh $RK_UBOOT_DEFCONFIG $UBOOT_COMPILE_COMMANDS
回复

使用道具 举报

24

积分

0

威望

0

贡献

技术小白

积分
24
发表于 2021-12-30 10:37:01        只看该作者  5#
processing option: allff
============================================
TARGET_ARCH=arm64
TARGET_PLATFORM=rk3399
TARGET_UBOOT_CONFIG=firefly-rk3399
TARGET_SPL_CONFIG=
TARGET_KERNEL_CONFIG=firefly_linux_defconfig
TARGET_KERNEL_DTS=rk3399-firefly-aio
TARGET_TOOLCHAIN_CONFIG=
TARGET_BUILDROOT_CONFIG=
TARGET_RECOVERY_CONFIG=
TARGET_PCBA_CONFIG=rockchip_rk3399_pcba
TARGET_RAMBOOT_CONFIG=
============================================
============Start building uboot============
TARGET_UBOOT_CONFIG=firefly-rk3399
=========================================
## make firefly-rk3399_defconfig -j8
#
# configuration written to .config
#
scripts/kconfig/conf  --silentoldconfig Kconfig
  CHK     include/config.h
  CFG     u-boot.cfg
  GEN     include/autoconf.mk.dep
  CFG     spl/u-boot.cfg
  CFG     tpl/u-boot.cfg
  GEN     include/autoconf.mk
  GEN     spl/include/autoconf.mk
  GEN     tpl/include/autoconf.mk
  CHK     include/config/uboot.release
  CHK     include/generated/timestamp_autogenerated.h
  UPD     include/generated/timestamp_autogenerated.h
  HOSTLD  scripts/dtc/dtc
/usr/bin/ld: scripts/dtc/dtc-parser.tab.o:(.bss+0x10): multiple definition of `yylloc'; scripts/dtc/dtc-lexer.lex.o:(.bss+0x0): first defined here
  UPD     include/config/uboot.release
  CHK     include/generated/version_autogenerated.h
collect2: error: ld returned 1 exit status
make[2]: *** [scripts/Makefile.host:108:scripts/dtc/dtc] 错误 1
make[1]: *** [scripts/Makefile.build:425:scripts/dtc] 错误 2
make: *** [Makefile:491: scripts] Error 2
make: *** Waiting for unfinished jobs....
  UPD     include/generated/version_autogenerated.h
  CHK     include/config.h
  CFG     u-boot.cfg
ERROR: Running build_uboot failed!
ERROR: exit code 2 from line 454:
    ./make.sh $RK_UBOOT_DEFCONFIG $UBOOT_COMPILE_COMMANDS
回复

使用道具 举报

899

积分

0

威望

6

贡献

技术大神

Rank: 8Rank: 8

积分
899
发表于 2021-12-30 14:13:05        只看该作者  6#
你不修改文件能成功吗
回复

使用道具 举报

899

积分

0

威望

6

贡献

技术大神

Rank: 8Rank: 8

积分
899
发表于 2021-12-30 14:16:38        只看该作者  7#
你是不是修改了uboot的dts了
回复

使用道具 举报

24

积分

0

威望

0

贡献

技术小白

积分
24
发表于 2021-12-30 16:02:53        只看该作者  8#
除了aio-3399j-ubuntu.mk之外,我没有修改任何文件,我是想等编译成功之后,再做其他事情的
回复

使用道具 举报

24

积分

0

威望

0

贡献

技术小白

积分
24
发表于 2021-12-30 16:06:00        只看该作者  9#
第一遍没有修改aio-3399j-ubuntu.mk,也没成功,后面删掉全部的,重新又按照文档步骤重新解压等操作,编译还是这样的问题
回复

使用道具 举报

899

积分

0

威望

6

贡献

技术大神

Rank: 8Rank: 8

积分
899
发表于 2021-12-30 17:04:18        只看该作者  10#
Bill18998086949 发表于 2021-12-30 16:06
第一遍没有修改aio-3399j-ubuntu.mk,也没成功,后面删掉全部的,重新又按照文档步骤重新解压等操作,编译 ...

你直接下一楼层回复我是没有收到消息提醒的,你要像我这样回复。

你是PC是什么操作系统
回复

使用道具 举报

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

本版积分规则

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