TI 精英們好
我 SDK6 在我們的板子已經完全移植成功。 現在移植 SDK8 的,當中我們的 wan port 似乎不能運作。但有亮起來。
我修改 am335x-evmsk.dts 內的 phy_id 為 <7> (這個 phy mapping 在 sdk6就是7)
static struct cpsw_slave_data am33xx_cpsw_slaves[] = {
{
.slave_reg_ofs = 0x200,
.sliver_reg_ofs = 0xd80,
.phy_id = "0:05",
.dual_emac_reserved_vlan = CPSW_PORT_VLAN_SLAVE_0,
},
{
.slave_reg_ofs = 0x300,
.sliver_reg_ofs = 0xdc0,
.phy_id = "0:07",
.dual_emac_reserved_vlan = CPSW_PORT_VLAN_SLAVE_1,
},
};
,使用sdk8 在linux 下了 ifconfig eth1 up指令 dmesg之後
52.838847] net eth1: initializing cpsw version 1.12 (0)
[ 52.917421] net eth1: phy found : id is : 0x4dd072
[ 82.917475] libphy: 4a101000.mdio:07 - Link is Up - 100/Full
看起來也和 sdk6的版本差不多,另外下面的訊息是開機的訊息,mdio的訊息
[ 2.946951] davinci_mdio 4a101000.mdio: phy[7]: device 4a101000.mdio:07, driver Atheros 8035 ethernet
我後來直接下 dhclient eth1 ,一直拿不到 IP。後來直接在userspace 設定 static ip address 給 eth1,用電腦對接,無法 ping通,若是在 sdk6就可以,查詢了 pin腳,CPU對 ethernet 為 rgmii2,所以dts也沒錯。 另外在 u-boot測試,我先 set ipaddr 172.16.51.100 再 set netmask 255.255.0.0,ping 電腦也是不行,請問我是那裡出錯了? 謝謝。