IP101可以被识别但无法工作

启动的时候MDIO可以识别PHY ID,REFCLK也有50M的波形

下面是启动的log:

[    1.572012] libphy: mdio: probed

[    1.574580] mdio_bus mdio-bus@emac0: /soc/emac0/mdio-bus@emac0/ethernet-phy@0 has invalid PHY address 

[    1.584351] [emac_phy_connect][3204] connected mac emac0 to PHY at mdio-bus@emac0:00 [uid=11112222, driver=SStar 10/100 Ethernet Phy]  

[    1.596808] MSYS: DMEM request: [emac1_buff]:0x00060812  

[    1.601317] MSYS: DMEM request: [emac1_buff]:0x00060812 success, CPU phy:@0x23C50000, virt:@0xC3C50000

[    1.610988] libphy: mdio: probed

[    1.613573] mdio_bus mdio-bus@emac1: /soc/emac1/mdio-bus@emac1/ethernet-phy@1 has invalid PHY address

[    1.715158] [PHY] Increased Tx CLK driving for daughter board... ip101a_g_config_init ## 186 

[    1.815153] [PHY] Increased Tx CLK driving for daughter board... ip101a_g_config_init ## 186

[    1.842758] [emac_phy_connect][3204] connected mac emac1 to PHY at mdio-bus@emac1:01 [uid=02430c54, driver=ICPlus IP101A/G]

原理图(其中:R91 NC R93 NC):


attachments-2021-11-wTxb9Mgp618bc3cd88bb2.jpg

attachments-2021-11-uM6yhkW2618bc3d94e8b7.jpg

REFCLK

attachments-2021-11-wky7goct618bc3edd7ad5.jpg


启动到Linux rootfs后使用dhcp无法获取IP,该如何调试呢?

请先 登录 后评论

2 个回答

BBelephant

你可以尝试关闭自动获取ip 试试
/etc/init.d/S40network  
不是S开头就不会启动

请先 登录 后评论
Tony

@BBelephant  关闭了网络启动脚本的,dhcp是进入到命令行后,我手动敲的:

dhcp -i eth1

敲了后就会,一直获取不到IP:

udhcpc: started, v1.31.1

udhcpc: sending discover

udhcpc: sending discover

udhcpc: sending discover
udhcpc: sending discover

就算我手动ifconfig 配置一个IP,然后来ping路由器也无法ping通:
# ifconfig eth1 192.168.31.221

# ping -I eth1 192.168.31.1
PING 192.168.31.1 (192.168.31.1) from 192.168.31.221 eth125: 56(84) bytes of data.
^C
--- 192.168.31.1 ping statistics ---
28 packets transmitted, 0 received, 100% packet loss, time 28112ms

#ifconfig eth1
eth1    Link encap:Ethernet  HWaddr 00:30:1B:BA:02:DB  
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1 errors:0 dropped:0 overruns:0 frame:0
          TX packets:53 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:92 (92.0 B)  TX bytes:8832 (8.6 KiB)
          Interrupt:37
请先 登录 后评论
  • 2 关注
  • 0 收藏,1065 浏览
  • Tony 提出于 2021-11-10 21:06

相似问题