先确认一下,sdk 目录的权限有没有问题,怎么连创建文件都无权限?
普通用户在 root 用户创建的目录 ...
往下看看 一开始没用sudo 所以没权限后面加sudo就好了,看下后面的log lxk584213344 发表于 2024-5-29 13:52
往下看看 一开始没用sudo 所以没权限后面加sudo就好了,看下后面的log
后面就加sudo重新编译就好了
那就是你的路径权限有问题,wiki 有说明应该放到普通用户上不能用 root 操作的 板蓝根 发表于 2024-5-30 11:46
那就是你的路径权限有问题,wiki 有说明应该放到普通用户上不能用 root 操作的
不好意思,不太理解你什么意思,是不能加sudo 执行吗 经过技术支持,kernel也能编译成功了,但是在编译buildroot时报错,./build.sh rootfs报错如下:
lxk@ubuntu:~$ date
Tue Jun4 00:58:10 PDT 2024
lxk@ubuntu:~$
lxk@ubuntu:~$
lxk@ubuntu:~$
lxk@ubuntu:~$
lxk@ubuntu:~$
lxk@ubuntu:~$
lxk@ubuntu:~$ cd /home/lxk/
.buildroot-ccache/ Downloads/ Pictures/ Templates/
.cache/ .gnupg/ proj/ Videos/
.config/ .local/ Public/
Desktop/ .mozilla/ .repoconfig/
Documents/ Music/ rk3588/
lxk@ubuntu:~$ cd /home/lxk/
.buildroot-ccache/ Downloads/ Pictures/ Templates/
.cache/ .gnupg/ proj/ Videos/
.config/ .local/ Public/
Desktop/ .mozilla/ .repoconfig/
Documents/ Music/ rk3588/
lxk@ubuntu:~$ cd /home/lxk/
.buildroot-ccache/ Downloads/ Pictures/ Templates/
.cache/ .gnupg/ proj/ Videos/
.config/ .local/ Public/
Desktop/ .mozilla/ .repoconfig/
Documents/ Music/ rk3588/
lxk@ubuntu:~$ cd /home/lxk/proj/rk3588_sdk/
lxk@ubuntu:~/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-06-05T03:35:14 >>> pixman 0.42.2 Building
Done in 12s(error code: 2)
Failed to build /home/lxk/proj/rk3588_sdk/buildroot/output/firefly_rk3588/.config:
2024-06-05T03:22:11 | ^~~~~~~~~~~~~~
2024-06-05T03:22:11 pixman-access.c:504:30: warning: '__dummy__x8r8g8b8' defined but not used [-Wunused-const-variable=]
2024-06-05T03:22:11 504 | static const void *const __dummy__ ## format
2024-06-05T03:22:11 | ^~~~~~~~~
2024-06-05T03:22:11 pixman-access.c:507:1: note: in expansion of macro 'MAKE_ACCESSORS'
2024-06-05T03:22:11 507 | MAKE_ACCESSORS(x8r8g8b8);
2024-06-05T03:22:11 | ^~~~~~~~~~~~~~
2024-06-05T03:22:11 pixman-access.c:504:30: warning: '__dummy__a8r8g8b8' defined but not used [-Wunused-const-variable=]
2024-06-05T03:22:11 504 | static const void *const __dummy__ ## format
2024-06-05T03:22:11 | ^~~~~~~~~
2024-06-05T03:22:11 pixman-access.c:506:1: note: in expansion of macro 'MAKE_ACCESSORS'
2024-06-05T03:22:11 506 | MAKE_ACCESSORS(a8r8g8b8);
2024-06-05T03:22:11 | ^~~~~~~~~~~~~~
2024-06-05T03:22:13 Makefile:515: recipe for target 'all-recursive' failed
2024-06-05T03:22:13 make: *** Error 1
2024-06-05T03:22:13 Makefile:422: recipe for target 'all' failed
2024-06-05T03:22:13 make: *** Error 2
2024-06-05T03:22:13 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-05T03:22:13 make: *** Error 2
2024-06-05T03:22:13 Makefile:114: recipe for target '_all' failed
2024-06-05T03:22:13 make: *** Error 2
2024-06-05T03:22:13 make: Leaving directory '/home/lxk/proj/rk3588_sdk/buildroot'
2024-06-05T03:25:28 make: Entering directory '/home/lxk/proj/rk3588_sdk/buildroot'
2024-06-05T03:25:37 /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-05T03:25:38 GEN /home/lxk/proj/rk3588_sdk/buildroot/output/firefly_rk3588/Makefile
2024-06-05T03:25:39 >>> pixman 0.42.2 Building
2024-06-05T03:25:39 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-05T03:25:39 /usr/bin/makeall-recursive
2024-06-05T03:25:39 Making all in pixman
2024-06-05T03:25:39 CC pixman-access-accessors.lo
2024-06-05T03:25:39 CC pixman.lo
2024-06-05T03:25:39 In file included from pixman.c:36:
2024-06-05T03:25:39 /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-05T03:25:39 42 | #include "drmrga.h"
2024-06-05T03:25:39 | ^~~~~~~~~~
2024-06-05T03:25:39 compilation terminated.
2024-06-05T03:25:39 Makefile:934: recipe for target 'pixman.lo' failed
2024-06-05T03:25:39 make: *** Error 1
2024-06-05T03:25:39 make: *** Waiting for unfinished jobs....
2024-06-05T03:25:41 Makefile:515: recipe for target 'all-recursive' failed
2024-06-05T03:25:41 make: *** Error 1
2024-06-05T03:25:41 Makefile:422: recipe for target 'all' failed
2024-06-05T03:25:41 make: *** Error 2
2024-06-05T03:25:41 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-05T03:25:41 make: *** Error 2
2024-06-05T03:25:41 Makefile:114: recipe for target '_all' failed
2024-06-05T03:25:41 make: *** Error 2
2024-06-05T03:25:41 make: Leaving directory '/home/lxk/proj/rk3588_sdk/buildroot'
2024-06-05T03:30:33 make: Entering directory '/home/lxk/proj/rk3588_sdk/buildroot'
2024-06-05T03:30:42 /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-05T03:30:43 GEN /home/lxk/proj/rk3588_sdk/buildroot/output/firefly_rk3588/Makefile
2024-06-05T03:30:44 >>> pixman 0.42.2 Building
2024-06-05T03:30:44 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-05T03:30:44 /usr/bin/makeall-recursive
2024-06-05T03:30:44 Making all in pixman
2024-06-05T03:30:44 CC pixman.lo
2024-06-05T03:30:44 CC pixman-bits-image.lo
2024-06-05T03:30:44 In file included from pixman.c:36:
2024-06-05T03:30:44 /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-05T03:30:44 42 | #include "drmrga.h"
2024-06-05T03:30:44 | ^~~~~~~~~~
2024-06-05T03:30:44 compilation terminated.
2024-06-05T03:30:44 Makefile:934: recipe for target 'pixman.lo' failed
2024-06-05T03:30:44 make: *** Error 1
2024-06-05T03:30:44 make: *** Waiting for unfinished jobs....
2024-06-05T03:30:45 Makefile:515: recipe for target 'all-recursive' failed
2024-06-05T03:30:45 make: *** Error 1
2024-06-05T03:30:45 Makefile:422: recipe for target 'all' failed
2024-06-05T03:30:45 make: *** Error 2
2024-06-05T03:30:45 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-05T03:30:45 make: *** Error 2
2024-06-05T03:30:45 Makefile:114: recipe for target '_all' failed
2024-06-05T03:30:45 make: *** Error 2
2024-06-05T03:30:45 make: Leaving directory '/home/lxk/proj/rk3588_sdk/buildroot'
2024-06-05T03:35:04 make: Entering directory '/home/lxk/proj/rk3588_sdk/buildroot'
2024-06-05T03:35:13 /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-05T03:35:14 GEN /home/lxk/proj/rk3588_sdk/buildroot/output/firefly_rk3588/Makefile
2024-06-05T03:35:14 >>> pixman 0.42.2 Building
2024-06-05T03:35:14 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-05T03:35:15 /usr/bin/makeall-recursive
2024-06-05T03:35:15 Making all in pixman
2024-06-05T03:35:15 CC pixman-combine32.lo
2024-06-05T03:35:15 CC pixman.lo
2024-06-05T03:35:15 In file included from pixman.c:36:
2024-06-05T03:35:15 /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-05T03:35:15 42 | #include "drmrga.h"
2024-06-05T03:35:15 | ^~~~~~~~~~
2024-06-05T03:35:15 compilation terminated.
2024-06-05T03:35:15 Makefile:934: recipe for target 'pixman.lo' failed
2024-06-05T03:35:15 make: *** Error 1
2024-06-05T03:35:15 make: *** Waiting for unfinished jobs....
2024-06-05T03:35:16 Makefile:515: recipe for target 'all-recursive' failed
2024-06-05T03:35:16 make: *** Error 1
2024-06-05T03:35:16 Makefile:422: recipe for target 'all' failed
2024-06-05T03:35:16 make: *** Error 2
2024-06-05T03:35:16 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-05T03:35:16 make: *** Error 2
2024-06-05T03:35:16 Makefile:114: recipe for target '_all' failed
2024-06-05T03:35:16 make: *** Error 2
2024-06-05T03:35:16 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:14.50 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$
其中
2024-06-05T03:46:57 /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-05T03:46:57 42 | #include "drmrga.h"
2024-06-05T03:46:57 | ^~~~~~~~~~
为报错部分,目测是缺少文件或者文件版本不正确。
wiki 已经明确了不能使用 root 来编译,不然会产生很多未知问题 没用root呀,内核和boot都可以编译,到rootfs时显示编译错误,显示在编译 pixman 0.42.2 Building时,报错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-6-6 09:37
wiki 已经明确了不能使用 root 来编译,不然会产生很多未知问题
没用root呀,内核和boot都可以编译,到rootfs时显示编译错误,显示在编译 pixman 0.42.2 Building时,报错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
页:
1
[2]