|
TQ-lkp 发表于 2013-3-4 09:02
网关的设置方法是在uboot模式下按q 进入命令模式,然后使用printenv查看系统参数,找到gateway的设置项,用 ...
这是我电脑用无线网IP:192.168.137.70,板子插线IP:192.168.1.101后对板子的参数设置如下:
EmbedSky> printenv
bootargs=noinitrd root=/dev/mtdblock2 init=/linuxrc console=ttySAC0
bootcmd=boot_zImage
bootdelay=0
baudrate=115200
ethaddr=0a:1b:2c:3d:4e:5f
mtdids=nand0=nandflash0
mtdparts=mtdparts=nandflash0:256k@0(bios),128k(params),128k(toc),512k(eboot),1024k(logo),3m(kernel),-(root)
filesize=357f0
filesize+1=40000
fileaddr=30000000
stdin=serial
stdout=serial
stderr=serial
partition=nand0,0
mtddevnum=0
mtddevname=bios
serverip=192.168.137.70
ipaddr=192.168.1.101
netmask=255.255.255.0
测试PING电脑时:Enter your selection: p
TQ2440 ping PC IP:ping 192.168.137.70
dm9000 i/o: 0x20000300, id: 0x90000a46
MAC: 0a:1b:2c:3d:4e:5f
## Warning: gatewayip needed but not set
## Warning: gatewayip needed but not set
ping failed; host 192.168.137.70 is not alive |
|