<?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: LS1021A Early UART Debugging in Layerscape</title>
    <link>https://community.nxp.com/t5/Layerscape/LS1021A-Early-UART-Debugging/m-p/592863#M1569</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pavel.&amp;nbsp; Thanks for the info.&amp;nbsp; U-boot is working fine with UART2, I can actually even output a few lines after "starting kernel".&amp;nbsp; Of course I can't use any Linux configuration yet because I'm working on booting Linux now.&amp;nbsp; Do you know of a way to determine the virtual address of UART 2?&amp;nbsp; It seems like I don't even get to head.S when I enable DEBUG_LL, but I can see my physical and virtual addresses in R1 and R2 when I halt the debugger.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'll look into the RCW.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 12 Aug 2016 06:03:32 GMT</pubDate>
    <dc:creator>jasonhendrix</dc:creator>
    <dc:date>2016-08-12T06:03:32Z</dc:date>
    <item>
      <title>LS1021A Early UART Debugging</title>
      <link>https://community.nxp.com/t5/Layerscape/LS1021A-Early-UART-Debugging/m-p/592861#M1567</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is the virtual address of UART2 in the basic YOCTO build for LS1021ATWR?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi, I'm trying to bring up Linux on a custom board based on the LS1021ATWR dev kit and SDK.&amp;nbsp; However, my console access is UART2 (0x021D0500).&amp;nbsp; I would like to configure Linux to ouput early debug info on this port.&amp;nbsp; There's a similar post here for the &lt;A href="https://community.nxp.com/thread/429149"&gt;LS1021A-PB: Early UART Debugging on ttyS0 (Bank-0)&lt;/A&gt;&amp;nbsp; LS1021A-PB.&amp;nbsp; I've been able to enable DEBUG_LL and compile printasci into head.S, but no output yet.&lt;/P&gt;&lt;P&gt;When configuring DEBUG_LL, it seems I must set the items CONFIG_DEBUG_UART_PHYS and CONFIG_DEBUG_UART_VIRT as well.&amp;nbsp; How do I determine the address for CONFIG_DEBUG_UART_VIRT?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Aug 2016 21:20:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/LS1021A-Early-UART-Debugging/m-p/592861#M1567</guid>
      <dc:creator>jasonhendrix</dc:creator>
      <dc:date>2016-08-11T21:20:40Z</dc:date>
    </item>
    <item>
      <title>Re: LS1021A Early UART Debugging</title>
      <link>https://community.nxp.com/t5/Layerscape/LS1021A-Early-UART-Debugging/m-p/592862#M1568</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt;"&gt;If UART2 is needed, the LS1021A RCW should be changed. See the Section &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt;"&gt;3.4.1 o&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt;"&gt;f the LS1021A Reference Manual.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt;"&gt;Usually u-boot provides console configuration. NXP SDK for the TWR-LS1021A board, LS1021A-IOT board support LPUART&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; background: white;"&gt;See attached file. This file is available using the following path in u-boot source folder: /include/configs&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt;"&gt;Check UART ports under Linux on your board using the following commands:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt;"&gt;dmesg | grep tty&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt;"&gt;and&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt;"&gt;setserial -g /dev/ttyS*&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt;"&gt;stty 9600 -F /dev/ttyS1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt;"&gt;stty -F /dev/ttyS1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt;"&gt;echo "HELLO" &amp;gt; /dev/ttyS1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt;"&gt;Test serial ports on your board using the following page:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt;"&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.armadeus.com%2Fwiki%2Findex.php%3Ftitle%3DSerial_ports_usage_on_Linux" rel="nofollow" target="_blank"&gt;http://www.armadeus.com/wiki/index.php?title=Serial_ports_usage_on_Linux&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Pavel Chubakov&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&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, 12 Aug 2016 05:54:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/LS1021A-Early-UART-Debugging/m-p/592862#M1568</guid>
      <dc:creator>Pavel</dc:creator>
      <dc:date>2016-08-12T05:54:03Z</dc:date>
    </item>
    <item>
      <title>Re: LS1021A Early UART Debugging</title>
      <link>https://community.nxp.com/t5/Layerscape/LS1021A-Early-UART-Debugging/m-p/592863#M1569</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pavel.&amp;nbsp; Thanks for the info.&amp;nbsp; U-boot is working fine with UART2, I can actually even output a few lines after "starting kernel".&amp;nbsp; Of course I can't use any Linux configuration yet because I'm working on booting Linux now.&amp;nbsp; Do you know of a way to determine the virtual address of UART 2?&amp;nbsp; It seems like I don't even get to head.S when I enable DEBUG_LL, but I can see my physical and virtual addresses in R1 and R2 when I halt the debugger.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'll look into the RCW.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Aug 2016 06:03:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/LS1021A-Early-UART-Debugging/m-p/592863#M1569</guid>
      <dc:creator>jasonhendrix</dc:creator>
      <dc:date>2016-08-12T06:03:32Z</dc:date>
    </item>
    <item>
      <title>Re: LS1021A Early UART Debugging</title>
      <link>https://community.nxp.com/t5/Layerscape/LS1021A-Early-UART-Debugging/m-p/592864#M1570</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I also get a 'U' out of UART2 before it goes silent.&amp;nbsp; Could be the beginning of "Unsupported something or other", or could be something else.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Aug 2016 06:05:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/LS1021A-Early-UART-Debugging/m-p/592864#M1570</guid>
      <dc:creator>jasonhendrix</dc:creator>
      <dc:date>2016-08-12T06:05:27Z</dc:date>
    </item>
    <item>
      <title>Re: LS1021A Early UART Debugging</title>
      <link>https://community.nxp.com/t5/Layerscape/LS1021A-Early-UART-Debugging/m-p/592865#M1571</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Regarding the RCWs, I suppose the fact that U-Boot uses UART2 confirms that the pin configuration via RCW is correct for UART2.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Aug 2016 06:10:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/LS1021A-Early-UART-Debugging/m-p/592865#M1571</guid>
      <dc:creator>jasonhendrix</dc:creator>
      <dc:date>2016-08-12T06:10:15Z</dc:date>
    </item>
  </channel>
</rss>

