• Join
  • Sign In with my.TI Login
Texas Instruments
  • Products
  • Applications
  • Tools & Software
  • Support & Community
  • Sample & Buy
  • About TI
Sample & Purchase Cart Sample & Purchase Cart
  • Search
  • Advanced
TI E2E™ Community
  • Support Forums
  • Blogs
  • Groups
  • Videos
  • 简体中文
  • More ...
TI Home » TI E2E Community » Support Forums » Embedded Software » WinCE » WinCE forum » Flashing XLDRNAND.bin and EBOOTNAND.bin to NAND from SD
Share
WinCE
  • Forum
Options
  • Subscribe via RSS

Forums

Flashing XLDRNAND.bin and EBOOTNAND.bin to NAND from SD

This question is answered
Dennis Nguyen47496
Posted by Dennis Nguyen47496
on Mar 08 2012 11:12 AM
Expert1190 points

Hi,

I read previous post "AM3517 NAND booting" but was not sure which step from

http://processors.wiki.ti.com/index.php/WinCE-BSP_ARM-A8_User_Guide#Flashing_the_board_through_SD_card actually does the flashing XLDRNAND.bin and EBOOTND.bin from SD to NAND. Please clarify.

2. Enable flashing by select following option from Eboot menu:

[Flash Management] -> [8]Enable flashing NK.bin 

Is this "enabling flashing NK.bin" step does the flashing of all three files: NK.bin, EBOOTND.bin and XLDRNAND.bin to NAND reserved blocks?

3. Change the SDcard settings for image name to ebootnd.bin/xldrnand.bin/nk.bin from following Eboot
Menu:
[SDCard Settings] -> [Enter Filename]

I don't understand this step description.  From the SD boot menu, under SDCard Settings->Show Current Settings, I have the file name is "nk.bin". Why do I have to change SDCard settings? I just want to boot from NAND. I have difficult to understand the descriptions from this step.  In this step, what do I need to enter "ebootnd.bin" or "xldrnand.bin" or "nk.bin" or "ebootnd.bin/xldrnand.bin/nk.bin". Please clarify.

I made sure the NAND ECC mode is 0 (hamming 1 bit ECC) but I could not boot from NAND for some reason.

Thanks,

Dennis

Report Abuse
  • Reply
