嵌入式开发者社区

标题: AM4379 + AR8035 ETH PHY [打印本页]

作者: pineyer    时间: 2017-9-7 23:15
标题: AM4379 + AR8035 ETH PHY
本帖最后由 pineyer 于 2017-9-8 16:49 编辑

平台:AM4379 +自设计底板1RGMII1+2UART0to usb+3MMC0micro_sd
NAND 启动时
有打印出
[url=][    4.258756] davinci_mdio 4a101000.mdio:phy[4]: device 4a101000.mdio:04, driver Atheros 8035 ethernet[/url][P1]


[P1]AR8035 address = 0b100

芯片型号已识别出。

最后
[url=]ifconfig[/url][P1]
[  44.942390] libphy: 4a101000.mdio:04 - Link is Down
[url=][   48.942441] libphy:4a101000.mdio:04 - Link is Up - 100/Full[/url][P2]


[P1]命令输入没有打印结果,(RTC裸机测试时间可以正常设置。)命令可以正常输入。


[P2]插拔网线仍有相应信息输出,系统没有挂掉。只是对命令不回应。系统硬件上只实现了RGMII1+UART0to usb+MMC0micro_sd
不知是何原因。

7.11 基于starterwarehttpserver例程 测试的结果,测试失败。如下

StarterWare Ethernet Application. Accessthe embedded web page using http://<ip address assigned>/index.html via aweb browser.
Acquiring IP Address for Port 1...
PHY found at address 4.
Gigabit Full duplex is not supported!!!.
Performing Auto-Negotiation...
Auto-Negotiation Successful.
Transfer Mode : 1000 Mbps Full Duplex.
PHY link verified for Port 1 of Instance 0.
DHCP Trial 1...
DHCP Trial 2...
DHCP Trial 3...
DHCP Trial 4...
DHCP Trial 5...
Unable to complete DHCP!
Port 1 IP Address Acquisition Failed.

注:PHY AR8035按照与KSZ9031 同功能管脚挂接在RGMII1 上,包括 ETH1_INTn引脚
问题:
1:PHY 芯片在NAND启动时候可以正常识别出芯片型号,并且插拔网线可以正常识别出速率等状态,由于输入命令没回应,无法进行ping测试判断PHY芯片是否已正常工作。
2:裸机测试,DHCP 获取地址失败,ETH部分仍没有正常工作,这个测试应该是独立于PHY芯片的是吗???

疑问:同具有RGMII接口的AR8035KSZ9031 PHY芯片方案替换时需不需要修改相应驱动配置???








作者: pineyer    时间: 2017-9-7 23:17
问题困扰2days+了,望高人指点。

作者: 544864579    时间: 2017-9-8 17:04
1. 命令不能输入的问题:
(/home/teddy/tl437x/openembedded/tisdk/build/arago-tmp-external-linaro-toolchain/work/cortexa9t2hf-vfp-neon-linux-gnueabi/lighttpd/1.4.33-r1/lighttpd-1.4.33/src/log.c.166) server started

Calibrating touchscreen (first time only)xres = 800, yres = 480
(stk) :ldisc installation timeout

---------
原因:停止触摸校准的界面这里了。
解决:1.如果有触摸屏,可以接触摸屏进行校准。2. 或者将SD卡(已经做好系统的卡),连接到虚拟机,分别进入boot分区和rootfs分区的etc目录下,增加pointercal文件(用于跳过触屏校准界面,输入touch pointercal即可增加)

--------------------------------------------------------------
2. 能正常登陆终端后,用命令udhcpc查看是否能获取到IP。(MDIO能识别到phy地址和phy型号,phy驱动没问题)
如果获取不到IP,在内核配置中选中这几个驱动再测试。






欢迎光临 嵌入式开发者社区 (https://51ele.net/) Powered by Discuz! X3.4