|
直接用提供的uboot都不行
EmbedSky> ping 192.168.0.13
dm9000 i/o: 0x20000300, id: 0x90000a46
MAC: 0a:1b:2c:3d:4e:5f
ping failed; host 192.168.0.13 is not alive
EmbedSky> printenv
bootargs=noinitrd root=/dev/mtdblock2 init=/linuxrc console=ttySAC0
bootcmd=nboot 0x32000000 kernel; bootm 0x32000000
bootdelay=0
baudrate=115200
ethaddr=0a:1b:2c:3d:4e:5f
netmask=255.255.255.0
mtdids=nand0=nandflash0
mtdparts=mtdparts=nandflash0:256k@0(bios),128k(params),128k(toc),512k(eboot),1024k(logo),2m(kernel),-(root)
ipaddr=192.168.0.12
serverip=192.168.0.13
stdin=serial
stdout=serial
stderr=serial
partition=nand0,0
mtddevnum=0
mtddevname=bios
Environment size: 455/131068 bytes
主机设置为
widon@widon-laptop:~$ cat /etc/network/interfaces
#The loopback network interface
auto lo
iface lo inet loopback
#The primary network interface
auto eth0
iface eth0 inet static
address 192.168.0.13
gateway 192.168.0.1
netmask 255.255.255.0
widon@widon-laptop:~$ cat /etc/resolv.conf
# Generated by NetworkManager
domain domain
search domain
nameserver 61.139.2.69
nameserver 202.98.96.68
widon@widon-laptop:~$ ifconfig
eth0 Link encap:以太网 硬件地址 00:1b:fc:0a:54:f2
inet 地址:192.168.0.13 广播:192.168.0.255 掩码:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 跃点数:1
接收数据包:1453 错误:0 丢弃:0 过载:0 帧数:0
发送数据包:1361 错误:0 丢弃:0 过载:0 载波:0
碰撞:0 发送队列长度:1000
接收字节:1248986 (1.2 MB) 发送字节:225139 (225.1 KB)
中断:28 基本地址:0x4000
lo Link encap:本地环回
inet 地址:127.0.0.1 掩码:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 跃点数:1
接收数据包:124 错误:0 丢弃:0 过载:0 帧数:0
发送数据包:124 错误:0 丢弃:0 过载:0 载波:0
碰撞:0 发送队列长度:0
接收字节:10481 (10.4 KB) 发送字节:10481 (10.4 KB) |
|