<?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>i.MX ProcessorsのトピックRe: How to enable serial console during boot up process for Linux L5.10.9 imx6dl</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/How-to-enable-serial-console-during-boot-up-process-for-Linux-L5/m-p/1391405#M184955</link>
    <description>&lt;P&gt;Hello hailu,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Are you using the Yocto build system to generate the images?&lt;/P&gt;
&lt;P&gt;If so then, you also need to change the value of the &lt;STRONG&gt;"SERIAL_CONSOLES"&lt;/STRONG&gt; variable in the machine configuration file in yocto build. You need to assign ttymxc2 to the &lt;STRONG&gt;SERIAL_CONSOLES&lt;/STRONG&gt; variable as well.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;e.g.&amp;nbsp;SERIAL_CONSOLES = "115200;ttymxc2"&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;or from dtb&lt;/STRONG&gt; uart3 should be tty2,&lt;/P&gt;
&lt;P&gt;serial0 = &amp;amp;uart1;&lt;BR /&gt;serial1 = &amp;amp;uart2;&lt;BR /&gt;serial2 = &amp;amp;uart3;&lt;BR /&gt;serial3 = &amp;amp;uart4;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;or check this note:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;A href="https://community.nxp.com/t5/Blogs/How-to-Change-i-MX8MM-evk-Linux-Debug-UART/ba-p/1243938" target="_blank"&gt;https://community.nxp.com/t5/Blogs/How-to-Change-i-MX8MM-evk-Linux-Debug-UART/ba-p/1243938&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Regards&lt;/STRONG&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 23 Dec 2021 14:45:09 GMT</pubDate>
    <dc:creator>Bio_TICFSL</dc:creator>
    <dc:date>2021-12-23T14:45:09Z</dc:date>
    <item>
      <title>How to enable serial console during boot up process for Linux L5.10.9 imx6dl</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-enable-serial-console-during-boot-up-process-for-Linux-L5/m-p/1390973#M184898</link>
      <description>&lt;P&gt;Dear community,&lt;/P&gt;&lt;P&gt;I am debugging the booting up problem. I am using Uart3 as serial console. During the u-boot process, the console can display all the messages. After displaying the "starting Kernel", the system hangs. If I use GDB and vmlinux to debug the kernel,&amp;nbsp; because there is no dtb file loaded into memory, when the kernel run setup_arch() function, it should print "invalid dtb and unrecognized/unsupported machine ID" and "r1=...,r2=....", but nothing was printed on the console. I did run step by step, and the two lines:&lt;/P&gt;&lt;P&gt;early_print("\nError: invalid dtb and unrecognized/unsupported machine ID\n");&lt;BR /&gt;early_print(" r1=0x%08x, r2=0x%08x\n", __machine_arch_type,__atags_pointer);&lt;/P&gt;&lt;P&gt;did executed, but no output to the console.&lt;/P&gt;&lt;P&gt;I also boot the system by a SD card, and add a dead loop before the setup_arch(), found that the system did stay in the dead loop. If printk works, the console should display "Booting Linux on physical CPU 0" ,the linux banner,cgroug initialization information, etc, but nothing was displayed. It seems that the serial console was not set correctly. I modified CONFIG_CMDLINE="noinitrd console=ttymxc2,115200". I also add CONFIG_DEBUG_IMX_UART_PORT=3 in defconfig file.&amp;nbsp; Do I need to modify other configurations to make the UART3 works during the kernel start process?&lt;/P&gt;&lt;P&gt;thank you very much.&lt;/P&gt;&lt;P&gt;Hai.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Dec 2021 02:37:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-enable-serial-console-during-boot-up-process-for-Linux-L5/m-p/1390973#M184898</guid>
      <dc:creator>hailiu</dc:creator>
      <dc:date>2021-12-23T02:37:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to enable serial console during boot up process for Linux L5.10.9 imx6dl</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-enable-serial-console-during-boot-up-process-for-Linux-L5/m-p/1391395#M184953</link>
      <description>&lt;P&gt;at __log_buf, I can see the following messages:&lt;/P&gt;&lt;P&gt;Booting.Linux.on.physical.CPU.0x0&lt;/P&gt;&lt;P&gt;Linux.version.5.10.9-1.0.0+g303f46919105.(&lt;A href="mailto:oe-user@oe-host" target="_blank"&gt;oe-user@oe-host&lt;/A&gt;).(arm-poky-linux-gnueabi-gcc.(GCC).10.2.0,.GNU.ld.(GNU.Binutils.).2.35.0.20200730).#1.SMP.PREEMPT.Tue.Mar.9.02:17:18.UTC.2021.&lt;/P&gt;&lt;P&gt;It proves that the serial console is not set correctly.&lt;/P&gt;&lt;P&gt;some modifications needed?&lt;/P&gt;&lt;P&gt;thanks a lot!&lt;/P&gt;&lt;P&gt;Hai&lt;/P&gt;</description>
      <pubDate>Thu, 23 Dec 2021 14:19:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-enable-serial-console-during-boot-up-process-for-Linux-L5/m-p/1391395#M184953</guid>
      <dc:creator>hailiu</dc:creator>
      <dc:date>2021-12-23T14:19:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to enable serial console during boot up process for Linux L5.10.9 imx6dl</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-enable-serial-console-during-boot-up-process-for-Linux-L5/m-p/1391405#M184955</link>
      <description>&lt;P&gt;Hello hailu,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Are you using the Yocto build system to generate the images?&lt;/P&gt;
