开发板型号是TCIEVMK2X REV11,通过TFTP启动内核的时候停止在mon_install 0x0c5f0000这一步,原因不明。
具体的操作步骤如下:
在windows主机上运行TFTP Server,windows主机IP地址为192.168.2.3
使用CCS下载UBOOT运行,然后设置Uboot的环境变量如下:( uImage-k2hk-evm.dtb、arago-console-image-k2hk-evm.cpio.gz、skern-k2hk-evm.bin、uImage-keystone-evm这四个文件是从官网下载的mcsdk_3_01_00_03.tar.gz文件中解压得到)
K2HK EVM # printenv
baudrate=115200
bootargs=console=ttyS0,115200n8 rootwait=1 earlyprintk rdinit=/sbin/init rw root=/dev/ram0 initrd=0x80200000,9M
bootcmd=tftp 0x87000000 uImage-k2hk-evm.dtb; tftp 0x82000000 arago-console-image-k2hk-evm.cpio.gz; tftp 0xc5f0000 skern-k2hk-evm.bin; tftp 0x88000000 uImage-keystone-evm; mon_install 0x0c5f0000; bootm 0x88000000 - 0x87000000
bootdelay=3
bootfile=uImage
ethact=K2HK_EMAC
ethaddr=00:17:ea:f7:a6:87
ipaddr=192.168.2.10
mtdids=nand0=davinci_nand.0
no_post=1
serverip=192.168.2.3
stderr=serial
stdin=serial
stdout=serial
ver=U-Boot 2013.01 (Aug 05 2014 - 11:28:59)
Environment size: 606/262140 bytes
设置完环境变量后运行boot命令,UBOOT能成功从TFTP Server下载文件,文件下载完成后就停止在mon_install这一步了。
K2HK EVM # boot
Using K2HK_EMAC device
TFTP from server 192.168.2.3; our IP address is 192.168.2.10
Filename 'uImage-k2hk-evm.dtb'.
Load address: 0x87000000
Loading: ####
1.5 MiB/s
done
Bytes transferred = 50892 (c6cc hex)
Using K2HK_EMAC device
TFTP from server 192.168.2.3; our IP address is 192.168.2.10
Filename 'arago-console-image-k2hk-evm.cpio.gz'.
Load address: 0x82000000
Loading: #################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
################################################################
1.8 MiB/s
done
Bytes transferred = 9514378 (912d8a hex)
Using K2HK_EMAC device
TFTP from server 192.168.2.3; our IP address is 192.168.2.10
Filename 'skern-k2hk-evm.bin'.
Load address: 0xc5f0000
Loading: ####
1.5 MiB/s
done
Bytes transferred = 45056 (b000 hex)
Using K2HK_EMAC device
TFTP from server 192.168.2.3; our IP address is 192.168.2.10
Filename 'uImage-keystone-evm'.
Load address: 0x88000000
Loading: #################################################################
#################################################################
#################################################################
#################################################################
####
1.8 MiB/s
done
Bytes transferred = 3866448 (3aff50 hex)
执行到这里后终端上就没有反应了,看起来是在执行mon_install 0x0c5f0000时卡住了。