<?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>P-SeriesのトピックRe: Kernel halts while invalidating TLB</title>
    <link>https://community.nxp.com/t5/P-Series/Kernel-halts-while-invalidating-TLB/m-p/393042#M2170</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;P1012 has an e500 core which does not implement the tlbie instruction and is not supported by head_32.S.&amp;nbsp; You need to build an e500 kernel instead, such as mpc85xx_defconfig.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 09 Apr 2015 21:34:04 GMT</pubDate>
    <dc:creator>scottwood</dc:creator>
    <dc:date>2015-04-09T21:34:04Z</dc:date>
    <item>
      <title>Kernel halts while invalidating TLB</title>
      <link>https://community.nxp.com/t5/P-Series/Kernel-halts-while-invalidating-TLB/m-p/393041#M2169</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="mso-bidi-language: AR-SA; mso-fareast-language: EN-US; mso-bidi-font-family: 'Times New Roman'; mso-ascii-theme-font: minor-latin; line-height: 115%; color: #000000; font-size: 11pt; mso-ansi-language: EN-US; mso-hansi-theme-font: minor-latin; mso-fareast-theme-font: minor-latin; font-family: 'Calibri','sans-serif'; mso-fareast-font-family: Calibri; mso-bidi-theme-font: minor-bidi;"&gt;Hi, I am trying to boot SDK 1.6 kernel in my P1012 board. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="mso-bidi-language: AR-SA; mso-fareast-language: EN-US; mso-bidi-font-family: 'Times New Roman'; mso-ascii-theme-font: minor-latin; line-height: 115%; color: #000000; font-size: 11pt; mso-ansi-language: EN-US; mso-hansi-theme-font: minor-latin; mso-fareast-theme-font: minor-latin; font-family: 'Calibri','sans-serif'; mso-fareast-font-family: Calibri; mso-bidi-theme-font: minor-bidi;"&gt;The uboot configures TLBs correctly but once the kernel boots, it halts while invalidating TLBs(flush_tlbs at head_32.S file) . &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="mso-bidi-language: AR-SA; mso-fareast-language: EN-US; mso-bidi-font-family: 'Times New Roman'; mso-ascii-theme-font: minor-latin; line-height: 115%; color: #000000; font-size: 11pt; mso-ansi-language: EN-US; mso-hansi-theme-font: minor-latin; mso-fareast-theme-font: minor-latin; font-family: 'Calibri','sans-serif'; mso-fareast-font-family: Calibri; mso-bidi-theme-font: minor-bidi;"&gt;Kernel is loaded at 0x00000000 and uboot configures a TLB for DDR at 0x00000000. The console output is the following:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="mso-bidi-language: AR-SA; mso-fareast-language: EN-US; mso-bidi-font-family: 'Times New Roman'; mso-ascii-theme-font: minor-latin; line-height: 115%; color: #000000; font-size: 11pt; mso-ansi-language: EN-US; mso-hansi-theme-font: minor-latin; mso-fareast-theme-font: minor-latin; font-family: 'Calibri','sans-serif'; mso-fareast-font-family: Calibri; mso-bidi-theme-font: minor-bidi;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="mso-bidi-language: AR-SA; mso-fareast-language: EN-US; mso-bidi-font-family: 'Times New Roman'; mso-ascii-theme-font: minor-latin; line-height: 115%; color: #000000; font-size: 11pt; mso-ansi-language: EN-US; mso-hansi-theme-font: minor-latin; mso-fareast-theme-font: minor-latin; font-family: 'Calibri','sans-serif'; mso-fareast-font-family: Calibri; mso-bidi-theme-font: minor-bidi;"&gt;/********************************************************************************************/&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;=&amp;gt; boot&lt;/P&gt;&lt;P&gt;WARNING: adjusting available memory to 30000000&lt;/P&gt;&lt;P&gt;## Booting kernel from Legacy Image at 02000000 ...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Image Name:&amp;nbsp;&amp;nbsp; WTMKII PM Linux kernel5&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Created:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2015-04-09&amp;nbsp; 10:56:29 UTC&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Image Type:&amp;nbsp;&amp;nbsp; PowerPC Linux Kernel Image (gzip compressed)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Data Size:&amp;nbsp;&amp;nbsp;&amp;nbsp; 3929672 Bytes = 3.7 MiB&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Load Address: 00000000&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Entry Point:&amp;nbsp; 00000000&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Verifying Checksum ... OK&lt;/P&gt;&lt;P&gt;## Loading init Ramdisk from Legacy Image at 10000000 ...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Image Name:&amp;nbsp;&amp;nbsp; ramdisk_0n_2.img&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Created:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2015-03-30&amp;nbsp; 13:58:24 UTC&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Image Type:&amp;nbsp;&amp;nbsp; PowerPC Linux RAMDisk Image (lzo compressed)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Data Size:&amp;nbsp;&amp;nbsp;&amp;nbsp; 9565405 Bytes = 9.1 MiB&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Load Address: 00000000&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Entry Point:&amp;nbsp; 00000000&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Verifying Checksum ... OK&lt;/P&gt;&lt;P&gt;## Flattened Device Tree from Legacy Image at 03000000&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Image Name:&amp;nbsp;&amp;nbsp; pmDTB&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Created:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2015-04-08&amp;nbsp; 10:57:38 UTC&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Image Type:&amp;nbsp;&amp;nbsp; PowerPC Linux Flat Device Tree (uncompressed)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Data Size:&amp;nbsp;&amp;nbsp;&amp;nbsp; 14821 Bytes = 14.5 KiB&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Load Address: 06000000&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Entry Point:&amp;nbsp; 00000000&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Verifying Checksum ... OK&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Booting using the fdt blob at 0x6000000&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Uncompressing Kernel Image ... OK&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Loading Ramdisk to 2f6e0000, end 2ffff4dd ... OK&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Loading Device Tree to 03ff9000, end 03fff9e4 ... OK&lt;/P&gt;&lt;P&gt;WARNING: could not find compatible node fsl-usb2-dr: FDT_ERR_NOTFOUND.&lt;/P&gt;&lt;P&gt;## Transferring control to Linux (at address 00000000) ...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Booting using OF flat tree...&lt;/P&gt;&lt;P&gt;/********************************************************************************************/&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Code is crashing at head_32.S:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;flush_tlbs:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lis r10,0x40&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1:addic. r10,r10,-0x1000&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; tlbie r10&amp;nbsp; &amp;lt;-- Kernel halts after this instruction&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; bgt 1b&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sync&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; blr&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="mso-bidi-language: AR-SA; mso-fareast-language: EN-US; mso-bidi-font-family: 'Times New Roman'; mso-ascii-theme-font: minor-latin; line-height: 115%; color: #000000; font-size: 11pt; mso-ansi-language: EN-US; mso-hansi-theme-font: minor-latin; mso-fareast-theme-font: minor-latin; font-family: 'Calibri','sans-serif'; mso-fareast-font-family: Calibri; mso-bidi-theme-font: minor-bidi;"&gt;I don't understand why kernel needs to override current TLB instead of creating a new one.&amp;nbsp; Has anybody faced a similar problem?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="mso-bidi-language: AR-SA; mso-fareast-language: EN-US; mso-bidi-font-family: 'Times New Roman'; mso-ascii-theme-font: minor-latin; line-height: 115%; color: #000000; font-size: 11pt; mso-ansi-language: EN-US; mso-hansi-theme-font: minor-latin; mso-fareast-theme-font: minor-latin; font-family: 'Calibri','sans-serif'; mso-fareast-font-family: Calibri; mso-bidi-theme-font: minor-bidi;"&gt;Thanks in advanced,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="mso-bidi-language: AR-SA; mso-fareast-language: EN-US; mso-bidi-font-family: 'Times New Roman'; mso-ascii-theme-font: minor-latin; line-height: 115%; color: #000000; font-size: 11pt; mso-ansi-language: EN-US; mso-hansi-theme-font: minor-latin; mso-fareast-theme-font: minor-latin; font-family: 'Calibri','sans-serif'; mso-fareast-font-family: Calibri; mso-bidi-theme-font: minor-bidi;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="mso-bidi-language: AR-SA; mso-fareast-language: EN-US; mso-bidi-font-family: 'Times New Roman'; mso-ascii-theme-font: minor-latin; line-height: 115%; color: #000000; font-size: 11pt; mso-ansi-language: EN-US; mso-hansi-theme-font: minor-latin; mso-fareast-theme-font: minor-latin; font-family: 'Calibri','sans-serif'; mso-fareast-font-family: Calibri; mso-bidi-theme-font: minor-bidi;"&gt;Maria&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Apr 2015 12:27:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/P-Series/Kernel-halts-while-invalidating-TLB/m-p/393041#M2169</guid>
      <dc:creator>masasi</dc:creator>
      <dc:date>2015-04-09T12:27:28Z</dc:date>
    </item>
    <item>
      <title>Re: Kernel halts while invalidating TLB</title>
      <link>https://community.nxp.com/t5/P-Series/Kernel-halts-while-invalidating-TLB/m-p/393042#M2170</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;P1012 has an e500 core which does not implement the tlbie instruction and is not supported by head_32.S.&amp;nbsp; You need to build an e500 kernel instead, such as mpc85xx_defconfig.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Apr 2015 21:34:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/P-Series/Kernel-halts-while-invalidating-TLB/m-p/393042#M2170</guid>
      <dc:creator>scottwood</dc:creator>
      <dc:date>2015-04-09T21:34:04Z</dc:date>
    </item>
  </channel>
</rss>

