<?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>LayerscapeのトピックRe: flex-builder mkrfs buildroot fails</title>
    <link>https://community.nxp.com/t5/Layerscape/flex-builder-mkrfs-buildroot-fails/m-p/859967#M3940</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pavel,&lt;/P&gt;&lt;P&gt;thanks for the info, but unfortunately that still doesn't work.&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;the three "wget"s (1. .. 3.) succeeded&lt;/LI&gt;&lt;LI&gt;No. 4. didn't work, because there is no configs/ubuntu/additional_packages_list_full; i changed the command to "flex-builder -i mkrfs -a arm64 -B additional_packages_list_tiny" (so it matches my intended "tiny" buildroot); this succeeded&lt;/LI&gt;&lt;LI&gt;No. 5 (and 6) didn't work, because at that time there is no build/images/. Changed the target dir for 5. to build/apps/ (as in the README)&lt;/LI&gt;&lt;LI&gt;but anyway, none of the three .tgz archives provide fm_ioctls.h (only the "components" archive has some fm_-stuff, see below), so my command (flex-builder -i mkrfs -r buildroot:tiny -a arm64) fails with the same error message as before&lt;/LI&gt;&lt;LI&gt;Is it maybe necessary to build a kernel before the "mkrfs" works? That isn't mentioned as a prerequisite in the README, so i left it out (the purpose of my question is to find out, for our CI workflow, how to build a root-fs with minimal effort)&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Thanks and Greetings,&lt;BR /&gt;Edelhard&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;$ sudo find . -name fm_ioctls.h
[ .. empty! .. ]

