<?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: Need help adding Falcon Mode patch in Yocto in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Need-help-adding-Falcon-Mode-patch-in-Yocto/m-p/792653#M122776</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, I essentially use variations of the following list of commands for rebuilding u-boot:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;bitbake -c clean u-boot-imx&lt;BR /&gt;bitbake -v -D -f -c package u-boot-imx&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ###errors occur here&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;bitbake -v -D -f -c deploy u-boot-imx&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;bitbake -v _D -f -c rootfs humboldt-image&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;NOTE: since my previous post I have determined that the following #defines need to be in the board header file (mx6sabresd.h) and not in the defconfig file:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;&lt;SPAN style="background-color: #ffffff;"&gt;#define CONFIG_SPL_BUILD=y&lt;/SPAN&gt;&lt;BR style="background-color: #ffffff;" /&gt;&lt;SPAN style="background-color: #ffffff;"&gt;#define CONFIG_SPL_OS_BUILD=y&lt;/SPAN&gt;&lt;BR style="background-color: #ffffff;" /&gt;&lt;SPAN style="background-color: #ffffff;"&gt;#define CONFIG_CMD_SPL=y&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="background-color: #ffffff; border: 0px; font-weight: inherit;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="background-color: #ffffff; border: 0px; font-weight: inherit;"&gt;I can build v2015_04 u-boot with SPL using the toolchain but I still can not direct bitbake recipes to build SPL. &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="background-color: #ffffff; border: 0px; font-weight: inherit;"&gt;I did find that in the poky u-boot.inc recipe include file, there is no script to support the compile of SPL - there is only script to install and deploy SPL.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="background-color: #ffffff; border: 0px; font-weight: inherit;"&gt;Rich&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 16 Jul 2018 14:11:50 GMT</pubDate>
    <dc:creator>richhackl</dc:creator>
    <dc:date>2018-07-16T14:11:50Z</dc:date>
    <item>
      <title>Need help adding Falcon Mode patch in Yocto</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Need-help-adding-Falcon-Mode-patch-in-Yocto/m-p/792651#M122774</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;nbsp;I am trying to add&amp;nbsp; Falcon Mode to an existing IMX6 Yocto project&amp;nbsp; (imx_v2015.04.4.1.15_1.2.0_ga). I have added a u-boot patch referenced in Diego Dorta's blog (Link:&amp;nbsp;&lt;A class="link-titled" href="https://imxdev.gitlab.io/tutorial/How_to_decrease_boot_time_on_iMX6/" title="https://imxdev.gitlab.io/tutorial/How_to_decrease_boot_time_on_iMX6/"&gt;How to decrease boot time on iMX6 - i.MXDev Blog&lt;/A&gt;&amp;nbsp;).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the patch the MENU_BUTTON is used to select falcon mode vs u-boot:&lt;/P&gt;&lt;TABLE class="j-table jiveBorder" style="border: 1px solid #c6c6c6;" width="100%"&gt;&lt;THEAD&gt;&lt;TR style="background-color: #efefef;"&gt;&lt;TH&gt;Falcon Mode Patch&lt;/TH&gt;&lt;/TR&gt;&lt;/THEAD&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;From 0833cfaa104d226ec9ea64c7fdabba29d59659e5 Mon Sep 17 00:00:00 2001&lt;BR /&gt;&lt;SPAN&gt;From: rhackl &amp;lt;&lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:rich.hackl@creationtech.com"&gt;rich.hackl@creationtech.com&lt;/A&gt;&lt;SPAN&gt;&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;Date: Fri, 29 Jun 2018 13:03:15 -0500&lt;BR /&gt;Subject: [PATCH] mx6sabresd.c (patch)&lt;/P&gt;&lt;P&gt;---&lt;BR /&gt; board/freescale/mx6sxsabresd/mx6sxsabresd.c | 19 ++++++++++++++++++-&lt;BR /&gt; 1 file changed, 18 insertions(+), 1 deletion(-)&lt;/P&gt;&lt;P&gt;diff --git a/board/freescale/mx6sxsabresd/mx6sxsabresd.c b/board/freescale/mx6sxsabresd/mx6sxsabresd.c&lt;BR /&gt;index 3b238e7..a4c4067 100644&lt;BR /&gt;--- a/board/freescale/mx6sxsabresd/mx6sxsabresd.c&lt;BR /&gt;+++ b/board/freescale/mx6sxsabresd/mx6sxsabresd.c&lt;BR /&gt;@@ -90,6 +90,9 @@ DECLARE_GLOBAL_DATA_PTR;&lt;BR /&gt; PAD_CTL_PUS_47K_UP | PAD_CTL_SPEED_LOW | \&lt;BR /&gt; PAD_CTL_DSE_80ohm | PAD_CTL_SRE_FAST | PAD_CTL_HYS)&lt;BR /&gt; &lt;BR /&gt;+#define MENU_BUTTON IMX_GPIO_NR(6, 18)&lt;BR /&gt;+#define MOTOR_START IMX_GPIO_NR(6, 16)&lt;BR /&gt;+&lt;BR /&gt; int dram_init(void)&lt;BR /&gt; {&lt;BR /&gt; gd-&amp;gt;ram_size = PHYS_SDRAM_SIZE;&lt;BR /&gt;@@ -120,7 +123,7 @@ static iomux_v3_cfg_t const usdhc3_pads[] = {&lt;BR /&gt; MX6_PAD_SD3_DATA3__USDHC3_DATA3 | MUX_PAD_CTRL(USDHC_PAD_CTRL),&lt;BR /&gt; MX6_PAD_SD3_DATA4__USDHC3_DATA4 | MUX_PAD_CTRL(USDHC_PAD_CTRL),&lt;BR /&gt; MX6_PAD_SD3_DATA5__USDHC3_DATA5 | MUX_PAD_CTRL(USDHC_PAD_CTRL),&lt;BR /&gt;- MX6_PAD_SD3_DATA6__USDHC3_DATA6 | MUX_PAD_CTRL(USDHC_PAD_CTRL),&lt;BR /&gt;+ MX6_PAD_SD3_DATA6__GPIO6_IO18 | MUX_PAD_CTRL(NO_PAD_CTRL),&lt;BR /&gt; MX6_PAD_SD3_DATA7__USDHC3_DATA7 | MUX_PAD_CTRL(USDHC_PAD_CTRL),&lt;BR /&gt; &lt;BR /&gt; /* CD pin */&lt;BR /&gt;@@ -1081,6 +1084,20 @@ static struct mx6_ddr3_cfg mem_ddr = {&lt;BR /&gt; .trasmin = 3500,&lt;BR /&gt; };&lt;BR /&gt; &lt;BR /&gt;+#ifdef CONFIG_SPL_OS_BOOT&lt;BR /&gt;+int spl_start_uboot(void)&lt;BR /&gt;+{&lt;BR /&gt;+ gpio_direction_output(MOTOR_START,0);&lt;BR /&gt;+ gpio_direction_input(MENU_BUTTON);&lt;BR /&gt;+ &lt;BR /&gt;+ gpio_set_value(MOTOR_START,gpio_get_value(MENU_BUTTON));&lt;BR /&gt;+&lt;BR /&gt;+ /* Only enter in Falcon mode if KEY_VOL_UP is pressed */&lt;BR /&gt;+ return !gpio_get_value(MENU_BUTTON);&lt;BR /&gt;+ return 0;&lt;BR /&gt;+}&lt;BR /&gt;+#endif&lt;BR /&gt;+&lt;BR /&gt; static void ccgr_init(void)&lt;BR /&gt; {&lt;BR /&gt; struct mxc_ccm_reg *ccm = (struct mxc_ccm_reg *)CCM_BASE_ADDR;&lt;BR /&gt;-- &lt;BR /&gt;1.9.1&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also added a patch for mx6solosabresd_defconfig to enable SPL, etc:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE class="j-table jiveBorder" style="border: 1px solid #c6c6c6;" width="100%"&gt;&lt;THEAD&gt;&lt;TR style="background-color: #efefef;"&gt;&lt;TH&gt;mx6solosabresd_defconfig patch&lt;/TH&gt;&lt;/TR&gt;&lt;/THEAD&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;From 2fe3ff5179a47a7ca5967b878a8946942c3ad760 Mon Sep 17 00:00:00 2001&lt;BR /&gt;&lt;SPAN&gt;From: rhackl &amp;lt;&lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:rich.hackl@creationtech.com"&gt;rich.hackl@creationtech.com&lt;/A&gt;&lt;SPAN&gt;&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;Date: Fri, 29 Jun 2018 16:01:34 -0500&lt;BR /&gt;Subject: [PATCH] mx6solosabresd_defconfig&lt;/P&gt;&lt;P&gt;---&lt;BR /&gt; configs/mx6solosabresd_defconfig | 5 +++++&lt;BR /&gt; 1 file changed, 5 insertions(+)&lt;/P&gt;&lt;P&gt;diff --git a/configs/mx6solosabresd_defconfig b/configs/mx6solosabresd_defconfig&lt;BR /&gt;index f3ce9f4..7dfb3db 100644&lt;BR /&gt;--- a/configs/mx6solosabresd_defconfig&lt;BR /&gt;+++ b/configs/mx6solosabresd_defconfig&lt;BR /&gt;@@ -5,3 +5,8 @@ CONFIG_SYS_MALLOC_F=y&lt;BR /&gt; CONFIG_SYS_MALLOC_F_LEN=0x400&lt;BR /&gt; CONFIG_DM=y&lt;BR /&gt; CONFIG_DM_THERMAL=y&lt;BR /&gt;+&lt;BR /&gt;+CONFIG_SPL=y&lt;BR /&gt;+#CONFIG_SPL_BUILD=y&lt;BR /&gt;+#CONFIG_SPL_OS_BUILD=y&lt;BR /&gt;+CONFIG_CMD_SPL=y&lt;BR /&gt;-- &lt;BR /&gt;1.9.1&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have also set SPL_BINARY = "SPL" in u-boot.inc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is that Yocto does not build or deploy SPL and I get errors such as "mx6solosabresd_defconfig/SPL - no such directory". I have confirmed that the "SPL EXPORT" command does get built, however SPL.c itself always fails to build during the bitbake "package u-boot-imx" command.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE class="j-table jiveBorder" style="border: 1px solid #c6c6c6;" width="100%"&gt;&lt;THEAD&gt;&lt;TR style="background-color: #efefef;"&gt;&lt;TH&gt;Typical bitbake commands to rebuild&lt;/TH&gt;&lt;/TR&gt;&lt;/THEAD&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;bitbake -c clean u-boot-imx&lt;BR /&gt; bitbake -c clean linux-imx&lt;BR /&gt; bitbake -v -D -f -c compile linux-imx&lt;BR /&gt; bitbake -v -D -f -c package u-boot-imx&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ###errors occur here&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;bitbake -v -D -f -c deploy u-boot-imx&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;bitbake -v _D -f -c rootfs humboldt-image&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Am I missing something simple here? What is the correct way to tell Yocto to build and include SPL in the u-boot image?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 08 Jul 2018 19:27:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Need-help-adding-Falcon-Mode-patch-in-Yocto/m-p/792651#M122774</guid>
      <dc:creator>richhackl</dc:creator>
      <dc:date>2018-07-08T19:27:37Z</dc:date>
    </item>
    <item>
      <title>Re: Need help adding Falcon Mode patch in Yocto</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Need-help-adding-Falcon-Mode-patch-in-Yocto/m-p/792652#M122775</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you build by typing this "bitbake u-boot-imx"?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jul 2018 01:36:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Need-help-adding-Falcon-Mode-patch-in-Yocto/m-p/792652#M122775</guid>
      <dc:creator>jimmychan</dc:creator>
      <dc:date>2018-07-12T01:36:47Z</dc:date>
    </item>
    <item>
      <title>Re: Need help adding Falcon Mode patch in Yocto</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Need-help-adding-Falcon-Mode-patch-in-Yocto/m-p/792653#M122776</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, I essentially use variations of the following list of commands for rebuilding u-boot:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;bitbake -c clean u-boot-imx&lt;BR /&gt;bitbake -v -D -f -c package u-boot-imx&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ###errors occur here&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;bitbake -v -D -f -c deploy u-boot-imx&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;bitbake -v _D -f -c rootfs humboldt-image&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;NOTE: since my previous post I have determined that the following #defines need to be in the board header file (mx6sabresd.h) and not in the defconfig file:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;&lt;SPAN style="background-color: #ffffff;"&gt;#define CONFIG_SPL_BUILD=y&lt;/SPAN&gt;&lt;BR style="background-color: #ffffff;" /&gt;&lt;SPAN style="background-color: #ffffff;"&gt;#define CONFIG_SPL_OS_BUILD=y&lt;/SPAN&gt;&lt;BR style="background-color: #ffffff;" /&gt;&lt;SPAN style="background-color: #ffffff;"&gt;#define CONFIG_CMD_SPL=y&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="background-color: #ffffff; border: 0px; font-weight: inherit;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="background-color: #ffffff; border: 0px; font-weight: inherit;"&gt;I can build v2015_04 u-boot with SPL using the toolchain but I still can not direct bitbake recipes to build SPL. &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="background-color: #ffffff; border: 0px; font-weight: inherit;"&gt;I did find that in the poky u-boot.inc recipe include file, there is no script to support the compile of SPL - there is only script to install and deploy SPL.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="background-color: #ffffff; border: 0px; font-weight: inherit;"&gt;Rich&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jul 2018 14:11:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Need-help-adding-Falcon-Mode-patch-in-Yocto/m-p/792653#M122776</guid>
      <dc:creator>richhackl</dc:creator>
      <dc:date>2018-07-16T14:11:50Z</dc:date>
    </item>
  </channel>
</rss>

