coolsnowwolf / lede

Lean's LEDE source
Other
29.95k stars 19.55k forks source link

RK3328 RK3568 UBOOT编译出错 #11101

Closed VIKINGYFY closed 1 year ago

VIKINGYFY commented 1 year ago

1.关于你要提交的问题

Q:是否搜索了issue (使用 "x" 选择)

2. 详细叙述

(1) 具体问题

A: 源码更新uboot后一直云编译失败,同时编译R2S R4S R5C R66S。 部分配置文件节选: CONFIG_TARGET_MULTI_PROFILE=y CONFIG_TARGET_rockchip=y CONFIG_TARGET_rockchip_armv8=y CONFIG_TARGET_DEVICE_rockchip_armv8_DEVICE_fastrhino_r66s=y CONFIG_TARGET_DEVICE_rockchip_armv8_DEVICE_friendlyarm_nanopi-r2s=y CONFIG_TARGET_DEVICE_rockchip_armv8_DEVICE_friendlyarm_nanopi-r4s=y CONFIG_TARGET_DEVICE_rockchip_armv8_DEVICE_friendlyarm_nanopi-r5c=y

(2) 路由器型号和固件版本

A:

(3) 详细日志

A: binman: Node '/binman/simple-bin/fit': subnode 'images/@atf-SEQ': Failed to read ELF file: Python: No module named 'elftools'

lxl6125 commented 1 year ago

apt install python3-pyelftools

VIKINGYFY commented 1 year ago

apt install python3-pyelftools

依赖库列表已经更新过了 python相关的有 python3 python3-pip python3-pyelftools python2.7 没装,另外 python3-pip 装不装都会报这个错

我看到提交里有这个提示,make clean这个操作应该放在哪个步骤之前?编译前还是啥? For the python problem, just make clean. Skip the gpio patch due to it may broken boot.

VIKINGYFY commented 1 year ago

编译前 make clean,把 openwrt 编的 python 干了。

我放在make download前应该没事吧?

WYC-2020 commented 1 year ago

sudo apt-get -y install build-essential asciidoc binutils bzip2 gawk gettext git libncurses5-dev libz-dev patch python3 python2.7 unzip zlib1g-dev lib32gcc1 libc6-dev-i386 subversion flex uglifyjs git-core gcc-multilib p7zip p7zip-full msmtp libssl-dev texinfo libglib2.0-dev xmlto qemu-utils upx libelf-dev autoconf automake libtool autopoint device-tree-compiler g++-multilib antlr3 gperf wget curl swig rsync aria2 ca-certificates python3-pyelftools libpython3-dev yasm python3-setuptools

@VIKINGYFY 新安装的ubuntu 用这一波依赖,我这边编译没问题

VIKINGYFY commented 1 year ago

sudo apt-get -y install build-essential asciidoc binutils bzip2 gawk gettext git libncurses5-dev libz-dev patch python3 python2.7 unzip zlib1g-dev lib32gcc1 libc6-dev-i386 subversion flex uglifyjs git-core gcc-multilib p7zip p7zip-full msmtp libssl-dev texinfo libglib2.0-dev xmlto qemu-utils upx libelf-dev autoconf automake libtool autopoint device-tree-compiler g++-multilib antlr3 gperf wget curl swig rsync aria2 ca-certificates python3-pyelftools libpython3-dev yasm python3-setuptools

@VIKINGYFY 新安装的ubuntu 用这一波依赖,我这边编译没问题

我发现是3328的uboot会编译失败,我把3328去掉后就正常了

VIKINGYFY commented 1 year ago

不会啊,你哪个编不过日志发出来。

我云编译的,大佬可以看一下 https://github.com/VIKINGYFY/OpenWRT-LEDE/actions

VIKINGYFY commented 1 year ago

你就不能把错误日志复制出来。。我对你们的 action 链接没兴趣

binman: Node '/binman/simple-bin/fit': subnode 'images/@atf-SEQ': Failed to read ELF file: Python: No module named 'elftools' Wrote map file './simple-bin.map' to show errors make[4]: [Makefile:1108: .binman_stamp] Error 1 make[3]: [Makefile:334: /home/runner/work/OpenWRT-LEDE/OpenWRT-LEDE/lede/build_dir/target-aarch64_generic_musl/u-boot-nanopi-r5s-rk3568/u-boot-2023.04/.built] Error 2 make[4]: Leaving directory '/home/runner/work/OpenWRT-LEDE/OpenWRT-LEDE/lede/build_dir/target-aarch64_generic_musl/u-boot-nanopi-r5s-rk3568/u-boot-2023.04' make[3]: Leaving directory '/home/runner/work/OpenWRT-LEDE/OpenWRT-LEDE/lede/package/boot/uboot-rockchip' time: package/boot/uboot-rockchip/nanopi-r5s-rk3568/compile#2.68#0.69#3.32 ERROR: package/boot/uboot-rockchip failed to build (build variant: nanopi-r5s-rk3568). make[2]: Leaving directory '/home/runner/work/OpenWRT-LEDE/OpenWRT-LEDE/lede' make[2]: [package/Makefile:122: package/boot/uboot-rockchip/compile] Error 1 make[1]: Leaving directory '/home/runner/work/OpenWRT-LEDE/OpenWRT-LEDE/lede' make[1]: [package/Makefile:110: /home/runner/work/OpenWRT-LEDE/OpenWRT-LEDE/lede/staging_dir/target-aarch64_generic_musl/stamp/.package_compile] Error 2 make: *** [/home/runner/work/OpenWRT-LEDE/OpenWRT-LEDE/lede/include/toplevel.mk:231: world] Error 2 Error: Process completed with exit code 2.

VIKINGYFY commented 1 year ago

这不还是那个问题吗,你 action 缺 apt 依赖

大佬,是这样的,在这个提交中的编译是过了的,当时的依赖是这个,当时的部分配置文件是这个,这时候R2S的配置我是注释掉的,后来我又起了一次编译,我直接把R2S这行删掉了,但是这次失败了,依赖是按照你的提交修改的 python3-pip更换为python3-pyelftools