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

am335x 内核如何从单网口配置成双网口

大家好,想请教一个问题,我们做了一个板子带有两个网口,一个是RGMII,一个是RMII,由于开始用的内核和文件系统是从BBB上移植过来的,所以只能支持一个网口(RGMII已经调通正常工作),现在需要配置成双网口,但是按照TI给的那个AM335x CPSW (Ethernet) Driver's Guide却找不到   [*]  TI CPSW Switch as Dual EMAC这个选项,我看SDK 6,7,8,都没有这个选项,后来看网上说的用设备树的方法配置,也没有成功,请大牛们给与一点指示,非常感谢!

[ 0.112010] hw-breakpoint: debug architecture 0x4 unsupported.
[ 0.113290] cpsw.0: No hwaddr in dt. Using 1c:ba:8c:90:7f:cb from efuse
[ 0.113312] cpsw.1: No hwaddr in dt. Using 1c:ba:8c:90:7f:cd from efuse

[ 0.497908] mmcblk0: p1 p2
[ 0.499707] mmcblk0boot1: unknown partition table
[ 0.500935] mmcblk0boot0: unknown partition table
[ 0.506848] libphy: 4a101000.mdio: probed
[ 0.506877] davinci_mdio 4a101000.mdio: phy[0]: device 4a101000.mdio:00, driver unknown
[ 0.506891] davinci_mdio 4a101000.mdio: phy[19]: device 4a101000.mdio:13, driver unknown
[ 0.506903] davinci_mdio 4a101000.mdio: phy[31]: device 4a101000.mdio:1f, driver unknown
[ 0.507090] Detected MACID = 1c:ba:8c:90:7f:cb
[ 0.507200] cpsw 4a100000.ethernet: NAPI disabled
[ 0.508521] omap_rtc 44e3e000.rtc: setting system clock to 2014-05-16 02:10:50 UTC (1400206250)

[ 10.552607] gadget: high-speed config #1: Multifunction with RNDIS
[ 20.161820] net eth0: initializing cpsw version 1.12 (0)
[ 20.166070] net eth0: phy found : id is : 0x4dd074
[ 20.167492] net eth0: phy found : id is : 0x2000a211
[ 20.177924] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 22.173018] libphy: 4a101000.mdio:00 – Link is Up – 100/Full
[ 22.173066] libphy: 4a101000.mdio:1f – Link is Up – 0/Half
[ 22.173627] libphy: 4a101000.mdio:1f – Link is Down
[ 22.173700] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[ 22.858819] net eth0: initializing cpsw version 1.12 (0)
[ 22.861402] net eth0: phy found : id is : 0x4dd074
[ 22.861979] net eth0: phy found : id is : 0x2000a211
[ 22.866096] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 23.236890] net eth0: initializing cpsw version 1.12 (0)
[ 23.239440] net eth0: phy found : id is : 0x4dd074
[ 23.239624] net eth0: phy found : id is : 0x2000a211
[ 23.243917] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 25.247262] libphy: 4a101000.mdio:00 – Link is Up – 100/Full
[ 25.247917] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
root@U-NEST:~# ifconfig

jack chen51:

请问一下楼主,问题解决了吗?我也遇到同样问题了,希望可以得到解答,谢谢你!

yongqing wang:

回复 jack chen51:

make menuconfig 配置内核支持Drivers for SMSC PHYs

yongqing wang:

回复 yongqing wang:

参考一下这个帖子吧:www.cnblogs.com/…/8384186.html

jack chen51:

回复 yongqing wang:

好的谢谢

jack chen51:

回复 yongqing wang:

请教一下,我找不到 Drivers for SMSC PHYs 选项。
kernel 4.9.147,从 github.com/…/4.9 下载的

配置步骤是:
make distcleanmake ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- bb.org_defconfigmake ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- menuconfig

但是 Device Drivers > Network device support > PHY Device support and infrastructure > 没有此选项,见下图:

yongqing wang:

回复 jack chen51:

换个版本的看看

jack chen51:

回复 yongqing wang:

请问一下,推荐的版本是?

或者,推荐的内核配置是?

直接使用 ti-processor-sdk-linux-am335x-evm-05.02.00.10 吗?

jack chen51:

回复 yongqing wang:

大神你好,我把我的问题整理了一下,开了一个问题:
e2echina.ti.com/…/514248

可以解答一下吗?谢谢您!!!

yongqing wang:

回复 jack chen51:

你试试4.4.12的内核版本

yongqing wang:

回复 yongqing wang:

又找了实现过程比较新且比较完整的经验贴给你看看:blog.csdn.net/…/79802735

赞(0)
未经允许不得转载:TI中文支持网 » am335x 内核如何从单网口配置成双网口
分享到: 更多 (0)