Tftp下不进内核到mini2440开发板,会是什么原因呢?
1 PC机的环境
在win7里安装虚拟机,fedora19运行在虚拟机里。虚拟机是采样NAT的连接方式。
虚拟机的网卡开启,本地连接开启,无线网卡禁止。
Win7系统的杀毒软件关闭。Linux防火墙用如下命令关闭:
service iptables stop
配置tftp服务器 vi /etc/xinetd.d/tftp,结果如下:
service tftp
{
socket_type = dgram
protocol = udp
wait = yes
user = root
server = /usr/sbin/in.tftpd
server_args = -s /tftpboot
disable = no
per_source = 11
cps = 100 2
flags = IPv4
}
在虚拟机里用ifconfig命令查看ip,结果如下:
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 0 (Local Loopback)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
p3p1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.44.130 netmask 255.255.255.0 broadcast 192.168.44.255
inet6 fe80::20c:29ff:fe5d:c942 prefixlen 64 scopeid 0x20<link>
ether 00:0c:29:5d:c9:42 txqueuelen 1000 (Ethernet)
RX packets 1624 bytes 165793 (161.9 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 702 bytes 85639 (83.6 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device interrupt 19 base 0x2000
没有eth0,为什么?后面以p3p1作为eth0
然后将开发板从nand启动,在SecureCRT里设置,如下:
setenv ipaddr 192.168.44.120 // 开发板IP,改成了跟虚拟机里linux的p3p1一样的网段
setenv serverip 192.168.44.130 //Windows IP,虚拟机里linux的p3p1的IP
setenv gatewayip 192.168.44.1 // 网关
saveenv
然后下载程序,tftp 0x30008000 uImage
出现T T T T….
哪里出了问题呢???
|