<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic imx-linux-zeus yocto build problems in i.MX Solutions</title>
    <link>https://community.nxp.com/t5/i-MX-Solutions/imx-linux-zeus-yocto-build-problems/m-p/1843801#M423</link>
    <description>&lt;P&gt;Greetings to NXP support teams,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to build and flash imx-linux-zeus&amp;nbsp;5.4.70-2.3.11 manifest, but getting problems with processing two selinux packages:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;-&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;/build_wayland/tmp/work/imx8qmmek-poky-linux/imx-image-multimedia/1.0-r0/oe-rootfs-repo/imx8qmmek/./selinux-init_0.1-r0_arm64.deb&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;/build_wayland/tmp/work/imx8qmmek-poky-linux/imx-image-multimedia/1.0-r0/oe-rootfs-repo/imx8qmmek/./selinux-labeldev_0.1-r0_arm64.deb&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;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:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;-&amp;nbsp; &amp;nbsp;&lt;SPAN class=""&gt;update-alternatives:&amp;nbsp;Error:&amp;nbsp;not&amp;nbsp;linking&amp;nbsp;/build_wayland/tmp/work/imx8qmmek-poky-linux/imx-image-multimedia/1.0-r0/rootfs/sbin/klogd&amp;nbsp;to&amp;nbsp;/usr/lib/busybox/sbin/klogd&amp;nbsp;since /build_wayland/tmp/work/imx8qmmek-poky-linux/imx-image-multimedia/1.0-r0/rootfs/sbin/klogd&amp;nbsp;exists&amp;nbsp;and&amp;nbsp;is&amp;nbsp;not&amp;nbsp;a&amp;nbsp;link&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;ERROR:&amp;nbsp;imx-image-multimedia-1.0-r0&amp;nbsp;do_rootfs: Postinstall&amp;nbsp;scriptlets&amp;nbsp;of&amp;nbsp;['busybox']&amp;nbsp;have&amp;nbsp;failed.&amp;nbsp;If&amp;nbsp;the&amp;nbsp;intention&amp;nbsp;is&amp;nbsp;to&amp;nbsp;defer&amp;nbsp;them&amp;nbsp;to&amp;nbsp;first&amp;nbsp;boot,&lt;BR /&gt;then&amp;nbsp;please&amp;nbsp;place&amp;nbsp;them&amp;nbsp;into&amp;nbsp;pkg_postinst_ontarget_${PN}&amp;nbsp;().&lt;BR /&gt;Deferring&amp;nbsp;to&amp;nbsp;first&amp;nbsp;boot&amp;nbsp;via&amp;nbsp;'exit&amp;nbsp;1'&amp;nbsp;is&amp;nbsp;no&amp;nbsp;longer&amp;nbsp;supported.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Afer modifying meta-selinux errors are gone and I was able to flash:&lt;/P&gt;&lt;P&gt;--- a/recipes-core/busybox/busybox_selinux.inc&lt;BR /&gt;+++ b/recipes-core/busybox/busybox_selinux.inc&lt;BR /&gt;@@ -39,7 +39,11 @@ python create_sh_wrapper_reset_alternative_vars () {&lt;BR /&gt;# Match coreutils&lt;BR /&gt;if alt_name == '[':&lt;BR /&gt;alt_name = 'lbracket'&lt;BR /&gt;- d.appendVar('ALTERNATIVE_%s' % (pn), ' ' + alt_name)&lt;BR /&gt;+ if alt_name == 'klogd' or alt_name == 'syslogd':&lt;BR /&gt;+ d.appendVar('ALTERNATIVE_%s-syslog' % (pn), ' ' + alt_name)&lt;BR /&gt;+ else:&lt;BR /&gt;+ d.appendVar('ALTERNATIVE_%s' % (pn), ' ' + alt_name)&lt;BR /&gt;+&lt;BR /&gt;d.setVarFlag('ALTERNATIVE_LINK_NAME', alt_name, alt_link_name)&lt;BR /&gt;if os.path.exists(alt_wppath_dest):&lt;BR /&gt;d.setVarFlag('ALTERNATIVE_TARGET', alt_name, alt_wppath)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;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)?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Dusan&lt;/P&gt;</description>
    <pubDate>Wed, 10 Apr 2024 08:42:23 GMT</pubDate>
    <dc:creator>dkenjic</dc:creator>
    <dc:date>2024-04-10T08:42:23Z</dc:date>
    <item>
      <title>imx-linux-zeus yocto build problems</title>
      <link>https://community.nxp.com/t5/i-MX-Solutions/imx-linux-zeus-yocto-build-problems/m-p/1843801#M423</link>
      <description>&lt;P&gt;Greetings to NXP support teams,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to build and flash imx-linux-zeus&amp;nbsp;5.4.70-2.3.11 manifest, but getting problems with processing two selinux packages:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;-&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;/build_wayland/tmp/work/imx8qmmek-poky-linux/imx-image-multimedia/1.0-r0/oe-rootfs-repo/imx8qmmek/./selinux-init_0.1-r0_arm64.deb&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;/build_wayland/tmp/work/imx8qmmek-poky-linux/imx-image-multimedia/1.0-r0/oe-rootfs-repo/imx8qmmek/./selinux-labeldev_0.1-r0_arm64.deb&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;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:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;-&amp;nbsp; &amp;nbsp;&lt;SPAN class=""&gt;update-alternatives:&amp;nbsp;Error:&amp;nbsp;not&amp;nbsp;linking&amp;nbsp;/build_wayland/tmp/work/imx8qmmek-poky-linux/imx-image-multimedia/1.0-r0/rootfs/sbin/klogd&amp;nbsp;to&amp;nbsp;/usr/lib/busybox/sbin/klogd&amp;nbsp;since /build_wayland/tmp/work/imx8qmmek-poky-linux/imx-image-multimedia/1.0-r0/rootfs/sbin/klogd&amp;nbsp;exists&amp;nbsp;and&amp;nbsp;is&amp;nbsp;not&amp;nbsp;a&amp;nbsp;link&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;ERROR:&amp;nbsp;imx-image-multimedia-1.0-r0&amp;nbsp;do_rootfs: Postinstall&amp;nbsp;scriptlets&amp;nbsp;of&amp;nbsp;['busybox']&amp;nbsp;have&amp;nbsp;failed.&amp;nbsp;If&amp;nbsp;the&amp;nbsp;intention&amp;nbsp;is&amp;nbsp;to&amp;nbsp;defer&amp;nbsp;them&amp;nbsp;to&amp;nbsp;first&amp;nbsp;boot,&lt;BR /&gt;then&amp;nbsp;please&amp;nbsp;place&amp;nbsp;them&amp;nbsp;into&amp;nbsp;pkg_postinst_ontarget_${PN}&amp;nbsp;().&lt;BR /&gt;Deferring&amp;nbsp;to&amp;nbsp;first&amp;nbsp;boot&amp;nbsp;via&amp;nbsp;'exit&amp;nbsp;1'&amp;nbsp;is&amp;nbsp;no&amp;nbsp;longer&amp;nbsp;supported.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Afer modifying meta-selinux errors are gone and I was able to flash:&lt;/P&gt;&lt;P&gt;--- a/recipes-core/busybox/busybox_selinux.inc&lt;BR /&gt;+++ b/recipes-core/busybox/busybox_selinux.inc&lt;BR /&gt;@@ -39,7 +39,11 @@ python create_sh_wrapper_reset_alternative_vars () {&lt;BR /&gt;# Match coreutils&lt;BR /&gt;if alt_name == '[':&lt;BR /&gt;alt_name = 'lbracket'&lt;BR /&gt;- d.appendVar('ALTERNATIVE_%s' % (pn), ' ' + alt_name)&lt;BR /&gt;+ if alt_name == 'klogd' or alt_name == 'syslogd':&lt;BR /&gt;+ d.appendVar('ALTERNATIVE_%s-syslog' % (pn), ' ' + alt_name)&lt;BR /&gt;+ else:&lt;BR /&gt;+ d.appendVar('ALTERNATIVE_%s' % (pn), ' ' + alt_name)&lt;BR /&gt;+&lt;BR /&gt;d.setVarFlag('ALTERNATIVE_LINK_NAME', alt_name, alt_link_name)&lt;BR /&gt;if os.path.exists(alt_wppath_dest):&lt;BR /&gt;d.setVarFlag('ALTERNATIVE_TARGET', alt_name, alt_wppath)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;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)?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Dusan&lt;/P&gt;</description>
      <pubDate>Wed, 10 Apr 2024 08:42:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Solutions/imx-linux-zeus-yocto-build-problems/m-p/1843801#M423</guid>
      <dc:creator>dkenjic</dc:creator>
      <dc:date>2024-04-10T08:42:23Z</dc:date>
    </item>
  </channel>
</rss>

