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.

[FAQ] 66AK2H12: How to flash U-Boot and Linux kernel using Shell Scripts in Processor SDK Linux

Part Number: 66AK2H12

How to flash U-Boot and Linux kernel using Shell Scripts in Processor SDK Linux in 66AK2H12 ?

  • This FAQ explains the UBI image flashing on the K2H family processor. The prerequisites for this FAQ are,

    1. Download and install the Processor SDK Linux

    2. UBI pre-built image is present in the "{SDK Folder}/board-support/prebuilt-images".

    3. TFTP server must be installed in the Host PC - link.

    Now the Steps to Flash the UBI image,

    1. Connect the mini USB cable to the BMC port (J1) and UART Port (J3) and the other ends to the Host PC.

    2. Connect an ethernet cable to the EVM (for TFTP image Transfer) to either switch or router, Make sure the IP address is displayed on the EVM LCD screen (After powering up, which is step 3).

    3. Power up and Boot the K2H EVM in ARM SPI mode, For boot mode switch settings, This SDK documentation gives the larger picture of Boot mode switch settings.


    4. Check for the "BOOT COMPLETE" message on the LCD screen in EVM.

    5. Make sure that you have added your "user" ($USER) account to the "dialout" group, this is to make sure serial ports are accessible. Now, there will be 4 ports available in Linux (Ubuntu PC) 

      sudo adduser ${USER} dialout

      1. ttyUSB0 and ttyUSB1 (or it might be the ttyUSBx series)

      2. ttyAMC0 and ttyAMC1 (or it might be the ttyAMCx series) 

    6. In the host PC, Open the Bash Terminal and run "" which is present in "/home/${USER}/ti-processor-sdk-linux-k2hk-evm-"

    7. Kindly follow the video, 

    8. The questions asked during the execution will be answered

      1. Give the path of "targetNFS" to install else, it will choose the default path. "[ {SDK Folder}/targetNFS ]". 

      2. Now select the "TFTP" server's root directory.

        1. This is a prerequisite - To install TFTP Server give "sudo apt install tftpd-hpa". This will install and configurations can be set in the "/etc/default/tftpd-hpa" file.

        2. Refer to this link for TFTP installation, Link to TFTP installation.

      3. Now, The setup will copy the following files into the TFTP server root directory (TFTP server root of the Host system)

        1. zImage-k2hk-evm.bin,

        2. keystone-k2hk-evm.dtb,

        3. uboot-spi-k2hk-evm.gph,

        4. skern-k2hk.bin and

      4. k2-fw-initrd.cpio.gz. All those files are located in the "{SDK Folder}/board-support/prebuilt-images" folder. 

      5. Now, Input the serial port of the EVM "/dev/ttyUSB0" to configure Minicom configuration. 

      6. Now it will show the system IP for the TFTP transaction. 

      7. Now select the UBI image, choose U-Boot, and the UBI file system needs to be installed. 

      8. Select the "ZImage", "Secondary Boot", "UART Port", "BMC Port". 

      9. It will open Minicom and update the image from U-Boot.
      10. On successful boot, it will show as below.

    Thanks & Regards,

    Rajarajan U