&lt;P&gt;If so then, you also need to change the value of the &lt;STRONG&gt;"SERIAL_CONSOLES"&lt;/STRONG&gt; variable in the machine configuration file in yocto build. You need to assign ttymxc2 to the &lt;STRONG&gt;SERIAL_CONSOLES&lt;/STRONG&gt; variable as well.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;e.g.&amp;nbsp;SERIAL_CONSOLES = "115200;ttymxc2"&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;or from dtb&lt;/STRONG&gt; uart3 should be tty2,&lt;/P&gt;
&lt;P&gt;serial0 = &amp;amp;uart1;&lt;BR /&gt;serial1 = &amp;amp;uart2;&lt;BR /&gt;serial2 = &amp;amp;uart3;&lt;BR /&gt;serial3 = &amp;amp;uart4;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;or check this note:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;A href="https://community.nxp.com/t5/Blogs/How-to-Change-i-MX8MM-evk-Linux-Debug-UART/ba-p/1243938" target="_blank"&gt;https://community.nxp.com/t5/Blogs/How-to-Change-i-MX8MM-evk-Linux-Debug-UART/ba-p/1243938&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Regards&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Dec 2021 14:45:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-enable-serial-console-during-boot-up-process-for-Linux-L5/m-p/1391405#M184955</guid>
      <dc:creator>Bio_TICFSL</dc:creator>
      <dc:date>2021-12-23T14:45:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to enable serial console during boot up process for Linux L5.10.9 imx6dl</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-enable-serial-console-during-boot-up-process-for-Linux-L5/m-p/1391510#M184959</link>
      <description>&lt;P&gt;Dear Bio,&lt;/P&gt;&lt;P&gt;Forget to mention that I did modified the SERIAL_CONSOLES to the value you suggested. I did not patch the variable in imx6sabresd-common.inc, but add a new line in my machine configuration file as:&lt;/P&gt;&lt;P&gt;SERIAL_CONSOLES = "115200;ttymxc2"&lt;/P&gt;&lt;P&gt;I don't know whether this is a problem. I will go further as you suggested to modify the dts file.&lt;/P&gt;&lt;P&gt;will let you know the results.&lt;/P&gt;&lt;P&gt;Thank you a lot.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Dec 2021 19:14:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-enable-serial-console-during-boot-up-process-for-Linux-L5/m-p/1391510#M184959</guid>
      <dc:creator>hailiu</dc:creator>
      <dc:date>2021-12-23T19:14:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to enable serial console during boot up process for Linux L5.10.9 imx6dl</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-enable-serial-console-during-boot-up-process-for-Linux-L5/m-p/1391514#M184960</link>
      <description>&lt;P&gt;It seems I did all the changes you suggested. The following were what I did in the dts file:&lt;/P&gt;&lt;P&gt;aliases{&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; serial0 = &amp;amp;uart1;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; serial1 = &amp;amp;uart2;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; serial2 = &amp;amp;uart3;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; serial3 = &amp;amp;uart4;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; serial4 = &amp;amp;uart5;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;uart3: serial@21ec000 {&lt;BR /&gt;compatible = "fsl,imx6q-uart", "fsl,imx21-uart";&lt;BR /&gt;reg = &amp;lt;0x021ec000 0x4000&amp;gt;;&lt;BR /&gt;interrupts = &amp;lt;0 28 IRQ_TYPE_LEVEL_HIGH&amp;gt;;&lt;BR /&gt;clocks = &amp;lt;&amp;amp;clks IMX6QDL_CLK_UART_IPG&amp;gt;,&lt;BR /&gt;&amp;lt;&amp;amp;clks IMX6QDL_CLK_UART_SERIAL&amp;gt;;&lt;BR /&gt;clock-names = "ipg", "per";&lt;BR /&gt;dmas = &amp;lt;&amp;amp;sdma 29 4 0&amp;gt;, &amp;lt;&amp;amp;sdma 30 4 0&amp;gt;;&lt;BR /&gt;dma-names = "rx", "tx";&lt;BR /&gt;status = "disabled";&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;&amp;amp;uart3 {&lt;BR /&gt;pinctrl-names = "default";&lt;BR /&gt;pinctrl-0 = &amp;lt;&amp;amp;pinctrl_uart3&amp;gt;;&lt;BR /&gt;status = "okay";&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any other thing I need to modify?&lt;/P&gt;&lt;P&gt;thank you!&lt;/P&gt;</description>
      <pubDate>Thu, 23 Dec 2021 19:31:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-enable-serial-console-during-boot-up-process-for-Linux-L5/m-p/1391514#M184960</guid>
      <dc:creator>hailiu</dc:creator>
      <dc:date>2021-12-23T19:31:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to enable serial console during boot up process for Linux L5.10.9 imx6dl</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-enable-serial-console-during-boot-up-process-for-Linux-L5/m-p/1391851#M184997</link>
      <description>&lt;P&gt;Looked around the web, founded I am not alone. I guess that because the device tree is not used yet, the hardware is not initialized, so printk() can not print message to console at this point. Earlyprintk may be a solution, but I don't want to waste the time any more, just use __dbg_buf to debug it.&lt;/P&gt;&lt;P&gt;Founded the following message in the web:&lt;/P&gt;&lt;H5&gt;The Nonrobustness of printk()&lt;/H5&gt;&lt;P&gt;A **bleep** in the armor of printk()'s robustness does exist. It is unusable before a certain point in the kernel boot process, prior to console initialization. Indeed, if the console is not initialized, where is the output supposed to go?&lt;/P&gt;&lt;P&gt;This is normally not an issue, unless you are debugging issues very early in the boot process (for example, in setup_arch(), which performs architecture-specific initialization). Such debugging is a challenge to begin with, and the absence of any sort of print method only compounds the problem.&lt;/P&gt;&lt;P&gt;There is some hope, but not a lot. Hardcore architecture hackers use the hardware that does work (say, a serial port) to communicate with the outside world. Trust meth is not fun for most people. Some supported architectures do implement a sane solution, however and others (i386 included) have patches available that also save the day.&lt;/P&gt;&lt;P&gt;The solution is a printk() variant that can output to the console very early in the boot process: early_printk(). The behavior is the same as printk(), only the name and its capability to work earlier are changed. This is not a portable solution, however, because not all supported architectures have such a method implemented. It might become your best friend, though, if it does.&lt;/P&gt;&lt;P&gt;Unless you need to write to the console very early in the boot process, you can rely on printk() to always work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Dec 2021 14:13:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-enable-serial-console-during-boot-up-process-for-Linux-L5/m-p/1391851#M184997</guid>
      <dc:creator>hailiu</dc:creator>
      <dc:date>2021-12-24T14:13:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to enable serial console during boot up process for Linux L5.10.9 imx6dl</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-enable-serial-console-during-boot-up-process-for-Linux-L5/m-p/1391862#M184999</link>
      <description>&lt;P&gt;Found solution, use early_print function to print message to console. the following is the logging message:&lt;/P&gt;&lt;P&gt;U-Boot 2020.04-5.10.9-1.0.0+gad7b74b415 (Mar 05 2021 - 07:05:56 +0000)&lt;/P&gt;&lt;P&gt;CPU: i.MX6SOLO rev1.3 996 MHz (running at 792 MHz)&lt;BR /&gt;CPU: Extended Commercial temperature grade (-20C to 105C) at 33C&lt;BR /&gt;Reset cause: POR&lt;BR /&gt;Model:&lt;BR /&gt;Board:&lt;BR /&gt;DRAM: 2 GiB&lt;BR /&gt;PMIC: PFUZE100! DEV_ID=0x10 REV_ID=0x21&lt;BR /&gt;MMC: FSL_SDHC: 1, FSL_SDHC: 3&lt;BR /&gt;Loading Environment from MMC... *** Warning - bad CRC, using default environment&lt;/P&gt;&lt;P&gt;No panel detected: default to Hannstar-XGA&lt;BR /&gt;Display: Hannstar-XGA (1024x768)&lt;BR /&gt;In: serial&lt;BR /&gt;Out: serial&lt;BR /&gt;Err: serial&lt;BR /&gt;switch to partitions #0, OK&lt;BR /&gt;mmc1 is current device&lt;BR /&gt;Net: Could not get PHY for FEC0: addr 1&lt;BR /&gt;Could not get PHY for FEC0: addr 1&lt;BR /&gt;No ethernet found.&lt;/P&gt;&lt;P&gt;Fastboot: Normal&lt;BR /&gt;Normal Boot&lt;BR /&gt;Hit any key to stop autoboot: 3 2 1 0&lt;BR /&gt;WARNING: Could not determine tee to use&lt;BR /&gt;switch to partitions #0, OK&lt;BR /&gt;mmc1 is current device&lt;BR /&gt;8585104 bytes read in 420 ms (19.5 MiB/s)&lt;BR /&gt;Booting from mmc ...&lt;BR /&gt;48011 bytes read in 18 ms (2.5 MiB/s)&lt;BR /&gt;1057212 bytes read in 64 ms (15.8 MiB/s)&lt;BR /&gt;## Booting kernel from Legacy Image at 20000000 ...&lt;BR /&gt;Image Name:&lt;BR /&gt;Image Type: ARM Linux Kernel Image (uncompressed)&lt;BR /&gt;Data Size: 1057148 Bytes = 1 MiB&lt;BR /&gt;Load Address: 14000000&lt;BR /&gt;Entry Point: 14000000&lt;BR /&gt;Verifying Checksum ... OK&lt;BR /&gt;## Flattened Device Tree blob at 18000000&lt;BR /&gt;Booting using the fdt blob at 0x18000000&lt;BR /&gt;Loading Kernel Image&lt;BR /&gt;Using Device Tree in place at 18000000, end 1800eb8a&lt;BR /&gt;switch to ldo_bypass mode!&lt;/P&gt;&lt;P&gt;Starting kernel ...&lt;/P&gt;&lt;P&gt;after setup_machine_fdt&lt;BR /&gt;after dump_stack_set_arch_desc&lt;BR /&gt;parse_early_param&lt;/P&gt;</description>
      <pubDate>Fri, 24 Dec 2021 15:32:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-enable-serial-console-during-boot-up-process-for-Linux-L5/m-p/1391862#M184999</guid>
      <dc:creator>hailiu</dc:creator>
      <dc:date>2021-12-24T15:32:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to enable serial console during boot up process for Linux L5.10.9 imx6dl</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-enable-serial-console-during-boot-up-process-for-Linux-L5/m-p/1393633#M185276</link>
      <description>&lt;P&gt;need to modify the optee configurations CFG_UART_BASE to UART3_BASE and CFG_DDR_SIZE in git/core/arch/arm/plat-imx/conf.mk to have the printf and booting process works.&lt;/P&gt;</description>
      <pubDate>Sun, 02 Jan 2022 22:16:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-enable-serial-console-during-boot-up-process-for-Linux-L5/m-p/1393633#M185276</guid>
      <dc:creator>hailiu</dc:creator>
      <dc:date>2022-01-02T22:16:36Z</dc:date>
    </item>
  </channel>
</rss>

