imx-linux-zeus yocto build problems

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

imx-linux-zeus yocto build problems

940 Views
dkenjic
Contributor I

Greetings to NXP support teams,

 

I'm trying to build and flash imx-linux-zeus 5.4.70-2.3.11 manifest, but getting problems with processing two selinux packages:

/build_wayland/tmp/work/imx8qmmek-poky-linux/imx-image-multimedia/1.0-r0/oe-rootfs-repo/imx8qmmek/./selinux-init_0.1-r0_arm64.deb
/build_wayland/tmp/work/imx8qmmek-poky-linux/imx-image-multimedia/1.0-r0/oe-rootfs-repo/imx8qmmek/./selinux-labeldev_0.1-r0_arm64.deb

 

After removing init and labeldev .bb file from build or doing PACKAGE_EXCLUDE for them, error was of course gone. However, I encounter another problem:

-   update-alternatives: Error: not linking /build_wayland/tmp/work/imx8qmmek-poky-linux/imx-image-multimedia/1.0-r0/rootfs/sbin/klogd to /usr/lib/busybox/sbin/klogd since /build_wayland/tmp/work/imx8qmmek-poky-linux/imx-image-multimedia/1.0-r0/rootfs/sbin/klogd exists and is not a link

ERROR: imx-image-multimedia-1.0-r0 do_rootfs: Postinstall scriptlets of ['busybox'] have failed. If the intention is to defer them to first boot,
then please place them into pkg_postinst_ontarget_${PN} ().
Deferring to first boot via 'exit 1' is no longer supported.

 

Afer modifying meta-selinux errors are gone and I was able to flash:

--- a/recipes-core/busybox/busybox_selinux.inc
+++ b/recipes-core/busybox/busybox_selinux.inc
@@ -39,7 +39,11 @@ python create_sh_wrapper_reset_alternative_vars () {
# Match coreutils
if alt_name == '[':
alt_name = 'lbracket'
- d.appendVar('ALTERNATIVE_%s' % (pn), ' ' + alt_name)
+ if alt_name == 'klogd' or alt_name == 'syslogd':
+ d.appendVar('ALTERNATIVE_%s-syslog' % (pn), ' ' + alt_name)
+ else:
+ d.appendVar('ALTERNATIVE_%s' % (pn), ' ' + alt_name)
+
d.setVarFlag('ALTERNATIVE_LINK_NAME', alt_name, alt_link_name)
if os.path.exists(alt_wppath_dest):
d.setVarFlag('ALTERNATIVE_TARGET', alt_name, alt_wppath)

 

I would like to get some feedback whether these are suitable solutions and why I was not able to build and flash it as is (are those known issues, or limitations)?

 

Best regards,

Dusan

0 Kudos
Reply
0 Replies