<?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: secure boot build code issue by using LSDK 20.04</title>
    <link>https://community.nxp.com/t5/Layerscape/secure-boot-build-code-issue-by-using-LSDK-20-04/m-p/1490977#M10904</link>
    <description>&lt;P&gt;I have verified building&amp;nbsp;optee_test in flexbuild_lsdk2004_update_290520 on my host PC, I didn't find any problem to run the following commands.&lt;/P&gt;
&lt;P&gt;$ flex-builder -c optee_os -a arm64&lt;/P&gt;
&lt;P&gt;$ flex-builder -c optee_test -a arm64&lt;/P&gt;
&lt;P&gt;Please refer to the following my host PC information.&lt;/P&gt;
&lt;P&gt;yiping@flexbuild-790:~/flexbuild_lsdk2004_update_290520$ python --version&lt;BR /&gt;Python 2.7.17&lt;BR /&gt;yiping@flexbuild-790:~/flexbuild_lsdk2004_update_290520$ lsb_release -a&lt;BR /&gt;No LSB modules are available.&lt;BR /&gt;Distributor ID: Ubuntu&lt;BR /&gt;Description: Ubuntu 18.04.1 LTS&lt;BR /&gt;Release: 18.04&lt;BR /&gt;Codename: bionic&lt;/P&gt;</description>
    <pubDate>Mon, 18 Jul 2022 09:54:13 GMT</pubDate>
    <dc:creator>yipingwang</dc:creator>
    <dc:date>2022-07-18T09:54:13Z</dc:date>
    <item>
      <title>secure boot build code issue by using LSDK 20.04</title>
      <link>https://community.nxp.com/t5/Layerscape/secure-boot-build-code-issue-by-using-LSDK-20-04/m-p/1488581#M10867</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I try to build the LS1088 secure boot image by using LSDK 20.04.&lt;BR /&gt;It will occur an error when I build the optee_test application.&lt;BR /&gt;The following is the error of building the optee_test application.&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;Building optee_test ... &amp;#27;[0m&lt;BR /&gt;make[2]: Entering directory '/home/frank/flexbuild_lsdk2004_update_290520/packages/apps/security/optee_test'&lt;BR /&gt;make[3]: Entering directory '/home/frank/flexbuild_lsdk2004_update_290520/packages/apps/security/optee_test/host/xtest'&lt;BR /&gt;GEN /home/frank/flexbuild_lsdk2004_update_290520/packages/apps/security/optee_test/out/xtest/regression_8100_mid_crt.h&lt;BR /&gt;Traceback (most recent call last):&lt;BR /&gt;File "../../scripts/file_to_c.py", line 48, in &amp;lt;module&amp;gt;&lt;BR /&gt;main()&lt;BR /&gt;File "../../scripts/file_to_c.py", line 32, in main&lt;BR /&gt;for x in array.array("B", inf.read()):&lt;BR /&gt;TypeError: cannot use a str to initialize an array with typecode 'B'&lt;BR /&gt;Makefile:227: recipe for target '/home/frank/flexbuild_lsdk2004_update_290520/packages/apps/security/optee_test/out/xtest/regression_8100_mid_crt.h' failed&lt;BR /&gt;make[3]: *** [/home/frank/flexbuild_lsdk2004_update_290520/packages/apps/security/optee_test/out/xtest/regression_8100_mid_crt.h] Error 1&lt;BR /&gt;make[3]: Leaving directory '/home/frank/flexbuild_lsdk2004_update_290520/packages/apps/security/optee_test/host/xtest'&lt;BR /&gt;Makefile:37: recipe for target 'xtest' failed&lt;BR /&gt;make[2]: *** [xtest] Error 2&lt;BR /&gt;make[2]: Leaving directory '/home/frank/flexbuild_lsdk2004_update_290520/packages/apps/security/optee_test'&lt;BR /&gt;/home/frank/flexbuild_lsdk2004_update_290520/packages/apps/security/security.mk:178: recipe for target 'optee_test' failed&lt;BR /&gt;make[1]: *** [optee_test] Error 2&lt;BR /&gt;make[1]: Leaving directory '/home/frank/flexbuild_lsdk2004_update_290520/packages/apps'&lt;BR /&gt;Makefile:28: recipe for target 'apps' failed&lt;BR /&gt;make: *** [apps] Error 2&lt;BR /&gt;make: Leaving directory '/home/frank/flexbuild_lsdk2004_update_290520'&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I try to modify the file_to_c python file but it will occur other error as follows.&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;Building optee_test ... &amp;#27;[0m&lt;BR /&gt;make[2]: Entering directory '/home/frank/Documents/flexbuild_lsdk2004_update_290520/packages/apps/security/optee_test'&lt;BR /&gt;make[3]: Entering directory '/home/frank/Documents/flexbuild_lsdk2004_update_290520/packages/apps/security/optee_test/host/xtest'&lt;BR /&gt;CC /home/frank/Documents/flexbuild_lsdk2004_update_290520/packages/apps/security/optee_test/host/xtest/regression_8100.c&lt;BR /&gt;In file included from /home/frank/Documents/flexbuild_lsdk2004_update_290520/packages/apps/security/optee_test/host/xtest/regression_8100.c:24:0:&lt;BR /&gt;/home/frank/Documents/flexbuild_lsdk2004_update_290520/packages/apps/security/optee_test/out/xtest/regression_8100_mid_crt.h:5:1: error: expected expression before 'const'&lt;BR /&gt;const uint8_t regression_8100_mid_crt[] = {&lt;BR /&gt;^~~~~&lt;BR /&gt;Makefile:172: recipe for target '/home/frank/Documents/flexbuild_lsdk2004_update_290520/packages/apps/security/optee_test/out/xtest/regression_8100.o' failed&lt;BR /&gt;make[3]: *** [/home/frank/Documents/flexbuild_lsdk2004_update_290520/packages/apps/security/optee_test/out/xtest/regression_8100.o] Error 1&lt;BR /&gt;make[3]: Leaving directory '/home/frank/Documents/flexbuild_lsdk2004_update_290520/packages/apps/security/optee_test/host/xtest'&lt;BR /&gt;Makefile:37: recipe for target 'xtest' failed&lt;BR /&gt;make[2]: *** [xtest] Error 2&lt;BR /&gt;make[2]: Leaving directory '/home/frank/Documents/flexbuild_lsdk2004_update_290520/packages/apps/security/optee_test'&lt;BR /&gt;/home/frank/Documents/flexbuild_lsdk2004_update_290520/packages/apps/security/security.mk:178: recipe for target 'optee_test' failed&lt;BR /&gt;make[1]: *** [optee_test] Error 2&lt;BR /&gt;make[1]: Leaving directory '/home/frank/Documents/flexbuild_lsdk2004_update_290520/packages/apps'&lt;BR /&gt;Makefile:28: recipe for target 'apps' failed&lt;BR /&gt;make: *** [apps] Error 2&lt;BR /&gt;make: Leaving directory '/home/frank/Documents/flexbuild_lsdk2004_update_290520'&lt;/P&gt;&lt;P&gt;I also found that this issue didn't occur in the new version of LSDK.&lt;BR /&gt;It can build successfully in LSDK21.08 and LSDK20.12.&lt;BR /&gt;This issue occurs in LSDK 20.04.&lt;BR /&gt;The attached files is the build log I collected.&lt;BR /&gt;How can I fix this issue in LSDK 20.04?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jul 2022 07:36:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/secure-boot-build-code-issue-by-using-LSDK-20-04/m-p/1488581#M10867</guid>
      <dc:creator>tzongruey</dc:creator>
      <dc:date>2022-07-13T07:36:41Z</dc:date>
    </item>
    <item>
      <title>Re: secure boot build code issue by using LSDK 20.04</title>
      <link>https://community.nxp.com/t5/Layerscape/secure-boot-build-code-issue-by-using-LSDK-20-04/m-p/1490977#M10904</link>
      <description>&lt;P&gt;I have verified building&amp;nbsp;optee_test in flexbuild_lsdk2004_update_290520 on my host PC, I didn't find any problem to run the following commands.&lt;/P&gt;
