我正在尝试升级到 5.15 内核。我试图让我们的元层在元 imx 层之上工作。
我有一个名为 `apt_%.bbappend` 的食谱,它添加了我们的自定义 sources.list 文件。但我一直收到这个错误。
ERROR: Task (/home/bherrera/winYocto5.15/sources/meta-freescale/recipes-bsp/imx-mkimage/imx-boot_1.0.bb:do_compile) failed with exit code '1' ERROR: useradd-winsys-1.0-r0 do_prepare_recipe_sysroot: useradd-winsys: useradd command did not succeed. ERROR: useradd-winsys-1.0-r0 do_prepare_recipe_sysroot: Execu
tionError('/home/bherrera/winYocto5.15/build/tmp/work/armv8a-mx8m-poky-linux/useradd-winsys/1.0-r0/temp/run.useradd_sysroot.3443507', 1, None, None) ERROR: Logfile of failure stored in: /home/bherrera/winYocto5.15/build/tmp/work/armv8a-mx8m-poky-linux/useradd-winsys/1.0-r0/temp/log.do_prepare_recipe_sysroot.3443507 ERROR: Task (/home/bherrera/winYocto5.15/sources/meta-winsys/recipes-winsys/useradd/useradd-winsys.bb:do_prepare_recipe_sysroot) failed with exit code '1' ERROR: apt-native-2.4.4-r0 do_install: ExecutionError('/home/bherrera/winYocto5.15/build/tmp/work/x86_64-linux/apt-native/2.4.4-r0/temp/run.do_install.3443553', 1, None, None) ERROR: Logfile of failure stored in: /home/bherrera/winYocto5.15/build/tmp/work/x86_64-linux/apt-native/2.4.4-r0/temp/log.do_install.3443553 Log data follows: | DEBUG: Executing shell function do_install | NOTE: DESTDIR=/home/bherrera/winYocto5.15/build/tmp/work/x86_64-linux/apt-native/2.4.4-r0/image VERBOSE=1 cmake --build /home/bherrera/winYocto5.15/build/tmp/work/x86_64-linux/apt-native/2.4.4-r0/build --target install -- | [1/36] /home/bherrera/winYocto5.15/build/tmp/hosttools/g++ -D_WITH_GETLINE=1 -Dapt_pkg_EXPORTS -I/home/bherrera/winYocto5.15/build/tmp/work/x86_64-linux/apt-native/2.4.4-r0/build/include -I/home/bherrera/winYocto5.15/build/tmp/work/x86_64-linux/apt-native/2.4.4-r0/build/include/apt-pkg -isystem/home/bherrera/winYocto5.15/build/tmp/work/x86_64-linux/apt-native/2.4.4-r0/recipe-sysroot-native/usr/include -O2 -pipe -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Wall -Wextra -Wcast-align -Wlogical-op -Wredundant-decls -Wmissing-declarations -Wunsafe-loop-optimizations -Wctor-dtor-privacy -Wdisabled-optimization -Winit-self -Wmissing-include-dirs -Wnoexcept -Wsign-promo -Wundef -Wdouble-promotion -Wsuggest-override -Werror=suggest-override -Werror=return-type -std=gnu++17 -MD -MT apt-pkg/CMakeFiles/apt-pkg.dir/tagfile-keys.cc.o -MF apt-pkg/CMakeFiles/apt-pkg.dir/tagfile-keys.cc.o.d -o apt-pkg/CMakeFiles/apt-pkg.dir/tagfile-keys.cc.o -c /home/bherrera/winYocto5.15/build/tmp/work/x86_64-linux/apt-native/2.4.4-r0/build/apt-pkg/tagfile-keys.cc | FAILED: apt-pkg/CMakeFiles/apt-pkg.dir/tagfile-keys.cc.o | /home/bherrera/winYocto5.15/build/tmp/hosttools/g++ -D_WITH_GETLINE=1 -Dapt_pkg_EXPORTS -I/home/bherrera/winYocto5.15/build/tmp/work/x86_64-linux/apt-native/2.4.4-r0/build/include -I/home/bherrera/winYocto5.15/build/tmp/work/x86_64-linux/apt-native/2.4.4-r0/build/include/apt-pkg -isystem/home/bherrera/winYocto5.15/build/tmp/work/x86_64-linux/apt-native/2.4.4-r0/recipe-sysroot-native/usr/include -O2 -pipe -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Wall -Wextra -Wcast-align -Wlogical-op -Wredundant-decls -Wmissing-declarations -Wunsafe-loop-optimizations -Wctor-dtor-privacy -Wdisabled-optimization -Winit-self -Wmissing-include-dirs -Wnoexcept -Wsign-promo -Wundef -Wdouble-promotion -Wsuggest-override -Werror=suggest-override -Werror=return-type -std=gnu++17 -MD -MT apt-pkg/CMakeFiles/apt-pkg.dir/tagfile-keys.cc.o -MF apt-pkg/CMakeFiles/apt-pkg.dir/tagfile-keys.cc.o.d -o apt-pkg/CMakeFiles/apt-pkg.dir/tagfile-keys.cc.o -c /home/bherrera/winYocto5.15/build/tmp/work/x86_64-linux/apt-native/2.4.4-r0/build/apt-pkg/tagfile-keys.cc | /home/bherrera/winYocto5.15/build/tmp/work/x86_64-linux/apt-native/2.4.4-r0/build/apt-pkg/tagfile-keys.cc:1:10: fatal error: /include/apt-pkg/tagfile-keys.h: No such file or directory | 1 | #include "/include/apt-pkg/tagfile-keys.h" | | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | compilation terminated. | ninja: build stopped: subcommand failed. | WARNING: exit code 1 from a shell command. ERROR: Task (virtual:native:/home/bherrera/winYocto5.15/sources/poky/meta/recipes-devtools/apt/apt_2.4.4.bb:do_install) failed with exit code '1' ERROR: chromium-ozone-wayland-96.0.4664.110-r0 do_compile: ExecutionError('/home/bherrera/winYocto5.15/build/tmp/work/armv8a-mx8m-poky-linux/chromium-ozone-wayland/96.0.4664.110-r0/temp/run.do_compile.3443508', 1, None, None) 不管怎样,我们添加的配方具有以下代码。
FILESEXTRAPATHS:prepend := "${THISDIR}/${BPN}:"
FILES:${PN} = "/var/* /usr/* /etc/*"
SRC_URI += "file://winsys-20.list"
do_install:append() {
install -m 0644 ${WORKDIR}/winsys-20.list ${D}${sysconfdir}/apt/sources.list.d/
} 从清单上看,这是我们正在使用的 meta-imx 和 poky 修订版。这些与 linux-imx 5.15.32 项目的默认清单中的相同。
我似乎找不到解决方案。我怀疑 Poky APT 和 meta-imx 之间存在兼容性问题。我尝试将 poky 版本更改为更新的版本,但随后 meta-imx 层的很多东西都崩溃了。