<?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: IMX8MP EVK/Change u-boot debug console UART2-&amp;gt;UART1 in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/IMX8MP-EVK-Change-u-boot-debug-console-UART2-gt-UART1/m-p/1285780#M174863</link>
    <description />
    <pubDate>Wed, 02 Jun 2021 03:35:13 GMT</pubDate>
    <dc:creator>tetsuro-okuyama</dc:creator>
    <dc:date>2021-06-02T03:35:13Z</dc:date>
    <item>
      <title>IMX8MP EVK/Change u-boot debug console UART2-&gt;UART1</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX8MP-EVK-Change-u-boot-debug-console-UART2-gt-UART1/m-p/1285779#M174862</link>
      <description>&lt;P&gt;Hi all,&lt;BR /&gt;&lt;BR /&gt;I want to change u-boot debug console from UART2 to UART1.&lt;BR /&gt;Environment is as follows.&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;root@imx8mpevk:~# uname -a&lt;BR /&gt;Linux imx8mpevk 5.4.70-2.3.0+g4f2631b022d8 #1 SMP PREEMPT Thu Mar 18 06:07:11 UTC 2021 aarch64 aarch64 aarch64 GNU/Linux&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;With reference to&lt;A href="https://community.nxp.com/t5/i-MX-Community-Articles/How-to-Change-i-MX8MM-evk-Linux-Debug-UART/ba-p/1243938#M40" target="_blank" rel="noopener"&gt; this page&lt;/A&gt;, I changed &lt;A href="https://source.codeaurora.org/external/imx/uboot-imx/log/?h=imx_v2020.04_5.4.70_2.3.0" target="_self"&gt;uboot-imx&lt;/A&gt; and &lt;A href="https://source.codeaurora.org/external/imx/imx-atf/log/?h=imx_5.4.70_2.3.0" target="_self"&gt;imx-atf&lt;/A&gt;(See attached patch:diff_uboot.patch and diff_atf.patch) and build them.&lt;BR /&gt;#1.common/log.c diff is tentative for SPL debug logging.&lt;/P&gt;&lt;P&gt;#2.uboot build command&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;# source ${YOCTO_SDK_PATH}/environment-setup-aarch64-poky-linux&lt;BR /&gt;# make distclean&lt;BR /&gt;# make imx8mp_evk_defconfig&lt;BR /&gt;# make&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;#3.atf build command&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;# unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS MACHINE&lt;BR /&gt;# make PLAT=imx8mp bl31&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Next, I built "flash.bin" using &lt;A href="https://source.codeaurora.org/external/imx/imx-mkimage/log/?h=imx_5.4.70_2.3.0" target="_self"&gt;imx-mkimage&lt;/A&gt;&amp;nbsp;and &lt;A href="http://sources.buildroot.net/firmware-imx/" target="_self"&gt;firmware-imx-8.11.bin&lt;/A&gt; by following the steps.&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;# cp uboot-imx/spl/u-boot-spl.bin imx-mkimage/iMX8M/&lt;BR /&gt;# cp uboot-imx/u-boot-nodtb.bin imx-mkimage/iMX8M/&lt;BR /&gt;# cp uboot-imx/arch/arm/dts/imx8mp-evk.dtb imx-mkimage/iMX8M/&lt;BR /&gt;# cp uboot-imx/tools/mkimage imx-mkimage/iMX8M/mkimage_uboot&lt;/P&gt;&lt;P&gt;# cp imx-atf/build/imx8mp/release/bl31.bin imx-mkimage/iMX8M/&lt;BR /&gt;&lt;BR /&gt;# cp firmware-imx-8.11/firmware/ddr/synopsys/lpddr4_pmu_train_1d_dmem_202006.bin imx-mkimage/iMX8M/&lt;BR /&gt;# cp firmware-imx-8.11/firmware/ddr/synopsys/lpddr4_pmu_train_1d_imem_202006.bin imx-mkimage/iMX8M/&lt;BR /&gt;# cp firmware-imx-8.11/firmware/ddr/synopsys/lpddr4_pmu_train_2d_dmem_202006.bin imx-mkimage/iMX8M/&lt;BR /&gt;# cp firmware-imx-8.11/firmware/ddr/synopsys/lpddr4_pmu_train_2d_imem_202006.bin imx-mkimage/iMX8M/&lt;/P&gt;&lt;P&gt;# cd&amp;nbsp;imx-mkimage&lt;BR /&gt;# make SOC=iMX8MP flash_evk&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;But the log at startup is only up to uboot SPL endpoint(See normal.log and stop.log).&lt;BR /&gt;When I raise the loglevel(See stop_loglevel7.log), it looks like ATF isn't loaded correctly.&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;Please tell me how to change the debug console of U-boot correctly.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;/P&gt;</description>
      <pubDate>Wed, 02 Jun 2021 03:36:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX8MP-EVK-Change-u-boot-debug-console-UART2-gt-UART1/m-p/1285779#M174862</guid>
      <dc:creator>tetsuro-okuyama</dc:creator>
      <dc:date>2021-06-02T03:36:27Z</dc:date>
    </item>
    <item>
      <title>Re: IMX8MP EVK/Change u-boot debug console UART2-&gt;UART1</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX8MP-EVK-Change-u-boot-debug-console-UART2-gt-UART1/m-p/1285780#M174863</link>
      <description />
      <pubDate>Wed, 02 Jun 2021 03:35:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX8MP-EVK-Change-u-boot-debug-console-UART2-gt-UART1/m-p/1285780#M174863</guid>
      <dc:creator>tetsuro-okuyama</dc:creator>
      <dc:date>2021-06-02T03:35:13Z</dc:date>
    </item>
    <item>
      <title>Re: IMX8MP EVK/Change u-boot debug console UART2-&gt;UART1</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX8MP-EVK-Change-u-boot-debug-console-UART2-gt-UART1/m-p/1285983#M174881</link>
      <description>&lt;P&gt;Please try this :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;---&lt;BR /&gt;plat/imx/imx8m/imx8mp/imx8mp_bl31_setup.c | 2 +-&lt;BR /&gt;plat/imx/imx8m/imx8mp/include/platform_def.h | 2 +-&lt;BR /&gt;2 files changed, 2 insertions(+), 2 deletions(-)&lt;/P&gt;
