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.

Linux/EVMK2H: EVMK2H Doesn't boot up.

Part Number: EVMK2H


Tool/software: Linux

Hello, 

I tried burning u-boot images using tftp server into the NAND flash, and i think i messed up. I used the following commands once i was in boot menu.


setenv default -f -a
setenv serverip 192.168.0.100
setenv boot ubi
setenv mem_reserve 1536M
run get_uboot_net
dhcp 0x87000000 u-boot-spi-keystone-evm.gph
run burn_uboot_spi (since there wasnt any burn_uboot defined)

run get_ubi_net
dhcp 0x82000000 keystone-evm-ubifs.ubi
run burn_ubi
saveenv
reset

there were no errors, the file transfers were successful, yet i dont get anything over the com port now. The evm board isnt booting up now, any ideas what i might have done wrong? How can i fix it? the BMC terminal shows that boot is complete, everything seems good there, yet i dont get anything over the com port. 

I used the arago-base-tisdk-image-k2hk-evm.ubi file and renamed it to keystone-evm-ubifs.ubi from the ~/ti-processor-sdk-linux-rt-k2hk-evm-04.00.00.04/filesystem, directory

and the u-boot-spi-k2hk-evm.gph file from /ti-processor-sdk-linux-rt-k2hk-evm-04.00.00.04/board-support

Did i break the board? Please help.

Best Regards
Sheraz Javaid

 

  • Hi,

    This shouldn't be a problem. Have a look at this wiki and follow the steps described in it:
    processors.wiki.ti.com/.../Program_EVM_UG

    Basically you need to use the program_evm script.

    To summarize your steps should be:
    1. Set the DSS_SCRIPT_DIR environment variable (Mandatory) to your Code Composer Studio scripting bin directory. Example:
    export DSS_SCRIPT_DIR=~/ti/ccsv6/ccs_base/scripting/bin
    2. Set the PROGRAM_EVM_TARGET_CONFIG_FILE environment variable. Please provide the path for the ccxml file that is created for the EVM for the CCS. Example:
    export PROGRAM_EVM_TARGET_CONFIG_FILE=configs/evmk2h/evmk2h-linuxhost.ccxml

    cd bin/program_evm
    $DSS_SCRIPT_DIR/dss.sh program_evm.js evm(k2h|k2e|k2l)-le format-nand

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

    Then follow the wiki steps from here:
    processors.wiki.ti.com/.../Program_EVM_UG

    Note that the steps may vary depending on the board revision:
    processors.wiki.ti.com/.../Program_EVM_UG

    I advise you to read the whole wiki carefully and then perform the necessary steps for flashing your board.

    Best Regards,
    Yordan
  • Hi Yordon,

    I followed the exact steps as mentioned by you and the forum.

       1. Created Symbolic links using these.

    cd bin/program_evm/binaries/evmk2h/
      ln -sv ../../../../board-support/prebuilt-images/u-boot-spi-k2hk-evm.gph nor.bin
      ln -sv ../../../../filesystem/tisdk-server-rootfs-image-k2hk-evm.ubi nand.bin

    2. Modified the nor_writer_input.txt and nand_writer_input.txt to update the file name.

    nor_writer_input.txt:

      file_name  = nor.bin
    

    nand_writer_input.txt:

      file_name  = nand.bin

    3. Set the DSS_SCRIPT_DIR environment variable (Mandatory) to your Code Composer Studio scripting bin directory.

    export DSS_SCRIPT_DIR=~/ti/ccsv6/ccs_base/scripting/bin

    4. Set the PROGRAM_EVM_TARGET_CONFIG_FILE environment variable. Please provide the path for the ccxml file that is created for the EVM for the CCS.

    export PROGRAM_EVM_TARGET_CONFIG_FILE=configs/evmk2h/evmk2h-linuxhost.ccxm

    5. and then run the following command,

    sheraz@sheraz-VirtualBox:~/ti-processor-sdk-linux-rt-k2hk-evm-04.00.00.04/bin/program_evm$ $DSS_SCRIPT_DIR/dss.sh program_evm.js evm(k2h|k2e|k2l)-le format-nand
    bash: syntax error near unexpected token `('

    what could be the problem?

    I am attaching the program_evm.js and dss.sh files.

    Best Regards
    Sheraz Javaid

    Program_evm & dss.tar.gz




  • Let me check this furhter and I will update.
  • Hi Yordon,

    Running the command

    sheraz@sheraz-VirtualBox:~/ti-processor-sdk-linux-rt-k2hk-evm-04.00.00.04/bin/program_evm$ $DSS_SCRIPT_DIR/dss.sh program_evm.js evmk2h-le format-nand

    instead of

    sheraz@sheraz-VirtualBox:~/ti-processor-sdk-linux-rt-k2hk-evm-04.00.00.04/bin/program_evm$ $DSS_SCRIPT_DIR/dss.sh program_evm.js evm(k2h|k2e|k2l)-le format-nand

    resolved the issue.

    specifically i used evmk2h-le format-nand instead of evm(k2h|k2e|k2l)-le format-nand

    My board is now up and running.

  • Hi,

    I just copied the line from the wiki pointed. The command:
    $DSS_SCRIPT_DIR/dss.sh program_evm.js evm(k2h|k2e|k2l)-le format-nand

    is common for all boards and you should select k2h or k2e or k2l :)

    Anyway, good to hear this worked. Thank you for updating the thread.

    Best Regards,
    Yordan