Firefly开源社区

打印 上一主题 下一主题

[Linux] RK3588在编译huildroot的rootfs时报错

87

积分

0

威望

0

贡献

技术小白

积分
87

RK3588在编译huildroot的rootfs时报错

发表于 2024-7-1 13:05:57      浏览:1096 | 回复:5        打印      只看该作者   [复制链接] 楼主
  • 固件类型: 自行编译的固件
  • SDK包名称: rk3588_linux_release_20240517_v1.4.0b
  • SDK更新到哪个COMMIT: 0000-00-00 00:00:00
  • SDK修改内容: 无任何修改
  • Log日志: log1.rar
问题描述及复现步骤:
官方下载的SDK ,更新到了20240517_v1.4.0b版本,编译buildroot时,在编译rootfs时报错,看着是编译下载软件pixman 0.42.2时,编译报错2024-06-11T02:51:17 /home/lxk/proj/rk3588_sdk/buildroot/output/firefly_rk3588/host/lib/gcc/aarch64-buildroot-linux-gnu/12.3.0/include-fixed/rga/RgaApi.h:42:10: fatal error: drmrga.h: No such file or directory找不到drmrga.h这个文件。

log1.rar

72 Bytes, 下载次数: 2, 下载积分: 灯泡 -1 , 经验 -1

回复

使用道具 举报

1万

积分

7

威望

0

贡献

技术大神

Rank: 8Rank: 8

积分
11422

突出贡献

发表于 2024-7-9 11:08:14        只看该作者  沙发
怎么编译的?
回复

使用道具 举报

87

积分

0

威望

0

贡献

技术小白

积分
87
发表于 2024-7-9 16:00:13        只看该作者  板凳

按照教程来的 前面uboot,extboot,recovery都可以正常编译生成,到rootfs报错,

lxk@ubuntu:~$ cd proj/rk3588_sdk/
lxk@ubuntu:~/proj/rk3588_sdk$
lxk@ubuntu:~/proj/rk3588_sdk$
lxk@ubuntu:~/proj/rk3588_sdk$
lxk@ubuntu:~/proj/rk3588_sdk$
lxk@ubuntu:~/proj/rk3588_sdk$ ./build.sh roc-rk3588-pc-buildroot.mk
processing option: roc-rk3588-pc-buildroot.mk
switching to board: /home/lxk/proj/rk3588_sdk/device/rockchip/rk3588/roc-rk3588-pc-buildroot.mk
/home/lxk/proj/rk3588_sdk
/home/lxk/proj/rk3588_sdk
lxk@ubuntu:~/proj/rk3588_sdk$ ./build.sh rootfs
processing option: rootfs
rootfs dir .rootfs
==========Start building buildroot==========
TARGET_BUILDROOT_CONFIG=firefly_rk3588
=========================================
Top of tree: /home/lxk/proj/rk3588_sdk
make: Entering directory '/home/lxk/proj/rk3588_sdk/buildroot'
  GEN     /home/lxk/proj/rk3588_sdk/buildroot/output/firefly_rk3588/Makefile
/home/lxk/proj/rk3588_sdk/buildroot/build/parse_defconfig.sh /home/lxk/proj/rk3588_sdk/buildroot/configs/firefly_rk3588_defconfig /home/lxk/proj/rk3588_sdk/buildroot/output/firefly_rk3588/.config.in
Parsing defconfig: /home/lxk/proj/rk3588_sdk/buildroot/configs/firefly_rk3588_defconfig
Using configs/rockchip/base/kernel.config as base
Merging configs/rockchip/fs/e2fs.config
Merging configs/rockchip/base/common.config
Merging configs/rockchip/base/base.config
Merging configs/rockchip/chips/rk3588.config
Value of BR2_ROOTFS_OVERLAY is redefined by configs/rockchip/chips/rk3588.config:
Previous value:        BR2_ROOTFS_OVERLAY="board/rockchip/common/base"
Modify value:        BR2_ROOTFS_OVERLAY+="board/rockchip/rk3588/fs-overlay/"
New value:        BR2_ROOTFS_OVERLAY="board/rockchip/common/base board/rockchip/rk3588/fs-overlay/"

