<?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のトピックi.MX8QXP Lauterbach MMU setup</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/i-MX8QXP-Lauterbach-MMU-setup/m-p/1225623#M168892</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Try to run Trace32/Lauterbach for imx8qxp running Linux.&lt;/P&gt;&lt;P&gt;I currently am using:&lt;/P&gt;&lt;P&gt;; Declare the MMU format to the debugger&lt;BR /&gt;; - table format is "LINUX"&lt;BR /&gt;; - table base address is at label "swapper_pg_dir"&lt;BR /&gt;; - kernel address translation&lt;BR /&gt;; Map the virtual kernel symbols to physical addresses to give&lt;BR /&gt;; the debugger access to it before CPU MMU is initialized&lt;/P&gt;&lt;P&gt;print "initializing debugger MMU..."&lt;BR /&gt;MMU.FORMAT LINUX swapper_pg_dir 0xFFFFFFC000000000--0xFFFFFFDF00000000 0x0000000080000000&lt;BR /&gt;&lt;BR /&gt;; prepare debugger translation&lt;BR /&gt;TRANSLATION.COMMON 0xFFFFFFBF00000000--0ffffffffffffffff ; common area for kernel and processes&lt;BR /&gt;TRANSLATION.TableWalk ON ; debugger uses a table walk to decode virtual addresses&lt;BR /&gt;TRANSlation.ON ; switch on debugger(!) address translation&lt;/P&gt;&lt;P&gt;; Initialize Linux Awareness&lt;/P&gt;&lt;P&gt;; Note that the Linux awareness needs the kernel symbols to work&lt;BR /&gt;&lt;BR /&gt;PRINT "initializing multitask support..."&lt;BR /&gt;MENU.ReProgram ~~/eldon/linux/linux-3.x/linux ; loads Linux menu (linux.men)&lt;BR /&gt;TASK.CONFIG ~~/eldon/linux/linux-3.x/linux3 ; loads Linux awareness (linux.t32)&lt;/P&gt;&lt;P&gt;However this gives error looking up kernel structures when I try to load kernel awareness.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for any suggetsions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 03 Feb 2021 14:33:22 GMT</pubDate>
    <dc:creator>eldon_hiebert</dc:creator>
    <dc:date>2021-02-03T14:33:22Z</dc:date>
    <item>
      <title>i.MX8QXP Lauterbach MMU setup</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX8QXP-Lauterbach-MMU-setup/m-p/1225623#M168892</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Try to run Trace32/Lauterbach for imx8qxp running Linux.&lt;/P&gt;&lt;P&gt;I currently am using:&lt;/P&gt;&lt;P&gt;; Declare the MMU format to the debugger&lt;BR /&gt;; - table format is "LINUX"&lt;BR /&gt;; - table base address is at label "swapper_pg_dir"&lt;BR /&gt;; - kernel address translation&lt;BR /&gt;; Map the virtual kernel symbols to physical addresses to give&lt;BR /&gt;; the debugger access to it before CPU MMU is initialized&lt;/P&gt;&lt;P&gt;print "initializing debugger MMU..."&lt;BR /&gt;MMU.FORMAT LINUX swapper_pg_dir 0xFFFFFFC000000000--0xFFFFFFDF00000000 0x0000000080000000&lt;BR /&gt;&lt;BR /&gt;; prepare debugger translation&lt;BR /&gt;TRANSLATION.COMMON 0xFFFFFFBF00000000--0ffffffffffffffff ; common area for kernel and processes&lt;BR /&gt;TRANSLATION.TableWalk ON ; debugger uses a table walk to decode virtual addresses&lt;BR /&gt;TRANSlation.ON ; switch on debugger(!) address translation&lt;/P&gt;&lt;P&gt;; Initialize Linux Awareness&lt;/P&gt;&lt;P&gt;; Note that the Linux awareness needs the kernel symbols to work&lt;BR /&gt;&lt;BR /&gt;PRINT "initializing multitask support..."&lt;BR /&gt;MENU.ReProgram ~~/eldon/linux/linux-3.x/linux ; loads Linux menu (linux.men)&lt;BR /&gt;TASK.CONFIG ~~/eldon/linux/linux-3.x/linux3 ; loads Linux awareness (linux.t32)&lt;/P&gt;&lt;P&gt;However this gives error looking up kernel structures when I try to load kernel awareness.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for any suggetsions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Feb 2021 14:33:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX8QXP-Lauterbach-MMU-setup/m-p/1225623#M168892</guid>
      <dc:creator>eldon_hiebert</dc:creator>
      <dc:date>2021-02-03T14:33:22Z</dc:date>
    </item>
    <item>
      <title>Re: i.MX8QXP Lauterbach MMU setup</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX8QXP-Lauterbach-MMU-setup/m-p/1226362#M168950</link>
      <description>&lt;P&gt;You need to make sure that the kernel has been compiled with debug info enabled. Please check page 16 of the following document for more info:&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.lauterbach.com/pdf/training_rtos_linux.pdf#page=16" target="_blank" rel="noopener"&gt;https://www.lauterbach.com/pdf/training_rtos_linux.pdf#page=16&lt;/A&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;MMU.FORMAT LINUX swapper_pg_dir 0xFFFFFFC000000000--0xFFFFFFDF00000000 0x0000000080000000&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;The used addresses and format could be wrong:&lt;/P&gt;&lt;P&gt;Format: if CONFIG_SWAP is set then please use LINUXSWAP3, use otherwise LINUX&lt;/P&gt;&lt;P&gt;For the addresses, you can use&lt;/P&gt;&lt;P&gt;MMU.FORMAT &amp;lt;format&amp;gt; swapper_pg_dir_text--(_end-1) &amp;lt;_text_phys_addr&amp;gt;&lt;/P&gt;&lt;P&gt;You can find &amp;lt;_text_phys_addr&amp;gt; with the command MMU.List PageTable&amp;nbsp;_text&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; TRANSLATION.COMMON 0xFFFFFFBF00000000--0ffffffffffffffff&lt;/P&gt;&lt;DIV class="moz-cite-prefix"&gt;use instead TRANSLATION.COMMON 0xF000000000000000--0ffffffffffffffff&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="moz-cite-prefix"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="moz-cite-prefix"&gt;Alternatively, you can use the script &lt;SPAN&gt;~~/demo/&lt;/SPAN&gt;&lt;SPAN&gt;&amp;lt;arm|arm64&amp;gt;&lt;/SPAN&gt;&lt;SPAN&gt;/kernel/linux/board/generic-template/detect_translation.cmm &lt;/SPAN&gt;&lt;SPAN&gt;to detect the settings.&lt;/SPAN&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 04 Feb 2021 11:02:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX8QXP-Lauterbach-MMU-setup/m-p/1226362#M168950</guid>
      <dc:creator>rweiss</dc:creator>
      <dc:date>2021-02-04T11:02:16Z</dc:date>
    </item>
  </channel>
</rss>

