下面是我的操作及测试TFTP和NFS服务有没有打开:
[root@localhost /]# service nfs restart
关闭 NFS mountd: [确定]
关闭 NFS 守护进程:^[ [确定]
关闭 NFS quotas [确定]
关闭 NFS 服务: [确定]
启动 NFS 服务: [确定]
关掉 NFS 配额: [确定]
启动 NFS 守护进程: [确定]
启动 NFS mountd: [确定]
[root@localhost /]# service xinetd restart
停止 xinetd: [确定]
启动 xinetd: [确定]
[root@localhost /]# mount -t nfs 192.168.2.202:/home/zzq /mnt
[root@localhost /]# cd mnt
[root@localhost mnt]# ls
bin Documents home mnt nfsroot.tar.gz Public Templates var
Desktop Download init Music Pictures sbin tmp Videos
dev etc lib nfs proc sys usr
[root@localhost mnt]
已配置好NFS服务
[root@localhost /]# /etc/init.d/iptables status
防火墙已停
[root@localhost /]# tftp 192.168.2.202
tftp> get abc.c
tftp> q
[root@localhost /]#
防火墙也已经关闭
U-Boot> ping 192.168.2.202
macb0: link up, 100Mbps full-duplex (lpa: 0x45e1)
Using macb0 device
host 192.168.2.202 is alive
板子能够与linux服务器PING 通
U-Boot> printenv
bootdelay=3
baudrate=115200
ethact=macb0
ethaddr=00:22:33:45:43:33
filesize=217580
fileaddr=71100000
bootcmd=nand read 0x72000000 0x200000 0x200000 ;nand read 0x71100000 0x400000 0x
300000 ;bootm 0x72000000
ipaddr=192.168.2.44
serverip=192.168.2.202
bootargs=mem=64M console=ttyS0 115200 root=/dev/nfs rw nfsroot=192.168.2.202:/ho
me/zzq ip=192.168.2.44:192.168.2.202:192.168.2.1:255.255.255.0::eth0:off
Environment size: 402/131067 bytes
以上为板子所设置的环境变量
U-Boot> ping 192.168.2.202
macb0: link up, 100Mbps full-duplex (lpa: 0x45e1)
Using macb0 device
host 192.168.2.202 is alive
U-Boot> tftp 0x72000000 uImage
macb0: link up, 100Mbps full-duplex (lpa: 0x45e1)
Using macb0 device
TFTP from server 192.168.2.202; our IP address is 192.168.2.44
Filename 'uImage'.
Load address: 0x72000000
Loading: #T T T #T T T T T #T T T T T #T #T T T T T #T T T T T T #T #T T T T T T
T T T T #T ##T T T
Retry count exceeded; starting again
macb0: link up, 100Mbps full-duplex (lpa: 0x45e1)
Using macb0 device
TFTP from server 192.168.2.202; our IP address is 192.168.2.44
Filename 'uImage'.
Load address: 0x72000000
Loading: #T T T #T T #T T #T T T T T T T #T T T T T #T T T T T T T T
下载不能成功
但我在共享目录中新建一个其他的文件:234.c 可以下载成功 这能不能说明我的TFTP服务器已经打开了。
U-Boot> tftp 0x72000000 234.c
macb0: link up, 100Mbps full-duplex (lpa: 0x45e1)
Using macb0 device
TFTP from server 192.168.2.202; our IP address is 192.168.2.44
Filename '234.c'.
Load address: 0x72000000
Loading: #
done
Bytes transferred = 2921 (b69 hex)
请教下工程师们,问题可能是怎样产生的? |