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/EVMK2H: Flash Tools

Part Number: EVMK2H

Tool/software: Code Composer Studio

Hello!

On page Processor SDK Linux  

http://software-dl.ti.com/processor-sdk-linux/esd/docs/05_01_00_11/linux/Foundational_Components_Tools.html

3.5.2. Flash Tools

there is description of SitaraUniflash utility.

And said that it is:

attached to a TI AM335x or AM437x processor on a production target board

 

I have board EVMK2H with TMS320TCI6638 which belongs to the family Sitara AM5x (as far as I understand), not AM335x or AM437x 

Is there a utility for programming the images in Flash of my board EVMK2H?

In particular, I need to load an operating system Linux into my platform.

And where can I get the image of the operating system Linux for EVMK2H?

Regards. Alexander.

  • Hi, Alexander,

    EVMK2H is a different product line and not Sitara family, but Keystone-2 family, though they all have C66x DSP cores and ARM A15 cores.
    In Getting Started Guide, there is a step (step 3) for "Start your Linux Development". The note for step 3 points to "Program EVM User Guide" for Keystone-2 family. You can follow the instruction in this user guide. The prebuilt images, u-boot, kernel and other needed firmwares are all in prebuit-images directory.

    A few tips for flashing K2H. The program EVM is more for burning u-boot in NOR, though it can program the kernel and filesystem into NAND as well. It is a very slow process. I suggest to use the alternative way using u-boot commands. If this is for development, you can use net boot to boot kernel. K2H has 3 ways of booting for development so NAND doesn't get flashed each time for changes. You can take a look at the u-boot printenv variables with _net, _ramfs, and _ubi. This is by setting boot to one of them, e.g. "setenv boot net". Boot from UBI is boot from NAND with kernel and filesystem in NAND, and using u-boot command "run burn_ubi". The file programmed is from "run get_ubi_net".

    Hope the user guide and the tips help. If your questons are answered, please click "Resolved". Thanks!

    Rex
  • You say:

    The prebuilt images, u-boot, kernel and other needed firmwares are all in prebuit-images directory.

    Sorry. What is prebuit-images directory? Where is it?

    Regards. Alexander

  • Hi, Alexander,

    Please follow the Get Start Guide and install the Processor Linus SDK. The PLSDK includes cross-compiler, filesystem, board-supports, and setup utitlities. In board-supports directory, it contains prebuilt-images, kernel, u-boot, etc. directories. You should find the prebuilt images in prebuilt-images directory.

    Rex
  • In Getting Started Guide for Processor SDK Linux 05_02_00_10

    software-dl.ti.com/.../Overview_Getting_Started_Guide.html

    there is point 1.1.4. Program EVM User Guide

     

    This guide uses files from a directory bin/program_evm/binaries/evmk2l/ :

    nand.bin Nand UBIFS image (symbolic link to tisdk-server-rootfs-image-[k2hk, k2e, k2l]-evm.ubi)
    nandwriter_evmk2h.out Nand Writer DSP executable
    nand_writer_input.txt nand image writer input file
    nor.bin SPI NOR file for U-Boot (symbolic link to u-boot-spi-[k2hk, k2e, k2l]-evm.gph)
    norwriter_evmk2h.out NOR image writer DSP executable
    nor_writer_input.txt NOR image writer input file

    Below is an alternative method to program NAND:

    1. Set up TFTP server
    2. copy filesystem/tisdk-server-rootfs-image-k2h-evm.ubi to tftp directory
    3. Have Ethernet cable connected to the EVM and verify the connection to the TFTP server
    4. Boot up the EVM to the U-boot prompt and type the following commands:
    

    u-boot# setenv serverip <TFTP server IP address>
    u-boot# setenv tftp_root <tftp directory>
    u-boot# setenv addr_fs 0x82000000
    u-boot# nand erase.part ubifs
    u-boot# dhcp ${addr_fs} ${tftp_root}/tisdk-server-rootfs-image-k2h-evm.ubi
    u-boot# nand write ${addr_fs} ubifs ${filesize}
    u-boot# env default -f -a
    u-boot# setenv boot ubi
    u-boot# saveenv

    I understand that here it is assumed that the U-boot is already loaded into the NOR as described below in this document: 

    Executing the DSS script to restore factory default images

    1. cd “bin/program_evm” directory
    2. Set the necessary environment variables as described under Set the Environment Variable.
    3. Run the “program_evm.js” script command from program_evm directory.

    Example:

    cd bin/program_evm
    $DSS_SCRIPT_DIR/dss.sh program_evm.js evmk2h-le nor

    Are these steps enough to load Linux system to NAND and work with it?

    And what is filesize in string 

    u-boot# nand write ${addr_fs} ubifs ${filesize}  ?


    Regards, Alexander

  • Hi, Alexander,

    There are 2 ways to flash the NAND or NOR. you can use the program_evm method which doesn't need u-boot to be up first. If you read the User's Guide carefully, it says that using program_evm, the boot mode dip switch needs to be set to "No Boot" mode. In NoBoot mode, u-boot won't be started. Program EVM way is using the command $DSS_SCRIPT_DIR/dss.sh program_evm.js evmk2h-le nor (or nand).

    The other way is the alternative way which requires u-boot to be up and servers be set up first, then run the u-boot scripts to program either NAND or NOR. The filesize is set automatically when file transfer is done. You can try a test to print filesize before dhcp the file, then compare the filesize after the file transfer is done.

    In case u-boot is not up (correupted by accident), you can still use the alternative way, but you need to use CCS to bring up the u-boot by following instruction in u-boot/board/ti/ks2_evm/README. Once you get the u-boot prompt on console, you can run the u-boot script to program NOR or NAND.

    The only thing I need to bring to your attention is that be sure the ubi image is small enough to fit in NAND. The current tisdk-server-rootfs filesystem is way too big to fit in. You should be able to use arago-base filesystem should fit.

    Please open new threads if you have issues.

    Rex
  • One small question. In case u-boot is not up (correupted by accident).
    In u-boot/board/ti/ks2_evm/README it is said that we need have u-boot.bin image for load and run u-boot via CCStudio.
    And then we have to load and burn u-boot-spi.gph to NOR via U-boot console commands.
    I found u-boot-spi.gph in board-support/prebult-images/. But I do not find u-boot.bin image.
    Where can I get u-boot.bin?

    Regards. Alexander

  • Hi, Alexandr,

    You can build it in u-boot directory following instruction in U-boot User Guide. I haven't built it for a while and can't remember if u-boot.bin gets removed after .gph is built. It probably only gets removed in the release package. If it is removed, you can modify the Makefile not to remove u-boot.bin after make is done.

    Rex