OK6410開(kāi)發(fā)板網(wǎng)絡(luò)參數(shù)配置
首先用USB轉(zhuǎn)串口線連接開(kāi)發(fā)板和PC機(jī),打開(kāi)超級(jí)終端,設(shè)置波特率為:115200,流控設(shè)為:無(wú)!
給開(kāi)發(fā)板上電(開(kāi)發(fā)板已經(jīng)燒好了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:
按下鍵盤(pán)“6”退出命令行,出現(xiàn):SMDK6410 # ……,接著輸入命令print查看開(kāi)發(fā)板的網(wǎng)絡(luò)參數(shù):
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
從上面可以查看到開(kāi)發(fā)板的ip地址等信息,再查看PC機(jī)的IP地址,如果6410開(kāi)發(fā)板和PC機(jī)的IP不再同一個(gè)段,則需要更改開(kāi)發(fā)板IP,輸入以下命令:
set ipaddr 192.168.48.103 ------------------------修改開(kāi)發(fā)板IP
set serverip 192.168.48.102 ------------------------修改服務(wù)器IP為PC機(jī)的IP地址
save ------------------------保存參數(shù)設(shè)置
設(shè)置好以后再輸入:ping 192.168.1.102,來(lái)ping服務(wù)器(PC機(jī)),此時(shí)出現(xiàn):
ping failed; host 192.168.1.102 is not alive
沒(méi)有ping通,再來(lái)設(shè)置網(wǎng)關(guān),輸入命令:
set gatewayip 192.168.1.1 ------------------------修改開(kāi)發(fā)板網(wǎng)關(guān)
save ------------------------保存參數(shù)設(shè)置
再輸入ping 192.168.48.102來(lái)ping服務(wù)器, 出現(xiàn):host 192.168.48.102 is alive,順利ping通!
注意:只能用“超級(jí)終端”在u-boot中ping服務(wù)器(PC機(jī)),不能用服務(wù)器(PC機(jī)) ping開(kāi)發(fā)板,因?yàn)?
u-boot不會(huì)給回應(yīng)的!
評(píng)論