&lt;P&gt;diff --git a/plat/imx/imx8m/imx8mp/imx8mp_bl31_setup.c b/plat/imx/imx8m/imx8mp/imx8mp_bl31_setup.c&lt;BR /&gt;index 1e5d64da3..e5a629b91 100644&lt;BR /&gt;--- a/plat/imx/imx8m/imx8mp/imx8mp_bl31_setup.c&lt;BR /&gt;+++ b/plat/imx/imx8m/imx8mp/imx8mp_bl31_setup.c&lt;BR /&gt;@@ -59,7 +59,7 @@ static const struct imx_rdc_cfg rdc[] = {&lt;BR /&gt;RDC_MDAn(RDC_MDA_M7, DID1),&lt;BR /&gt;&lt;BR /&gt;/* peripherals domain permission */&lt;BR /&gt;- RDC_PDAPn(RDC_PDAP_UART2, D0R | D0W),&lt;BR /&gt;+ RDC_PDAPn(RDC_PDAP_UART1, D0R | D0W),&lt;BR /&gt;&lt;BR /&gt;/* memory region */&lt;BR /&gt;&lt;BR /&gt;diff --git a/plat/imx/imx8m/imx8mp/include/platform_def.h b/plat/imx/imx8m/imx8mp/include/platform_def.h&lt;BR /&gt;index ce279a567..56a0740ff 100644&lt;BR /&gt;--- a/plat/imx/imx8m/imx8mp/include/platform_def.h&lt;BR /&gt;+++ b/plat/imx/imx8m/imx8mp/include/platform_def.h&lt;BR /&gt;@@ -51,7 +51,7 @@&lt;BR /&gt;&lt;BR /&gt;#define HAB_RVT_BASE U(0x00000900) /* HAB_RVT for i.MX8MM */&lt;BR /&gt;&lt;BR /&gt;-#define IMX_BOOT_UART_BASE U(0x30890000)&lt;BR /&gt;+#define IMX_BOOT_UART_BASE U(0x30860000)&lt;BR /&gt;#define IMX_BOOT_UART_CLK_IN_HZ 24000000 /* Select 24MHz oscillator */&lt;BR /&gt;&lt;BR /&gt;#define PLAT_CRASH_UART_BASE IMX_BOOT_UART_BASE&lt;BR /&gt;-- &lt;BR /&gt;2.17.1&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Jun 2021 08:18:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX8MP-EVK-Change-u-boot-debug-console-UART2-gt-UART1/m-p/1285983#M174881</guid>
      <dc:creator>jimmychan</dc:creator>
      <dc:date>2021-06-02T08:18:18Z</dc:date>
    </item>
    <item>
      <title>Re: IMX8MP EVK/Change u-boot debug console UART2-&gt;UART1</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX8MP-EVK-Change-u-boot-debug-console-UART2-gt-UART1/m-p/1285993#M174883</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/1422"&gt;@jimmychan&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thank you for your reply!&lt;BR /&gt;I've already done what you told as attached(See &lt;A href="https://community.nxp.com/pwmxy87654/attachments/pwmxy87654/imx-processors/174862/1/diff_atf.patch" target="_self"&gt;&lt;SPAN&gt;diff_atf.patch&lt;/SPAN&gt;&lt;/A&gt;).&lt;BR /&gt;#I'll build it again just in case.&lt;BR /&gt;&lt;BR /&gt;Are there any other changes in imx-atf?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;/P&gt;</description>
      <pubDate>Wed, 02 Jun 2021 08:42:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX8MP-EVK-Change-u-boot-debug-console-UART2-gt-UART1/m-p/1285993#M174883</guid>
      <dc:creator>tetsuro-okuyama</dc:creator>
      <dc:date>2021-06-02T08:42:49Z</dc:date>
    </item>
    <item>
      <title>Re: IMX8MP EVK/Change u-boot debug console UART2-&gt;UART1</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX8MP-EVK-Change-u-boot-debug-console-UART2-gt-UART1/m-p/1286576#M174942</link>
      <description>&lt;P&gt;Basically, the uart setting in device tree file, the patch I mentioned above and the bootargs setting in u-boot.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Jun 2021 06:09:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX8MP-EVK-Change-u-boot-debug-console-UART2-gt-UART1/m-p/1286576#M174942</guid>
      <dc:creator>jimmychan</dc:creator>
      <dc:date>2021-06-03T06:09:04Z</dc:date>
    </item>
    <item>
      <title>Re: IMX8MP EVK/Change u-boot debug console UART2-&gt;UART1</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX8MP-EVK-Change-u-boot-debug-console-UART2-gt-UART1/m-p/1287613#M175059</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/1422"&gt;@jimmychan&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I undo the "common/log.c" changes and it worked!&lt;BR /&gt;Thanks!&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;/P&gt;</description>
      <pubDate>Fri, 04 Jun 2021 14:28:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX8MP-EVK-Change-u-boot-debug-console-UART2-gt-UART1/m-p/1287613#M175059</guid>
      <dc:creator>tetsuro-okuyama</dc:creator>
      <dc:date>2021-06-04T14:28:01Z</dc:date>
    </item>
  </channel>
</rss>