Merging configs/rockchip/chips/rk3588_aarch64.config
Merging configs/rockchip/font/font.config
Merging configs/rockchip/font/chinese.config
Merging configs/rockchip/fs/exfat.config
Merging configs/rockchip/fs/ntfs.config
Merging configs/rockchip/fs/vfat.config
Merging configs/rockchip/gpu/gpu.config
Merging configs/rockchip/multimedia/audio.config
Merging configs/rockchip/multimedia/camera.config
Merging configs/rockchip/multimedia/gst/audio.config
Merging configs/rockchip/multimedia/gst/camera.config
Merging configs/rockchip/multimedia/gst/rtsp.config
Merging configs/rockchip/multimedia/gst/video.config
Merging configs/rockchip/multimedia/mpp.config
Merging configs/rockchip/wifibt/bt.config
Merging configs/rockchip/wifibt/network.config
Merging configs/rockchip/wifibt/wireless.config
Merging configs/rockchip/tools/benchmark.config
Merging configs/rockchip/tools/common.config
Merging configs/rockchip/tools/test.config
Merging configs/rockchip/chromium.config
Merging configs/rockchip/npu2.config
Merging configs/rockchip/powermanager.config
Merging configs/rockchip/weston.config
Merging /home/lxk/proj/rk3588_sdk/buildroot/configs/firefly_rk3588_defconfig
Value of BR2_TARGET_GENERIC_ROOT_PASSWD is redefined by /home/lxk/proj/rk3588_sdk/buildroot/configs/firefly_rk3588_defconfig:
Previous value:        BR2_TARGET_GENERIC_ROOT_PASSWD="rockchip"
New value:        BR2_TARGET_GENERIC_ROOT_PASSWD="firefly"

Value of BR2_ROOTFS_OVERLAY is redefined by /home/lxk/proj/rk3588_sdk/buildroot/configs/firefly_rk3588_defconfig:
Previous value:        BR2_ROOTFS_OVERLAY="board/rockchip/common/base board/rockchip/rk3588/fs-overlay/"
Modify value:        BR2_ROOTFS_OVERLAY+="board/firefly/roc-rk3588s-pc board/firefly/itx-3588j board/firefly/aio-3588sjd4"
New value:        BR2_ROOTFS_OVERLAY="board/rockchip/common/base board/rockchip/rk3588/fs-overlay/ board/firefly/roc-rk3588s-pc board/firefly/itx-3588j board/firefly/aio-3588sjd4"

