<?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のトピックflex-builder for buildroot can be safely used ?</title>
    <link>https://community.nxp.com/t5/Layerscape/flex-builder-for-buildroot-can-be-safely-used/m-p/885738#M4111</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;BR /&gt;I'm trying to build buildroot with flexbuild_lsdk1812_update_010719.&lt;BR /&gt;The sequence is :&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;source ./setup.env&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;flex-builder -i mkrfs -r buildroot:tiny -a arm64&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Step 1 : The build fails at &lt;EM&gt;&lt;STRONG&gt;restool&lt;/STRONG&gt;&lt;/EM&gt; ( the very first package in the file &lt;STRONG&gt;&lt;EM&gt;post-build.sh&lt;/EM&gt;&lt;/STRONG&gt; ) with :&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;Build restool&amp;nbsp; [Done] &lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;make[2]: Leaving directory '/home/fil/flexbuild_lsdk1812_update_010719/packages/apps'&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;make[1]: Leaving directory '/home/fil/flexbuild_lsdk1812_update_010719'&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;cp: cannot stat '/home/fil/flexbuild_lsdk1812_update_010719/build/apps/components_arm64/usr/local/bin/restool': No such file or directory&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;cp: cannot stat '/home/fil/flexbuild_lsdk1812_update_010719/build/apps/components_arm64/usr/local/bin/ls-*': No such file or directory&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;Makefile:692: recipe for target 'target-finalize' failed&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I can't find the&lt;EM&gt;&lt;STRONG&gt; build/apps/components_arm64/&lt;/STRONG&gt;&lt;/EM&gt; directory but I find &lt;EM&gt;&lt;STRONG&gt;build/apps/components_LS_arm64&lt;/STRONG&gt;&lt;/EM&gt;.&lt;BR /&gt;The file &lt;STRONG&gt;&lt;EM&gt;post-build.sh&lt;/EM&gt;&lt;/STRONG&gt; tells : &lt;STRONG&gt;&lt;EM&gt;DESTDIR=$FBDIR/build/apps/components_$DESTARCH&lt;/EM&gt;&lt;/STRONG&gt; , and &lt;STRONG&gt;&lt;EM&gt;$DESTARCH&lt;/EM&gt;&lt;/STRONG&gt; is &lt;STRONG&gt;&lt;EM&gt;arm64&lt;/EM&gt;&lt;/STRONG&gt;.&lt;BR /&gt;I have modified this line with &lt;STRONG&gt;&lt;EM&gt;DESTDIR=$FBDIR/build/apps/components_LS_$DESTARCH&lt;/EM&gt;&lt;/STRONG&gt;&lt;EM&gt;, &lt;/EM&gt;and restool compiles fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Step 2,&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt; qbman_userspace&lt;/STRONG&gt;&lt;/EM&gt; .&lt;/P&gt;&lt;P&gt;This is the log:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Building QBMAN_USERSPACE ... &lt;BR /&gt;make[3]: Entering directory '/home/fil/flexbuild_lsdk1812_update_010719/packages/apps/qbman_userspace'&lt;BR /&gt;mkdir -p lib_aarch64_static&lt;BR /&gt;ar rcs lib_aarch64_static/libqbman.a&amp;nbsp; driver/qbman_debug.o&amp;nbsp; driver/qbman_portal.o&lt;BR /&gt;make[3]: Leaving directory '/home/fil/flexbuild_lsdk1812_update_010719/packages/apps/qbman_userspace'&lt;BR /&gt;cp: cannot create regular file '/home/fil/flexbuild_lsdk1812_update_010719/build/apps/components_LS_arm64/usr/local/lib/': Not a directory&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;apps/components_LS_arm64/usr/local/lib&lt;/STRONG&gt;&lt;/EM&gt; doesn't exists, only bin and include.&lt;BR /&gt;Looking at &lt;EM&gt;&lt;STRONG&gt;post-build.sh&lt;/STRONG&gt;&lt;/EM&gt; I see an interesting thing:&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; # setip qbman&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if [ ! -f&amp;nbsp; $DESTDIR/usr/local/bin/qbman_test ]; then&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; flex-builder -c qbman_userspace&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; fi&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; cp $DESTDIR/usr/local/bin/qbman_test ${TARGET_DIR}/usr/bin&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; cp $DESTDIR/usr/local/lib/libqbman.a ${TARGET_DIR}/lib&lt;BR /&gt;&lt;/STRONG&gt;&lt;/EM&gt;So, if qbman_test doesn't exists please build qbman_userspace... but I have no qbman_test package anywhere in packages/apps ... ok, build qbman_userspace each time I call it, it's quick enough ...&lt;BR /&gt;I have patched again commenting out the line that tells &lt;EM&gt;&lt;STRONG&gt;cp $DESTDIR/usr/local/bin/qbman_test ${TARGET_DIR}/usr/bin&lt;/STRONG&gt;&lt;/EM&gt; and creating &lt;EM&gt;&lt;STRONG&gt;build/apps/components_LS_arm64/usr/local/lib&lt;/STRONG&gt;&lt;/EM&gt; and now &lt;EM&gt;&lt;STRONG&gt;qbman_userspace&lt;/STRONG&gt;&lt;/EM&gt; compiles fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've not yet tested the build on my ( custom ) system, but the question remains : can I safely build buildroot with flex-builder? Or it's better to use ubuntu or something else ?&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Filippo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 06 Feb 2019 13:48:01 GMT</pubDate>
    <dc:creator>Filippo</dc:creator>
    <dc:date>2019-02-06T13:48:01Z</dc:date>
    <item>
      <title>flex-builder for buildroot can be safely used ?</title>
      <link>https://community.nxp.com/t5/Layerscape/flex-builder-for-buildroot-can-be-safely-used/m-p/885738#M4111</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;BR /&gt;I'm trying to build buildroot with flexbuild_lsdk1812_update_010719.&lt;BR /&gt;The sequence is :&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;source ./setup.env&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;flex-builder -i mkrfs -r buildroot:tiny -a arm64&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Step 1 : The build fails at &lt;EM&gt;&lt;STRONG&gt;restool&lt;/STRONG&gt;&lt;/EM&gt; ( the very first package in the file &lt;STRONG&gt;&lt;EM&gt;post-build.sh&lt;/EM&gt;&lt;/STRONG&gt; ) with :&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;Build restool&amp;nbsp; [Done] &lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;make[2]: Leaving directory '/home/fil/flexbuild_lsdk1812_update_010719/packages/apps'&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;make[1]: Leaving directory '/home/fil/flexbuild_lsdk1812_update_010719'&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;cp: cannot stat '/home/fil/flexbuild_lsdk1812_update_010719/build/apps/components_arm64/usr/local/bin/restool': No such file or directory&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;cp: cannot stat '/home/fil/flexbuild_lsdk1812_update_010719/build/apps/components_arm64/usr/local/bin/ls-*': No such file or directory&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;Makefile:692: recipe for target 'target-finalize' failed&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I can't find the&lt;EM&gt;&lt;STRONG&gt; build/apps/components_arm64/&lt;/STRONG&gt;&lt;/EM&gt; directory but I find &lt;EM&gt;&lt;STRONG&gt;build/apps/components_LS_arm64&lt;/STRONG&gt;&lt;/EM&gt;.&lt;BR /&gt;The file &lt;STRONG&gt;&lt;EM&gt;post-build.sh&lt;/EM&gt;&lt;/STRONG&gt; tells : &lt;STRONG&gt;&lt;EM&gt;DESTDIR=$FBDIR/build/apps/components_$DESTARCH&lt;/EM&gt;&lt;/STRONG&gt; , and &lt;STRONG&gt;&lt;EM&gt;$DESTARCH&lt;/EM&gt;&lt;/STRONG&gt; is &lt;STRONG&gt;&lt;EM&gt;arm64&lt;/EM&gt;&lt;/STRONG&gt;.&lt;BR /&gt;I have modified this line with &lt;STRONG&gt;&lt;EM&gt;DESTDIR=$FBDIR/build/apps/components_LS_$DESTARCH&lt;/EM&gt;&lt;/STRONG&gt;&lt;EM&gt;, &lt;/EM&gt;and restool compiles fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Step 2,&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt; qbman_userspace&lt;/STRONG&gt;&lt;/EM&gt; .&lt;/P&gt;&lt;P&gt;This is the log:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Building QBMAN_USERSPACE ... &lt;BR /&gt;make[3]: Entering directory '/home/fil/flexbuild_lsdk1812_update_010719/packages/apps/qbman_userspace'&lt;BR /&gt;mkdir -p lib_aarch64_static&lt;BR /&gt;ar rcs lib_aarch64_static/libqbman.a&amp;nbsp; driver/qbman_debug.o&amp;nbsp; driver/qbman_portal.o&lt;BR /&gt;make[3]: Leaving directory '/home/fil/flexbuild_lsdk1812_update_010719/packages/apps/qbman_userspace'&lt;BR /&gt;cp: cannot create regular file '/home/fil/flexbuild_lsdk1812_update_010719/build/apps/components_LS_arm64/usr/local/lib/': Not a directory&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;apps/components_LS_arm64/usr/local/lib&lt;/STRONG&gt;&lt;/EM&gt; doesn't exists, only bin and include.&lt;BR /&gt;Looking at &lt;EM&gt;&lt;STRONG&gt;post-build.sh&lt;/STRONG&gt;&lt;/EM&gt; I see an interesting thing:&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; # setip qbman&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if [ ! -f&amp;nbsp; $DESTDIR/usr/local/bin/qbman_test ]; then&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; flex-builder -c qbman_userspace&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; fi&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; cp $DESTDIR/usr/local/bin/qbman_test ${TARGET_DIR}/usr/bin&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; cp $DESTDIR/usr/local/lib/libqbman.a ${TARGET_DIR}/lib&lt;BR /&gt;&lt;/STRONG&gt;&lt;/EM&gt;So, if qbman_test doesn't exists please build qbman_userspace... but I have no qbman_test package anywhere in packages/apps ... ok, build qbman_userspace each time I call it, it's quick enough ...&lt;BR /&gt;I have patched again commenting out the line that tells &lt;EM&gt;&lt;STRONG&gt;cp $DESTDIR/usr/local/bin/qbman_test ${TARGET_DIR}/usr/bin&lt;/STRONG&gt;&lt;/EM&gt; and creating &lt;EM&gt;&lt;STRONG&gt;build/apps/components_LS_arm64/usr/local/lib&lt;/STRONG&gt;&lt;/EM&gt; and now &lt;EM&gt;&lt;STRONG&gt;qbman_userspace&lt;/STRONG&gt;&lt;/EM&gt; compiles fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've not yet tested the build on my ( custom ) system, but the question remains : can I safely build buildroot with flex-builder? Or it's better to use ubuntu or something else ?&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Filippo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Feb 2019 13:48:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/flex-builder-for-buildroot-can-be-safely-used/m-p/885738#M4111</guid>
      <dc:creator>Filippo</dc:creator>
      <dc:date>2019-02-06T13:48:01Z</dc:date>
    </item>
    <item>
      <title>Re: flex-builder for buildroot can be safely used ?</title>
      <link>https://community.nxp.com/t5/Layerscape/flex-builder-for-buildroot-can-be-safely-used/m-p/885739#M4112</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: #212121; background: white;"&gt;LSDK1812 is supposed to support buildroot fs, but it has bug. They've created patches (attached) and I've tried them, buildroot can be successfully built.&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: #212121;"&gt;&lt;BR /&gt; Copy these files to /flexbuild_lsdk1812 folder and use the following commands to apply these patches:&lt;/SPAN&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;SPAN style="font-size: 10.0pt; color: black; background: white;"&gt; source setup.env&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-size: 10.0pt; color: black; background: white;"&gt; patch -p1 &amp;lt; 0001-buildroot-update-fmlib-and-fmc.patch&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt; patch -p1 &amp;lt; 0002-Update-buildroot-and-builder-to-support-both-i.MX-an.patch&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt; flex-builder -i mkrfs -r buildroot:tiny -a arm64&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&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>Mon, 18 Feb 2019 05:30:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/flex-builder-for-buildroot-can-be-safely-used/m-p/885739#M4112</guid>
      <dc:creator>Pavel</dc:creator>
      <dc:date>2019-02-18T05:30:11Z</dc:date>
    </item>
  </channel>
</rss>

