This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Restoring U-boot into nand flash on OMAP-L138 LCDK,

Other Parts Discussed in Thread: OMAP-L138, OMAPL138, AM1808

I want to reflash U-Boot into nand flash for the OAMP-L138 LCDK.  And I executed the command as given, below i showed you, what i have executed. After the " (AIS Parse): Waiting for BOOTME... (power on or reset target now)" present, I power the target, but waited for a long time, it has't began to reflash the nand flash. I have check the COM and switch 1, and made sure they all right.   Hope someone can give me a hand .  

Thanks and best wishes.

Microsoft Windows XP [版本 5.1.2600] 
(C) 版权所有 1985-2001 Microsoft Corp.

D:\Documents and Settings\Administrator>cd D:\

D:\>cd flasher

D:\flasher>sfh_OMAP-L138 -targettype OMAPL138_LCDK -flashtype NAND -p COM5 -flash_noubl u-boot-lcdk_ais.bin
-----------------------------------------------------
TI Serial Flasher Host Program for OMAP-L138
(C) 2012, Texas Instruments, Inc.
Ver. 1.67
-----------------------------------------------------


[TYPE] Single boot image
[BOOT IMAGE] u-boot-lcdk_ais.bin
[TARGET] OMAPL138_LCDK
[DEVICE] NAND
[NAND Block] 1

Attempting to connect to device COM5...
Press any key to end this program at any time.

(AIS Parse): Read magic word 0x41504954.
(AIS Parse): Waiting for BOOTME... (power on or reset target now)

  • Hi,

    Please confirm that the board is in UART boot mode. Before connect to this utility,
    connect to Tera Term/Hyper Terminal, check whether "BOOTME" is coming. In UART boot mode,
    ROM boot loader will send the "BOOTME".

    Please refer the below links:
    http://processors.wiki.ti.com/index.php/Serial_Boot_and_Flash_Loading_Utility_for_OMAP-L138

    Regards,
    Balaji N

  • Hi, thanks for you help. I have comfirmed that the board is in UART boot mode and before connect to this utility, there has't a BOOTME coming when
    connect to Tera Term  which was the mian problem to me.  whenever I can't receive a "BOOTME", so I can't reflash the uboot and the board won't come up. I want to konw whether there is other solution to reflash the uboot to nand flash, how about  a JTAG ang CCS.  Maybe you can give me some advices how to do it or where I can get the datasheet about it.

    Thank you very much and best wishes for you!

    Balaji Nagarajan said:

    Hi,

    Please confirm that the board is in UART boot mode. Before connect to this utility,
    connect to Tera Term/Hyper Terminal, check whether "BOOTME" is coming. In UART boot mode,
    ROM boot loader will send the "BOOTME".

    Please refer the below links:
    http://processors.wiki.ti.com/index.php/Serial_Boot_and_Flash_Loading_Utility_for_OMAP-L138

    Regards,
    Balaji N

  • Hi,

                U can use the following wiki to restore your u-boot on OMAP-L138 LCDK.

    http://processors.wiki.ti.com/index.php/OMAP-L138_LCDK_Linux_Software_Developer%27s_Guide#Restoring_U-Boot_on_a_bricked_LCDK

     

    Also u can look at the following E2E forum query that has the solution for the same problem that you have specified.

    http://e2e.ti.com/support/dsp/omap_applications_processors/f/42/p/200272/716232.aspx#716232

     

    For your question on using CCS for flashing the u-boot you can refer the following wiki-link :

    http://processors.wiki.ti.com/index.php/LCDK_User_Guide#CCS_Method

     

    Thanks

    Iyshwarya

     

    If this answers your question, please click the Verify Answer button below. If not, please reply back with more information

  • Hi,  I still didn't  solve this problem by solution using  prebuilt U-Boot image u-boot-lcdk_ais.bin  and the serial flashing tool.The process  still stop in "waiting for "BOOTME" ", when using a flashing too,  and I am sure the dip switch SW1 settings was Serial Boot Mode. 

    So I want to try the CCS method you advised, but the paper  don't describes it in detail, only describe as below, so I want to know whether you have other material about it ? Thank you and best wishes for you !

    CCS Method

    1. Connect to the ARM or DSP with the GEL file loaded, which will auto-initialize the DDR
    2. Open (CCS3) or import (CCS4, CCS5) the NANDWriter_ARM or NANDWriter_DSP project
    3. Modify the #define "NANDWIDTH_8" to "#define NANDWIDTH_16" in nandwriter.c
    4. Rebuild and run the code
  • Hi,

    Please refer the below link to connect the CCS & JTAG to OMAPL138:
    http://processors.wiki.ti.com/index.php/How_to_connect_to_the_OMAP-L138/C6748/AM1808_EVM_board_using_CCS%3F#Connecting_using_CCS4

    For CCS5 also, you can refer the above link.

    Download the OMAP-L138_FlashAndBootUtils_2_40 utility and in this,
    in below path, you can get the NANDWriter code:

    OMAP-L138_FlashAndBootUtils_2_40\OMAP-L138\CCS\NANDWriter

    Compile this project and execute it.

    To connect the JTAG, change the switch settings to Emulation mode.

    -Regards,
    Balaji N

  • Hi,

    OMAP-L138 LCDK swithc settings is as below, so I coudn't find a Emulation mode. And the link you gave me are all about the OMAP-L138 EVM board,  are they suit to OMAP-L138 LCDK too?  Thank you so much!

    Switch # UART2 NAND 16 MMC/SD0  
    1                   OFF OFF OFF
    2                   ON ON OFF
    3                 OFF ON OFF
    4                 ON ON ON

  • Hi,

     The UART Boot mode is same as the Emulation debug mode in OMAP-L138 LCDK kit. So you can have the debug mode as [0111].

    To flash the images in NAND Flash using CCS, the four steps given in the LCDK user guide are the steps to start with the NAND Flash writer in CCS.

    Then you can flash the uboot when the NAND flash writer program asks for entering which binary you are flashing.

                 For your question on OMAP-L138 EVM board and LCDK board, these are two different boards and Balaji has specified that wiki to specify how CCS has to be connected to the board and how the GEL files have to be loaded to the CCS.

                 For your understanding of how you can run the NAND Flash writer you can take a look at the following wiki page which explains how the facedetect example can be run from CCS.

    http://processors.wiki.ti.com/index.php/BIOS_C6SDK_2.0_User_Guide#Running_Facedetect_Demo

    NOTE: This wiki page is for your reference on how you can run the NAND Flash writer project in CCS.

     

    Regards

    Iyshwarya

     

    If this answers your question, please click the Verify Answer button below. If not, please reply back with more information

     

     

  • Hi, thank you for you help.   The method is  really effective, I have finished  uboot  flashed. But the board still coundn't come up. when nandwriter has be executed , the state is showed as below. can you tell me whether the uboot is reflashed  right.   Why the board didn't come up?  What I can do next ?  Thank you.  Good wishes for you !