大家好,我拿到TI的8168EVM后按照其文档进行了如下操作,串口工具为MINICOM,启动板子后,终止系统,进入UBOOT环境,进行如下配置:(目的就是想通过TFTP下载内核,用NFS挂载跟文件系统)
(1)Flashing U-Boot from U-Boot (Using NAND Boot):
mw.b 0x81000000 0xFF 0x32800;tftp 0x81000000 uboot_NAND_DM816X_EVM;nandecc hw 2;nand erase 0x0 0x240000;nand write.i 0x81000000 0x0 0x32800
(2)Flashing Linux Kernel from U-Boot (Using TFTP For flashing uImage to NAND):
mw.b 0x81000000 0xFF 0x300000;tftp 0x81000000 uImage_DM816X_EVM;nand erase 0x00580000 0x440000;nand write.i 0x81000000 0x00580000 0x300000
(3)TFTP server is used for booting kernel, NFS is used as root filesystem:
setenv bootargs 'mem=116M console=ttyO2,115200n8 root=/dev/nfs rw nfsroot=192.168.0.153:/usr/DVRRDK_03.00.00.00/target/rfs_816x ip=192.168.0.152:192.168.0.153:192.168.0.1:255.255.255.0::eth1:off vram=20M notifyk.vpssm3_sva=0xBEE00000'
setenv bootcmd 'tftp 0x81000000 uImage_DM816X_EVM;bootm 0x81000000'
板子的配置参数为:
TI8168_EVM#print
baudrate=115200
verify=yes
loadaddr=0x81000000
script_addr=0x80900000
loadbootscript=fatload mmc 0 ${script_addr} boot.scr
bootscript= echo Running bootscript from MMC/SD to set the ENV...; source ${script_addr}
ethact=DaVinci EMAC
autoload=no
bootdelay=3
ethaddr=00:0c:29:23:01:89
logoreadaddr=0x81000000
hwver=0.3
bootfile=uImage-dm816x-evm.bin
stdin=serial
stdout=serial
stderr=serial
ver=U-Boot 2010.06 (Jul 29 2012 - 19:38:07)
filesize=270D80
fileaddr=81000000
gatewayip=192.168.0.1
netmask=255.255.255.0
ipaddr=192.168.0.152
serverip=192.168.0.153
bootargs=mem=116M console=ttyO2,115200n8 root=/dev/nfs rw nfsroot=192.168.0.153:/usr/DVRRDK_03.
00.00.00/target/rfs_816x ip=192.168.0.152:192.168.0.153:192.168.0.1:255.255.255.0::eth1:off vra
m=20M notifyk.vpssm3_sva=0xBEE00000
bootcmd=tftp 0x81000000 uImage_DM816X_EVM;bootm 0x81000000
Environment size: 839/8188 bytes
///
save后重启板子,系统开始进入LINUX,打印了如下信息:
Net: Detected MACID:0:c:29:23:1:89
Ethernet PHY: GENERIC @ 0x01
DaVinci EMAC
Hit any key to stop autoboot: 0
Using DaVinci EMAC device
TFTP from server 192.168.0.153; our IP address is 192.168.0.152
Filename 'uImage_DM816X_EVM'.
Load address: 0x81000000
Loading: T #################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#############################################
done
Bytes transferred = 2559360 (270d80 hex)
## Booting kernel from Legac