Living with you!
欢迎转载
http://blog.csdn.net/livingpark
Living Park
u-boot-1.3.4
基本设置(include/configs/at91rm9200dk.h):<添加>
#define CONFIG_ETHADDR 02:80:ae:20:60:6f //MAC 地址
#define CONFIG_NETMASK 255.255.255.0 //子网掩码
#define CONFIG_IPADDR 10.10.200.101 //本地IP
#define CONFIG_SERVERIP 10.10.200.28 //主机IP
{IP根据实际情况修改}
网卡(include/configs/at91rm9200dk.h):<修改>
AT91RM9200 使用DM916, 实际使用RTL8201BL,网卡接口不同,
将#define CONFIG_AT91C_USE_RMII 改成 #undef CONFIG_AT91C_USE_RMII
启动内核时要设置参数(include/configs/at91rm9200dk.h):<添加>
#define CONFIG_BOOTARGS “root=/dev/ram rw initrd=0x21200000,8000000 ramdisk_size=20000,console=ttyS0,115200 mem=32M”
u-boot启动后通过tftp自启动内核(include/configs/at91rm9200dk.h):<添加>
#define CONFIG_BOOTCOMMAND "tftp 0x21000000 uimage;tftp 0x21200000 ramdisk;bootm 21000000"
(其中#define CONFIG_BOOTDELAY 3定义自启动的等待时间,单位是秒)
{传输、启动地址根据实际情况修改}