取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
ProtectPigeons
Participant
Participant
247 次查看
注册日期: ‎11-25-2020

zynq7000:PL端搭建4个以太网,但是无法正常启动

跳至解决方案

打印信息如下:

Marvell 88E1510 e000b000.ethernet-ffffffff:00: attached PHY driver [Marvell 88E1 510] (mii_bus:phy_addr=e000b000.ethernet-ffffffff:00, irq=POLL)
macb e000b000.ethernet eth0: Cadence GEM rev 0x00020118 at 0xe000b000 irq 29 (fe :b2:4a:9c:96:a6)
e1000e: Intel(R) PRO/1000 Network Driver - 3.2.6-k
e1000e: Copyright(c) 1999 - 2015 Intel Corporation.
xilinx_axienet 41000000.ethernet: TX_CSUM 2
xilinx_axienet 41000000.ethernet: RX_CSUM 2
xilinx_axienet 41000000.ethernet: missing/invalid xlnx,addrwidth property, using default
libphy: Xilinx Axi Ethernet MDIO: probed
xilinx_axienet 41010000.ethernet: TX_CSUM 2
xilinx_axienet 41010000.ethernet: RX_CSUM 2
xilinx_axienet 41010000.ethernet: missing/invalid xlnx,addrwidth property, using default
libphy: Xilinx Axi Ethernet MDIO: probed
xilinx_axienet 41020000.ethernet: TX_CSUM 2
xilinx_axienet 41020000.ethernet: RX_CSUM 2
xilinx_axienet 41020000.ethernet: missing/invalid xlnx,addrwidth property, using default
xilinx_axienet 41020000.ethernet: error registering MDIO bus
xilinx_axienet 41030000.ethernet: TX_CSUM 2
xilinx_axienet 41030000.ethernet: RX_CSUM 2
xilinx_axienet 41030000.ethernet: missing/invalid xlnx,addrwidth property, using default
xilinx_axienet 41030000.ethernet: error registering MDIO bus
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ehci-pci: EHCI PCI platform driver
usbcore: registered new interface driver usb-storage
i2c /dev entries driver
cdns-wdt f8005000.watchdog: Xilinx Watchdog Timer at (ptrval) with timeout 10s
EDAC MC: ECC not enabled
Xilinx Zynq CpuIdle Driver started
sdhci: Secure Digital Host Controller Interface driver
sdhci: Copyright(c) Pierre Ossman
sdhci-pltfm: SDHCI platform and OF driver helper
mmc0: SDHCI controller on e0100000.mmc [e0100000.mmc] using ADMA
ledtrig-cpu: registered to indicate activity on CPUs
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
fpga_manager fpga0: Xilinx Zynq FPGA Manager registered
NET: Registered protocol family 10
Segment Routing with IPv6
sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
NET: Registered protocol family 17
can: controller area network core (rev 20170425 abi 9)
NET: Registered protocol family 29
can: raw protocol (rev 20170425)
can: broadcast manager protocol (rev 20170425 t)
can: netlink gateway (rev 20170425) max_hops=1
Registering SWP/SWPB emulation handler
of-fpga-region fpga-full: FPGA Region probed
hctosys: unable to open rtc device (rtc0)
of_cfs_init
of_cfs_init: OK
ALSA device list:
No soundcards found.
Waiting for root device /dev/mmcblk0p2...
mmc0: new high speed SDHC card at address aaaa
mmcblk0: mmc0:aaaa SC16G 14.8 GiB
mmcblk0: p1 p2
EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
VFS: Mounted root (ext4 filesystem) on device 179:2.
Freeing unused kernel memory: 1024K
Run /sbin/init as init process
random: fast init done
random: init: uninitialized urandom read (12 bytes read)
init: hwclock main process (748) terminated with status 1
init: ureadahead main process (749) terminated with status 5
random: mountall: uninitialized urandom read (12 bytes read)

Last login: Thu Jan 1 00:00:07 UTC 1970 on tty1
xilinx_axienet 41000000.ethernet: of_phy_connect() failed
xilinx_axienet 41010000.ethernet: of_phy_connect() failed
cat: /var/lib/update-notifier/fsck-at-reboot: No such file or directory
run-parts: /etc/update-motd.d/98-fsck-at-reboot exited with return code 1
Welcome to Linaro 12.09 (GNU/Linux 4.19.0-xilinx armv7l)

* Documentation: https://wiki.linaro.org/
root@linaro-ubuntu-desktop:~#

PS端的网络能正常启动,而且可以ping通,但是PL端搭建的四个网络都无法正常工作。

xilinx_axienet 41020000.ethernet: error registering MDIO bus

xilinx_axienet 41030000.ethernet: error registering MDIO bus

请问这两句打印信息是什么原因造成的?

xilinx_axienet 41000000.ethernet: of_phy_connect() failed
xilinx_axienet 41010000.ethernet: of_phy_connect() failed

为什么这两个以太网能用ifconfig ethx up?

0 项奖励
1 解答

已接受的解答
ProtectPigeons
Participant
Participant
83 次查看
注册日期: ‎11-25-2020

问题解决了,我在pl端添加了6个以太网口,但是这6个网口的offset address不能离的太近。我不明白这是什么原因,但是我这样分配的时候就能正常启动6个网口了,

ProtectPigeons_0-1617673301748.png

相邻的,比如Ethernet0和Ethernet1是位于同一个bank的,就不用分开。但是不属于一个bank的,比如0和4,offset address相邻的话,4就会出现error registering MDIO bus。

 

在原帖中查看解决方案

3 回复数
chaoz
Xilinx Employee
Xilinx Employee
194 次查看
注册日期: ‎09-14-2018

看起来可能device tree有问题, 你dt怎么配置的? 用的是 AXI ethernet subsystem 还是emaclite? 

参考下这两个wiki 看看。

https://xilinx-wiki.atlassian.net/wiki/spaces/A/pages/18842485/Linux+AXI+Ethernet+driver

https://xilinx-wiki.atlassian.net/wiki/spaces/A/pages/18841972/Linux+Emaclite+Driver

 

----------------------------------------------------------------------------------------------
如果帖子有帮助,别忘“接受为解决方案”或“奖励”。谢谢!
Don't forget to "Accept as solution" or "Kudo" if it helps. Thanks!
----------------------------------------------------------------------------------------------

 

0 项奖励
ProtectPigeons
Participant
Participant
137 次查看
注册日期: ‎11-25-2020

感谢您的回复。

1.设备树的配置保存在附件内;(看到设备树请不要惊讶为什么有6个,因为有搭建6个PL端以太网的需求,所以添加到6个了)

2.使用的是AXI 1g/2.5g Ethernet Subsystem。

已经参考过两个wiki了,并进行了修改,但是还是有error registering MDIO bus的问题。

另外我参考了这个链接修改了设备树:https://www.fpgadeveloper.com/2016/05/multi-port-ethernet-in-petalinux.html/

 

0 项奖励
ProtectPigeons
Participant
Participant
84 次查看
注册日期: ‎11-25-2020

问题解决了,我在pl端添加了6个以太网口,但是这6个网口的offset address不能离的太近。我不明白这是什么原因,但是我这样分配的时候就能正常启动6个网口了,

ProtectPigeons_0-1617673301748.png

相邻的,比如Ethernet0和Ethernet1是位于同一个bank的,就不用分开。但是不属于一个bank的,比如0和4,offset address相邻的话,4就会出现error registering MDIO bus。

 

在原帖中查看解决方案