<?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: Specify console in device tree chosen/stdout-path in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Specify-console-in-device-tree-chosen-stdout-path/m-p/1798098#M219397</link>
    <description>&lt;P&gt;No, I haven't found a solution.&lt;/P&gt;</description>
    <pubDate>Tue, 30 Jan 2024 23:27:59 GMT</pubDate>
    <dc:creator>craigmcqueenir</dc:creator>
    <dc:date>2024-01-30T23:27:59Z</dc:date>
    <item>
      <title>Specify console in device tree chosen/stdout-path</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Specify-console-in-device-tree-chosen-stdout-path/m-p/1286547#M174936</link>
      <description>&lt;P&gt;I have an imx8mm based system. I'm using Yocto dunfell with meta-freescale providing kernel 5.4.107.&lt;/P&gt;&lt;P&gt;I am trying to simplify the kernel command line, and remove kernel-specific parameters that would better be specified in the device tree. The main items are (a) console; (b) earlycon; and (c) root. It would be better if these were defined in the device tree, rather than in U-Boot environment variables which are not so easily changed with a kernel upgrade.&lt;/P&gt;&lt;P&gt;Currently the kernel command line for my board includes&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;console=ttymxc2,115200 earlycon=ec_imx6q,0x30880000,115200&lt;/LI-CODE&gt;&lt;P&gt;and that works. But it would be better if the console were defined in the device tree.&lt;/P&gt;&lt;P&gt;The device tree specifies the console in node chosen/stdout-path. I had it set to&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;    stdout-path = &amp;amp;uart3;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But that doesn't work (when console=... is removed from kernel command line). After reading the docs, I changed it to:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;    stdout-path = "serial2:115200n8";&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That also doesn't work. Looking at &lt;FONT face="courier new,courier"&gt;/proc/consoles&lt;/FONT&gt;, the console gets set to &lt;FONT face="courier new,courier"&gt;ttymxc0&lt;/FONT&gt; instead of &lt;FONT face="courier new,courier"&gt;ttymxc2&lt;/FONT&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I found these, but they are not recent, and I haven't worked out if they're still relevant:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;A href="http://lists.infradead.org/pipermail/linux-snps-arc/2017-August/002874.html" target="_blank"&gt;http://lists.infradead.org/pipermail/linux-snps-arc/2017-August/002874.html&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://linux.kernel.narkive.com/UzNsO436/patch-3-3-serial-i-mx-evaluate-linux-stdout-path-property" target="_blank"&gt;https://linux.kernel.narkive.com/UzNsO436/patch-3-3-serial-i-mx-evaluate-linux-stdout-path-property&lt;/A&gt;&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Thu, 03 Jun 2021 04:46:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Specify-console-in-device-tree-chosen-stdout-path/m-p/1286547#M174936</guid>
      <dc:creator>craigmcqueenir</dc:creator>
      <dc:date>2021-06-03T04:46:13Z</dc:date>
    </item>
    <item>
      <title>Re: Specify console in device tree chosen/stdout-path</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Specify-console-in-device-tree-chosen-stdout-path/m-p/1289406#M175215</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can take a look into our Linux Porting Guide.&amp;nbsp; sect.1.4 Debugging, please check uboot/drivers/serial/serial_mxc.c&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Jun 2021 20:42:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Specify-console-in-device-tree-chosen-stdout-path/m-p/1289406#M175215</guid>
      <dc:creator>jamesbone</dc:creator>
      <dc:date>2021-06-08T20:42:30Z</dc:date>
    </item>
    <item>
      <title>Re: Specify console in device tree chosen/stdout-path</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Specify-console-in-device-tree-chosen-stdout-path/m-p/1795951#M219238</link>
      <description>&lt;P&gt;Hi everybody,&lt;BR /&gt;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/140851"&gt;@craigmcqueenir&lt;/a&gt;: have you solved in this way?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jan 2024 08:58:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Specify-console-in-device-tree-chosen-stdout-path/m-p/1795951#M219238</guid>
      <dc:creator>gigli_korg</dc:creator>
      <dc:date>2024-01-26T08:58:19Z</dc:date>
    </item>
    <item>
      <title>Re: Specify console in device tree chosen/stdout-path</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Specify-console-in-device-tree-chosen-stdout-path/m-p/1798098#M219397</link>
      <description>&lt;P&gt;No, I haven't found a solution.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jan 2024 23:27:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Specify-console-in-device-tree-chosen-stdout-path/m-p/1798098#M219397</guid>
      <dc:creator>craigmcqueenir</dc:creator>
      <dc:date>2024-01-30T23:27:59Z</dc:date>
    </item>
  </channel>
</rss>

