有沒有人熟悉Atheros解決方案和OpenWrt系統? 我的測試臺在Atheros-SDK映像下運行良好,但在OpenWrt映像上運行時發現我的以太網接口(eth0)出現「ping 100%數據包丟失」。我甚至會繼續使用寄存器的設置值,例如ETH_CONF,XMII_CONF,但它還沒有工作。Ping Openwrt下的100%丟包,驅動程序相關問題
任何建議將不勝感激。謝謝! 我的以太網設置在弓/ MIPS/ath79 /馬赫db120.c是:
ath79_register_mdio(0, ~(BIT(5)));
ath79_eth0_data.phy_if_mode = PHY_INTERFACE_MODE_RGMII;
ath79_eth0_data.phy_mask = BIT(5);default is BIT(0)
ath79_eth0_data.mii_bus_dev = &ath79_mdio0_device.dev;
ath79_eth0_pll_data.pll_1000 = 0x06000000;
ath79_eth0_data.duplex = DUPLEX_FULL;
ath79_register_eth(0);
如果我修改了th79_eth0_pll_data.pll_1000到0x46000000
(設置1805002c GIGE_QUAD位),那麼它可以ping但仍然有3%-5%甚至更多的ping損失。我真的想知道ag71xx相關代碼是否存在任何問題? 截面BOOTLOG是:
Starting kernel ...
......
......
[ 0.650000] libphy: ag71xx_mdio: probed
[ 0.650000] eth0: Atheros AG71xx at 0xb9000000, irq 4, mode:RGMII
[ 1.470000] ag71xx ag71xx.0 eth0: connected to PHY at ag71xx-mdio.0:05 [uid=004dd072, driver=Generic PHY]
[email protected]:/# ping 192.168.1.99
PING 192.168.1.99 (192.168.1.99): 56 data bytes
C
--- 192.168.1.99 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
[email protected]:/#
我使用的是OpenWrt主幹,無障礙斷路器。我的主板是Atheros DB120..kernel版本是3.7.4或以上。 – lang7 2013-03-26 23:57:04