OK6410开发板网络参数配置
首先用USB转串口线连接开发板和PC机,打开超级终端,设置波特率为:115200,流控设为:无!
给开发板上电(开发板已经烧好了u-boot。。。),按空格键让界面停留在:
###################### User Menu for OK6410#####################
[1] Format the nand flash
[2] Burn image from USB
[3] configure the lcd size
[4] Boot the system
[5] Reboot the u-boot
[6] Exit to command line
-----------------------------Select---------------------------------
Enter your Selection:
按下键盘“6”退出命令行,出现:SMDK6410 # ……,接着输入命令print查看开发板的网络参数:
bootargs=root=/dev/mtdblock2 rootfstype=yaffs2 init=/linuxrc console=ttySAC0,115
200
bootcmd=nand read 0xc0008000 0x200000 0x500000;bootm 0xc0008000
bootdelay=1
baudrate=115200
ethaddr=00:40:5c:26:0a:5b
ipaddr=192.168.2.111
serverip=192.168.2.100
gatewayip=192.168.2.1
netmask=255.255.255.0
stdin=serial
stdout=serial
stderr=serial
Environment size: 331/524284 bytes
从上面可以查看到开发板的ip地址等信息,再查看PC机的IP地址,如果6410开发板和PC机的IP不再同一个段,则需要更改开发板IP,输入以下命令:
set ipaddr 192.168.48.103 ------------------------修改开发板IP
set serverip 192.168.48.102 ------------------------修改服务器IP为PC机的IP地址
save ------------------------保存参数设置
设置好以后再输入:ping 192.168.1.102,来ping服务器(PC机),此时出现:
ping failed; host 192.168.1.102 is not alive
没有ping通,再来设置网关,输入命令:
set gatewayip 192.168.1.1 ------------------------修改开发板网关
save ------------------------保存参数设置
再输入ping 192.168.48.102来ping服务器, 出现:host 192.168.48.102 is alive,顺利ping通!
注意:只能用“超级终端”在u-boot中ping服务器(PC机),不能用服务器(PC机) ping开发板,因为
u-boot不会给回应的!
评论