Problem while adding the ecryptfs recipe in yocto

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

Problem while adding the ecryptfs recipe in yocto

ソリューションへジャンプ
3,142件の閲覧回数
Chethan
Contributor III

Hi,

I am using LS1046ardb board for one my project, in that I need to add the ecryptfs recipe so I am added in "local_arm64_devel.conf" file IMAGE_INSTALL_append = "ecryptfs-utils" But while building the root file system I am getting error like below

"Parsing of 780 .bb files complete (0 cached, 780 parsed). 1309 targets, 56 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies
ERROR: Nothing RPROVIDES 'ecryptfs-utils' (but /home/auser/chethan/FR3_5/flexbuild_lsdk2004/packages/rfs/yocto-poky/meta/recipes-sato/images/core-image-sato.bb RDEPENDS on or otherwise requires it)
NOTE: Runtime target 'ecryptfs-utils' is unbuildable, removing...
Missing or unbuildable dependency chain was: ['ecryptfs-utils']
ERROR: Required build target 'core-image-sato' has no buildable providers.
Missing or unbuildable dependency chain was: ['core-image-sato', 'ecryptfs-utils'] "

To build command:

1. flex-builder -i clean-rfs -r yocto

2. flex-builder -i mkrfs -r yocto:devel -a arm64

Please suggest me where I am doing mistake while adding the ecryptfs recipe or please suggest me how to add the ecryptfs recipe in yocto.

Thanks & Regards,

Chethan GR.

 

0 件の賞賛
返信
1 解決策
3,102件の閲覧回数
yipingwang
NXP TechSupport
NXP TechSupport

Please modify the following setting in configs/yocto/local_arm64_devel.conf

IMAGE_FSTYPES = "cpio.gz ubi squashfs"

Modify to:

IMAGE_FSTYPES = "cpio.gz squashfs"

Then run the following command

$ flex-builder -i mkrfs -r yocto:devel -a arm64

元の投稿で解決策を見る

0 件の賞賛
返信
6 返答(返信)
3,135件の閲覧回数
yipingwang
NXP TechSupport
NXP TechSupport

Package ecryptfs-utils related recipes are missing in flex-builder Yocto environment.

You need to put the attached recipes in meta folder in flexbuild_lsdk2012/packages/rfs/yocto-poky/meta.

Then run the following command.

flex-builder -i mkrfs -r yocto:devel -a arm64

0 件の賞賛
返信
3,132件の閲覧回数
Chethan
Contributor III

Hi,

After the adding the recipes-security, recipes-crypto and recipes-support folders into the meta directory. I gave the build using "flex-builder -i mkrfs -r yocto:devel -a arm64" command. 

while building I am getting error like this 

"ERROR: core-image-sato-1.0-r0 do_rootfs: Unable to install packages. Command '/home/auser/yoctobuild/tmp/work/qemuarm64-poky-linux/core-image-sato/1.0-r0/recipe-sysroot-native/usr/bin/apt-get install --force-yes --allow-unauthenticated --no-remove apt boot.mount bridge-utils cryptsetup curl dosfstools dpkg e2fsprogs ecryptfs-utils ethtool file fsm-startup iperf3 iputils keyutils libbsd0 libedit0 libpcap1 linuxptp net-tools netperf nokia-startup openssh-scp openssh-ssh packagegroup-base-extended packagegroup-core-boot packagegroup-core-sdk packagegroup-core-standalone-sdk-target parted pciutils psplash rt-tests run-postinsts sudo systemd-conf u-boot-tools update-rc.d' returned 100:
Reading package lists...
Building dependency tree...
Reading state information...
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
cryptsetup : Depends: libdevmapper but it is not installable
Recommends: kernel-module-aes-generic but it is not installable
Recommends: kernel-module-cbc but it is not installable
Recommends: kernel-module-dm-crypt but it is not installable
Recommends: kernel-module-md5 but it is not installable
Recommends: kernel-module-sha256-generic but it is not installable
Recommends: kernel-module-xts but it is not installable
E: Unable to correct problems, you have held broken packages."

