docker 编译Linux版本在buildroot阶段报错

固件类型:官方提供的固件
固件文件名称:rk356x_linux5.10_release_20231027_v1.2.1b
固件下载地址:百度网盘 请输入提取码
Log日志:log.txt.zip

您好:
按照文档:1. 编译 Linux5.10 固件 — Firefly Wiki
使用docker编译的时候遇到如下错误:
Failed to build rockchip_rk3566:

# 2023-12-12 07:49:23

2023-12-12T07:49:23 make: Entering directory ‘/home/zhangchenyu/Desktop/firefly/RK3566/SDK/rk356x_sdk-linux5.10/buildroot’

2023-12-12T07:49:38 /usr/bin/make -j1 O=/home/zhangchenyu/Desktop/firefly/RK3566/SDK/rk356x_sdk-linux5.10/buildroot/output/rockchip_rk3566 HOSTCC=“/usr/bin/gcc” HOSTCXX=“/usr/bin/g++” syncconfig

2023-12-12T07:49:38 make[1]: Entering directory ‘/home/zhangchenyu/Desktop/firefly/RK3566/SDK/rk356x_sdk-linux5.10/buildroot’

2023-12-12T07:49:39 GEN /home/zhangchenyu/Desktop/firefly/RK3566/SDK/rk356x_sdk-linux5.10/buildroot/output/rockchip_rk3566/Makefile

2023-12-12T07:49:41 make[1]: Leaving directory ‘/home/zhangchenyu/Desktop/firefly/RK3566/SDK/rk356x_sdk-linux5.10/buildroot’

2023-12-12T07:49:41 >>> host-m4 1.4.19 Extracting

2023-12-12T07:49:41 xzcat /home/zhangchenyu/Desktop/firefly/RK3566/SDK/rk356x_sdk-linux5.10/buildroot/dl/m4/m4-1.4.19.tar.xz | tar --strip-components=1 -C /home/zhangchenyu/Desktop/firefly/RK3566/SDK/rk356x_sdk-linux5.10/buildroot/output/rockchip_rk3566/build/host-m4-1.4.19 -xf -

2023-12-12T07:49:49 chmod: changing permissions of ‘/home/zhangchenyu/Desktop/firefly/RK3566/SDK/rk356x_sdk-linux5.10/buildroot/output/rockchip_rk3566/build/host-m4-1.4.19/bootstrap’: Permission denied

2023-12-12T07:49:51 package/pkg-generic.mk:229: recipe for target ‘/home/zhangchenyu/Desktop/firefly/RK3566/SDK/rk356x_sdk-linux5.10/buildroot/output/rockchip_rk3566/build/host-m4-1.4.19/.stamp_extracted’ failed

2023-12-12T07:49:51 make: *** [/home/zhangchenyu/Desktop/firefly/RK3566/SDK/rk356x_sdk-linux5.10/buildroot/output/rockchip_rk3566/build/host-m4-1.4.19/.stamp_extracted] Error 1

2023-12-12T07:49:51 make: Leaving directory ‘/home/zhangchenyu/Desktop/firefly/RK3566/SDK/rk356x_sdk-linux5.10/buildroot’

Please check details in /home/zhangchenyu/Desktop/firefly/RK3566/SDK/rk356x_sdk-linux5.10/output/sessions/2023-12-12_07-47-23/br-rockchip_rk3566_2023-12-12_07-49-23.log

Command exited with non-zero status 1

you take 0:36.20 to build buildroot

ERROR: Running /home/zhangchenyu/Desktop/firefly/RK3566/SDK/rk356x_sdk-linux5.10/device/rockchip/common/scripts/mk-rootfs.sh - build_buildroot failed!

ERROR: exit code 1 from line 16:

/usr/bin/time -f "you take %E to build buildroot" "$SCRIPTS_DIR/mk-buildroot.sh" $RK_BUILDROOT_CFG "$ROOTFS_DIR"

ERROR: call stack:

mk-rootfs.sh: build_buildroot(16)

mk-rootfs.sh: build_hook(265)

mk-rootfs.sh: main(292)

ERROR: Running /home/zhangchenyu/Desktop/firefly/RK3566/SDK/rk356x_sdk-linux5.10/device/rockchip/common/build-hooks/99-all.sh - build_all failed!

