<?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>topic Re: IMX 53 change RAM size. U-boot or/and Linux . in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/IMX-53-change-RAM-size-U-boot-or-and-Linux/m-p/229479#M16947</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you really much. It seems like that fixed the problem. Simply changed to&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;#define PHYS_SDRAM_1&amp;nbsp;&amp;nbsp; &lt;/TD&gt;&lt;TD&gt; CSD0_BASE_ADDR&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;#define PHYS_SDRAM_1_SIZE&amp;nbsp;&amp;nbsp;&amp;nbsp; (256 * 1024 * 1024)&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;#define PHYS_SDRAM_2&amp;nbsp;&amp;nbsp; &lt;/TD&gt;&lt;TD&gt; CSD1_BASE_ADDR&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;#define PHYS_SDRAM_2_SIZE&amp;nbsp;&amp;nbsp;&amp;nbsp; (256 * 1024 * 1024)&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;in mx53_loco.h without modifying flash_header.S !&lt;/P&gt;&lt;P&gt;And lesson learned - memory initialization is performed only in u-boot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 Mar 2013 08:55:00 GMT</pubDate>
    <dc:creator>janiscoders</dc:creator>
    <dc:date>2013-03-19T08:55:00Z</dc:date>
    <item>
      <title>IMX 53 change RAM size. U-boot or/and Linux .</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX-53-change-RAM-size-U-boot-or-and-Linux/m-p/229477#M16945</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, we have a custom board based on imx53 QSB, but we have 4*128 MB of RAM (512MB) unlike QSB which has 4*256 MB (1GB).&lt;/P&gt;&lt;P&gt;Everything was working fine until one day we noticed that on large data copying or when RAM is used a lot, then our board (Linux) just hangs and everything stops without any feedback.&lt;/P&gt;&lt;P&gt;I didn't change anything in RAM configuration, because everything was fine. If I make a load on RAM and watch the free memory using free command, then I see that everything hangs around 256MB of memory usage.&lt;/P&gt;&lt;P&gt;I've tried passing the mem=512M value from u-boot, but still the hanging issue. If I pass around 240M, then everything is fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So the questions are - could this be a RAM issue? Maybe this is the CS (Chip Select) register issue, because it thinks it has 512Mb. Does everything is reinitialized in Linux from zero? OR memory is initialized in u-boot and fixing there will fix Linux too? Because u-boot is working fine and I don't want to spend time messing there and have no results in Linux.&lt;/P&gt;&lt;P&gt;Could you point me to files in source code where those values can be modified?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Mar 2013 15:31:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX-53-change-RAM-size-U-boot-or-and-Linux/m-p/229477#M16945</guid>
      <dc:creator>janiscoders</dc:creator>
      <dc:date>2013-03-18T15:31:12Z</dc:date>
    </item>
    <item>
      <title>Re: IMX 53 change RAM size. U-boot or/and Linux .</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX-53-change-RAM-size-U-boot-or-and-Linux/m-p/229478#M16946</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The memory initialization is done in the bootloader and the kernel just uses whatever the bootloder has configured.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In U-boot, you can look at the memory initializations at (using mx53 qsb as example here):&lt;/P&gt;&lt;P&gt;&lt;A href="http://git.freescale.com/git/cgit.cgi/imx/uboot-imx.git/tree/board/freescale/mx53_loco/flash_header.S?h=imx_v2009.08" title="http://git.freescale.com/git/cgit.cgi/imx/uboot-imx.git/tree/board/freescale/mx53_loco/flash_header.S?h=imx_v2009.08"&gt;uboot-imx.git - Freescale i.MX u-boot Tree&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And the RAM size is also passed in the board config file:&lt;/P&gt;&lt;P&gt;&lt;A href="http://git.freescale.com/git/cgit.cgi/imx/uboot-imx.git/tree/include/configs/mx53_loco.h?h=imx_v2009.08" title="http://git.freescale.com/git/cgit.cgi/imx/uboot-imx.git/tree/include/configs/mx53_loco.h?h=imx_v2009.08"&gt;http://git.freescale.com/git/cgit.cgi/imx/uboot-imx.git/tree/include/configs/mx53_loco.h?h=imx_v2009.08&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Search for &lt;CODE&gt;PHYS_SDRAM_1.&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fabio Estevam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Mar 2013 00:14:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX-53-change-RAM-size-U-boot-or-and-Linux/m-p/229478#M16946</guid>
      <dc:creator>fabio_estevam</dc:creator>
      <dc:date>2013-03-19T00:14:35Z</dc:date>
    </item>
    <item>
      <title>Re: IMX 53 change RAM size. U-boot or/and Linux .</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX-53-change-RAM-size-U-boot-or-and-Linux/m-p/229479#M16947</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you really much. It seems like that fixed the problem. Simply changed to&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;#define PHYS_SDRAM_1&amp;nbsp;&amp;nbsp; &lt;/TD&gt;&lt;TD&gt; CSD0_BASE_ADDR&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;#define PHYS_SDRAM_1_SIZE&amp;nbsp;&amp;nbsp;&amp;nbsp; (256 * 1024 * 1024)&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;#define PHYS_SDRAM_2&amp;nbsp;&amp;nbsp; &lt;/TD&gt;&lt;TD&gt; CSD1_BASE_ADDR&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;#define PHYS_SDRAM_2_SIZE&amp;nbsp;&amp;nbsp;&amp;nbsp; (256 * 1024 * 1024)&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;in mx53_loco.h without modifying flash_header.S !&lt;/P&gt;&lt;P&gt;And lesson learned - memory initialization is performed only in u-boot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Mar 2013 08:55:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX-53-change-RAM-size-U-boot-or-and-Linux/m-p/229479#M16947</guid>
      <dc:creator>janiscoders</dc:creator>
      <dc:date>2013-03-19T08:55:00Z</dc:date>
    </item>
    <item>
      <title>Re: IMX 53 change RAM size. U-boot or/and Linux .</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX-53-change-RAM-size-U-boot-or-and-Linux/m-p/229480#M16948</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Fabio,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm currently meeting the same problem on Vybrid. Our custom board uses 256 MB DDR3 (128 MB x 16), compared to Tower which uses 128 MB ddr. So I changed the value of PHYS_SDRAM_1_SIZE from (128 * 1024 * 1024) to (256 * 1024 * 1024) in both vybrid.h and vybrid_iram.h in include/configs/. Nothing changed though, still printing "DRAM:&amp;nbsp; 128 MiB" in the U-Boot start sequence.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In board/freescale/vybrid/vybrid.c I noticed that function dram_init() sets a variable gd-&amp;gt;ram_size to the value computed in ddr_ctrl_init(). Using md command, I displayed values of the registers used to compute the value (registers DDR_CR001, DDR_CR073, DDR_CR078) and calculated it manually, getting value 0x00200000, which does not make sense.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Don't you please see where the problem could be? Should I somewhere set the 16 bit word length instead of changing PHYS_SDRAM_1_SIZE?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you, Petr&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 01 Dec 2013 11:26:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX-53-change-RAM-size-U-boot-or-and-Linux/m-p/229480#M16948</guid>
      <dc:creator>kubiznak_petr</dc:creator>
      <dc:date>2013-12-01T11:26:40Z</dc:date>
    </item>
    <item>
      <title>Re: IMX 53 change RAM size. U-boot or/and Linux .</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX-53-change-RAM-size-U-boot-or-and-Linux/m-p/229481#M16949</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Petr,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not familiar with the Vybrid DDR controller.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would suggest you to start a new thread so that someone knowledgeable on this line could assist.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fabio Estevam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 01 Dec 2013 14:52:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX-53-change-RAM-size-U-boot-or-and-Linux/m-p/229481#M16949</guid>
      <dc:creator>fabio_estevam</dc:creator>
      <dc:date>2013-12-01T14:52:28Z</dc:date>
    </item>
  </channel>
</rss>

