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.

Flash uboot on DM385

Other Parts Discussed in Thread: DM385

Hi all,

          I got a new board Dm385.

I connected it to ttyS0 via RS232. On minicom it is just displayingbelow msg.

CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC 

Looks like u-boot is not flashed on it. Thats why I am not getting the any prompt!!

Please someone can tel me how to flash uboot for the first time to nand?

I have u-boot.min,u-boot,uImage ready for the HW.

Thanks in advance

Regards

Ravikiran

  • Transfer->XMODEM->Send->u-boot.min.nand
    loadb 0x81000000
    Transfer->Kermit->Send->u-boot.bin
    go 0x81000000

    stop u-booting …

    setenv ethaddr 00:0C:0C:A0:09:F5
    setenv dnsip 172.24.170.30
    setenv dnsip2 172.24.170.29
    setenv gatewayip 172.24.188.1
    setenv netmask 255.255.252.0
    setenv ipaddr 172.24.190.1
    setenv serverip 172.24.137.19

    --------------------------------------------------------
    Steps to flash PSP Binaries
    --------------------------------------------------------
    NOTE: Always prefered to do a 'nand scrub' before reflashing new binaries.

    Uboot MIN
    ---------------------------
    tftp 0x81000000 u-boot.min.nand;nand erase 0x0 0x20000;nand write.i 0x81000000 0x0 0x20000

    Uboot 2nd stage
    ---------------------------
    tftp 0x81000000 u-boot.bin;nand erase 0x20000 0x60000;nand write.i 0x81000000 0x20000 0x60000

    Kernel
    ---------------------------
    tftp 0x81000000 uImage;nand erase 0x00280000 0x00300000;nand write.i 0x81000000 0x00280000 0x300000

    setenv bootcmd 'i2c dev 2;i2c write 0x2d 9 0x0a;i2c write 0x2d 0xa 0x62;ipnc_ff_init 1;nboot 0x81000000 0 0x280000; bootm';saveenv
    setenv bootargs 'console=ttyO0,115200n8 rootwait=1 rw ubi.mtd=4,2048 rootfstype=ubifs root=root=/dev/nfs nfsroot=172.24.170.60:/data/datalocal_videoapps01/user/venu/DM385/target_final/filesys init=/init mem=80M vram=4M notifyk.vpssm3_sva=0xBFD00000 ip=dhcp eth=00:0C:0C:02:31:99 cmemk.phys_start=0x85000000 cmemk.phys_end=0x89000000 cmemk.allowOverlap=1 earlyprintk';saveenv

  • Hi Venu,

           Yes You are right.

    When I try with Transfer->XMODEM->Send->u-boot.min.nand, the file got transferred.  But not able to type anything on cmd prompt!! I suspect something else is missing !!

    So the other commands can be executed only if I get the prompt rite? where it went wrong?

    Thanks in advance

    Regards

    Ravikiran

  • Hi Venugopal,

                Referring to the document provided along with the IPNC package, I am tring to flash uboot.min.nand using CCS

    Please find the below logs.

    [CortexA8] Welcome to CCS Nand Flash Utility
    [CortexA8]
    [CortexA8]
    [CortexA8] Choose your operation
    [CortexA8] Enter 1 ---> To Flash an Image
    [CortexA8] Enter 2 ---> To ERASE the whole NAND
    [CortexA8] Enter 3 ---> To EXIT
    1
    [CortexA8] Enter image file path
    D:\Video_Over_USB\DM385EVM_12thOct2012\INSTALL_DIR\INSTALL_DIR\Binaries\DM385\nand\MN34041\u-boot.min.nand
    [CortexA8] Enter offset (in hex):
    0x0
    [CortexA8] Choose the ECC scheme from given options :
    [CortexA8] Enter 1 ---> BCH 8 bit
    [CortexA8] Enter 2 ---> HAM  
    [CortexA8] Enter 3 ---> T0 EXIT
    [CortexA8] Please enter ECC scheme type :
    1
    [CortexA8] Starting NETRA NAND writer    ERROR: NAND Initialization failed.
    [CortexA8]
    [CortexA8]
    [CortexA8] NAND flashing failed!

  • Can you try 

    ravikiran hv said:
    [CortexA8] Enter image file path
    D:\Video_Over_USB\DM385EVM_12thOct2012\INSTALL_DIR\INSTALL_DIR\Binaries\DM385\nand\MN34041\u-boot.min.nand
    [CortexA8] Enter offset (in hex):
    0x0

    Just 0 and not 0x0.

    If that also fails then some problem with nand in the IPNC h/w you posses.

  • Hi Venugopal,

                    Thanks for your quick response.

    I tried only "0" also. It is also giving me the same error..

    So instead of option 1 I tried option 2 to erase nand. This also Fails !!

    Please find the Logs below

    [CortexA8] Welcome to CCS Nand Flash Utility
    [CortexA8]
    [CortexA8]
    [CortexA8] Choose your operation
    [CortexA8] Enter 1 ---> To Flash an Image
    [CortexA8] Enter 2 ---> To ERASE the whole NAND
    [CortexA8] Enter 3 ---> To EXIT
    2
    [CortexA8] Starting NETRA NAND writer    ERROR: NAND Initialization failed.
    [CortexA8]
    [CortexA8]
    [CortexA8] NAND flashing failed!

    Your help will be appreciated. Thank you.

  • Have you tried my earlier suggestion of

    Transfer->XMODEM->Send->u-boot.min.nand


    If this also fails looks to me some NAND issue.

  • Hi Venugopal,

                Yes I tried Transfer->XMODEM->Send->u-boot.min.nand Command.

    As I mentioned in my earlier comment, I was able to transfer u-boot.min.nand. But not able to get any prompt on Terra-term/console, where I am expected to type the command  loadb 0x81000000.  It is continuously displaying CCCCCCCCCCC. 

    So without any prompt on my terraterm I cant proceed further !!


    Do we need to connect/short any pins to enable nand write ?


    Looking forward for ur suggestion on this.




  • ravikiran hv said:
    Yes I tried Transfer->XMODEM->Send->u-boot.min.nand Command.

    From the teraterm you need to send this file. Once file is transfered the processor executes the file.

  • Ravikiran

    Can you download u-boot.min.uart and then load u-boot.bin (built for nand) then download u-boot.min.nand and u-boot.bin and flash the same to nand flash.
    You can also use CCS to flash to NAND. for this you can follow the following user guide
    http://processors.wiki.ti.com/index.php/TI81XX_PSP_Flashing_Tools_Guide#Burning_NAND_Flash_.28using_CCS.29

    Regards
    Mugunthan V N