<?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 Re: Porting u-boot from yocto to Android in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Porting-u-boot-from-yocto-to-Android/m-p/1671832#M207796</link>
    <description>&lt;P&gt;this is patch for adding trust OS, you can check what different in your code, I don't know how your code change, but you can refer to this patch to get some clue&lt;/P&gt;
&lt;P&gt;"&lt;A href="https://coral.googlesource.com/uboot-imx/+/6fa4f4a42fd90631f8dc8303b17f600c085d8595%5E%21/" target="_blank"&gt;https://coral.googlesource.com/uboot-imx/+/6fa4f4a42fd90631f8dc8303b17f600c085d8595%5E%21/&lt;/A&gt;"&lt;/P&gt;</description>
    <pubDate>Mon, 19 Jun 2023 09:34:47 GMT</pubDate>
    <dc:creator>joanxie</dc:creator>
    <dc:date>2023-06-19T09:34:47Z</dc:date>
    <item>
      <title>Porting u-boot from yocto to Android</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Porting-u-boot-from-yocto-to-Android/m-p/1537154#M196335</link>
      <description>&lt;P&gt;I'm working on porting Android to a custom I.MX8MP based SoC. It has a working yocto based linux and u-boot. The custom board uses custom DDR4 initialization parameters, so naturally I began with copying boards/my_vedor/my_board folder from u-boot's work directory in Yocto into Android's vendor/nxp-opensource/uboot-imx/boards and did the same for board's include file, .dts files and u-boot defconfig files. Here's what else I have done so far:&lt;/P&gt;&lt;P&gt;1. Created new defconfigs for my_board to match TARGET_BOOTLOADER_CONFIG entries in evk_8mp's UBootKernelConfig.mk by copying all evk_8mp's defconfigs, renaming them and bringing my_board related changes from yocto into them (dtb, vendor name and +/- some configutations).&lt;/P&gt;&lt;P&gt;2. Created a new target for this board in device/nxp/imx8m/my_board and modified them. Made sure all TARGET_BOOTLOADER_CONFIGs point to the defconfigs crated in previous step.&lt;/P&gt;&lt;P&gt;3. Since Android's u-boot codebase is different from Yocto's, I merged all the my_board specific code in board/my_vendor/my_board as well as in the board's config header file to match the Android's codebase + my customization.&lt;/P&gt;&lt;P&gt;4. Repeated the step 3 for the my_board.dtb as well though I'm not sure if that was necessary.&lt;/P&gt;&lt;P&gt;I'm able to run lunch my_board and launch the build for bootloader. But the build is failing during compilation and the error seems to be arising from u-boot's libraries and not from my_board specific code. The errors are as below:&lt;/P&gt;&lt;P&gt;/android_build/vendor/nxp-opensource/uboot-imx/lib/avb/fsl/fsl_avbkey.c:314: undefined reference to `blob_decap'&lt;/P&gt;&lt;P&gt;android_build/vendor/nxp-opensource/uboot-imx/lib/avb/fsl/fsl_avbkey.c:319: undefined reference to `derive_blob_kek'&lt;/P&gt;&lt;P&gt;Now, I have narrowed it down to Trusty OS support. If I set&amp;nbsp;CONFIG_IMX_TRUSTY_OS=n in my imx8mp_my_board_android_trusty_defconfig, imx8mp_my_board_android_trusty_dual_defconfig, imx8mp_my_board_android_trusty_secure_unlock_defconfig, and imx8mp_my_board_android_trusty_powersave_defconfig files, the build runs successfully. But If I try to perform the build for evk_8mp (of course I run lunch first), with CONFIG_IMX_TRUSTY_OS=y the build succeeds.&lt;/P&gt;&lt;P&gt;I'm out of clues as to what might be going wrong. I'm attaching the build logs here for reference. Any help with this would be very much appreciated.at&lt;/P&gt;&lt;P&gt;Please let me know if any clarifications are needed.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 14 Oct 2022 05:02:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Porting-u-boot-from-yocto-to-Android/m-p/1537154#M196335</guid>
      <dc:creator>thisisprateek</dc:creator>
      <dc:date>2022-10-14T05:02:29Z</dc:date>
    </item>
    <item>
      <title>Re: Porting u-boot from yocto to Android</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Porting-u-boot-from-yocto-to-Android/m-p/1667747#M207444</link>
      <description>&lt;P&gt;Hi Sir &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/207495"&gt;@thisisprateek&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;I have the same problem, Did you find the solution? CAn you please shed some light on how to fix this issue?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Mon, 12 Jun 2023 22:20:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Porting-u-boot-from-yocto-to-Android/m-p/1667747#M207444</guid>
      <dc:creator>Tooght</dc:creator>
      <dc:date>2023-06-12T22:20:18Z</dc:date>
    </item>
    <item>
      <title>Re: Porting u-boot from yocto to Android</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Porting-u-boot-from-yocto-to-Android/m-p/1667982#M207469</link>
      <description>&lt;P&gt;I couldn't get it solved. I went with setting CONFIG_IMX_TRUSTY_OS=n. It got built without Trusty OS support. The customer didn't demand it either and the project moved on.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jun 2023 06:23:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Porting-u-boot-from-yocto-to-Android/m-p/1667982#M207469</guid>
      <dc:creator>thisisprateek</dc:creator>
      <dc:date>2023-06-13T06:23:11Z</dc:date>
    </item>
    <item>
      <title>Re: Porting u-boot from yocto to Android</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Porting-u-boot-from-yocto-to-Android/m-p/1671449#M207755</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/207495"&gt;@thisisprateek&lt;/a&gt;. it seems I have to do the same thing like you did here for now. I'll keep an eye on here. if I have any solution, I'll share it with you.&lt;/P&gt;</description>
      <pubDate>Sun, 18 Jun 2023 13:32:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Porting-u-boot-from-yocto-to-Android/m-p/1671449#M207755</guid>
      <dc:creator>Tooght</dc:creator>
      <dc:date>2023-06-18T13:32:23Z</dc:date>
    </item>
    <item>
      <title>Re: Porting u-boot from yocto to Android</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Porting-u-boot-from-yocto-to-Android/m-p/1671832#M207796</link>
      <description>&lt;P&gt;this is patch for adding trust OS, you can check what different in your code, I don't know how your code change, but you can refer to this patch to get some clue&lt;/P&gt;
&lt;P&gt;"&lt;A href="https://coral.googlesource.com/uboot-imx/+/6fa4f4a42fd90631f8dc8303b17f600c085d8595%5E%21/" target="_blank"&gt;https://coral.googlesource.com/uboot-imx/+/6fa4f4a42fd90631f8dc8303b17f600c085d8595%5E%21/&lt;/A&gt;"&lt;/P&gt;</description>
      <pubDate>Mon, 19 Jun 2023 09:34:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Porting-u-boot-from-yocto-to-Android/m-p/1671832#M207796</guid>
      <dc:creator>joanxie</dc:creator>
      <dc:date>2023-06-19T09:34:47Z</dc:date>
    </item>
  </channel>
</rss>