#
# merged configuration written to /home/lxk/proj/rk3588_sdk/buildroot/output/firefly_rk3588/.config.in (needs make)
#
BR2_DEFCONFIG='' KCONFIG_AUTOCONFIG=/home/lxk/proj/rk3588_sdk/buildroot/output/firefly_rk3588/build/buildroot-config/auto.conf KCONFIG_AUTOHEADER=/home/lxk/proj/rk3588_sdk/buildroot/output/firefly_rk3588/build/buildroot-config/autoconf.h KCONFIG_TRISTATE=/home/lxk/proj/rk3588_sdk/buildroot/output/firefly_rk3588/build/buildroot-config/tristate.config BR2_CONFIG=/home/lxk/proj/rk3588_sdk/buildroot/output/firefly_rk3588/.config HOST_GCC_VERSION="7" BASE_DIR=/home/lxk/proj/rk3588_sdk/buildroot/output/firefly_rk3588 SKIP_LEGACY= CUSTOM_KERNEL_VERSION="5.10" BR2_DEFCONFIG=/home/lxk/proj/rk3588_sdk/buildroot/configs/firefly_rk3588_defconfig /home/lxk/proj/rk3588_sdk/buildroot/output/firefly_rk3588/build/buildroot-config/conf --defconfig=/home/lxk/proj/rk3588_sdk/buildroot/output/firefly_rk3588/.config.in Config.in
#
# configuration written to /home/lxk/proj/rk3588_sdk/buildroot/output/firefly_rk3588/.config
#
make: Leaving directory '/home/lxk/proj/rk3588_sdk/buildroot'
2024-07-09T00:56:07 >>> pixman 0.42.2 Building
Done in 37s  (error code: 2)
Failed to build /home/lxk/proj/rk3588_sdk/buildroot/output/firefly_rk3588/.config:
2024-06-20T01:38:46 /home/lxk/proj/rk3588_sdk/buildroot/output/firefly_rk3588/host/lib/gcc/aarch64-buildroot-linux-gnu/12.3.0/include-fixed/rga/RgaApi.h:42:10: fatal error: drmrga.h: No such file or directory
2024-06-20T01:38:46 42 | #include "drmrga.h"
2024-06-20T01:38:46 |          ^~~~~~~~~~
2024-06-20T01:38:46 compilation terminated.
2024-06-20T01:38:46 Makefile:934: recipe for target 'pixman.lo' failed
2024-06-20T01:38:46 make[4]: *** [pixman.lo] Error 1
2024-06-20T01:38:46 make[4]: *** Waiting for unfinished jobs....
2024-06-20T01:38:47 Makefile:515: recipe for target 'all-recursive' failed
2024-06-20T01:38:47 make[3]: *** [all-recursive] Error 1
2024-06-20T01:38:47 Makefile:422: recipe for target 'all' failed
2024-06-20T01:38:47 make[2]: *** [all] Error 2
2024-06-20T01:38:47 package/pkg-generic.mk:313: recipe for target '/home/lxk/proj/rk3588_sdk/buildroot/output/firefly_rk3588/build/pixman-0.42.2/.stamp_built' failed
2024-06-20T01:38:47 make[1]: *** [/home/lxk/proj/rk3588_sdk/buildroot/output/firefly_rk3588/build/pixman-0.42.2/.stamp_built] Error 2
2024-06-20T01:38:47 Makefile:114: recipe for target '_all' failed
2024-06-20T01:38:47 make: *** [_all] Error 2
2024-06-20T01:38:47 make: Leaving directory '/home/lxk/proj/rk3588_sdk/buildroot'
2024-06-30T21:33:59 make: Entering directory '/home/lxk/proj/rk3588_sdk/buildroot'
2024-06-30T21:34:08 /usr/bin/make -j1 O=/home/lxk/proj/rk3588_sdk/buildroot/output/firefly_rk3588 HOSTCC="/usr/bin/gcc" HOSTCXX="/usr/bin/g++" syncconfig
2024-06-30T21:34:09 GEN     /home/lxk/proj/rk3588_sdk/buildroot/output/firefly_rk3588/Makefile
2024-06-30T21:34:22 >>> pixman 0.42.2 Building
2024-06-30T21:34:22 PATH="/home/lxk/proj/rk3588_sdk/buildroot/output/firefly_rk3588/host/bin:/home/lxk/proj/rk3588_sdk/buildroot/output/firefly_rk3588/host/sbin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin"  /usr/bin/make -j2  -C /home/lxk/proj/rk3588_sdk/buildroot/output/firefly_rk3588/build/pixman-0.42.2/
2024-06-30T21:34:22 /usr/bin/make  all-recursive
2024-06-30T21:34:22 Making all in pixman
2024-06-30T21:34:22 CC       pixman-fast-path.lo
2024-06-30T21:34:22 CC       pixman.lo
2024-06-30T21:34:28 In file included from pixman.c:36:
2024-06-30T21:34:28 /home/lxk/proj/rk3588_sdk/buildroot/output/firefly_rk3588/host/lib/gcc/aarch64-buildroot-linux-gnu/12.3.0/include-fixed/rga/RgaApi.h:42:10: fatal error: drmrga.h: No such file or directory
2024-06-30T21:34:28 42 | #include "drmrga.h"
2024-06-30T21:34:28 |          ^~~~~~~~~~
2024-06-30T21:34:28 compilation terminated.
2024-06-30T21:34:28 Makefile:934: recipe for target 'pixman.lo' failed
2024-06-30T21:34:28 make[4]: *** [pixman.lo] Error 1
2024-06-30T21:34:28 make[4]: *** Waiting for unfinished jobs....
2024-06-30T21:34:34 Makefile:515: recipe for target 'all-recursive' failed
2024-06-30T21:34:34 make[3]: *** [all-recursive] Error 1
2024-06-30T21:34:34 Makefile:422: recipe for target 'all' failed
2024-06-30T21:34:34 make[2]: *** [all] Error 2
2024-06-30T21:34:34 package/pkg-generic.mk:313: recipe for target '/home/lxk/proj/rk3588_sdk/buildroot/output/firefly_rk3588/build/pixman-0.42.2/.stamp_built' failed
2024-06-30T21:34:34 make[1]: *** [/home/lxk/proj/rk3588_sdk/buildroot/output/firefly_rk3588/build/pixman-0.42.2/.stamp_built] Error 2
2024-06-30T21:34:34 Makefile:114: recipe for target '_all' failed
2024-06-30T21:34:34 make: *** [_all] Error 2
2024-06-30T21:34:34 make: Leaving directory '/home/lxk/proj/rk3588_sdk/buildroot'
2024-06-30T23:47:29 make: Entering directory '/home/lxk/proj/rk3588_sdk/buildroot'
2024-06-30T23:51:27 /usr/bin/make -j1 O=/home/lxk/proj/rk3588_sdk/buildroot/output/firefly_rk3588 HOSTCC="/usr/bin/gcc" HOSTCXX="/usr/bin/g++" syncconfig
2024-06-30T23:51:38 GEN     /home/lxk/proj/rk3588_sdk/buildroot/output/firefly_rk3588/Makefile
2024-06-30T23:51:46 >>> pixman 0.42.2 Building
2024-06-30T23:51:46 PATH="/home/lxk/proj/rk3588_sdk/buildroot/output/firefly_rk3588/host/bin:/home/lxk/proj/rk3588_sdk/buildroot/output/firefly_rk3588/host/sbin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin"  /usr/bin/make -j2  -C /home/lxk/proj/rk3588_sdk/buildroot/output/firefly_rk3588/build/pixman-0.42.2/
2024-06-30T23:51:46 /usr/bin/make  all-recursive
2024-06-30T23:51:46 Making all in pixman
2024-06-30T23:51:46 CC       pixman.lo
2024-06-30T23:51:46 CC       pixman-glyph.lo
2024-06-30T23:51:53 pixman-glyph.c:408:1: warning: 'force_align_arg_pointer' attribute directive ignored [-Wattributes]
2024-06-30T23:51:53 408 | {
2024-06-30T23:51:53 | ^
2024-06-30T23:51:53 pixman-glyph.c:655:1: warning: 'force_align_arg_pointer' attribute directive ignored [-Wattributes]
2024-06-30T23:51:53 655 | {
2024-06-30T23:51:53 | ^
2024-06-30T23:51:55 In file included from pixman.c:36:
2024-06-30T23:51:55 /home/lxk/proj/rk3588_sdk/buildroot/output/firefly_rk3588/host/lib/gcc/aarch64-buildroot-linux-gnu/12.3.0/include-fixed/rga/RgaApi.h:42:10: fatal error: drmrga.h: No such file or directory
2024-06-30T23:51:55 42 | #include "drmrga.h"
2024-06-30T23:51:55 |          ^~~~~~~~~~
2024-06-30T23:51:55 compilation terminated.
2024-06-30T23:51:56 Makefile:934: recipe for target 'pixman.lo' failed
2024-06-30T23:51:56 make[4]: *** [pixman.lo] Error 1
2024-06-30T23:51:56 make[4]: *** Waiting for unfinished jobs....
2024-06-30T23:52:02 Makefile:515: recipe for target 'all-recursive' failed
2024-06-30T23:52:02 make[3]: *** [all-recursive] Error 1
2024-06-30T23:52:02 Makefile:422: recipe for target 'all' failed
2024-06-30T23:52:02 make[2]: *** [all] Error 2
2024-06-30T23:52:02 package/pkg-generic.mk:313: recipe for target '/home/lxk/proj/rk3588_sdk/buildroot/output/firefly_rk3588/build/pixman-0.42.2/.stamp_built' failed
2024-06-30T23:52:02 make[1]: *** [/home/lxk/proj/rk3588_sdk/buildroot/output/firefly_rk3588/build/pixman-0.42.2/.stamp_built] Error 2
2024-06-30T23:52:02 Makefile:114: recipe for target '_all' failed
2024-06-30T23:52:02 make: *** [_all] Error 2
2024-06-30T23:52:02 make: Leaving directory '/home/lxk/proj/rk3588_sdk/buildroot'
2024-07-09T00:55:33 make: Entering directory '/home/lxk/proj/rk3588_sdk/buildroot'
2024-07-09T00:56:03 /usr/bin/make -j1 O=/home/lxk/proj/rk3588_sdk/buildroot/output/firefly_rk3588 HOSTCC="/usr/bin/gcc" HOSTCXX="/usr/bin/g++" syncconfig
2024-07-09T00:56:05 GEN     /home/lxk/proj/rk3588_sdk/buildroot/output/firefly_rk3588/Makefile
2024-07-09T00:56:07 >>> pixman 0.42.2 Building
2024-07-09T00:56:08 PATH="/home/lxk/proj/rk3588_sdk/buildroot/output/firefly_rk3588/host/bin:/home/lxk/proj/rk3588_sdk/buildroot/output/firefly_rk3588/host/sbin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin"  /usr/bin/make -j2  -C /home/lxk/proj/rk3588_sdk/buildroot/output/firefly_rk3588/build/pixman-0.42.2/
2024-07-09T00:56:08 /usr/bin/make  all-recursive
2024-07-09T00:56:08 Making all in pixman
2024-07-09T00:56:08 CC       pixman.lo
2024-07-09T00:56:08 CC       pixman-general.lo
2024-07-09T00:56:10 In file included from pixman.c:36:
2024-07-09T00:56:10 /home/lxk/proj/rk3588_sdk/buildroot/output/firefly_rk3588/host/lib/gcc/aarch64-buildroot-linux-gnu/12.3.0/include-fixed/rga/RgaApi.h:42:10: fatal error: drmrga.h: No such file or directory
2024-07-09T00:56:10 42 | #include "drmrga.h"
2024-07-09T00:56:10 |          ^~~~~~~~~~
2024-07-09T00:56:10 compilation terminated.
2024-07-09T00:56:10 Makefile:934: recipe for target 'pixman.lo' failed
2024-07-09T00:56:10 make[4]: *** [pixman.lo] Error 1
2024-07-09T00:56:10 make[4]: *** Waiting for unfinished jobs....
2024-07-09T00:56:10 Makefile:515: recipe for target 'all-recursive' failed
2024-07-09T00:56:10 make[3]: *** [all-recursive] Error 1
2024-07-09T00:56:10 Makefile:422: recipe for target 'all' failed
2024-07-09T00:56:10 make[2]: *** [all] Error 2
2024-07-09T00:56:10 package/pkg-generic.mk:313: recipe for target '/home/lxk/proj/rk3588_sdk/buildroot/output/firefly_rk3588/build/pixman-0.42.2/.stamp_built' failed
2024-07-09T00:56:10 make[1]: *** [/home/lxk/proj/rk3588_sdk/buildroot/output/firefly_rk3588/build/pixman-0.42.2/.stamp_built] Error 2
2024-07-09T00:56:10 Makefile:114: recipe for target '_all' failed
2024-07-09T00:56:10 make: *** [_all] Error 2
2024-07-09T00:56:10 make: Leaving directory '/home/lxk/proj/rk3588_sdk/buildroot'
Please check details in /home/lxk/proj/rk3588_sdk/.buildroot/br.log
Command exited with non-zero status 1
you take 0:49.59 to build builroot
ERROR: Running build_buildroot failed!
ERROR: exit code 1 from line 1376:
    /usr/bin/time -f "you take %E to build builroot" $COMMON_DIR/mk-buildroot.sh $RK_CFG_BUILDROOT $DST_DIR
lxk@ubuntu:~/proj/rk3588_sdk$

就一直在这儿报错
回复

使用道具 举报

87

积分

0

威望

0

贡献

技术小白

积分
87
发表于 2024-7-9 16:06:28        只看该作者  地板

上面是全部的信息,红色是我感觉重点的地方,麻烦你帮忙看下,谢谢
回复

使用道具 举报

1万

积分

7

威望

0

贡献

技术大神

Rank: 8Rank: 8

积分
11422

突出贡献

发表于 2024-7-10 14:01:51        只看该作者  5#
有改过东西吗?改过配置?编译是验证过没问题的。
回复

使用道具 举报

87

积分

0

威望

0

贡献

技术小白

积分
87
发表于 2024-7-15 10:12:38        只看该作者  6#
799959745 发表于 2024-7-10 14:01
有改过东西吗?改过配置?编译是验证过没问题的。

没改过代码,同步后直接加载环境配置后直接编译的。
回复

使用道具 举报

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

本版积分规则

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