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

關於 eth10 無法獲得 IP 位址

AM335X 的客製版,上面跑 ubuntu filesystem

 網路線接口有反應,開進filesystem時網路接口持續亮著,但我打 dhclient eth10 來想獲得位址,會沒有反應必須按 ctrl+c 停止。

下 dmesg 指令,我只截取一小段關於 ethnet 相關訊息

[   50.342987]  net eth10: CPSW phy found : id is : 0x4dd072
[   50.435394] ADDRCONF(NETDEV_UP): eth10: link is not ready
[   53.335937] PHY: 0:07 – Link is Up – 100/Full
[   53.336486] ADDRCONF(NETDEV_CHANGE): eth10: link becomes ready

附件為開機 log

請給我 debug 的方向,謝謝。

kooking:

输入命令没有反应后,可以等一会,dhcp自动获取可能需要一段时间,如果失败,最后会有超时失败的提示

Bernie Chen:

回复 kooking:

你好,等了一會兒時間,沒有出現任何錯誤訊息,但是仍然沒有 IP 位址。還有甚麼方向我可以去看得嗎? 謝謝。

kooking:

回复 Bernie Chen:

那试一下ifconfig设置静态IP可以不,如果静态成功,dhcp失败有可能是公司的网络不支持dhcp,还有可能是内核的menuconfig没有选中dhcp 

Bernie Chen:

回复 kooking:

你好,我嘗試下 ifconfig eth0 172.16.51.28 是能獲得IP位址的,但就是無法透過hub ping 其他電腦。

別的板子或者電腦皆可以使用 dhcp,這次的板子和 code 就無法獲得,已經排除是硬體問題,只差軟體。

kernel 我們是選用 3.2,我還沒仔細細看是否有選中 dhcp功能,明天會再去試。

謝謝。

Jian Zhou:

回复 Bernie Chen:

想问一下您的u-boot下面可以正常执行DHCP么?

Bernie Chen:

回复 Jian Zhou:

你好TI

CONFIG_IP_PNP_DHCP=y 看樣子kernel 有選取。

u-boot? 請問我要怎麼在 u-boot 下測試執行 DHCP ? 謝謝。

Bernie Chen:

回复 Jian Zhou:

你好TI

CONFIG_IP_PNP_DHCP=y 看樣子kernel 有選取。

u-boot? 請問我要怎麼在 u-boot 下測試執行 DHCP ? 謝謝。

Michael Sun:

回复 Bernie Chen:

进入uboot后在命令行执行:

 

U-Boot # setenv autoload no
U-Boot # dhcp

 

更多信息:

http://processors.wiki.ti.com/index.php/AMSDK_u-boot_User%27s_Guide#Network_configuration_via_DHCP

Jian Zhou:

回复 Michael Sun:

一般网络的问题建议先在u-boot下做基本调试,定位下是硬件的问题还是软件问题,亦或是整个网络环境的问题

Bernie Chen:

回复 Jian Zhou:

在u-boot 下的訊息。

請問這有代表甚麼嗎?? 謝謝。

cpsw Waiting for PHY auto negotiation to complete……… TIMEOUT !cpsw Waiting for PHY auto negotiation to complete……… TIMEOUT !BOOTP broadcast 9cpsw Waiting for PHY auto negotiation to complete……… TIMEOUT !cpsw Waiting for PHY auto negotiation to complete……… TIMEOUT !BOOTP broadcast 10cpsw Waiting for PHY auto negotiation to complete……… TIMEOUT !cpsw Waiting for PHY auto negotiation to complete……… TIMEOUT !Retry count exceeded; starting againusing musb-hdrc, OUT ep1out IN ep1in STATUS ep2inMAC 1c:ba:8c:96:42:75HOST MAC de:ad:be:af:00:00RNDIS readyERROR: The remote end did not respond in time.at ether.c:2388/usb_eth_init()cpsw Waiting for PHY auto negotiation to complete……… TIMEOUT !cpsw Waiting for PHY auto negotiation to complete……… TIMEOUT !cpsw Waiting for PHY auto negotiation to complete……… TIMEOUT !BOOTP broadcast 1cpsw Waiting for PHY auto negotiation to complete……… TIMEOUT !cpsw Waiting for PHY auto negotiation to complete……… TIMEOUT !BOOTP broadcast 2cpsw Waiting for PHY auto negotiation to complete……… TIMEOUT !cpsw Waiting for PHY auto negotiation to complete……… TIMEOUT !BOOTP broadcast 3cpsw Waiting for PHY auto negotiation to complete……… TIMEOUT !cpsw Waiting for PHY auto negotiation to complete……… TIMEOUT !BOOTP broadcast 4cpsw Waiting for PHY auto negotiation to complete……… TIMEOUT !cpsw Waiting for PHY auto negotiation to complete……… TIMEOUT !BOOTP broadcast 5cpsw Waiting for PHY auto negotiation to complete……… TIMEOUT !cpsw Waiting for PHY auto negotiation to complete…….

赞(0)
未经允许不得转载:TI中文支持网 » 關於 eth10 無法獲得 IP 位址
分享到: 更多 (0)