TI中文支持网
TI专业的中文技术问题搜集分享网站

dm368 rtl8201 启动ping不通

版主好:

我用自己的板子,网卡用的是rtl8201,连接之后黄灯一直亮,绿灯不亮。ping不通外部主机。请各位指教一下,已经折腾好久了。

下面是u-boot的启动信息:

Using DaVinci-EMAC device
ping failed; host 192.168.1.111 is not alive
Using DaVinci-EMAC device
ping failed; host 192.168.1.153 is not alive
Using DaVinci-EMAC device
ping failed; host 169.254.100.187 is not alive
baudrate=115200
bootargs=console=ttyS0,115200n8 mem=60M noinitrd rw ip=192.168.1.220:192.168.1.151:192.168.1.1:255.255.255.0 root=/tftpboot nfsroot=192.168.1.151:/tftpboot,nolock
bootcmd=run ping updatecore;bootm 0x80700000
bootdelay=3
bootfile="uImage"
eraseall=nand erase 0x00000000 0x08000000
eraseenv=nand erase 0x00060000 0x00020000
ethact=DaVinci-EMAC
ethaddr=00:01:02:03:04:05
gatewayip=192.168.1.1
ipaddr=192.168.1.220
nand_boot=nboot 0x80700000 0 0x100000;bootm
netmask=255.255.255.0
ping=ping 192.168.1.111;ping 192.168.1.153;ping 169.254.100.187;printenv
serverip=192.168.1.153
stderr=serial
stdin=serial
stdout=serial
tftp_boot=tftpboot 0x80700000 uImage;bootm
updatecore=tftp 0x84000000 uImage;nand erase 0x003C0000 0x00300000;nand write 84000000 3C0000 300000
updateuboot=tftp 0x84000000 u-boot.img;nand erase 80000 80000;nand write 84000000 80000 80000
ver=U-Boot 2010.12-rc2 (Jan 20 2014 – 13:26:22)

Environment size: 965/131068 bytes
Using DaVinci-EMAC device
TFTP from server 192.168.1.153; our IP address is 192.168.1.220
Filename 'uImage'.
Load address: 0x84000000
Loading: *T T

Chris Meng:

你好,

你uboot如何修改的?是否修改过PHY的地址?

pengsheng wang:

回复 Chris Meng:

现在已经ping通xp的本地连接了,因为192.168.1网段存在问题,所以将板子和xp下的ip设置到别的地方,可以ping通。

但是VM桥接到本地连接后eth0没有inet的ip,无法ping通虚拟机。虚拟机该怎么设置?

Chris Meng:

回复 pengsheng wang:

你好,

请问你使用的是哪种虚拟机,请参考下面链接的网络配置。

http://processors.wiki.ti.com/index.php/How_to_Build_a_Ubuntu_Linux_host_under_VMware

http://processors.wiki.ti.com/index.php/How_to_Build_a_Ubuntu_Linux_host_under_VirtualBox

 

fish xu:

回复 Chris Meng:

HI:

      我使用的是dm385, phy芯片用的是RTL8201NF,RMII百兆phy,phy的地址硬件配置是:PHYAD[2-0]=100; 测试ping不通      1. uboot中phy_id=0;

      2. GMII_SEL=0x5;

      3. RMII_REFCLK_SRC=1, 因为我们使用的是RTL8201NF引脚CLK_CTL输出,有测试输出50M正常。   

下面是日志:

 MERAYS#ping 192.168.1.100phy info reg 0x1e addr 0 val 400phy info reg 0x1e addr 0 val 0PHY_BMCR:0x3100PHY_BMSR:0x786dPHY_PHYIDR1:0x1cPHY_PHYIDR2:0xc816PHY_ANAR:0x1e1PHY_ANLPAR:0xcde1PHY_ANER:0xfPHY_ANNPTR:0x0PHY_PHYSTS:0x31fPHY_LBR:0x1PHY_PHYCTRL:0x0link up on port 0, speed 100, full duplexUsing cpsw deviceping failed; host 192.168.1.100 is not alive

赞(0)
未经允许不得转载:TI中文支持网 » dm368 rtl8201 启动ping不通
分享到: 更多 (0)