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: Linux Flashing steps for K2HK family processor

Part Number: 66AK2H12

How to boot Linux on K2E using NFS from the package  "PROCESSOR-SDK-LINUX-K2HK" ?

  • For flashing Linux from U-Boot using NFS from Host PC, the following pre-requisite needs to be done.

    1. Build Linux by following this FAQ -


    Now, Kindly follow the steps.

    1. Connect through "Serial terminal" with the following serial settings
      1. Baud rate: 115200
      2. Data bit: 8
      3. Stop bit: 1
      4. Parity: None
      5. Flow control: None
    2. Install TFTP server on Host and modify the root folder to "/tftpboot" by giving the following commands
      //to set static ip in Host PC, replace "eno1" with your Interface and
      //"" with local IP address
      sudo ifconfig eno1 up
      //check ip
      //update the repository
      sudo apt update
      //tftp install command
      sudo apt install tftpd-hpa
      //check tftp server status
      sudo systemctl status tftpd-hpa
      //modify tftp server root folder to "/tftpboot"
      sudo nano /etc/default/tftpd-hpa
      //inside this file modify as follows
      # /etc/default/tftpd-hpa
      //again come back to terminal, change ownership
      sudo chown tftp:tftp /tftpboot
      //restart the server
      sudo systemctl restart tftpd-hpa
      //And check status
      sudo systemctl status tftpd-hpa
    3. And, now On U-boot terminal, give the following commands sequentially in the mentioned order (Also give commands either DHCP or static IP, do not give both commands)
      //Load default environment variables
      # env default -f -a
      //If device(EVM) IP address is set through dhcp 
      # setenv autoload no
      # dhcp
      //If device(EVM) IP address has to be set manually
      # setenv ipaddr
      # setenv gatewayip
      # setenv netmask
      //set tftp serer ip
      # setenv serverip
      # setenv bootcmd 'tftpboot 0x82000000 zImage-k2hk-evm;tftpboot 0x87000000 skern-k2hk.bin;mon_install 0x87000000;tftpboot 0x88000000 keystone-k2hk-evm.dtb;bootz 0x82000000 - 0x88000000'
      # setenv bootargs 'earlyprintk debug console=ttyS0,115200n8 ip= rootwait=1 root=/dev/nfs nfsroot=,v3,tcp rw'
      # saveenv							//make local variables into environment variables
      # ping ${serverip}
      # boot
    4. The following video demonstrates the steps,

    Thanks & Regards,

    Rajarajan U