<meter id="pryje"><nav id="pryje"><delect id="pryje"></delect></nav></meter>
          <label id="pryje"></label>

          新聞中心

          EEPW首頁 > 嵌入式系統(tǒng) > 設計應用 > OK6410開發(fā)板網絡參數(shù)配置

          OK6410開發(fā)板網絡參數(shù)配置

          作者: 時間:2016-11-21 來源:網絡 收藏
          要想讓OK6410開發(fā)板和PC機通過網絡傳輸文件首先開發(fā)板要能夠PING通PC機!
          首先用USB轉串口線連接開發(fā)板和PC機,打開超級終端,設置波特率為:115200,流控設為:無!
          給開發(fā)板上電(開發(fā)板已經燒好了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”退出命令行,出現(xiàn):SMDK6410 # ……,接著輸入命令print查看開發(fā)板的網絡參數(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
          從上面可以查看到開發(fā)板的ip地址等信息,再查看PC機的IP地址,如果6410開發(fā)板和PC機的IP不再同一個段,則需要更改開發(fā)板IP,輸入以下命令:
          set ipaddr 192.168.48.103 ------------------------修改開發(fā)板IP
          set serverip 192.168.48.102 ------------------------修改服務器IP為PC機的IP地址
          save ------------------------保存參數(shù)設置
          設置好以后再輸入:ping 192.168.1.102,來ping服務器(PC機),此時出現(xiàn):
          ping failed; host 192.168.1.102 is not alive
          沒有ping通,再來設置網關,輸入命令:
          set gatewayip 192.168.1.1 ------------------------修改開發(fā)板網關
          save ------------------------保存參數(shù)設置
          再輸入ping 192.168.48.102來ping服務器, 出現(xiàn):host 192.168.48.102 is alive,順利ping通!
          注意:只能用“超級終端”在u-boot中ping服務器(PC機),不能用服務器(PC機) ping開發(fā)板,因為
          u-boot不會給回應的!


          評論


          技術專區(qū)

          關閉
          看屁屁www成人影院,亚洲人妻成人图片,亚洲精品成人午夜在线,日韩在线 欧美成人 (function(){ var bp = document.createElement('script'); var curProtocol = window.location.protocol.split(':')[0]; if (curProtocol === 'https') { bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'; } else { bp.src = 'http://push.zhanzhang.baidu.com/push.js'; } var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(bp, s); })();