详细叙述
最近编译R4S都是报错 不知道为什么 删除了代码重新编译也是报错 麻烦帮忙看看 比较小白 还望指导下怎么修改
重复 issue
具体型号
R4S
详细日志
mkdir -p tpl/dts/
FDTGREP tpl/dts/dt-tpl.dtb
COPY tpl/u-boot-tpl.dtb
CAT tpl/u-boot-tpl-dtb.bin
COPY tpl/u-boot-tpl.bin
SYM tpl/u-boot-tpl.sym
COPY u-boot.dtb
MKIMAGE u-boot-dtb.img
BINMAN .binman_stamp
Traceback (most recent call last):
File "/home/tc/lede/build_dir/target-aarch64_generic_musl/u-boot-nanopi-r4s-rk3399/u-boot-2025.10/tools/binman/control.py", line 13, in
importlib_resources.files
AttributeError: module 'importlib.resources' has no attribute 'files'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "./tools/binman/binman", line 46, in
from binman import control
File "/home/tc/lede/build_dir/target-aarch64_generic_musl/u-boot-nanopi-r4s-rk3399/u-boot-2025.10/tools/binman/control.py", line 15, in
import importlib_resources
ModuleNotFoundError: No module named 'importlib_resources'
make[4]: *** [Makefile:1339: .binman_stamp] Error 1
make[4]: Leaving directory '/home/tc/lede/build_dir/target-aarch64_generic_musl/u-boot-nanopi-r4s-rk3399/u-boot-2025.10'
make[3]: *** [Makefile:552: /home/tc/lede/build_dir/target-aarch64_generic_musl/u-boot-nanopi-r4s-rk3399/u-boot-2025.10/.built] Error 2
make[3]: Leaving directory '/home/tc/lede/package/boot/uboot-rockchip'
time: package/boot/uboot-rockchip/nanopi-r4s-rk3399/compile#34.49#29.09#60.33
ERROR: package/boot/uboot-rockchip failed to build (build variant: nanopi-r4s-rk3399).
make[2]: *** [package/Makefile:116: package/boot/uboot-rockchip/compile] Error 1
make[2]: Leaving directory '/home/tc/lede'
make[1]: *** [package/Makefile:110: /home/tc/lede/staging_dir/target-aarch64_generic_musl/stamp/.package_compile] Error 2
make[1]: Leaving directory '/home/tc/lede'
make: *** [/home/tc/lede/include/toplevel.mk:231:world] 错误 2