<?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: Spread Spectrum Enable in plug in with secure boot in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Spread-Spectrum-Enable-in-plug-in-with-secure-boot/m-p/993410#M147368</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for the quick reply. It seems I cant use plugin method because of security related issues with plugins.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please point me any document on how to do programming for OCRAM for imx6ul?&lt;/P&gt;&lt;P&gt;basically I want to write Spread spectrum code in OCRAM. I dont know how to do it in OCRAM, could you please provide some pointers?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Asma&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 Jan 2020 06:55:22 GMT</pubDate>
    <dc:creator>asmaa</dc:creator>
    <dc:date>2020-01-28T06:55:22Z</dc:date>
    <item>
      <title>Spread Spectrum Enable in plug in with secure boot</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Spread-Spectrum-Enable-in-plug-in-with-secure-boot/m-p/993408#M147366</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to enable Spread Spectrum in our board which is running uboot version:&amp;nbsp;&lt;STRONG&gt;U-Boot 2018.03-00038-g34c3d6bfa9-dirty&lt;/STRONG&gt; and kernel version:&amp;nbsp;&lt;STRONG&gt;4.19.35-04790-ga5119fdf76b3-dirty &lt;/STRONG&gt;also&lt;STRONG&gt; &lt;/STRONG&gt;I am using OPTEE&amp;nbsp;&lt;STRONG&gt;revision 3.2 (062c5f78).&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have made following changes to enable SS:&lt;/P&gt;&lt;P&gt;1.Set&amp;nbsp;&lt;STRONG&gt;CONFIG_USE_IMXIMG_PLUGIN=y&lt;/STRONG&gt; in our defconfig&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;2. added plugin.s file as we did not use before(contents of plugin.s), following document&amp;nbsp;&lt;A href="https://community.nxp.com/docs/DOC-100036"&gt;https://community.nxp.com/docs/DOC-100036&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;.macro imx6ul_ddr3_arm2_setting&lt;BR /&gt; ldr r0, =CCM_BASE_ADDR&lt;BR /&gt; ldr r1, [r0,#0x18]&lt;BR /&gt; ldr r3, [r0,#0x18]&lt;BR /&gt; /* set periph_clik2_sel to select OSC_CLK */&lt;BR /&gt; and r1, r1, #0xffffcfff&lt;BR /&gt; orr r1, r1, #0x00001000&lt;BR /&gt; str r1, [r0,#0x18]&lt;BR /&gt; /* set periph_clk_set to switch to OSC_CLK */&lt;BR /&gt; ldr r1, [r0,#0x14]&lt;BR /&gt; ldr r2, [r0,#0x14]&lt;BR /&gt; orr r1, r1, #0x02000000 &lt;BR /&gt; str r1, [r0,#0x14]&lt;BR /&gt; /* power down PLL2 */&lt;BR /&gt; ldr r0, =0x020c8000&lt;BR /&gt; ldr r1, [r0,#0x30]&lt;BR /&gt; orr r1, r1, #0x00010000&lt;BR /&gt; str r1, [r0,#0x30]&lt;BR /&gt; /* enable spread spectrum &amp;amp; configure */&lt;BR /&gt; ldr r1, =0x00001770&lt;BR /&gt; str r1, [r0,#0x60] &lt;BR /&gt; ldr r1, =0x05dc8006&lt;BR /&gt; str r1, [r0,#0x40] &lt;BR /&gt; &lt;BR /&gt; ldr r1, [r0,#0x30]&lt;BR /&gt; and r1, r1, #0xFFFEFFFF&lt;BR /&gt; str r1, [r0,#0x30]&lt;BR /&gt; /* need delay short time before switch PLL2 it back */&lt;BR /&gt; ldr r4, =0x0&lt;BR /&gt;pu_delay:&lt;BR /&gt; add r4, r4, #0x1&lt;BR /&gt; cmp r4, #0x200000&lt;BR /&gt; bne pu_delay &lt;BR /&gt; /* recovery the previous PLL source setting */&lt;BR /&gt; ldr r0, =CCM_BASE_ADDR&lt;BR /&gt; str r2, [r0,#0x14]&lt;BR /&gt; str r3, [r0,#0x18]&lt;BR /&gt;.endm&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;macro imx6_ddr_setting&lt;BR /&gt;#if defined (CONFIG_TARGET_MX6UL)&lt;BR /&gt; imx6ul_ddr3_arm2_setting&lt;BR /&gt;#else&lt;BR /&gt; #error "SOC not configured"&lt;BR /&gt;#endif&lt;BR /&gt;.endm&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* include the common plugin code here */&lt;BR /&gt;#include &amp;lt;asm/arch/mx6_plugin.S&amp;gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when I compile uboot its giving me following error:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;AS board/freescale/mx6ul/plugin.o&lt;BR /&gt;arm-poky-linux-gnueabi-objcopy -O binary --gap-fill 0xff board/freescale/mx6ul/plugin.o board/freescale/mx6ul/plugin.bin&lt;BR /&gt; MKIMAGE u-boot-dtb.imx&lt;BR /&gt;Error: Header v2: SECURE_BOOT is only supported in DCD mode!arch/arm/mach-imx/Makefile:144: recipe for target 'u-boot-dtb.imx' failed&lt;BR /&gt;make[1]: *** [u-boot-dtb.imx] Error 1&lt;BR /&gt;Makefile:912: recipe for target 'u-boot-dtb.imx' failed&lt;BR /&gt;make: *** [u-boot-dtb.imx] Error 2&lt;BR /&gt;/home/asmas/imx-dev/cst-dev/sign&lt;BR /&gt;/home/asmas/imx-dev/cst-dev/sign/uboot-qt850 has invalid IVT (self)&lt;BR /&gt;cp: cannot stat '/home/asmas/imx-dev/cst-dev/sign/uboot-qt850.hab': No such file or directory&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My question is:&lt;/P&gt;&lt;P&gt;1.Is it possible to use SECURE_BOOT and Spread spectrum plugin together?&lt;/P&gt;&lt;P&gt;2. If&amp;nbsp;&lt;SPAN&gt;SECURE_BOOT&amp;nbsp;and plug in cannot be used together, what is the other method to enable spread spectrum?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks in advance for any help.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Asma&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jan 2020 01:29:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Spread-Spectrum-Enable-in-plug-in-with-secure-boot/m-p/993408#M147366</guid>
      <dc:creator>asmaa</dc:creator>
      <dc:date>2020-01-23T01:29:14Z</dc:date>
    </item>
    <item>
      <title>Re: Spread Spectrum Enable in plug in with secure boot</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Spread-Spectrum-Enable-in-plug-in-with-secure-boot/m-p/993409#M147367</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Asma&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;1.Is it possible to use SECURE_BOOT and Spread spectrum plugin together?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in general yes, additional files were sent via mail. Note, Plugin support is no longer available&lt;/P&gt;&lt;P&gt;as it is deemed to be less secure compared to DCD method. Thus plugin authentication is&lt;/P&gt;&lt;P&gt;not recommended in i.MX chipsets.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;2. If&amp;nbsp;&lt;SPAN&gt;SECURE_BOOT&amp;nbsp;and plug in cannot be used together, what is the other method to enable &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;gt;spread spectrum?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;one can try to enable spread spectrum in codes running from OCRAM, then copy uboot to ddr memory.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;BR /&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>Fri, 24 Jan 2020 05:34:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Spread-Spectrum-Enable-in-plug-in-with-secure-boot/m-p/993409#M147367</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2020-01-24T05:34:13Z</dc:date>
    </item>
    <item>
      <title>Re: Spread Spectrum Enable in plug in with secure boot</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Spread-Spectrum-Enable-in-plug-in-with-secure-boot/m-p/993410#M147368</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for the quick reply. It seems I cant use plugin method because of security related issues with plugins.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please point me any document on how to do programming for OCRAM for imx6ul?&lt;/P&gt;&lt;P&gt;basically I want to write Spread spectrum code in OCRAM. I dont know how to do it in OCRAM, could you please provide some pointers?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Asma&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jan 2020 06:55:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Spread-Spectrum-Enable-in-plug-in-with-secure-boot/m-p/993410#M147368</guid>
      <dc:creator>asmaa</dc:creator>
      <dc:date>2020-01-28T06:55:22Z</dc:date>
    </item>
  </channel>
</rss>