In "local_arm64_devel.conf" I add ecryptfs-utils,  cryptsetup, and keyutils for dependency packages.  

Please suggest me what's wrong in this?!.

Thanks & Regards

Chethan GR

0 件の賞賛
返信
3,118件の閲覧回数
yipingwang
NXP TechSupport
NXP TechSupport

Please comment the following line in packages/rfs/yocto-poky/meta/recipes-support/lvm2/libdevmapper_2.03.06.bb.

#PACKAGES = ""

Then add "libdevmapper" to variable IMAGE_INSTALL_append in configs/yocto/local_arm64_devel.conf

Then run the following commands.

$ flex-builder -i clean-rfs -r yocto

$ flex-builder -i mkrfs -r yocto:devel -a arm64

0 件の賞賛
返信
3,109件の閲覧回数
Chethan
Contributor III

Hi,

After following the above steps. still I am getting error.

"ERROR: core-image-sato-1.0-r0 do_image_ubifs: Execution of '/home/auser/yoctobuild/tmp/work/qemuarm64-poky-linux/core-image-sato/1.0-r0/temp/run.do_image_ubifs.27636' failed with exit code 255:
Error: max_leb_cnt too low (2292 needed)
WARNING: exit code 255 from a shell command.

ERROR: Logfile of failure stored in: /home/auser/yoctobuild/tmp/work/qemuarm64-poky-linux/core-image-sato/1.0-r0/temp/log.do_image_ubifs.27636
Log data follows:
| DEBUG: Executing python function set_image_size
| DEBUG: 893874.800000 = 687596 * 1.300000
| DEBUG: 893874.800000 = max(893874.800000, 65536)[893874.800000] + 0
| DEBUG: 893875.000000 = int(893874.800000)
| DEBUG: 893875 = aligned(893875)
| DEBUG: returning 893875
| DEBUG: Python function set_image_size finished
| DEBUG: Executing python function extend_recipe_sysroot
| NOTE: Direct dependencies are ['/home/auser/chethan/FR3_5/flexbuild_lsdk2004/packages/rfs/yocto-poky/meta/recipes-devtools/qemu/qemuwrapper-cross_1.0.bb:do_populate_sysroot', '/home/auser/chethan/FR3_5/flexbuild_lsdk2004/packages/rfs/yocto-poky/meta/recipes-kernel/kmod/depmodwrapper-cross_1.0.bb:do_populate_sysroot', 'virtual:native:/home/auser/chethan/FR3_5/flexbuild_lsdk2004/packages/rfs/yocto-poky/meta/recipes-devtools/opkg-utils/opkg-utils_0.4.2.bb:do_populate_sysroot', 'virtual:native:/home/auser/chethan/FR3_5/flexbuild_lsdk2004/packages/rfs/yocto-poky/meta/recipes-devtools/pseudo/pseudo_git.bb:do_populate_sysroot', 'virtual:native:/home/auser/chethan/FR3_5/flexbuild_lsdk2004/packages/rfs/yocto-poky/meta/recipes-devtools/dpkg/dpkg_1.19.7.bb:do_populate_sysroot', 'virtual:native:/home/auser/chethan/FR3_5/flexbuild_lsdk2004/packages/rfs/yocto-poky/meta/recipes-core/update-rc.d/update-rc.d_0.8.bb:do_populate_sysroot', 'virtual:native:/home/auser/chethan/FR3_5/flexbuild_lsdk2004/packages/rfs/yocto-poky/meta/recipes-devtools/makedevs/makedevs_1.0.1.bb:do_populate_sysroot', '/home/auser/chethan/FR3_5/flexbuild_lsdk2004/packages/rfs/yocto-poky/meta/recipes-devtools/mklibs/mklibs-native_0.1.44.bb:do_populate_sysroot', 'virtual:native:/home/auser/chethan/FR3_5/flexbuild_lsdk2004/packages/rfs/yocto-poky/meta/recipes-extended/pbzip2/pbzip2_1.1.13.bb:do_populate_sysroot', 'virtual:native:/home/auser/chethan/FR3_5/flexbuild_lsdk2004/packages/rfs/yocto-poky/meta/recipes-extended/pigz/pigz_2.4.bb:do_populate_sysroot', 'virtual:native:/home/auser/chethan/FR3_5/flexbuild_lsdk2004/packages/rfs/yocto-poky/meta/recipes-devtools/mtd/mtd-utils_git.bb:do_populate_sysroot', '/home/auser/chethan/FR3_5/flexbuild_lsdk2004/packages/rfs/yocto-poky/meta/recipes-devtools/apt/apt-native_1.2.31.bb:do_populate_sysroot', 'virtual:native:/home/auser/chethan/FR3_5/flexbuild_lsdk2004/packages/rfs/yocto-poky/meta/recipes-devtools/prelink/prelink_git.bb:do_populate_sysroot', '/home/auser/chethan/FR3_5/flexbuild_lsdk2004/packages/rfs/yocto-poky/meta/recipes-core/glibc/ldconfig-native_2.12.1.bb:do_populate_sysroot', '/home/auser/chethan/FR3_5/flexbuild_lsdk2004/packages/rfs/yocto-poky/meta/recipes-core/glibc/cross-localedef-native_2.30.bb:do_populate_sysroot']
| NOTE: Installed into sysroot: ['mtd-utils-native', 'acl-native', 'e2fsprogs-native', 'lzo-native']
| NOTE: Skipping as already exists in sysroot: ['qemuwrapper-cross', 'depmodwrapper-cross', 'opkg-utils-native', 'pseudo-native', 'dpkg-native', 'update-rc.d-native', 'makedevs-native', 'mklibs-native', 'pbzip2-native', 'pigz-native', 'apt-native', 'prelink-native', 'ldconfig-native', 'cross-localedef-native', 'qemu-native', 'systemd-systemctl-native', 'shadow-native', 'gdk-pixbuf-native', 'gtk+3-native', 'glib-2.0-native', 'kmod-native', 'quilt-native', 'patch-native', 'debianutils-native', 'openssl-native', 'mkfontscale-native', 'mkfontdir-native', 'gconf-native', 'gnu-config-native', 'xz-native', 'bzip2-native', 'gettext-native', 'perl-native', 'automake-native', 'libtool-native', 'autoconf-native', 'gettext-minimal-native', 'pkgconfig-native', 'zlib-native', 'util-linux-native', 'curl-native', 'db-native', 'nss-native', 'binutils-native', 'elfutils-native', 'gobject-introspection-native', 'shared-mime-info-native', 'meson-native', 'gtk-doc-native', 'libjpeg-turbo-native', 'ninja-native', 'libpng-native', 'python3-native', 'atk-native', 'pango-native', 'libxcomposite-native', 'libxi-native', 'libxrender-native', 'libxext-native', 'at-spi2-atk-native', 'libxfixes-native', 'cairo-native', 'libxdamage-native', 'libxrandr-native', 'libx11-native', 'fontconfig-native', 'libxcursor-native', 'libffi-native', 'libpcre-native', 'attr-native', 'xorgproto-native', 'freetype-native', 'util-macros-native', 'libfontenc-native', 'dbus-glib-native', 'intltool-native', 'libxml2-native', 'dbus-native', 'texinfo-dummy-native', 'gdbm-native', 'm4-native', 'ncurses-native', 'libcap-ng-native', 'sqlite3-native', 'nspr-native', 'flex-native', 'python3-setuptools-native', 'cmake-native', 're2c-native', 'readline-native', 'libnsl2-native', 'libtirpc-native', 'fribidi-native', 'harfbuzz-native', 'libxft-native', 'at-spi2-core-native', 'libsm-native', 'pixman-native', 'libxcb-native', 'xtrans-native', 'expat-native', 'gperf-native', 'font-util-native', 'libxml-parser-perl-native', 'unzip-native', 'icu-native', 'libxtst-native', 'libice-native', 'libpthread-stubs-native', 'libxdmcp-native', 'xcb-proto-native', 'libxau-native']
| DEBUG: sed -e 's:^[^/]*/:/home/auser/yoctobuild/tmp/work/qemuarm64-poky-linux/core-image-sato/1.0-r0/recipe-sysroot-native/:g' /home/auser/yoctobuild/tmp/sysroots-components/x86_64/mtd-utils-native/fixmepath /home/auser/yoctobuild/tmp/sysroots-components/x86_64/e2fsprogs-native/fixmepath | xargs sed -i -e 's:FIXMESTAGINGDIRTARGET:/home/auser/yoctobuild/tmp/work/qemuarm64-poky-linux/core-image-sato/1.0-r0/recipe-sysroot:g; s:FIXMESTAGINGDIRHOST:/home/auser/yoctobuild/tmp/work/qemuarm64-poky-linux/core-image-sato/1.0-r0/recipe-sysroot-native:g' -e 's:FIXME_PSEUDO_SYSROOT:/home/auser/yoctobuild/tmp/sysroots-components/x86_64/pseudo-native:g' -e 's:FIXME_HOSTTOOLS_DIR:/home/auser/yoctobuild/tmp/hosttools:g' -e 's:FIXME_PKGDATA_DIR:/home/auser/yoctobuild/tmp/pkgdata/qemuarm64:g' -e 's:FIXME_PSEUDO_LOCALSTATEDIR:/home/auser/yoctobuild/tmp/work/qemuarm64-poky-linux/core-image-sato/1.0-r0/pseudo/:g' -e 's:FIXME_LOGFIFO:/home/auser/yoctobuild/tmp/work/qemuarm64-poky-linux/core-image-sato/1.0-r0/temp/fifo.27636:g'
| DEBUG: Python function extend_recipe_sysroot finished
| DEBUG: Executing shell function do_image_ubifs
| Error: max_leb_cnt too low (2292 needed)
| WARNING: exit code 255 from a shell command.
| ERROR: Execution of '/home/auser/yoctobuild/tmp/work/qemuarm64-poky-linux/core-image-sato/1.0-r0/temp/run.do_image_ubifs.27636' failed with exit code 255:
| Error: max_leb_cnt too low (2292 needed)
| WARNING: exit code 255 from a shell command.
|
ERROR: Task (/home/auser/chethan/FR3_5/flexbuild_lsdk2004/packages/rfs/yocto-poky/meta/recipes-sato/images/core-image-sato.bb:do_image_ubifs) failed with exit code '1'
NOTE: Tasks Summary: Attempted 6544 tasks of which 6027 didn't need to be rerun and 1 failed.

Summary: 1 task failed:
/home/auser/chethan/FR3_5/flexbuild_lsdk2004/packages/rfs/yocto-poky/meta/recipes-sato/images/core-image-sato.bb:do_image_ubifs
Summary: There were 4 WARNING messages shown.
Summary: There was 1 ERROR message shown, returning a non-zero exit code."

Please let me know where I am going mistake.

Thanks & Regards,

Chethan GR.

0 件の賞賛
返信
3,103件の閲覧回数
yipingwang
NXP TechSupport
NXP TechSupport

Please modify the following setting in configs/yocto/local_arm64_devel.conf

IMAGE_FSTYPES = "cpio.gz ubi squashfs"

Modify to:

IMAGE_FSTYPES = "cpio.gz squashfs"

Then run the following command

$ flex-builder -i mkrfs -r yocto:devel -a arm64

0 件の賞賛
返信
3,093件の閲覧回数
Chethan
Contributor III

Hi yipingwang,

This problem got resolved, Thank you so much for your support.

Thanks & Regards,

Chethan GR.

0 件の賞賛
返信