<?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: No console output when booting M54455EVB linux from uboot in ColdFire/68K Microcontrollers and Processors</title>
    <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/No-console-output-when-booting-M54455EVB-linux-from-uboot/m-p/161366#M5127</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Thanks, Kurt. I understood more about the printk().&lt;BR /&gt;&lt;BR /&gt;I figured out the problem would be that I use UART 2 as the console output port while M54455EVB linux use UART 0 as default output. I used to think that Linux kernel will not re-initialization the port after Uboot, but seems it will. So, according to the comment below, I edited the drivers/serial/mcfserial.c as follows:&lt;BR /&gt;1610 #elif defined(CONFIG_M54455)&lt;BR /&gt;1611&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; volatile unsigned char *uartp;&lt;BR /&gt;1612&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; uartp = info-&amp;gt;addr;&lt;BR /&gt;1613&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; switch (info-&amp;gt;line) {&lt;BR /&gt;1614&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; case 0:&lt;BR /&gt;1615&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; MCF_GPIO_PAR_UART |= 0x000F;&lt;BR /&gt;1616&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; break;&lt;BR /&gt;1617&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; case 1:&lt;BR /&gt;1618&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; MCF_GPIO_PAR_UART |= 0x0FF0;&lt;BR /&gt;1619&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; break;&lt;BR /&gt;1620&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; case 2:&lt;BR /&gt;1621&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; /* GPIOs also must be initalized, depends on board */&lt;BR /&gt;1622&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; &lt;B&gt;MCF_GPIO_PAR_TIMER = (MCF_GPIO_PAR_TIMER_T3IN_U2RXD | MCF_GPIO_PAR_TIMER_T2IN_U2TXD);&lt;/B&gt;&lt;BR /&gt;1623&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; break;&lt;BR /&gt;1624&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR /&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;The console still not working, can you advise what else I need to modify?&lt;BR /&gt;&lt;BR /&gt;Best Regards,&lt;BR /&gt;Mike&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 04 Jun 2008 10:43:14 GMT</pubDate>
    <dc:creator>mikeqin</dc:creator>
    <dc:date>2008-06-04T10:43:14Z</dc:date>
    <item>
      <title>No console output when booting M54455EVB linux from uboot</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/No-console-output-when-booting-M54455EVB-linux-from-uboot/m-p/161364#M5125</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;SPAN&gt;Dear guys,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Currently, I am trying to build a linux image for my custom board with MCF5445x processor. I take M54455EVB linux image as a start point. I bootm the M54455EVB linux image from uboot (I use uboot-1.3.2). The uboot works well, the kernel booting hit the start_kernel(). But there is nothing output from console!!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;With debugger, I saw that the printk() functions were called many times without any console output. Tracing into the kernel source code, I found that the printk() called "con-&amp;gt;write" operation... Still puzzled.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can anyone guide me to solve this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Mike&lt;/SPAN&gt;&lt;BR /&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Message Edited by mikeqin on &lt;/SPAN&gt;&lt;SPAN class="date_text"&gt;2008-06-03&lt;/SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;SPAN class="time_text"&gt;04:34 PM&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jun 2008 22:33:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/No-console-output-when-booting-M54455EVB-linux-from-uboot/m-p/161364#M5125</guid>
      <dc:creator>mikeqin</dc:creator>
      <dc:date>2008-06-03T22:33:30Z</dc:date>
    </item>
    <item>
      <title>Re: No console output when booting M54455EVB linux from uboot</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/No-console-output-when-booting-M54455EVB-linux-from-uboot/m-p/161365#M5126</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;Hi Mike,&lt;BR /&gt;&lt;BR /&gt;What you are running into is that the console driver has not been initialized yet.&amp;nbsp; All your output is going into the printk buffer and when the console driver gets initialized all that output will get sent out the serial port.&lt;BR /&gt;&lt;BR /&gt;The console is enabled in linux/arch/m68k/coldfire/config.c config_coldfire() at the bottom of the routine via a call to register_console().&lt;BR /&gt;&lt;BR /&gt;This can be annoying when you are trying to bring up the kernel.&amp;nbsp; When I've got a hardware debugger like a BDI I drop halt instructions along the way.&amp;nbsp; If you've gotten out of head.S and into the C inits the C code is &lt;I&gt;asm("halt");&lt;/I&gt; .&amp;nbsp; Other ways are the tried and true "flash an LED" method.&lt;BR /&gt;&lt;BR /&gt;--Kurt&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jun 2008 04:51:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/No-console-output-when-booting-M54455EVB-linux-from-uboot/m-p/161365#M5126</guid>
      <dc:creator>kmahan</dc:creator>
      <dc:date>2008-06-04T04:51:26Z</dc:date>
    </item>
    <item>
      <title>Re: No console output when booting M54455EVB linux from uboot</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/No-console-output-when-booting-M54455EVB-linux-from-uboot/m-p/161366#M5127</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Thanks, Kurt. I understood more about the printk().&lt;BR /&gt;&lt;BR /&gt;I figured out the problem would be that I use UART 2 as the console output port while M54455EVB linux use UART 0 as default output. I used to think that Linux kernel will not re-initialization the port after Uboot, but seems it will. So, according to the comment below, I edited the drivers/serial/mcfserial.c as follows:&lt;BR /&gt;1610 #elif defined(CONFIG_M54455)&lt;BR /&gt;1611&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; volatile unsigned char *uartp;&lt;BR /&gt;1612&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; uartp = info-&amp;gt;addr;&lt;BR /&gt;1613&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; switch (info-&amp;gt;line) {&lt;BR /&gt;1614&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; case 0:&lt;BR /&gt;1615&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; MCF_GPIO_PAR_UART |= 0x000F;&lt;BR /&gt;1616&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; break;&lt;BR /&gt;1617&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; case 1:&lt;BR /&gt;1618&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; MCF_GPIO_PAR_UART |= 0x0FF0;&lt;BR /&gt;1619&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; break;&lt;BR /&gt;1620&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; case 2:&lt;BR /&gt;1621&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; /* GPIOs also must be initalized, depends on board */&lt;BR /&gt;1622&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; &lt;B&gt;MCF_GPIO_PAR_TIMER = (MCF_GPIO_PAR_TIMER_T3IN_U2RXD | MCF_GPIO_PAR_TIMER_T2IN_U2TXD);&lt;/B&gt;&lt;BR /&gt;1623&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; break;&lt;BR /&gt;1624&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR /&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;The console still not working, can you advise what else I need to modify?&lt;BR /&gt;&lt;BR /&gt;Best Regards,&lt;BR /&gt;Mike&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jun 2008 10:43:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/No-console-output-when-booting-M54455EVB-linux-from-uboot/m-p/161366#M5127</guid>
      <dc:creator>mikeqin</dc:creator>
      <dc:date>2008-06-04T10:43:14Z</dc:date>
    </item>
    <item>
      <title>Re: No console output when booting M54455EVB linux from uboot</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/No-console-output-when-booting-M54455EVB-linux-from-uboot/m-p/161367#M5128</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;I'd like to report that the console output is fine now. I changed the default port index when init the console structure, then it work for the register_console() in printk.c.&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;-mike&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jun 2008 15:39:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/No-console-output-when-booting-M54455EVB-linux-from-uboot/m-p/161367#M5128</guid>
      <dc:creator>mikeqin</dc:creator>
      <dc:date>2008-06-12T15:39:33Z</dc:date>
    </item>
  </channel>
</rss>

