<?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: Loading image to NAND in imx28</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Loading-image-to-NAND-in-imx28/m-p/177793#M7011</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Am I suppose to change something in oemaddrtab_cfg.inc ? [WINCE600PLATFORM\iMX28-EVK-PDK1_9\SRC\INC]&lt;/P&gt;&lt;P&gt;in the g_oalAddressTable?&lt;/P&gt;&lt;P&gt;For now - this is the g_oalAddressTable (by BSP's definitions - I haven't touched them so far) -&lt;/P&gt;&lt;P&gt;g_oalAddressTable&lt;/P&gt;&lt;P&gt;DCD 0x90000000, 0x80000000, 1&lt;/P&gt;&lt;P&gt;DCD 0x90100000, 0x60000000, 1 ; SPI NOR flash&lt;/P&gt;&lt;P&gt;DCD 0x80000000, 0x40000000, 128 ; RAM image mapping&lt;/P&gt;&lt;P&gt;DCD 0x88000000, 0x00000000, 1 ; On-chip RAM&lt;/P&gt;&lt;P&gt;DCD 0x00000000, 0x00000000, 0 ; Terminate table&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;According to what I've read on the internet - there supposed to be a region for&amp;nbsp;NANDIMAGE for&amp;nbsp;the eboot to download the image to NAND flash.&lt;/P&gt;&lt;P&gt;Am I suppose to change this table? And how&amp;nbsp;?&lt;/P&gt;&lt;P&gt;Thanks alot,&lt;/P&gt;&lt;P&gt;Shany&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 30 Jul 2012 05:19:03 GMT</pubDate>
    <dc:creator>shany</dc:creator>
    <dc:date>2012-07-30T05:19:03Z</dc:date>
    <item>
      <title>Loading image to NAND in imx28</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Loading-image-to-NAND-in-imx28/m-p/177789#M7007</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm trying to load an image to NAND&amp;nbsp; in imx28.&lt;/P&gt;&lt;P&gt;In the function -&lt;/P&gt;&lt;P&gt;OEMVerifyMemory(DWORD dwStartAddr, DWORD dwLength)&lt;/P&gt;&lt;P&gt;[PLATFORM\iMX28-EVK-PDK1_9\SRC\BOOTLOADER\COMMON\main.c]&lt;/P&gt;&lt;P&gt;The addresses parameters are: dwStartAddr = 0x87F00000,&lt;/P&gt;&lt;P&gt;dwPhysVerifyStart = 0x47F00000, length = 0xF971140.&lt;/P&gt;&lt;P&gt;These addresses will result in loading image to SD in the following values -&lt;/P&gt;&lt;P&gt;KITLOutputDebugString(&lt;SPAN style=": ; color: #A31515; font-size: 2; "&gt;"INFO: Downloading NK SD/MMC image.\r\n"&lt;/SPAN&gt;&lt;SPAN style=": ; font-size: 2; "&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;g_ImageType = IMAGE_TYPE_NK;&lt;/P&gt;&lt;P&gt;g_ImageMemory = IMAGE_MEMORY_SD;&lt;/P&gt;&lt;P&gt;My question is this - if I want to change the load to NAND instead of SD, the addresses have to be changed. I don't understand entirely why there values are the way they are and where exactly they are set (the dwStartAddr). &amp;nbsp;&lt;/P&gt;&lt;P&gt;If I insert the following code at the top of this function - OEMVerifyMemory(DWORD dwStartAddr, DWORD dwLength):&lt;/P&gt;&lt;P&gt;DWORD* pdwStartAddr = &amp;amp;dwStartAddr;&lt;/P&gt;&lt;P&gt;dwPhysVerifyStart = IMAGE_BOOT_NKIMAGE_NAND_PA_START;&lt;/P&gt;&lt;P&gt;dwPhysVerifyEnd = dwPhysVerifyStart + dwLength - 1;&lt;/P&gt;&lt;P&gt;pdwStartAddr = OALPAtoCA(dwPhysVerifyStart);&lt;/P&gt;&lt;P&gt;dwStartAddr = *pdwStartAddr;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now I see that the flash is indeed programmed, however, when reset&amp;nbsp;- nothing happens, the system&amp;nbsp;isn't re-boot&amp;nbsp;as if there is nothing in the&amp;nbsp;NAND.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Am I doing this procedure correctly?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Shany,&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jul 2012 14:15:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Loading-image-to-NAND-in-imx28/m-p/177789#M7007</guid>
      <dc:creator>shany</dc:creator>
      <dc:date>2012-07-26T14:15:14Z</dc:date>
    </item>
    <item>
      <title>Re: Loading image to NAND in imx28</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Loading-image-to-NAND-in-imx28/m-p/177790#M7008</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The default BSP had already support NAND, you just need replace the platform buider parameter "IMGSDMMC" with "IMGNAND". You don't need modify that source code.&lt;/P&gt;&lt;P&gt;With the different IMG setting, the built out BIN image files will show different base address. Then EBoot will know it is for NAND or for SDMMC. You can reference to config.bib:&lt;/P&gt;&lt;P&gt;IF IMGNAND&lt;BR /&gt;; ROMOFFSET = (FLASH_PHYSICAL_ADDRESS - ROMSTART) % 0x100000000&lt;BR /&gt;; = (0x84200000 - 0x80200000) % 0x10000000 = 4200000&lt;BR /&gt;ROMOFFSET=4200000&lt;BR /&gt;ENDIF&lt;BR /&gt;IF IMGSDMMC&lt;BR /&gt;; ROMOFFSET = (FLASH PHYSICAL ADDRESS - ULDR_PHSYICAL_START) % 0x100000000&lt;BR /&gt;; = ( 0x87F00000 - 0x80200000 ) % 0x10000000 = 7D00000&lt;BR /&gt;ROMOFFSET=7d00000&lt;BR /&gt;ENDIF&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jul 2012 09:06:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Loading-image-to-NAND-in-imx28/m-p/177790#M7008</guid>
      <dc:creator>qiang_li-mpu_se</dc:creator>
      <dc:date>2012-07-27T09:06:48Z</dc:date>
    </item>
    <item>
      <title>Re: Loading image to NAND in imx28</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Loading-image-to-NAND-in-imx28/m-p/177791#M7009</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Thanks alot for yur response!&lt;/P&gt;&lt;P&gt;I'm sorry for my ignorance but canou please instruct men how to change this parameter ?&lt;/P&gt;&lt;P&gt;What I did was this:&lt;/P&gt;&lt;P&gt;I openned the project's properties (I'm working with WINCE6, Visual Studio 2005) in the "project" tab -&amp;gt;configuration properties -&amp;gt; Environment and changed the IMGSDMMC = 0, IMGNAND = 1.&lt;/P&gt;&lt;P&gt;Then, I build the project again and run it.&lt;/P&gt;&lt;P&gt;The outcome is the same - the debug port writes - &lt;SPAN style=": ; color: #A31515; font-size: 2; "&gt;"INFO: Downloading NK SD/MMC image".&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style=": ; color: #A31515; font-size: 2; "&gt;Am I changing these parameters's values correctly?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style=": ; color: #A31515; font-size: 2; "&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style=": ; color: #A31515; font-size: 2; "&gt;Shany&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 29 Jul 2012 11:24:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Loading-image-to-NAND-in-imx28/m-p/177791#M7009</guid>
      <dc:creator>shany</dc:creator>
      <dc:date>2012-07-29T11:24:30Z</dc:date>
    </item>
    <item>
      <title>Re: Loading image to NAND in imx28</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Loading-image-to-NAND-in-imx28/m-p/177792#M7010</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you are based on the Freescale default BSP, the modification should be OK from SDMMC to NAND. Maybe you had changed some other codes which caused such result.&lt;/P&gt;&lt;P&gt;Any way, another choice, in platform buider setting, you can select the image file from "nk.bin" to "nk.nb0", the default image file is "nk.bin", for "nk.nb0", you need key in it. Then when Eboot received the image file, it will let you select for SDMMC or NAND from debug serial port.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CITE&gt;shany cohen said:&lt;/CITE&gt;&lt;/P&gt;&lt;BLOCKQUOTE cite="http://imxcommunity.org/forum/topics/loading-image-to-nand-in-imx28?commentId=4103961%3AComment%3A77250&amp;amp;xg_source=msg_com_forum#4103961Comment77250"&gt;&lt;DIV&gt;&lt;DIV class="xg_user_generated"&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Thanks alot for yur response!&lt;/P&gt;&lt;P&gt;I'm sorry for my ignorance but canou please instruct men how to change this parameter ?&lt;/P&gt;&lt;P&gt;What I did was this:&lt;/P&gt;&lt;P&gt;I openned the project's properties (I'm working with WINCE6, Visual Studio 2005) in the "project" tab -&amp;gt;configuration properties -&amp;gt; Environment and changed the IMGSDMMC = 0, IMGNAND = 1.&lt;/P&gt;&lt;P&gt;Then, I build the project again and run it.&lt;/P&gt;&lt;P&gt;The outcome is the same - the debug port writes - &lt;SPAN style=": ; color: #A31515; font-size: 2; "&gt;"INFO: Downloading NK SD/MMC image".&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style=": ; color: #A31515; font-size: 2; "&gt;Am I changing these parameters's values correctly?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style=": ; color: #A31515; font-size: 2; "&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style=": ; color: #A31515; font-size: 2; "&gt;Shany&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jul 2012 01:03:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Loading-image-to-NAND-in-imx28/m-p/177792#M7010</guid>
      <dc:creator>qiang_li-mpu_se</dc:creator>
      <dc:date>2012-07-30T01:03:03Z</dc:date>
    </item>
    <item>
      <title>Re: Loading image to NAND in imx28</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Loading-image-to-NAND-in-imx28/m-p/177793#M7011</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Am I suppose to change something in oemaddrtab_cfg.inc ? [WINCE600PLATFORM\iMX28-EVK-PDK1_9\SRC\INC]&lt;/P&gt;&lt;P&gt;in the g_oalAddressTable?&lt;/P&gt;&lt;P&gt;For now - this is the g_oalAddressTable (by BSP's definitions - I haven't touched them so far) -&lt;/P&gt;&lt;P&gt;g_oalAddressTable&lt;/P&gt;&lt;P&gt;DCD 0x90000000, 0x80000000, 1&lt;/P&gt;&lt;P&gt;DCD 0x90100000, 0x60000000, 1 ; SPI NOR flash&lt;/P&gt;&lt;P&gt;DCD 0x80000000, 0x40000000, 128 ; RAM image mapping&lt;/P&gt;&lt;P&gt;DCD 0x88000000, 0x00000000, 1 ; On-chip RAM&lt;/P&gt;&lt;P&gt;DCD 0x00000000, 0x00000000, 0 ; Terminate table&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;According to what I've read on the internet - there supposed to be a region for&amp;nbsp;NANDIMAGE for&amp;nbsp;the eboot to download the image to NAND flash.&lt;/P&gt;&lt;P&gt;Am I suppose to change this table? And how&amp;nbsp;?&lt;/P&gt;&lt;P&gt;Thanks alot,&lt;/P&gt;&lt;P&gt;Shany&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jul 2012 05:19:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Loading-image-to-NAND-in-imx28/m-p/177793#M7011</guid>
      <dc:creator>shany</dc:creator>
      <dc:date>2012-07-30T05:19:03Z</dc:date>
    </item>
    <item>
      <title>Re: Loading image to NAND in imx28</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Loading-image-to-NAND-in-imx28/m-p/177794#M7012</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hello,&lt;/P&gt;&lt;P&gt;I've tried what you've suggested - change the imge file from nk.bin to nk.nb0.&lt;/P&gt;&lt;P&gt;This is the data recieved in the debug port (right after I selected "D", download image,&amp;nbsp;in the boot menu&amp;nbsp;-&lt;/P&gt;&lt;P dir="ltr"&gt;INFO: Storing boot configuration to NAND block [0x20A].&lt;/P&gt;&lt;P dir="ltr"&gt;INFO: Successfully store boot configuration to NAND!&lt;/P&gt;&lt;P dir="ltr"&gt;+InitSpecifiedEthDevice&lt;/P&gt;&lt;P dir="ltr"&gt;INFO: Trying to initialize USB RNDIS...&lt;/P&gt;&lt;P dir="ltr"&gt;INFO: MAC address: 0-11-22-33-44-0&lt;/P&gt;&lt;P dir="ltr"&gt;HostMiniInit:: !!&lt;/P&gt;&lt;P dir="ltr"&gt;Rndis:: initialization: with addr=0&lt;/P&gt;&lt;P dir="ltr"&gt;Rndis:: Address static map to addr=A8000000&lt;/P&gt;&lt;P dir="ltr"&gt;Rndis:: initialization!&lt;/P&gt;&lt;P dir="ltr"&gt;Rndis:: PDDInit Success!&lt;/P&gt;&lt;P dir="ltr"&gt;Rndis:: Get MAC address 1104,3322,44&lt;/P&gt;&lt;P dir="ltr"&gt;RndisMdd:: PDD's max RX buffer = [8192] bytes.&lt;/P&gt;&lt;P dir="ltr"&gt;Rndis:: initialization: Success&lt;/P&gt;&lt;P dir="ltr"&gt;HostMini:: New filter set: [0x0] --&amp;gt; [0xB]&lt;/P&gt;&lt;P dir="ltr"&gt;INFO: MAC address: 4-11-22-33-44-0&lt;/P&gt;&lt;P dir="ltr"&gt;-BLMenu .&lt;/P&gt;&lt;P dir="ltr"&gt;INFO: Using device name: 'MX2817408'&lt;/P&gt;&lt;P dir="ltr"&gt;+EbootSendBootmeAndWaitForTftp&lt;/P&gt;&lt;P dir="ltr"&gt;Sent BOOTME to 255.255.255.255&lt;/P&gt;&lt;P dir="ltr"&gt;Packet has the following data:&lt;/P&gt;&lt;P dir="ltr"&gt;boot.bin[NULL]octet[NULL]&lt;/P&gt;&lt;P dir="ltr"&gt;TFTP packet could have 1 name/value pairs&lt;/P&gt;&lt;P dir="ltr"&gt;Locked Down Link 1&lt;/P&gt;&lt;P dir="ltr"&gt;Src IP 192.168.0.1 Port 03D4 Dest IP 192.168.0.2 Port 086A&lt;/P&gt;&lt;P dir="ltr"&gt;Default TFTP block size set to: 512 bytes&lt;/P&gt;&lt;P dir="ltr"&gt;There were no options detected in the TFTP&lt;/P&gt;&lt;P dir="ltr"&gt;EthDown::TFTPD_OPEN::boot.bin&lt;/P&gt;&lt;P dir="ltr"&gt;-EbootSendBootmeAndWaitForTftp&lt;/P&gt;&lt;P dir="ltr"&gt;BL_DOWNLOAD&lt;/P&gt;&lt;P dir="ltr"&gt;BL_IMAGE_TYPE_MANIFEST&lt;/P&gt;&lt;P dir="ltr"&gt;Packet has the following data:&lt;/P&gt;&lt;P dir="ltr"&gt;boot.bin[NULL]octet[NULL]&lt;/P&gt;&lt;P dir="ltr"&gt;TFTP packet could have 1 name/value pairs&lt;/P&gt;&lt;P dir="ltr"&gt;Locked Down Link 1&lt;/P&gt;&lt;P dir="ltr"&gt;Src IP 192.168.0.1 Port 03D4 Dest IP 192.168.0.2 Port 086B&lt;/P&gt;&lt;P dir="ltr"&gt;Default TFTP block size set to: 512 bytes&lt;/P&gt;&lt;P dir="ltr"&gt;There were no options detected in the TFTP&lt;/P&gt;&lt;P dir="ltr"&gt;EthDown::TFTPD_OPEN::boot.bin&lt;/P&gt;&lt;P dir="ltr"&gt;BL_IMAGE_TYPE_UNKNOWN&lt;/P&gt;&lt;P dir="ltr"&gt;INFO: OEMMultiBINNotify (dwNumRegions = 1, dwRegionStart = 0x0).&lt;/P&gt;&lt;P dir="ltr"&gt;Specify destination for NK NB0 [0 = RAM, 1 = NAND, 2 = SD/MMC]:&lt;/P&gt;&lt;P dir="ltr"&gt;INFO: NK NB0 remapped to 0x84200000.&lt;/P&gt;&lt;P dir="ltr"&gt;INFO: OEMVerifyMemory (CA = 0x84200000, PA = 0x44200000, length = 0x1E00000)&lt;/P&gt;&lt;P dir="ltr"&gt;INFO: Downloading NK NAND image.&lt;/P&gt;&lt;P dir="ltr"&gt;TFTP: Desktop losing ACK, block number = 2, Ack again&lt;/P&gt;&lt;P dir="ltr"&gt;TFTP: Desktop losing ACK, block number = 2, Ack again&lt;/P&gt;&lt;P dir="ltr"&gt;1&lt;/P&gt;&lt;P&gt;&lt;SPAN style=": ; font-size: 2; "&gt;ImageStart = 0x84200000, ImageLength = 0x1E00000, LaunchAddr = 0x84200000&lt;/SPAN&gt;&lt;/P&gt;&lt;P dir="ltr"&gt;Completed file(s):&lt;/P&gt;&lt;P dir="ltr"&gt;-------------------------------------------------------------------------------&lt;/P&gt;&lt;P dir="ltr"&gt;[0]: Address=0x84200000 Length=0x1E00000 Name="nk.nb0" Target=FLASH&lt;/P&gt;&lt;P dir="ltr"&gt;WARNING: Flash update requested.&lt;/P&gt;&lt;P dir="ltr"&gt;Do you want to continue (y/n)?&lt;/P&gt;&lt;P dir="ltr"&gt;&amp;nbsp;&lt;/P&gt;&lt;P dir="ltr"&gt;When I'm pressing on "y", I see that the Nand flash is being programmed. However,&amp;nbsp;after reset - the system still doesn't reboot !&lt;/P&gt;&lt;P dir="ltr"&gt;Any ideas?&lt;/P&gt;&lt;P dir="ltr"&gt;Thanks,&lt;/P&gt;&lt;P dir="ltr"&gt;Shany&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jul 2012 05:54:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Loading-image-to-NAND-in-imx28/m-p/177794#M7012</guid>
      <dc:creator>shany</dc:creator>
      <dc:date>2012-07-30T05:54:22Z</dc:date>
    </item>
  </channel>
</rss>