$ tar tvzf components_arm64.tgz | grep fm_
-rw-r--r-- root/root 132078 2017-07-01 02:23 components_arm64/include/fmd/Peripherals/fm_port_ext.h
-rw-r--r-- root/root 250624 2017-07-01 02:23 components_arm64/include/fmd/Peripherals/fm_pcd_ext.h
-rw-r--r-- root/root  39930 2017-07-01 02:23 components_arm64/include/fmd/Peripherals/fm_mac_ext.h
-rw-r--r-- root/root  18746 2017-07-01 02:23 components_arm64/include/fmd/Peripherals/fm_vsp_ext.h
-rw-r--r-- root/root  33281 2017-07-01 02:23 components_arm64/include/fmd/Peripherals/fm_ext.h&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 31 Jan 2019 13:05:30 GMT</pubDate>
    <dc:creator>edelhardbecker</dc:creator>
    <dc:date>2019-01-31T13:05:30Z</dc:date>
    <item>
      <title>flex-builder mkrfs buildroot fails</title>
      <link>https://community.nxp.com/t5/Layerscape/flex-builder-mkrfs-buildroot-fails/m-p/859965#M3938</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;we are trying to build a root fs with flexbuild 1803 and buildroot on a Ubuntu 16.04 development host. This should be the default setup. When running:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;source ./setup.env&lt;/P&gt;&lt;P&gt;flex-builder -i mkrfs -r buildroot:tiny -a arm64&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;after some time the build fails with this error message:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', monospace;"&gt;make: Entering directory '/home/sick/flexbuild-updates/flexbuild_lsdk1803/packages/rfs/buildroot'&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'andale mono', monospace;"&gt;/usr/bin/make -j1 O=/home/sick/flexbuild-updates/flexbuild_lsdk1803/build/rfs/rootfs_buildroot_arm64_tiny HOSTCC="/usr/bin/gcc" HOSTCXX="/usr/bin/g++" silentoldconfig&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'andale mono', monospace;"&gt;make[2]: warning: -jN forced in submake: disabling jobserver mode.&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN style="font-family: 'andale mono', monospace;"&gt;GEN /home/sick/flexbuild-updates/flexbuild_lsdk1803/build/rfs/rootfs_buildroot_arm64_tiny/Makefile&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'andale mono', monospace;"&gt;&amp;gt;&amp;gt;&amp;gt; fmlib LSDK-17.12 Building&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'andale mono', monospace;"&gt;PATH="/home/sick/flexbuild-updates/flexbuild_lsdk1803/build/rfs/rootfs_buildroot_arm64_tiny/host/bin:/home/sick/flexbuild-updates/flexbuild_lsdk1803/build/rfs/rootfs_buildroot_arm64_tiny/host/sbin:/home/sick/flexbuild-updates/flexbuild_lsdk1803:/home/sick/flexbuild-updates/flexbuild_lsdk1803/tools:/home/sick/bin:/home/sick/.local/bin:/opt/cmake-3.12.3-Linux-x86_64/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/sick/bin" /usr/bin/make CC="/home/sick/flexbuild-updates/flexbuild_lsdk1803/build/rfs/rootfs_buildroot_arm64_tiny/host/bin/aarch64-linux-gnu-gcc" CROSS_COMPILE="/home/sick/flexbuild-updates/flexbuild_lsdk1803/build/rfs/rootfs_buildroot_arm64_tiny/host/bin/aarch64-linux-gnu-" KERNEL_SRC="/home/sick/flexbuild-updates/flexbuild_lsdk1803/packages/linux/dash-lts" PREFIX="/home/sick/flexbuild-updates/flexbuild_lsdk1803/build/rfs/rootfs_buildroot_arm64_tiny/host/aarch64-buildroot-linux-gnu/sysroot/usr" -C /home/sick/flexbuild-updates/flexbuild_lsdk1803/build/rfs/rootfs_buildroot_arm64_tiny/build/fmlib-LSDK-17.12&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'andale mono', monospace;"&gt;(CC) libfm-arm.o&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'andale mono', monospace;"&gt;src/fm_lib.c:56:10: fatal error: fm_ioctls.h: No such file or directory&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'andale mono', monospace;"&gt;&amp;nbsp;#include "fm_ioctls.h"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'andale mono', monospace;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ^~~~~~~~~~~~~&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'andale mono', monospace;"&gt;compilation terminated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'andale mono', monospace;"&gt;Makefile:105: recipe for target 'libfm-arm.o' failed&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'andale mono', monospace;"&gt;make[2]: *** [libfm-arm.o] Error 1&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Investigating where fm_ioctls.h should come from shows, that it was included in&amp;nbsp;linux-libc-dev-arm64-cross up to version 3.13.0 that was included with Ubuntu 14.04 (trusty). In the arm64-cross packages for 16.04 (and newer) it just is not included anymore.&lt;/P&gt;&lt;P&gt;How to solve this? Is there a compile flag that should help? Or a separate package to install?&lt;/P&gt;&lt;P&gt;Thanks and greetings,&lt;/P&gt;&lt;P&gt;Edelhard&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jan 2019 17:37:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/flex-builder-mkrfs-buildroot-fails/m-p/859965#M3938</guid>
      <dc:creator>edelhardbecker</dc:creator>
      <dc:date>2019-01-24T17:37:24Z</dc:date>
    </item>
    <item>
      <title>Re: flex-builder mkrfs buildroot fails</title>
      <link>https://community.nxp.com/t5/Layerscape/flex-builder-mkrfs-buildroot-fails/m-p/859966#M3939</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;Use the following commands before your command:&lt;/SPAN&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;SPAN style="font-size: 10.0pt;"&gt; wget &lt;A href="http://www.nxp.com/lgfiles/sdk/lsdk1709/components_arm64.tgz" target="test_blank"&gt;http://www.nxp.com/lgfiles/sdk/lsdk1709/components_arm64.tgz&lt;/A&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-size: 10.0pt;"&gt; wget &lt;A href="http://www.nxp.com/lgfiles/sdk/lsdk1709/bootpartition_arm64_lts_4.9.tgz" target="test_blank"&gt;http://www.nxp.com/lgfiles/sdk/lsdk1709/bootpartition_arm64_lts_4.9.tgz&lt;/A&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;OL start="3"&gt;&lt;LI&gt;&lt;SPAN style="font-size: 10.0pt;"&gt; wget &lt;A href="http://www.nxp.com/lgfiles/sdk/lsdk1709/arm64-modules-4.9.35.tgz" target="test_blank"&gt;http://www.nxp.com/lgfiles/sdk/lsdk1709/arm64-modules-4.9.35.tgz&lt;/A&gt; &lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;OL start="4"&gt;&lt;LI&gt;&lt;SPAN style="font-size: 10.0pt;"&gt; flex-builder -i mkrfs -a arm64 -B additional_packages_list_full&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;OL start="5"&gt;&lt;LI&gt;&lt;SPAN style="font-size: 10.0pt;"&gt; tar xvzf components_arm64.tgz -C build/images&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-size: 10.0pt;"&gt; tar xvzf arm64-modules-&amp;lt;kernel_version&amp;gt;.tgz -C build/images/ubuntu_xenial_arm64_rootfs.d/lib/modules&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;tar xvzf arm64-modules-4.9.35.tgz -C build/images/ubuntu_xenial_arm64_rootfs.d/lib/modules&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;Pavel Chubakov&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Jan 2019 02:44:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/flex-builder-mkrfs-buildroot-fails/m-p/859966#M3939</guid>
      <dc:creator>Pavel</dc:creator>
      <dc:date>2019-01-31T02:44:57Z</dc:date>
    </item>
    <item>
      <title>Re: flex-builder mkrfs buildroot fails</title>
      <link>https://community.nxp.com/t5/Layerscape/flex-builder-mkrfs-buildroot-fails/m-p/859967#M3940</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pavel,&lt;/P&gt;&lt;P&gt;thanks for the info, but unfortunately that still doesn't work.&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;the three "wget"s (1. .. 3.) succeeded&lt;/LI&gt;&lt;LI&gt;No. 4. didn't work, because there is no configs/ubuntu/additional_packages_list_full; i changed the command to "flex-builder -i mkrfs -a arm64 -B additional_packages_list_tiny" (so it matches my intended "tiny" buildroot); this succeeded&lt;/LI&gt;&lt;LI&gt;No. 5 (and 6) didn't work, because at that time there is no build/images/. Changed the target dir for 5. to build/apps/ (as in the README)&lt;/LI&gt;&lt;LI&gt;but anyway, none of the three .tgz archives provide fm_ioctls.h (only the "components" archive has some fm_-stuff, see below), so my command (flex-builder -i mkrfs -r buildroot:tiny -a arm64) fails with the same error message as before&lt;/LI&gt;&lt;LI&gt;Is it maybe necessary to build a kernel before the "mkrfs" works? That isn't mentioned as a prerequisite in the README, so i left it out (the purpose of my question is to find out, for our CI workflow, how to build a root-fs with minimal effort)&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Thanks and Greetings,&lt;BR /&gt;Edelhard&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;$ sudo find . -name fm_ioctls.h
[ .. empty! .. ]

$ tar tvzf components_arm64.tgz | grep fm_
-rw-r--r-- root/root 132078 2017-07-01 02:23 components_arm64/include/fmd/Peripherals/fm_port_ext.h
-rw-r--r-- root/root 250624 2017-07-01 02:23 components_arm64/include/fmd/Peripherals/fm_pcd_ext.h
-rw-r--r-- root/root  39930 2017-07-01 02:23 components_arm64/include/fmd/Peripherals/fm_mac_ext.h
-rw-r--r-- root/root  18746 2017-07-01 02:23 components_arm64/include/fmd/Peripherals/fm_vsp_ext.h
-rw-r--r-- root/root  33281 2017-07-01 02:23 components_arm64/include/fmd/Peripherals/fm_ext.h&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Jan 2019 13:05:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/flex-builder-mkrfs-buildroot-fails/m-p/859967#M3940</guid>
      <dc:creator>edelhardbecker</dc:creator>
      <dc:date>2019-01-31T13:05:30Z</dc:date>
    </item>
  </channel>
</rss>

