<?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: /dev/kmsg buffer overrun, some messages lost</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/dev-kmsg-buffer-overrun-some-messages-lost/m-p/1691319#M209591</link>
    <description>&lt;P&gt;&lt;SPAN&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/97512"&gt;@mahendrasondaga&lt;/a&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;DIV&gt;&lt;SPAN class="im"&gt;I hope you are doing well.&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;One can change kernel command line options in the board header file in u-boot.&lt;BR /&gt;or&lt;/DIV&gt;
&lt;DIV&gt;directly from u-boot commands.&lt;/DIV&gt;
&lt;DIV&gt;&lt;BR /&gt;for example:&lt;BR /&gt;&lt;STRONG&gt;uboot-imx/include/configs/&lt;WBR /&gt;mx6ul_14x14_evk.h&lt;/STRONG&gt;&lt;BR /&gt;mmcargs=setenv bootargs&lt;STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;printk.devkmsg=off&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&amp;nbsp;console=${console},${&lt;WBR /&gt;baudrate} " \&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; BOOTARGS_CMA_SIZE \&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "root=${mmcroot}\0"&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Thanks &amp;amp; Regards,&lt;/DIV&gt;
&lt;DIV&gt;Sanket Parekh&lt;/DIV&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 24 Jul 2023 10:35:02 GMT</pubDate>
    <dc:creator>Sanket_Parekh</dc:creator>
    <dc:date>2023-07-24T10:35:02Z</dc:date>
    <item>
      <title>/dev/kmsg buffer overrun, some messages lost</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/dev-kmsg-buffer-overrun-some-messages-lost/m-p/1686475#M209119</link>
      <description>&lt;P&gt;Hello there...&lt;/P&gt;&lt;P&gt;Hope all are doing well&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I'm dealing with the Yocto Hardknott version with the Linux kernel version 5.10&lt;BR /&gt;&lt;BR /&gt;Along with the default device driver packages, i have added external driver packages for the Micrel KSZ8795, 4 port LAN switch support {&lt;A href="https://github.com/Microchip-Ethernet/EVB-KSZ9477" target="_self"&gt;Link&lt;/A&gt;}&lt;BR /&gt;I have also applied the patches for the Kconfig and Makefile to integrate the drivers with the mainline kernel&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;For me, The driver working well and i got the all 4 LAN port working!&lt;BR /&gt;&lt;BR /&gt;However, I'm facing the issue with the booting time!&lt;BR /&gt;&lt;BR /&gt;As during the booting i got the following message continuous&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;[&amp;nbsp; 448.652491] systemd-journald[325]: /dev/kmsg buffer overrun, some messages lost.&lt;/P&gt;&lt;P&gt;[&amp;nbsp; 449.112732] systemd-journald[325]: /dev/kmsg buffer overrun, some messages lost.&lt;/P&gt;&lt;P&gt;[&amp;nbsp; 449.625573] systemd-journald[325]: /dev/kmsg buffer overrun, some messages lost.&lt;/P&gt;&lt;P&gt;[&amp;nbsp; 449.641618] systemd-journald[325]: /dev/kmsg buffer overrun, some messages lost.&lt;/P&gt;&lt;P&gt;[&amp;nbsp; 451.156241] systemd-journald[325]: /dev/kmsg buffer overrun, some messages lost.&lt;/P&gt;&lt;P&gt;[&amp;nbsp; 451.182373] systemd-journald[325]: /dev/kmsg buffer overrun, some messages lost.&lt;/P&gt;&lt;P&gt;[&amp;nbsp; 451.662724] systemd-journald[325]: /dev/kmsg buffer overrun, some messages lost.&lt;/P&gt;&lt;P&gt;[&amp;nbsp; 451.732552] systemd-journald[325]: /dev/kmsg buffer overrun, some messages lost.&lt;/P&gt;&lt;P&gt;[&amp;nbsp; 453.705702] systemd-journald[325]: /dev/kmsg buffer overrun, some messages lost.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;--------------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;&lt;BR /&gt;From my side, i have updated the manuconfig as follows&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;CONFIG_LOG_BUF_SHIFT=19&lt;/P&gt;&lt;P&gt;CONFIG_LOG_CPU_MAX_BUF_SHIFT=14&lt;/P&gt;&lt;P&gt;CONFIG_PRINTK_SAFE_LOG_BUF_SHIFT=14&lt;/P&gt;&lt;P&gt;CONFIG_CONSOLE_LOGLEVEL_DEFAULT=3&lt;/P&gt;&lt;P&gt;CONFIG_CONSOLE_LOGLEVEL_QUIET=2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;CONFIG_MESSAGE_LOGLEVEL_DEFAULT=2&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;apart from that, in bootargs i have updated,&amp;nbsp;&lt;SPAN&gt;log_buf_len=65536&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;still, it's not working for me!&lt;BR /&gt;&lt;BR /&gt;Apart from that, because of the buffer overrun,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Journal services taking too long time to start&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;here is the logs from the kernel&lt;BR /&gt;&lt;BR /&gt;"A start job is running for the Journal service"&lt;BR /&gt;&lt;BR /&gt;And over all it's increasing the boot time!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone help me here with the best solution&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thanks&amp;nbsp;&lt;BR /&gt;Mahendra&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jul 2023 09:18:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/dev-kmsg-buffer-overrun-some-messages-lost/m-p/1686475#M209119</guid>
      <dc:creator>mahendrasondaga</dc:creator>
      <dc:date>2023-07-12T09:18:56Z</dc:date>
    </item>
    <item>
      <title>Re: /dev/kmsg buffer overrun, some messages lost</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/dev-kmsg-buffer-overrun-some-messages-lost/m-p/1688166#M209284</link>
      <description>&lt;DIV&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/97512"&gt;@mahendrasondaga&lt;/a&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;I hope you are doing well.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Please provide me with full boot logs for further debugging.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Please also share the steps used to port&amp;nbsp;KSZ8795,&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Meanwhile. One could try using&lt;STRONG&gt;&amp;nbsp;printk.devkmsg=off&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;kernel parameter.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Please refer to&amp;nbsp;&lt;A href="https://github.com/nxp-imx/linux-imx/blob/lf-6.1.y/Documentation/admin-guide/sysctl/kernel.rst#id67" target="_blank" rel="noopener" data-saferedirecturl="https://www.google.com/url?q=https://github.com/nxp-imx/linux-imx/blob/lf-6.1.y/Documentation/admin-guide/sysctl/kernel.rst%23id67&amp;amp;source=gmail&amp;amp;ust=1689403378837000&amp;amp;usg=AOvVaw2Ja7KUeyGdn2D87c0gFP-V"&gt;printk_devkmsg&lt;/A&gt;&amp;nbsp;for more information.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Thanks &amp;amp;&amp;nbsp;Regards,&lt;/DIV&gt;
