【Beaverfffan】 在 https://github.com/istoreos/istoreos/issues/873 发布:
其他源码已经在使用python3-pyelftools。istoreos使用的是rk官方make_fit_atf.py
需要切换到python2的pyelftools
sudo apt install python2
python-pip现在直接被ubuntu删了,很烦,需要下载手动更新。
wget https://bootstrap.pypa.io/pip/2.7/get-pip.py
sudo python2.7 get-pip.py
pip2 install pyelftools
以下是错误出现的情况
./“arch/arm/mach-rockchip/make_fit_atf.py”
arch/arm/dts/rk3568-easepi.dtb > u-boot.its
Traceback (most recent call last):
File “./arch/arm/mach-rockchip/make_fit_atf.py”, line 15, in
from elftools.elf.elffile import ELFFile
ImportError: No module named elftools.elf.elffile
make[4]: *** [Makefile:1018: u-boot.its] Error 1
make[4]: Leaving directory ‘/home/beaver/istoreos/build_dir/target-aarch64_cortex-a53_musl/u-boot-easepi-rk3568/u-boot-2017.09-20230602’
make[3]: *** [Makefile:84: /home/beaver/istoreos/build_dir/target-aarch64_cortex-a53_musl/u-boot-easepi-rk3568/u-boot-2017.09-20230602/.built] Error 2
make[3]: Leaving directory ‘/home/beaver/istoreos/package/boot/uboot-rk35xx’
time: package/boot/uboot-rk35xx/easepi-rk3568/compile#3.44#2.15#5.48
ERROR: package/boot/uboot-rk35xx failed to build (build variant: easepi-rk3568).
make[2]: *** [package/Makefile:116: package/boot/uboot-rk35xx/compile] Error 1
make[2]: Leaving directory ‘/home/beaver/istoreos’
make[1]: *** [package/Makefile:110: /home/beaver/istoreos/staging_dir/target-aarch64_cortex-a53_musl/stamp/.package_compile] Error 2
make[1]: Leaving directory ‘/home/beaver/istoreos’
make: *** [/home/beaver/istoreos/include/toplevel.mk:234: world] Error 2