Adding APT to IMX 5.15.32 Yocto

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Adding APT to IMX 5.15.32 Yocto

ソリューションへジャンプ
2,072件の閲覧回数
bitglitcher
Contributor II

Dear NXP Support Team,

I'm trying to upgrade to 5.15 Kernel. I'm trying to make our meta layer work on top of the meta-imx layer.

I have a recipe called `apt_%.bbappend` which adds our custom sources.list file. But I keep getting this error.

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: ExecutionError('/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)                                                                                                                                                                                                  

 For anyways wondering, the recipe that we have added is has the following code.

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/
}

 From the manifest, this is the meta-imx and poky revisions that we are using. These are the same as in the default manifest of the linux-imx 5.15.32 project.

  <project name="meta-imx" path="sources/meta-imx" remote="CAF" revision="refs/tags/rel_imx_5.15.32_2.0.0" upstream="kirkstone-5.15.32-2.0.0">
  <project name="poky" path="sources/poky" remote="yocto" revision="27de52e402ae000dfa502d52908cd6e6aef923ec" upstream="kirkstone"/>
  

I can't seem to find the a solution. I suspect that there is a compatibility issue between Poky APT and meta-imx. I tried changing the poky revision to a newer one, but then a lot of things from the meta-imx layer break up. 

Best regards,

Benjamin Herrera Navarro.

0 件の賞賛
返信
1 解決策
2,044件の閲覧回数
Bio_TICFSL
NXP TechSupport
NXP TechSupport
0 件の賞賛
返信
1 返信
2,045件の閲覧回数
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hello,

Please try the following thread for apt get, https://imxdev.gitlab.io/tutorial/How_to_apt-get_to_the_Yocto_Project_image/

 

Regards

0 件の賞賛
返信