&lt;DIV&gt;Sanket Parekh&lt;/DIV&gt;</description>
      <pubDate>Fri, 14 Jul 2023 06:55:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/dev-kmsg-buffer-overrun-some-messages-lost/m-p/1688166#M209284</guid>
      <dc:creator>Sanket_Parekh</dc:creator>
      <dc:date>2023-07-14T06:55:55Z</dc:date>
    </item>
    <item>
      <title>Re: /dev/kmsg buffer overrun, some messages lost</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/dev-kmsg-buffer-overrun-some-messages-lost/m-p/1689324#M209413</link>
      <description>&lt;P&gt;Hi..&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/202155"&gt;@Sanket_Parekh&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Thanks for the reply...&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Yes, I'll try with&amp;nbsp;&lt;STRONG&gt;printk.devkmsg=off&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;To port the KSZ8795 drivers, I'm manually&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;copying&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;the device drivers&amp;nbsp;source, and headers files into the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;/drivers/net//ethernet/micrel&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;directory into the kernel source&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;As the default kernel source doesn't contain those drivers&amp;nbsp;(As the DSA drivers for this LAN switch seem unstable for the Linux kernel version 5.10)&lt;/DIV&gt;&lt;DIV&gt;here are the drivers which Microchip provides for the kernel version 5.10&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://github.com/Microchip-Ethernet/EVB-KSZ9477/tree/master/KSZ/linux-drivers/ksz8795/linux-5.10" target="_blank" rel="noopener"&gt;https://github.com/Microchip-Ethernet/EVB-KSZ9477/tree/master/KSZ/linux-drivers/ksz8795/linux-5.10&lt;/A&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;When it comes to makefile and Kconfig, then I'm applying the patch for the same for those drivers&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;If you can see the drivers provided by the microchip then, they have provided the patches for the cadence&amp;nbsp;and Freescale FEC controller drivers&lt;/DIV&gt;&lt;DIV&gt;I'm applying the patches for both of these drivers&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I can't grep the logs for the KSZ8795 because I'm dealing with the minimal bootlogs with the LEVEL=3&lt;/DIV&gt;&lt;DIV&gt;Because without this, it causes&amp;nbsp;infinite boot time!&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;As it continuously displays the "&lt;SPAN&gt;A start job is running for Journal Service&lt;/SPAN&gt;"&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Can you please check?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Welcome&amp;nbsp;all suggestions&amp;nbsp;and comments&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanks&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Mahendra&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Thu, 20 Jul 2023 10:12:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/dev-kmsg-buffer-overrun-some-messages-lost/m-p/1689324#M209413</guid>
      <dc:creator>mahendrasondaga</dc:creator>
      <dc:date>2023-07-20T10:12:00Z</dc:date>
    </item>
    <item>
      <title>Re: /dev/kmsg buffer overrun, some messages lost</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/dev-kmsg-buffer-overrun-some-messages-lost/m-p/1689345#M209415</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/97512"&gt;@mahendrasondaga&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;I hope you are doing well.&lt;/P&gt;
