Firefly开源社区

打印 上一主题 下一主题

[Linux] buildroot编译出错

38

积分

0

威望

0

贡献

技术小白

积分
38

buildroot编译出错

发表于 2022-6-28 10:56:11      浏览:4987 | 回复:2        打印      只看该作者   [复制链接] 楼主
  • 固件类型: 自行编译的固件
  • SDK包名称: firefly_rk3308_release_defconfig
  • SDK更新到哪个COMMIT: 0000-00-00 00:00:00
  • SDK修改内容: firefly_rk3308_release_defconfig
  • Log日志: log.txt
问题描述及复现步骤:
https://gitlab.com/TeeFirefly/rk3308-linux上Fork了整个目录,本机ubutun16.04 64bits,执行./build.sh 编译uboot\kernel\rootfs,发现uboot\kernel编译完成后,buildroot出现问题,日志如下:

==========Start build buildroot==========
TARGET_BUILDROOT_CONFIG=firefly_rk3308_release
=========================================
Top of tree: /home/xinhy/Desktop/work/wanZilian/rockchip/rk3308

You're building on Linux
Lunch menu...pick a combo:

1. firefly_rk3308_release
2. firefly_rk3308_recovery
3. firefly_rk3308_pcba
4. firefly_rk3308_qt_release

Which would you like? [1] firefly_rk3308_release
firefly_rk3308_release
===========================================

#TARGET_BOARD=rk3308
#BUILD_TYPE=64
#OUTPUT_DIR=output/firefly_rk3308_release
#CONFIG=firefly_rk3308_release_defconfig

===========================================
make: Entering directory '/home/xinhy/Desktop/work/wanZilian/rockchip/rk3308/buildroot'
/home/xinhy/Desktop/work/wanZilian/rockchip/rk3308/buildroot/build/defconfig_hook.py -m /home/xinhy/Desktop/work/wanZilian/rockchip/rk3308/buildroot/configs/firefly_rk3308_release_defconfig /home/xinhy/Desktop/work/wanZilian/rockchip/rk3308/buildroot/output/firefly_rk3308_release/.rockchipconfig
BR2_DEFCONFIG='' KCONFIG_AUTOCONFIG=/home/xinhy/Desktop/work/wanZilian/rockchip/rk3308/buildroot/output/firefly_rk3308_release/build/buildroot-config/auto.conf KCONFIG_AUTOHEADER=/home/xinhy/Desktop/work/wanZilian/rockchip/rk3308/buildroot/output/firefly_rk3308_release/build/buildroot-config/autoconf.h KCONFIG_TRISTATE=/home/xinhy/Desktop/work/wanZilian/rockchip/rk3308/buildroot/output/firefly_rk3308_release/build/buildroot-config/tristate.config BR2_CONFIG=/home/xinhy/Desktop/work/wanZilian/rockchip/rk3308/buildroot/output/firefly_rk3308_release/.config HOST_GCC_VERSION="7" BUILD_DIR=/home/xinhy/Desktop/work/wanZilian/rockchip/rk3308/buildroot/output/firefly_rk3308_release/build SKIP_LEGACY= BR2_DEFCONFIG=/home/xinhy/Desktop/work/wanZilian/rockchip/rk3308/buildroot/configs/firefly_rk3308_release_defconfig /home/xinhy/Desktop/work/wanZilian/rockchip/rk3308/buildroot/output/firefly_rk3308_release/build/buildroot-config/conf --defconfig=/home/xinhy/Desktop/work/wanZilian/rockchip/rk3308/buildroot/output/firefly_rk3308_release/.rockchipconfig Config.in
/home/xinhy/Desktop/work/wanZilian/rockchip/rk3308/buildroot/output/firefly_rk3308_release/.rockchipconfig:142:warning: override: reassigning to symbol BR2_PACKAGE_NTP
/home/xinhy/Desktop/work/wanZilian/rockchip/rk3308/buildroot/output/firefly_rk3308_release/.rockchipconfig:143:warning: override: reassigning to symbol BR2_PACKAGE_NTP_NTPDATE
/home/xinhy/Desktop/work/wanZilian/rockchip/rk3308/buildroot/output/firefly_rk3308_release/.rockchipconfig:158:warning: override: reassigning to symbol BR2_TARGET_ENABLE_ROOT_LOGIN
#
# configuration written to /home/xinhy/Desktop/work/wanZilian/rockchip/rk3308/buildroot/output/firefly_rk3308_release/.config
#
make: Leaving directory '/home/xinhy/Desktop/work/wanZilian/rockchip/rk3308/buildroot'
Makefile:1: *** missing separator.  Stop.
Command exited with non-zero status 1
you take 0:00.30 to build builroot
====Build buildroot failed!====

对buildroot目录中的makefile文件进行了查看,文件格式ascii,也没有找到明显的语法错误。



单独进入buildroot目录,进行编译,make后,出现如下错误:

>>> rkwifibt 1.0.0 Building
mkdir -p /home/xinhy/Desktop/work/wanZilian/rockchip/rk3308/buildroot/output/firefly_rk3308_release/target/system/lib/modules/
/home/xinhy/Desktop/work/wanZilian/rockchip/rk3308/buildroot/../build.sh modules
/home/xinhy/Desktop/work/wanZilian/rockchip/rk3308/buildroot/../build.sh: line 1: device/rockchip/common/build.sh: No such file or directory
package/pkg-generic.mk:247: recipe for target '/home/xinhy/Desktop/work/wanZilian/rockchip/rk3308/buildroot/output/firefly_rk3308_release/build/rkwifibt-1.0.0/.stamp_built' failed
make[1]: *** [/home/xinhy/Desktop/work/wanZilian/rockchip/rk3308/buildroot/output/firefly_rk3308_release/build/rkwifibt-1.0.0/.stamp_built] Error 127
Makefile:83: recipe for target '_all' failed
make: *** [_all] Error 2


fork的整个目录均进行了核对,device/rochip/common/build.sh文件是存在的。

这个问题该怎么解决?



log.txt

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

回复

使用道具 举报

696

积分

0

威望

0

贡献

技术大神

Rank: 3Rank: 3

积分
696
发表于 2022-6-28 15:01:55        只看该作者  沙发
编译应该不会有问题的,你使用rk3308_linux_release_v1.5.0a试下
回复

使用道具 举报

38

积分

0

威望

0

贡献

技术小白

积分
38
发表于 2022-6-28 20:46:10        只看该作者  板凳
找到问题了,是device/rockchip/rk3308目录下的mk-buildroot.sh文件中,make前没有进buildroot目录,在sh文件中make前增加cd buildroot就可以。
回复

使用道具 举报

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

本版积分规则

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