&lt;P&gt;$ flex-builder -c optee_os -a arm64&lt;/P&gt;
&lt;P&gt;$ flex-builder -c optee_test -a arm64&lt;/P&gt;
&lt;P&gt;Please refer to the following my host PC information.&lt;/P&gt;
&lt;P&gt;yiping@flexbuild-790:~/flexbuild_lsdk2004_update_290520$ python --version&lt;BR /&gt;Python 2.7.17&lt;BR /&gt;yiping@flexbuild-790:~/flexbuild_lsdk2004_update_290520$ lsb_release -a&lt;BR /&gt;No LSB modules are available.&lt;BR /&gt;Distributor ID: Ubuntu&lt;BR /&gt;Description: Ubuntu 18.04.1 LTS&lt;BR /&gt;Release: 18.04&lt;BR /&gt;Codename: bionic&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jul 2022 09:54:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/secure-boot-build-code-issue-by-using-LSDK-20-04/m-p/1490977#M10904</guid>
      <dc:creator>yipingwang</dc:creator>
      <dc:date>2022-07-18T09:54:13Z</dc:date>
    </item>
    <item>
      <title>Re: secure boot build code issue by using LSDK 20.04</title>
      <link>https://community.nxp.com/t5/Layerscape/secure-boot-build-code-issue-by-using-LSDK-20-04/m-p/1491465#M10908</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have checked the environment information on my host PC.&lt;BR /&gt;I found that the issue is caused by the python version and python crypto module.&lt;BR /&gt;I change the python version from 3.6.9 to 2.7.17 and install pycryptodome.&lt;BR /&gt;It can build successfully in my environment.&lt;BR /&gt;Thanks for your help.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jul 2022 05:42:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/secure-boot-build-code-issue-by-using-LSDK-20-04/m-p/1491465#M10908</guid>
      <dc:creator>tzongruey</dc:creator>
      <dc:date>2022-07-19T05:42:22Z</dc:date>
    </item>
  </channel>
</rss>

