<?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>LayerscapeのトピックUART console is being disabled when kernel boots</title>
    <link>https://community.nxp.com/t5/Layerscape/UART-console-is-being-disabled-when-kernel-boots/m-p/648419#M2204</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When successfully booting the kernel it seems to switch output consoles. A truncated (tail) version of the kernel boot logs:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;[ 0.000003] sched_clock: 56 bits at 25MHz, resolution 40ns, wraps every 4398046511100ns&lt;BR /&gt;[ 0.008312] Console: colour dummy device 80x25&lt;BR /&gt;[ 0.012772] console [tty0] enabled&lt;BR /&gt;[ 0.016185] bootconsole [uart0] disabled&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I&amp;nbsp;was expecting the first serial object to enumerate as the first uart (i.e. ttyS0 -&amp;gt; uart0). It seems I am either making incorrect assumptions or improperly passing parameters to the kernel.&amp;nbsp;This bootargs string was taken directly from the SDK documentation. The bootscript I am using is as follows:&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;setenv bootargs “console=ttyS0,115200, root=/dev/ram0 earlycon=uart8250,0x21C0500”;&lt;BR /&gt;setenv fdt_high 0xFFFFFFFFFFFFFFFF&lt;BR /&gt;setenv initrd_high 0xFFFFFFFFFFFFFFFF&lt;BR /&gt;cp.b 0x60A00000 0x81000000 0x3500000&lt;BR /&gt;esbc_validate 0x63F40000&lt;BR /&gt;bootm $img_addr&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.tldp.org/HOWTO/Remote-Serial-Console-HOWTO/configure-kernel.html"&gt;Documentation for the `console` kernel parameter&lt;/A&gt;&amp;nbsp;indicate that the first virtual terminal (tty0) will be used as the kernel's console by default if not otherwise given.&amp;nbsp;The second to last kernel print seems to exhibit this behavior indicating it has switched to a virtual console by default.&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;SPAN style="background-color: #f6f6f6;"&gt;[ 0.012772] console [tty0] enabled&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, the kernel printed its parameters earlier in the boot log and they are as expected&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;[ 0.000000] PERCPU: Embedded 18 pages/cpu @ffff80007fd84000 s33856 r8192 d31680 u73728&lt;BR /&gt;[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 515592&lt;BR /&gt;&lt;STRONG&gt;[ 0.000000] Kernel command line: “console=ttyS0,115200, root=/dev/ram0 earlycon=uart8250,0x21C0500”&lt;/STRONG&gt;&lt;BR /&gt;[ 0.000000] log_buf_len individual max cpu contribution: 4096 bytes&lt;BR /&gt;[ 0.000000] log_buf_len total cpu_extra contributions: 12288 bytes&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 19 Oct 2016 13:57:06 GMT</pubDate>
    <dc:creator>brandensherrell</dc:creator>
    <dc:date>2016-10-19T13:57:06Z</dc:date>
    <item>
      <title>UART console is being disabled when kernel boots</title>
      <link>https://community.nxp.com/t5/Layerscape/UART-console-is-being-disabled-when-kernel-boots/m-p/648419#M2204</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When successfully booting the kernel it seems to switch output consoles. A truncated (tail) version of the kernel boot logs:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;[ 0.000003] sched_clock: 56 bits at 25MHz, resolution 40ns, wraps every 4398046511100ns&lt;BR /&gt;[ 0.008312] Console: colour dummy device 80x25&lt;BR /&gt;[ 0.012772] console [tty0] enabled&lt;BR /&gt;[ 0.016185] bootconsole [uart0] disabled&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I&amp;nbsp;was expecting the first serial object to enumerate as the first uart (i.e. ttyS0 -&amp;gt; uart0). It seems I am either making incorrect assumptions or improperly passing parameters to the kernel.&amp;nbsp;This bootargs string was taken directly from the SDK documentation. The bootscript I am using is as follows:&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;setenv bootargs “console=ttyS0,115200, root=/dev/ram0 earlycon=uart8250,0x21C0500”;&lt;BR /&gt;setenv fdt_high 0xFFFFFFFFFFFFFFFF&lt;BR /&gt;setenv initrd_high 0xFFFFFFFFFFFFFFFF&lt;BR /&gt;cp.b 0x60A00000 0x81000000 0x3500000&lt;BR /&gt;esbc_validate 0x63F40000&lt;BR /&gt;bootm $img_addr&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.tldp.org/HOWTO/Remote-Serial-Console-HOWTO/configure-kernel.html"&gt;Documentation for the `console` kernel parameter&lt;/A&gt;&amp;nbsp;indicate that the first virtual terminal (tty0) will be used as the kernel's console by default if not otherwise given.&amp;nbsp;The second to last kernel print seems to exhibit this behavior indicating it has switched to a virtual console by default.&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;SPAN style="background-color: #f6f6f6;"&gt;[ 0.012772] console [tty0] enabled&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, the kernel printed its parameters earlier in the boot log and they are as expected&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;[ 0.000000] PERCPU: Embedded 18 pages/cpu @ffff80007fd84000 s33856 r8192 d31680 u73728&lt;BR /&gt;[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 515592&lt;BR /&gt;&lt;STRONG&gt;[ 0.000000] Kernel command line: “console=ttyS0,115200, root=/dev/ram0 earlycon=uart8250,0x21C0500”&lt;/STRONG&gt;&lt;BR /&gt;[ 0.000000] log_buf_len individual max cpu contribution: 4096 bytes&lt;BR /&gt;[ 0.000000] log_buf_len total cpu_extra contributions: 12288 bytes&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Oct 2016 13:57:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/UART-console-is-being-disabled-when-kernel-boots/m-p/648419#M2204</guid>
      <dc:creator>brandensherrell</dc:creator>
      <dc:date>2016-10-19T13:57:06Z</dc:date>
    </item>
    <item>
      <title>Re: UART console is being disabled when kernel boots</title>
      <link>https://community.nxp.com/t5/Layerscape/UART-console-is-being-disabled-when-kernel-boots/m-p/648420#M2205</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, it turns out that the kernel does not like quotations in its parameter list. That said, the solution was to simply remove them. I also removed an extraneous trailing comma after the console baud rate. Consider the new, working bootscript.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #f6f6f6;"&gt;setenv bootargs console=ttyS0,115200 root=/dev/ram0 earlycon=uart8250,0x21C0500&lt;/SPAN&gt;&lt;BR style="color: #51626f; background-color: #f6f6f6;" /&gt;&lt;SPAN style="color: #51626f; background-color: #f6f6f6;"&gt;setenv fdt_high 0xFFFFFFFFFFFFFFFF&lt;/SPAN&gt;&lt;BR style="color: #51626f; background-color: #f6f6f6;" /&gt;&lt;SPAN style="color: #51626f; background-color: #f6f6f6;"&gt;setenv initrd_high 0xFFFFFFFFFFFFFFFF&lt;/SPAN&gt;&lt;BR style="color: #51626f; background-color: #f6f6f6;" /&gt;&lt;SPAN style="color: #51626f; background-color: #f6f6f6;"&gt;cp.b 0x60A00000 0x81000000 0x3500000&lt;/SPAN&gt;&lt;BR style="color: #51626f; background-color: #f6f6f6;" /&gt;&lt;SPAN style="color: #51626f; background-color: #f6f6f6;"&gt;esbc_validate 0x63F40000&lt;/SPAN&gt;&lt;BR style="color: #51626f; background-color: #f6f6f6;" /&gt;&lt;SPAN style="color: #51626f; background-color: #f6f6f6;"&gt;bootm $img_addr&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Oct 2016 14:21:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/UART-console-is-being-disabled-when-kernel-boots/m-p/648420#M2205</guid>
      <dc:creator>brandensherrell</dc:creator>
      <dc:date>2016-10-19T14:21:25Z</dc:date>
    </item>
  </channel>
</rss>