&lt;P&gt;Yes, Please try with printk.devkmsg=off&lt;/P&gt;
&lt;P&gt;Does this occur if custom ethernet drivers are not ported?&lt;/P&gt;
&lt;P&gt;Please try disabling drivers related to Ethernet to rule out issues with the KSZ9477 driver.&lt;/P&gt;
&lt;P&gt;It is not recommended to make any changes to the default fec_main.c driver.&lt;/P&gt;
&lt;P&gt;Thanks &amp;amp; Regards,&lt;BR /&gt;Sanket Parekh&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jul 2023 10:35:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/dev-kmsg-buffer-overrun-some-messages-lost/m-p/1689345#M209415</guid>
      <dc:creator>Sanket_Parekh</dc:creator>
      <dc:date>2023-07-20T10:35:40Z</dc:date>
    </item>
    <item>
      <title>Re: /dev/kmsg buffer overrun, some messages lost</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/dev-kmsg-buffer-overrun-some-messages-lost/m-p/1690193#M209482</link>
      <description>&lt;P&gt;Hi.. &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/202155"&gt;@Sanket_Parekh&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thanks for Quick feedback!&lt;/P&gt;&lt;P&gt;Can you pl. suggest me the steps to do printk.devkmsg=off ?&lt;/P&gt;&lt;P&gt;is it through the menuconfig ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It's not occurring if the custom drivers not ported!&lt;/P&gt;&lt;P&gt;I have to use the custom driver only because the default DSA drivers available in /microchip directory dose not seems stable for this version of the kernel&lt;/P&gt;&lt;P&gt;KSZ9477 drivers are already disabled&lt;/P&gt;&lt;P&gt;Okay, will remove the patch associated with the fec_main.c&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Mahendra&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jul 2023 07:44:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/dev-kmsg-buffer-overrun-some-messages-lost/m-p/1690193#M209482</guid>
      <dc:creator>mahendrasondaga</dc:creator>
      <dc:date>2023-07-21T07:44:27Z</dc:date>
    </item>
    <item>
      <title>Re: /dev/kmsg buffer overrun, some messages lost</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/dev-kmsg-buffer-overrun-some-messages-lost/m-p/1691319#M209591</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/97512"&gt;@mahendrasondaga&lt;/a&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;DIV&gt;&lt;SPAN class="im"&gt;I hope you are doing well.&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;One can change kernel command line options in the board header file in u-boot.&lt;BR /&gt;or&lt;/DIV&gt;
&lt;DIV&gt;directly from u-boot commands.&lt;/DIV&gt;
&lt;DIV&gt;&lt;BR /&gt;for example:&lt;BR /&gt;&lt;STRONG&gt;uboot-imx/include/configs/&lt;WBR /&gt;mx6ul_14x14_evk.h&lt;/STRONG&gt;&lt;BR /&gt;mmcargs=setenv bootargs&lt;STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;printk.devkmsg=off&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&amp;nbsp;console=${console},${&lt;WBR /&gt;baudrate} " \&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; BOOTARGS_CMA_SIZE \&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "root=${mmcroot}\0"&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Thanks &amp;amp; Regards,&lt;/DIV&gt;
&lt;DIV&gt;Sanket Parekh&lt;/DIV&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jul 2023 10:35:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/dev-kmsg-buffer-overrun-some-messages-lost/m-p/1691319#M209591</guid>
      <dc:creator>Sanket_Parekh</dc:creator>
      <dc:date>2023-07-24T10:35:02Z</dc:date>
    </item>
  </channel>
</rss>

