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.

CCS/PROCESSOR-SDK-AM437X: Unable to load the debrick.scr file after u-boot run

Part Number: PROCESSOR-SDK-AM437X
Other Parts Discussed in Thread: UNIFLASH

Tool/software: Code Composer Studio

Hi

I am trying to flash images into NAND flash with the help of debrick.scr using Uniflash windows tool.

I followed the link " to  generate debrick script based on our image lengths. When I power on board I am able to see the uboot logs execution from Uniflash tool but Iooks debrick.src file not loaded and not executed.

I would like to understand below points:

1. Is there any changes need to be done in the u-boot source.

2. Do I need to add IP address for target to load debrick script? In my case by default u-boot environments doesn't contains the IP address for target and server IP.

your help will be appreciated!!

Thanks & Regards

Ch. Siva

 

  • Hi

    While debug the issue, I came to know that the u-boot source does not contains the support to load and execute debrick.scr file.
    I have added below lines as a reference of AM335x patches mentioned in the below link.
    processors.wiki.ti.com/.../Sitara_Uniflash_Flash_Programming_with_U-Boot

    In the file "am43xx_evm.h" added support to auto load the debrick script.
    #define CONFIG_BOOTCOMMAND \
    "setenv autoload no; " \
    "setenv ethact cpsw; " \
    "dhcp; " \
    "if tftp 80000000 debrick.scr; then " \
    "source 80000000; " \
    "fi"

    With the above change, u-boot started load and execute the debrick.scr script. During execution of the script I am getting the below error prints.

    ####################### Start Log ###################
    DHCP client bound to address 192.168.100.3 (4300 ms)
    link up on port 0, speed 1000, full duplex
    Using cpsw device
    TFTP from server 192.168.100.1; our IP address is 192.168.100.3
    Filename 'debrick.scr'.
    Load address: 0x80000000
    Loading: #
    3.2 MiB/s
    done
    Bytes transferred = 10071 (2757 hex)
    ## Executing script at 80000000
    ' - try 'help'd '
    ' - try 'help'd '
    ' - try 'help'd '
    ' - try 'help'd '
    ' - try 'help'd '
    ' - try 'help'd '
    ' - try 'help'd '
    ' - try 'help'd '
    ' - try 'help'd '
    ' - try 'help'd '
    ' - try 'help'd '
    ' - try 'help'd '
    ' - try 'help'd '
    ' - try 'help'd '
    ' - try 'help'd '
    ' - try 'help'd '
    ' - try 'help'd '
    ' - try 'help'd '
    ' - try 'help'd '

    Indicates to the host the Debrick script is running

    " not definedbrickStartingToHost
    " not definedaseNand
    ' - try 'help'd 'echo
    Get Image containing all images to be flashed
    ' - try 'help'd 'echo
    " not definedtFlashImage
    ' - try 'help'd '
    ' - try 'help'd '
    " not definedashImage
    ' - try 'help'd '
    " not definedashImage
    ' - try 'help'd '
    " not definedashImage
    ' - try 'help'd '
    " not definedashImage
    ' - try 'help'd '
    " not definedashImage
    ' - try 'help'd '
    " not definedashImage
    ' - try 'help'd '
    " not definedashImage
    ' - try 'help'd '
    " not definedashImage
    ' - try 'help'd '
    " not definedrgetProgrammingComplete
    ' - try 'help'd 'echo
    Target Flash Complete........
    ' - try 'help'd 'echo
    ' - try 'help'd '
    =>
    ################### END Log #################


    I would like to understand is I am doing any thing wrong to in generation of debrick script and root cause of this issue.
    I appreciate your quick support on this.

    Thanks & Regards
    Ch. Siva