ERROR: exit code 1 from line 30:

"$SCRIPTS_DIR/mk-rootfs.sh"

ERROR: call stack:

99-all.sh: build_all(30)

99-all.sh: build_allsave(112)

99-all.sh: build_hook(137)

build-helper: try_func(63)

build-helper: try_hook(95)

build-helper: source(173)

99-all.sh: main(147)

ERROR: Running /home/zhangchenyu/Desktop/firefly/RK3566/SDK/rk356x_sdk-linux5.10/device/rockchip/common/build-hooks/99-all.sh - try_func build_hook allsave failed!

ERROR: exit code 1 from line 67:

build_hook

ERROR: call stack:

build-helper: try_func(67)

build-helper: try_hook(95)

build-helper: source(173)

99-all.sh: main(147)

ERROR: Running ./build.sh - run_hooks build allsave failed!

ERROR: exit code 1 from line 195:

/home/zhangchenyu/Desktop/firefly/RK3566/SDK/rk356x_sdk-linux5.10/device/rockchip/common/build-hooks/99-all.sh build allsave

ERROR: call stack:

build.sh: run_hooks(195)

build.sh: run_build_hooks(214)

build.sh: main(495)

build.sh: main(510)

ERROR: Running ./build.sh - run_build_hooks build allsave failed!

ERROR: exit code 1 from line 217:

build

ERROR: call stack:

build.sh: run_build_hooks(217)

build.sh: main(495)

build.sh: main(510)

firefly@firefly:/home/zhangchenyu/Desktop/firefly/RK3566/SDK/rk356x_sdk-linux5.10$ lsattr chmod: changing permissions of ‘/home/zhangchenyu/Desktop/firefly/RK3566/SDK/rk356x_sdk-linux5.10/buildroot/output/rockchip_rk3566/build/host-m4-1.4.19/bootstrap’: Permission denied

lsattr: No such file or directory while trying to stat chmod:

lsattr: No such file or directory while trying to stat changing

lsattr: No such file or directory while trying to stat permissions

lsattr: No such file or directory while trying to stat of

lsattr: No such file or directory while trying to stat /home/zhangchenyu/Desktop/firefly/RK3566/SDK/rk356x_sdk-linux5.10/buildroot/output/rockchip_rk3566/build/host-m4-1.4.19/bootstrap:

lsattr: No such file or directory while trying to stat Permission

lsattr: No such file or directory while trying to stat denied

请问应该如何解决?看起来是权限的问题。

tchip_askquestions
log.txt.zip (3.56 KB)

我使用一下命令创建的docker容器:
docker run --privileged -it --name firefly_rk3566 -p 50005:22 --mount type=bind,source=/Users/zhangchenyu/Desktop,target=/home/zhangchenyu/Desktop -h firefly firefly_rk3566sdk /bin/bash

楼主,如何解决的这个问题?

zhu.bo 发表于 2024-4-4 17:12
楼主,如何解决的这个问题?

这个问题解决了吗,求助!!!

莫乘 发表于 2024-11-20 10:25
这个问题解决了吗,求助!!!

直接用ubuntu18编译也很顺畅啊

请问您这个是如何解决的?我也是在docker里面运行,但是我没有
firefly@firefly:/home/zhangchenyu/Desktop/firefly/RK3566/SDK/rk356x_sdk-linux5.10$ lsattr chmod: changing permissions of ‘/home/zhangchenyu/Desktop/firefly/RK3566/SDK/rk356x_sdk-linux5.10/buildroot/output/rockchip_rk3566/build/host-m4-1.4.19/bootstrap’: Permission denied
lsattr: No such file or directory while trying to stat chmod:
lsattr: No such file or directory while trying to stat changing
lsattr: No such file or directory while trying to stat permissions
lsattr: No such file or directory while trying to stat of
lsattr: No such file or directory while trying to stat /home/zhangchenyu/Desktop/firefly/RK3566/SDK/rk356x_sdk-linux5.10/buildroot/output/rockchip_rk3566/build/host-m4-1.4.19/bootstrap:
lsattr: No such file or directory while trying to stat Permission
lsattr: No such file or directory while trying to stat denied

你这些