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.

Ubi U-BOOT est? (Where is U-BOOT?)

I just received the C6A816x/AM389x EVM board and have a couple of questions:

 

1.  Upon powering up the board without the SD card I expected to see a U-BOOT prompt in the Tera Term window, I see nothing.  I take it that the board does not come with U-BOOT already flashed into NAND Flash, and I need to do this myself.  This is a prerequiste for performing a NFS boot, correct?  Otherwise, how does the board's ethernet interface get setup for a NFS boot?  I got the host Ubuntu Linux up and running within VMware Player with a seperate ethernet connection using a private IP address, everything pings, and I ran the script, setup.sh, that came with the sdk, so I should be good to go on this part.  After flashing, SW3 needs to be set for a NAND boot, correct? Lastly, I see that U-BOOT comes up upon stopping the boot sequence from the SD card.  How to I get U-BOOT from the SD card to the NAND flash?  HOW-To Docs?

What I need to do to have NFS boot work is to flash U-boot to the NAND Flash as described on pages 5-10 of the TI816x U-Boot EA3 doc?  The Wiki page, "How to Flash Linux System from U-Boot" has:

Run the u-boot commands to flash the NAND

All of the following commands are performed at the u-boot prompt.

  These commands are actually a series of u-boot commands that are connected together with semicolons.  The individual commands can be entered separately or simple pasted from here.


  • Complete xloader write from MMC to NAND (only erases one block=128k).
mw.b 0x81600000 0xff 0x20000;nand erase 0 20000;mmc init;fatload mmc 0 0x81600000 x-load.bin.ift;nandecc hw; nand write.i 0x81600000 0 20000

 

  • Complete uboot write from MMC to NAND (only erases two blocks=256k)
mw.b 0x81600000 0xff 0x40000;nand erase 80000 40000;mmc init;fatload mmc 0 0x81600000 u-boot.bin;nandecc sw; nand write.i 0x81600000 80000 40000

 

  • Complete kernel write from MMC to NAND (erases 3M)
mw.b 0x81600000 0xff 0x1400000;nand erase 280000 300000;mmc init;fatload mmc 0 0x81600000 uImage;nandecc sw; nand write.i 0x81600000 280000 300000 

  What are the appropriate changes needed from the C6A81x EVM?  Another method:

From TI816x U-Boot EA3: "Refer to Flashing to NAND Flash using CCS wiki page for instructions on how to flash the pre-built binary".  I found the binary, u-boot.bin, but where is the wiki page?  link?

I spoke too soon on the U-boot binary, U-boot.bin is a symbolic link and there appear to be two actual u-boot binaries.  Which should I use?

In the OMAP-Embedded Linux labs we started by running a TeraTerm script that setup U-BOOT.  Is such a script available for this EVM board?

2.  I willl need to use the JTAG with CCS for C674 DSP development.  I have a XDS510 USB JTAG and is there a board configuration GEL file, ti816x_ddr.gel, associated with the EVM to be used with this JTAG? --> I think I found it:

http://support.spectrumdigital.com/boards/netradimm/revc/

 Is there some reason why I should use a XDS560V2 STM USB emulator rather than the XDS510 USB?  On page 4 of TI816xFlashingToolsEA3, it says to set the board type to "Netra" .  Quid Netra est? How to I update CCS, I have version 4, with new device types?  Is there an existing device type which is suitable?

Thanks,

 

Lee Holeva

 

  • Lee,

    Yes, you will need to flash u-boot to the nand flash in order to use the nand boot mode.  The procedure is described on page 9 of this document: <ezsdk_install_location>/ti-ezsdk_c6a816x-evm_5_00_00_56/psp/docs/TI816X-PSP-U-Boot.pdf
    I'll re-type it here:

    # mw.b 0x81000000 0xFF 0x1c0000
    # tftp 0x81000000 u-boot.noxip.bin (you can alternatively load it from the kit's sd card with # mmc init; fatload mmc 0 0x81000000 u-boot.noxip.bin )
    # nand erase 0x0 0x1c0000
    # nandecc hw 2
    # nand write.i 0x81000000 0x0 0x1c0000
    # nandecc sw 0

    After u-boot is successfully flashed to nand, you can switch the boot mode settings to boot from NAND:
    SW3---->BTM[4:0] 10010   (other pins should be 0 i.e. OFF)
    SW4---->NAND ON (already should have been on for flashing)

    Once you reboot, within the u-boot environment, you can set things up for nfs boot.  The document named above also give instructions for nfs setup.
    There are also scripts in the <ezsdk_install_location>/ti-ezsdk_c6a816x-evm_5_00_00_56/bin folder that will help you with u-boot setup parameters.

    For CCS, you should be working with ccsv5.  You can find the installer on the sd card that came with the kit, or you can get the latest version here:
    http://processors.wiki.ti.com/index.php/Category:Code_Composer_Studio_v5

    Regards,
    Ian

  • Gratias,

    Which version of CCS 5 do you recommend for use with the C6A816x EVM, version 5.0.2 or 5.1 M2? 

     I am having a problem with tftp.  Fixed:  tftp looks at the folder tftpboot for files.  Nice if this was documented somewhere.  Something is still wrong.  I flashed the NAND using the commands that you gave, no errors, but when I reboot the EVM, with the SW3 set to NAND boot, I get nothing from Tera Term.

    Maybe this indicates something:  Upon booting from the SD card, U-Boot gives:  "Warning - bad CRC or NAND, using default environment".  Could I have a defective board?

    List of bad NAND blocks:

    Device 0 bad blocks:
      00000000
      00020000
      00040000
      00060000
      00080000
      000a0000
      000c0000
      000e0000

    Is this to be expected?

    My kit did not come with the xds100v2.

    Lee Holeva