<?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: Problem while debugging RAM based u-boot image on P1022 based custome board</title>
    <link>https://community.nxp.com/t5/P-Series/Problem-while-debugging-RAM-based-u-boot-image-on-P1022-based/m-p/500135#M3071</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Indeed, based on the small size of the SDRAM plus [1] and [2] this is not officially supported. Is not only a problem for the initial memory initialization, but also that u-boot is not just a simple bare-metal application (it relocates itself before second stage to DDR - and you'll need to make some important hacks into u-boot code to avoid the relocation + the DDR initialization made by u-boot).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Marius&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[1]&lt;A href="http://www.denx.de/wiki/view/DULG/CanUBootBeConfiguredSuchThatItCanBeStartedInRAM" title="http://www.denx.de/wiki/view/DULG/CanUBootBeConfiguredSuchThatItCanBeStartedInRAM"&gt;CanUBootBeConfiguredSuchThatItCanBeStartedInRAM &amp;lt; DULG &amp;lt; DENX&lt;/A&gt; &lt;/P&gt;&lt;P&gt;[2] &lt;A href="http://stackoverflow.com/questions/5218449/loading-u-boot-in-memory-instead-of-flashing-it" title="http://stackoverflow.com/questions/5218449/loading-u-boot-in-memory-instead-of-flashing-it"&gt;http://stackoverflow.com/questions/5218449/loading-u-boot-in-memory-instead-of-flashing-it&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 25 Mar 2016 16:16:51 GMT</pubDate>
    <dc:creator>marius_grigoras</dc:creator>
    <dc:date>2016-03-25T16:16:51Z</dc:date>
    <item>
      <title>Problem while debugging RAM based u-boot image on P1022 based custome board</title>
      <link>https://community.nxp.com/t5/P-Series/Problem-while-debugging-RAM-based-u-boot-image-on-P1022-based/m-p/500123#M3059</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We are using SDK version 1.6, codewarrior 10.4 and uSB tap to bringup our P1022 processor based custom board.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Through codewarrior, uboot elf file is successfully copied to DDR location 0x11000000 and while trying to execute from _start address 0x11001000 we are getting exception in fdt_fixup_phy_connection() function of fdt.c file.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I had attached the init script file used to initialize the core before downloading the u-boot image.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please let us any correction needs to be done either in this init script file or in the u-boot source to successfully boot the u-boot image from RAM through codewarrior.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-337277"&gt;P1022DS_init_core.tcl.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Mar 2016 15:23:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/P-Series/Problem-while-debugging-RAM-based-u-boot-image-on-P1022-based/m-p/500123#M3059</guid>
      <dc:creator>senthil_k</dc:creator>
      <dc:date>2016-03-23T15:23:56Z</dc:date>
    </item>
    <item>
      <title>Re: Problem while debugging RAM based u-boot image on P1022 based custome board</title>
      <link>https://community.nxp.com/t5/P-Series/Problem-while-debugging-RAM-based-u-boot-image-on-P1022-based/m-p/500124#M3060</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; trying to execute from _start address 0x11001000&lt;/P&gt;&lt;P&gt;Please use address 0x1107F000&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Mar 2016 16:34:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/P-Series/Problem-while-debugging-RAM-based-u-boot-image-on-P1022-based/m-p/500124#M3060</guid>
      <dc:creator>ufedor</dc:creator>
      <dc:date>2016-03-23T16:34:25Z</dc:date>
    </item>
    <item>
      <title>Re: Problem while debugging RAM based u-boot image on P1022 based custome board</title>
      <link>https://community.nxp.com/t5/P-Series/Problem-while-debugging-RAM-based-u-boot-image-on-P1022-based/m-p/500125#M3061</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thanks for your response. I tried as you mentioned, i had rebuild the uboot image with _start @0x1107f000 but no improvement while debugging with codewarrior. Still i am getting exception in fdt_fixup_phy_connection() function of fdt.c file.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Mar 2016 05:04:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/P-Series/Problem-while-debugging-RAM-based-u-boot-image-on-P1022-based/m-p/500125#M3061</guid>
      <dc:creator>senthil_k</dc:creator>
      <dc:date>2016-03-24T05:04:29Z</dc:date>
    </item>
    <item>
      <title>Re: Problem while debugging RAM based u-boot image on P1022 based custome board</title>
      <link>https://community.nxp.com/t5/P-Series/Problem-while-debugging-RAM-based-u-boot-image-on-P1022-based/m-p/500126#M3062</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Which SDK you're using?&lt;/P&gt;&lt;P&gt;Are you working with NOR image?&lt;/P&gt;&lt;P&gt;Please provide the U-Boot binary image for inspection.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Mar 2016 05:11:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/P-Series/Problem-while-debugging-RAM-based-u-boot-image-on-P1022-based/m-p/500126#M3062</guid>
      <dc:creator>ufedor</dc:creator>
      <dc:date>2016-03-24T05:11:12Z</dc:date>
    </item>
    <item>
      <title>Re: Problem while debugging RAM based u-boot image on P1022 based custome board</title>
      <link>https://community.nxp.com/t5/P-Series/Problem-while-debugging-RAM-based-u-boot-image-on-P1022-based/m-p/500127#M3063</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Which SDK you're using?&lt;/P&gt;&lt;P&gt;I am using SDK 1.6 (QorIQ-SDK-V1.6-20140619-yocto).&lt;/P&gt;&lt;P&gt;Are you working with NOR image?&lt;/P&gt;&lt;P&gt;I am trying the run the RAM based uboot image (u-boot.elf) created under "QorIQ-SDK-V1.6-20140619-yocto/build_p1022ds_release/tmp/work/p1022ds-fsl-linux-gnuspe/u-boot/2014.01+fslgit-r0/git/P1022DS_SDCARD"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please find the attached u-boot elf image and its system.map file.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Mar 2016 05:25:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/P-Series/Problem-while-debugging-RAM-based-u-boot-image-on-P1022-based/m-p/500127#M3063</guid>
      <dc:creator>senthil_k</dc:creator>
      <dc:date>2016-03-24T05:25:05Z</dc:date>
    </item>
    <item>
      <title>Re: Problem while debugging RAM based u-boot image on P1022 based custome board</title>
      <link>https://community.nxp.com/t5/P-Series/Problem-while-debugging-RAM-based-u-boot-image-on-P1022-based/m-p/500128#M3064</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please provide binary image - not ELF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Mar 2016 05:30:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/P-Series/Problem-while-debugging-RAM-based-u-boot-image-on-P1022-based/m-p/500128#M3064</guid>
      <dc:creator>ufedor</dc:creator>
      <dc:date>2016-03-24T05:30:21Z</dc:date>
    </item>
    <item>
      <title>Re: Problem while debugging RAM based u-boot image on P1022 based custome board</title>
      <link>https://community.nxp.com/t5/P-Series/Problem-while-debugging-RAM-based-u-boot-image-on-P1022-based/m-p/500129#M3065</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please find the attached binary image file.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Mar 2016 05:56:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/P-Series/Problem-while-debugging-RAM-based-u-boot-image-on-P1022-based/m-p/500129#M3065</guid>
      <dc:creator>senthil_k</dc:creator>
      <dc:date>2016-03-24T05:56:16Z</dc:date>
    </item>
    <item>
      <title>Re: Problem while debugging RAM based u-boot image on P1022 based custome board</title>
      <link>https://community.nxp.com/t5/P-Series/Problem-while-debugging-RAM-based-u-boot-image-on-P1022-based/m-p/500130#M3066</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For sdcard&amp;nbsp; uboot debugging on low-end SoCes, please refer to &lt;A href="https://community.nxp.com/docs/DOC-100403"&gt;CodeWarrior U-Boot Debugging&lt;/A&gt;​, Chapter 7.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Adrian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Mar 2016 07:56:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/P-Series/Problem-while-debugging-RAM-based-u-boot-image-on-P1022-based/m-p/500130#M3066</guid>
      <dc:creator>addiyi</dc:creator>
      <dc:date>2016-03-24T07:56:27Z</dc:date>
    </item>
    <item>
      <title>Re: Problem while debugging RAM based u-boot image on P1022 based custome board</title>
      <link>https://community.nxp.com/t5/P-Series/Problem-while-debugging-RAM-based-u-boot-image-on-P1022-based/m-p/500131#M3067</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Adrian,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had seen that chapter 7 of that document and as per that it is possible to debug the uboot image through CodeWarrior only after flashing the image to SPI Flash / SDCard.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any way to download the uboot elf image to DDR and run/debug it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Mar 2016 08:30:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/P-Series/Problem-while-debugging-RAM-based-u-boot-image-on-P1022-based/m-p/500131#M3067</guid>
      <dc:creator>senthil_k</dc:creator>
      <dc:date>2016-03-24T08:30:19Z</dc:date>
    </item>
    <item>
      <title>Re: Problem while debugging RAM based u-boot image on P1022 based custome board</title>
      <link>https://community.nxp.com/t5/P-Series/Problem-while-debugging-RAM-based-u-boot-image-on-P1022-based/m-p/500132#M3068</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please refer to the "config_sram_p1022ds.dat" provided in the SDK 1.6:&lt;/P&gt;&lt;P&gt;&lt;A href="http://git.freescale.com/git/cgit.cgi/ppc/sdk/boot-format.git/tree/config_sram_p1022ds.dat?id=fsl-sdk-v1.6" title="http://git.freescale.com/git/cgit.cgi/ppc/sdk/boot-format.git/tree/config_sram_p1022ds.dat?id=fsl-sdk-v1.6"&gt;sdk/boot-format.git - Freescale PowerPC SD/SPI boot tool&lt;/A&gt;&lt;/P&gt;&lt;P&gt;From the DAT file it is clear that the code is intended to be loaded to 0xF8F80000 (L2SRAM) and executed from there.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Mar 2016 12:14:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/P-Series/Problem-while-debugging-RAM-based-u-boot-image-on-P1022-based/m-p/500132#M3068</guid>
      <dc:creator>ufedor</dc:creator>
      <dc:date>2016-03-24T12:14:18Z</dc:date>
    </item>
    <item>
      <title>Re: Problem while debugging RAM based u-boot image on P1022 based custome board</title>
      <link>https://community.nxp.com/t5/P-Series/Problem-while-debugging-RAM-based-u-boot-image-on-P1022-based/m-p/500133#M3069</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use the sdram initialization file and make the following changes:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#SDRAM bases address&lt;/P&gt;&lt;P&gt;mem [CCSR 0x20100] = 0x11000000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#MMU for SDRAM&lt;/P&gt;&lt;P&gt;reg ${CAM_GROUP}L2MMU_CAM5 = 0x400001C0FC0800001100000011000001&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, in your uboot you need to have:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#define CONFIG_SYS_TEXT_BASE 0x11000000&lt;/P&gt;&lt;P&gt;#define CONFIG_RESET_VECTOR_ADDRESS 0x1107fffc&lt;/P&gt;&lt;P&gt;#define CONFIG_SYS_RAMBOOT&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;The CodeWarrior will copy the uboot elf&amp;nbsp; to the SRAM area first, then u-boot initialize DDR controller for example, then relocates itself to DDR RAM.&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;Adrian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Mar 2016 10:00:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/P-Series/Problem-while-debugging-RAM-based-u-boot-image-on-P1022-based/m-p/500133#M3069</guid>
      <dc:creator>addiyi</dc:creator>
      <dc:date>2016-03-25T10:00:36Z</dc:date>
    </item>
    <item>
      <title>Re: Problem while debugging RAM based u-boot image on P1022 based custome board</title>
      <link>https://community.nxp.com/t5/P-Series/Problem-while-debugging-RAM-based-u-boot-image-on-P1022-based/m-p/500134#M3070</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Adrian,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your response.&lt;/P&gt;&lt;P&gt;I tried as you suggested but still i am getting the exception when the uboot start executing.&lt;/P&gt;&lt;P&gt;1. SRAM size in P1022 is only 256K, and the elf image size is 2.4MB; how the CodeWarrior will be able to copy the uboot elf to the SRAM.&lt;/P&gt;&lt;P&gt;2. SRAM base address is mapped to 0x11000000 and the end address is 0x1103FFFF; will setting "CONFIG_RESET_VECTOR_ADDRESS" to 0x1107fffc creates any exception as this location is in unmapped region as per sdram initialization file.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Mar 2016 15:11:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/P-Series/Problem-while-debugging-RAM-based-u-boot-image-on-P1022-based/m-p/500134#M3070</guid>
      <dc:creator>senthil_k</dc:creator>
      <dc:date>2016-03-25T15:11:01Z</dc:date>
    </item>
    <item>
      <title>Re: Problem while debugging RAM based u-boot image on P1022 based custome board</title>
      <link>https://community.nxp.com/t5/P-Series/Problem-while-debugging-RAM-based-u-boot-image-on-P1022-based/m-p/500135#M3071</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Indeed, based on the small size of the SDRAM plus [1] and [2] this is not officially supported. Is not only a problem for the initial memory initialization, but also that u-boot is not just a simple bare-metal application (it relocates itself before second stage to DDR - and you'll need to make some important hacks into u-boot code to avoid the relocation + the DDR initialization made by u-boot).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Marius&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[1]&lt;A href="http://www.denx.de/wiki/view/DULG/CanUBootBeConfiguredSuchThatItCanBeStartedInRAM" title="http://www.denx.de/wiki/view/DULG/CanUBootBeConfiguredSuchThatItCanBeStartedInRAM"&gt;CanUBootBeConfiguredSuchThatItCanBeStartedInRAM &amp;lt; DULG &amp;lt; DENX&lt;/A&gt; &lt;/P&gt;&lt;P&gt;[2] &lt;A href="http://stackoverflow.com/questions/5218449/loading-u-boot-in-memory-instead-of-flashing-it" title="http://stackoverflow.com/questions/5218449/loading-u-boot-in-memory-instead-of-flashing-it"&gt;http://stackoverflow.com/questions/5218449/loading-u-boot-in-memory-instead-of-flashing-it&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Mar 2016 16:16:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/P-Series/Problem-while-debugging-RAM-based-u-boot-image-on-P1022-based/m-p/500135#M3071</guid>
      <dc:creator>marius_grigoras</dc:creator>
      <dc:date>2016-03-25T16:16:51Z</dc:date>
    </item>
  </channel>
</rss>

