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:K2HK 系列处理器的 Linux 刷写步骤

Guru**** 633105 points
请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1129722/faq-66ak2h12-linux-flashing-steps-for-k2hk-family-processor

器件型号:66AK2H12

如何使用"processor-sdk-linux-k2HK"软件包中的 NFS 在 K2E 上引导 Linux ?

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    要使用主机 PC 的 NFS 从 U-Boot 刷写 Linux、需要完成以下先决条件。

    1. 按照 以下常见问题解答构建 Linux - https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1129725/faq-66ak2h12-linux-build-from-processor-linux-sdk

    步骤

    现在、请按照步骤操作。

    1. 使用以下串行设置通过"串行终端"进行连接
      1. 波特率:115200
      2. 数据位:8.
      3. 停止位: 1.
      4. 奇偶校验:无
      5. 流量控制:无
    2. 在主机上安装 TFTP 服务器并通过提供以下命令将根文件夹修改为"/tftpboot"
      //to set static ip in Host PC, replace "eno1" with your Interface and
      //"192.168.2.21" with local IP address
      sudo ifconfig eno1 192.168.2.21 up
      
      //check ip
      ifconfig
      
      //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
      
      TFTP_USERNAME="tftp"
      TFTP_DIRECTORY="/tftpboot"
      TFTP_ADDRESS=":69"
      TFTP_OPTIONS="--secure"
      
      //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. 现在、在 U-boot 终端上、按上述顺序依次给出以下命令(也提供 DHCP 或静态 IP 命令、不提供这两个命令)
      //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 192.168.2.250
      # setenv gatewayip 192.168.2.1
      # setenv netmask 255.255.255.0
      
      //set tftp serer ip
      # setenv serverip 192.168.2.252
      
      
      # 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=192.168.2.25:::::eth0:off rootwait=1 root=/dev/nfs nfsroot=192.168.2.21:/home/tidev/ti-processor-sdk-linux-k2hk-evm-06.03.00.106/targetNFS,v3,tcp rw'
      
      # saveenv							//make local variables into environment variables
      
      # ping ${serverip}
      
      # boot
    4. 以下视频演示了步骤e2e.ti.com/.../Kazam_5F00_screencast_5F00_00000.mp4

    谢谢、此致、

    Rajarajan U