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.

Dm365 uboot loading by serial utility

Hi I am using dm365 board and i tried to load the uboot by serial utility.So i took the serial utility in dvsdk_2_10_01_18.I tried to erase the nand flash with the following command.

mono sfh_DM36x.exe -nanderase -p /dev/ttyUSB0

But i am getting the below result continuously

Waiting for the DM36x...
BOOTME commmand received. Returning ACK and header...
ACK command sent. Waiting for BEGIN command...
    Target:     BOOTME

Waiting for the DM36x...
BOOTME commmand received. Returning ACK and header...
ACK command sent. Waiting for BEGIN command...
    Target:     BOOTME

Any one help me to slove this issue to load the uboot in dm365 board

  • Hi,

    Waiting for the DM36x...
    BOOTME commmand received. Returning ACK and header...
    ACK command sent. Waiting for BEGIN command...
        Target:     BOOTME

    Any one help me to slove this issue to load the uboot in dm365 board

    What command are you providing ? What is the version of the tool?

    Regards,

    --Prabhakar Lad

  • Hi,

                  The command i provided is mono sfh_DM36x.exe -nanderase -p /dev/ttyUSB0 to erase the nand flash.

    I am using dm365 board kernel version is

    Old uboot there is U-Boot 1.3.4-svn56

    Linux-2.6.18_pro500-davinci

    dvsdk version 2_10_01_18  LSP 02_10_00_14 Collateral from there i took the serial utility tool.

    Tool chain i am using montavista5



  • Hi,

    I have faced similar issues, but after 2-3 runs the tool

    successfully erases the NAND. did you try that ?

    Regards,

    --Prabhakar Lad

  • Hi,

             I have tried 2-3 runs the tool as you said i can able to erase the nand.But nand flash with the u-boot i am getting some error.

    Command i used for nand erase

    mono sfh_DM36x.exe -nanderase -p /dev/ttyUSB0

    I got the below output
    -----------------------------------------------------
       TI Serial Flasher Host Program for DM36x
       (C) 2009, Texas Instruments, Inc.
       Ver. 1.50
    -----------------------------------------------------


    Globally erasing NAND flash.


    Attempting to connect to device /dev/ttyUSB0...
    Press any key to end this program at any time.


    Waiting for the DM36x...
    BOOTME commmand received. Returning ACK and header...
    ACK command sent. Waiting for BEGIN command...
        Target:      BEGIN
    BEGIN commmand received. Sending CRC table...
     100% [                                                              ]
                               CRC table sent....



    Waiting for DONE...
    DONE received.  Sending the UBL...
     100% [                                                              ]
                                  UBL sent....


    DONE received.  UBL was accepted.
    UBL transmitted successfully.


    Waiting for SFT on the DM36x...
        Target:    Starting UART Boot...
        Target:    BOOTUBL
    BOOTUBL commmand received. Returning CMD and command...
    CMD value sent.  Waiting for DONE...
        Target:       DONE
    DONE received. Command was accepted.
        Target:    Unprotecting blocks 0x00000001 through 0x00000031.
        Target:    Erasing block 0x00000001 through 0x00000031.
        Target:    Erase completed successfully.
        Target:    Protecting the entire NAND flash.
        Target:       DONE
        Target:       DONE

    Operation completed successfully.

    Then i go for nand flash

    Command i used for nand flash

    mono sfh_DM36x.exe -nandflash ubl_DM36x_nand.bin u-boot-1.3.4-dm365_ipnc_1.0.1.bin -P /dev/ttyUSB0

    i got the output below

    -----------------------------------------------------
       TI Serial Flasher Host Program for DM36x
       (C) 2009, Texas Instruments, Inc.
       Ver. 1.50
    -----------------------------------------------------


    Flashing NAND with ubl_DM36x_nand.bin and u-boot-1.3.4-dm365_ipnc_1.0.1.bin.


    Attempting to connect to device /dev/ttyUSB0...
    Press any key to end this program at any time.


    Waiting for the DM36x...
    BOOTME commmand received. Returning ACK and header...
    ACK command sent. Waiting for BEGIN command...
        Target:      BEGIN
    BEGIN commmand received. Sending CRC table...
     100% [                                                              ]
                               CRC table sent....



    Waiting for DONE...
    DONE received.  Sending the UBL...
     100% [                                                              ]
                                  UBL sent....


    DONE received.  UBL was accepted.
    UBL transmitted successfully.


    Waiting for SFT on the DM36x...
        Target:    Starting UART Boot...
        Target:    BOOTUBL
    BOOTUBL commmand received. Returning CMD and command...
    CMD value sent.  Waiting for DONE...
        Target:       DONE
    DONE received. Command was accepted.
    Sending the UBL image
    Waiting for SENDIMG sequence...
    SENDIMG received. Returning ACK and header for image data...
    ACK command sent. Waiting for BEGIN command...
    BEGIN commmand received.
       0% [ ------------------------------------------------------------ ]
    Status Undefined

     100%                                                               
    Waiting for DONE...        Image data sent.
    DONE received.  All bytes of image data received...
        Target:    Writing UBL to NAND flash
        Target:    Unprotecting blocks 0x00000001 through 0x00000018.
        Target:    NAND is write protected!
        Target:    Writing failed!Starting UART Boot...
        Target:    BOOTUBL

    Waiting for SFT on the DM36x...
        Target:    Starting UART Boot...
        Target:    BOOTUBL
    BOOTUBL commmand received. Returning CMD and command...
    CMD value sent.  Waiting for DONE...
        Target:       DONE
    DONE received. Command was accepted.
    Sending the UBL image
    Waiting for SENDIMG sequence...
    SENDIMG received. Returning ACK and header for image data...
    ACK command sent. Waiting for BEGIN command...
    BEGIN commmand received.
       0% [ ------------------------------------------------------------ ]
    Status Undefined
     100%                                                               
    Waiting for DONE...        Image data sent.
    DONE received.  All bytes of image data received...
        Target:    Writing UBL to NAND flash
        Target:    Unprotecting blocks 0x00000001 through 0x00000018.
        Target:    NAND is write protected!
        Target:    Writing failed!Starting UART Boot...
        Target:    BOOTUBL

    Waiting for SFT on the DM36x...
        Target:    Starting UART Boot...
        Target:    BOOTUBL
    BOOTUBL commmand received. Returning CMD and command...
    CMD value sent.  Waiting for DONE...
        Target:       DONE
    DONE received. Command was accepted.
    Sending the UBL image
    Waiting for SENDIMG sequence...
    SENDIMG received. Returning ACK and header for image data...
    ACK command sent. Waiting for BEGIN command...
    BEGIN commmand received.
       0% [ ------------------------------------------------------------ ]
    Status Undefined

    Continuously this printing.How to flash in the nand and what is the problem.