You have posted to a forum that requires a moderator to approve posts before they are publicly available.
All Replies
  • Tao Zhang
    Posted by Tao Zhang
    on Mar 08 2012 13:19 PM
    Expert4065 points

    Dennis,

    See answers inline.

    I read previous post "AM3517 NAND booting" but was not sure which step from

    http://processors.wiki.ti.com/index.php/WinCE-BSP_ARM-A8_User_Guide#Flashing_the_board_through_SD_card actually does the flashing XLDRNAND.bin and EBOOTND.bin from SD to NAND. Please clarify.

    2. Enable flashing by select following option from Eboot menu:

    [Flash Management] -> [8]Enable flashing NK.bin 

    Is this "enabling flashing NK.bin" step does the flashing of all three files: NK.bin, EBOOTND.bin and XLDRNAND.bin to NAND reserved blocks?

    <Tao> Yes.

    3. Change the SDcard settings for image name to ebootnd.bin/xldrnand.bin/nk.bin from following Eboot
    Menu:
    [SDCard Settings] -> [Enter Filename]

    I don't understand this step description.  From the SD boot menu, under SDCard Settings->Show Current Settings, I have the file name is "nk.bin". Why do I have to change SDCard settings? I just want to boot from NAND. I have difficult to understand the descriptions from this step.  In this step, what do I need to enter "ebootnd.bin" or "xldrnand.bin" or "nk.bin" or "ebootnd.bin/xldrnand.bin/nk.bin". Please clarify.

    <Tao> The name of the binary that needs to be flashed in NAND. Eboot will read the file again and then flash it in NAND.

    I made sure the NAND ECC mode is 0 (hamming 1 bit ECC) but I could not boot from NAND for some reason.

    Thanks,

    Dennis

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Dennis Nguyen47496
    Posted by Dennis Nguyen47496
    on Mar 08 2012 14:07 PM
    Expert1190 points

    Hi Tao,

    I am still missing something here and here are my steps:

    1. My SD card has: MLO, EBOOTND.bin, EBOOTND.nb0, EBOOTSD.bin, EBOOTSD.nb0, NK.bin, XLDRNAND.bin and XLDRNAND.nb0. I have no problem to power up and memory booting from SD with sys_boot[5:0] = 0b0011111 (NAND first, SD fourth).

    2. Enable flashing by select following option from Eboot menu:

    [Flash Management] -> [8]Enable flashing NK.bin

    [Flash Management] -> [9]Set ECC mode -> 0 (hamming 1 bit ECC)

    3. Repeat this step for flashing ebootnd.bin,xldrnand.bin,nk.bin to NAND:
    [SDCard Settings] -> [Enter Filename]

    4. Power off my device and remove SD.

    5. Power on to boot from NAND with the same sys_boot[5:0] = 0b0011111 (NAND first, SD fourth).  I can't boot.

    Please comment.  Thanks.

     

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Dennis Nguyen47496
    Posted by Dennis Nguyen47496
    on Mar 08 2012 14:08 PM
    Expert1190 points

    Correction: 0b001111 instead of 0b0011111 in both places.  Thanks.

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Tao Zhang
    Posted by Tao Zhang
    on Mar 08 2012 14:15 PM
    Expert4065 points

    Dennis,

    Before power off the device, did you see messages that indicates XLDR/Eboot is flashed at certain NAND location?

    The selected binary will be loaded first and then flashed in NAND. Did you observe these steps in your log?

    Thanks,

    Tao

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Dennis Nguyen47496
    Posted by Dennis Nguyen47496
    on Mar 08 2012 14:41 PM
    Expert1190 points
    20120308142657.log

    Hi Tao,

    My NAND has bad block 5 and I hope WinCE knows to skip that block.  I didn't see any activity indicated flashing data to NAND location.  I attached UART3 trace.

    Thanks,

    Dennis

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Tao Zhang
    Posted by Tao Zhang
    on Mar 08 2012 14:49 PM
    Expert4065 points

    Dennis,

    I saw a couples issues in your log:

    1.Flashing is disabled

    14:27:50.522>  Selection: 8
    14:27:50.522>
    14:27:52.893>  Disable Flashing NK.bin [y/-]: y
    14:27:52.893>
    14:27:52.893>  Flashing NK.bin is disabled
    14:27:52.893>

    2. if you want to flash ebootnd.bin, then just enter ebootnd.bin. One at a time. It will always take the file name entered the last.

    14:29:16.447>  Selection: 2
    14:29:16.447>
    14:29:16.447>
    14:29:16.447>
    14:29:21.127>  Type new filename (8.3 format) :nk.bin
    14:29:21.127>

    3.You should seletc boot from "SD" card, since ebootnd.bin is in SD card. Your trace shows you are set "Boot device set to NK from NAND"

    Hope this helps.

    Thanks,

    Tao

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Dennis Nguyen47496
    Posted by Dennis Nguyen47496
    on Mar 08 2012 15:32 PM
    Expert1190 points
    Error.log

    Hi Tao,

    Thanks for the comments.  I didn't pay attention to the flashing option is a toggle and now I know better. From your comment #2, do I have to reboot my device everytime I flash a file to NAND reserved blocks? My understanding is I have to flash ebootnd.bin, xldrnand.bin and nk.bin to NAND reserved blocks.  Is that correct? I had error in OEMLaunch in the attached file error.log, please let me know what's that means.  Thanks,

    Dennis

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Tao Zhang
    Posted by Tao Zhang
    on Mar 08 2012 15:48 PM
    Expert4065 points

    Dennis,

    For XLDR and Eboot , you do need to reboot every time. To boot from NAND, you have to flash at least ebootnd.bin and xldrnand.bin. If nk.bin is not available in NAND, you can use other boot devices, such as "Ethernet interface".

    After Nk.bin is written in NAND, Eboot will load nk.bin from NAND into RAM, and then start running.

    Regarding the error message, Eboot can not launch Eboot nor XLDR, this is expected. You can reboot the device.

    Thanks,

    Tao

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Dennis Nguyen47496
    Posted by Dennis Nguyen47496
    on Mar 08 2012 16:12 PM
    Expert1190 points

    Hi Tao,

    I was able to program ebootnd.bin and xldrnand.bin to NAND. After I reboot my device, NAND X-Loader started the booting.  This is great.  The NAND X-loader menu option is slightly different than MLO.  There is no "SDCard Settings" for me to program NK.bin which is expected.  Is there a way fo rme to program NK.bin from SD to NAND at this state.

    Thanks a lot for your helps, Tao.

    Dennis

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Tao Zhang
    Posted by Tao Zhang
    on Mar 08 2012 16:24 PM
    Verified Answer
    Verified by Dennis Nguyen47496
    Expert4065 points

    Dennis,

    "Flash NK.bin in NAND from SD" is only supported when booting from SD card. You need to change the DIP switch settings to boot from SD card, then flash NK.bin.

    Thanks,

    Tao

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Dennis Nguyen47496
    Posted by Dennis Nguyen47496
    on Mar 09 2012 07:52 AM
    Expert1190 points

    Thanks for the helps, Tao.

    You have a great day.

    Dennis

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Indumathi chandrashekar
    Posted by Indumathi chandrashekar
    on Apr 09 2012 07:22 AM
    Prodigy10 points
    flash_nand_log.TXT
    Hi, I am facing similar kind of issue when flashing XLDRNAND.bin and EBOOTND.bin. I am able to flash NK.bin but other two bin are not getting flashed. I am getting a message saying its flashed but booting doesnt happen. Kindly help. I have also attached log report.
    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Dennis Nguyen47496
    Posted by Dennis Nguyen47496
    on Apr 09 2012 08:34 AM
    Expert1190 points
    ProgramNANDTrace.txt

    Hi,

    You might want to use "SDCard Setting" to change the file name to be programmed to NAND.  At the end of the programming, you will have to reboot for the next file.  I included the complete trace and I think it would help.

    Good luck,

    Dennis

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
TI E2E™ Community
  • Support Forums
  • Blogs
  • Videos
  • Groups
  • Site Support & Feedback
  • Settings
TI E2E™ Community Groups
  • TI University Program
  • Make the Switch
  • Microcontroller Projects
  • Motor Drive & Control
Other Communities
  • Deyisupport
  • Designsomething.org
  • beagleboard.org
  • TI on Element 14
  • TI on TechXchangeSM
Other Technical & Support Resources
  • WEBENCH® Design Center
  • Product Information Centers
  • Technical Documents
  • TI Design Network
  • TI Technical Articles
  • TI Training

All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.

Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms of Use of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms of Use of this site. TI, its suppliers and providers of content reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.

Follow Us Texas Instruments on Facebook Texas Instruments on Twitter Texas Instruments on LinkedIn Texas Instruments on Google+
TI Worldwide | Contact Us | my.TI Login | Site Map | Corporate Citizenship | mobile m.ti.com (Mobile Version)

TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs and
embedded processors, along with software, tools and the industry’s largest sales/support staff.

© Copyright 1995-2013 Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy Policy | Terms of Use