UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

取消
显示结果 
搜索替代 
您的意思是: 
Observer sonnart
Observer
615 次查看
注册日期: ‎09-04-2018

Zynq 7000 双网卡配置-内核DTS该如何配置

转到解答

问题:ETH0是通的,ETH1找不到PHY(连接到GMII2RGMII转换器时,找不到该设备),dts和vivado该如何配置?

系统:Zynq 7Z015

Vivado:2018.3

内核:4.6

VIVADO工程如下:

Catch(05-09-14-0(05-15-09-21-36).jpg

 

在内核设备树文件中,配置如下:

aliases {
ethernet0 = "/amba/eth@e000b000";
ethernet1 = "/amba/eth1@e000c000";
serial0 = "/amba/serial@e0001000";
};

 

eth@e000b000 {
compatible = "xlnx,ps7-ethernet-1.00.a";
reg = <0xe000b000 0x1000>;
interrupts = <0x0 0x16 0x4>;
interrupt-parent = <0x1>;
#address-cells = <0x1>;
#size-cells = <0x0>;
clock-names = "ref_clk", "aper_clk";
clocks = <0x2 0xd 0x2 0x1e>;
xlnx,enet-clk-freq-hz = <0x17d7840>;
xlnx,enet-reset = "MIO 11";
xlnx,enet-slcr-1000mbps-div0 = <0x8>;
xlnx,enet-slcr-1000mbps-div1 = <0x1>;
xlnx,enet-slcr-100mbps-div0 = <0x8>;
xlnx,enet-slcr-100mbps-div1 = <0x5>;
xlnx,enet-slcr-10mbps-div0 = <0x8>;
xlnx,enet-slcr-10mbps-div1 = <0x32>;
xlnx,eth-mode = <0x1>;
xlnx,has-mdio = <0x1>;
xlnx,ptp-enet-clock = <0x69f6bcb>;
phy-handle = <&phy0>;
phy-mode = "rgmii-id";
 
phy0:phy@0 {
device_type = "ethernet-phy";
reg = <0x0>;
marvell,reg-init = <0x3 0x10 0xff00 0x1e 0x3 0x11 0xfff0 0xa>;
linux,phandle = <0x6>;
phandle = <0x6>;
};
};
 
 
eth1@e000c000 {
compatible = "xlnx,ps7-ethernet-1.00.a";
reg = <0xe000c000 0x1000>;
interrupts = <0x0 0x17 0x4>;
interrupt-parent = <0x1>;
#address-cells = <0x1>;
#size-cells = <0x0>;
clock-names = "ref_clk", "aper_clk";
clocks = <0x2 0xd 0x2 0x1e>;
xlnx,enet-clk-freq-hz = <0x17d7840>;
xlnx,enet-reset = "MIO 11";
xlnx,enet-slcr-1000mbps-div0 = <0x8>;
xlnx,enet-slcr-1000mbps-div1 = <0x1>;
xlnx,enet-slcr-100mbps-div0 = <0x8>;
xlnx,enet-slcr-100mbps-div1 = <0x5>;
xlnx,enet-slcr-10mbps-div0 = <0x8>;
xlnx,enet-slcr-10mbps-div1 = <0x32>;
xlnx,eth-mode = <0x1>;
xlnx,has-mdio = <0x1>;
xlnx,ptp-enet-clock = <0x69f6bcb>;
gmii2rgmii-phy-handle = <&phy1>;
phy-mode = "gmii";
 
phy1:phy@8 {
compatible="marvell,88e1512";
device_type = "ethernet-phy";
reg = <0x8>;
marvell,reg-init = <0x3 0x10 0xff00 0x1e 0x3 0x11 0xfff0 0xa>;
linux,phandle = <0x8>;
phandle = <0x8>;
};
};
};

 

ETH1是通过PL侧的GMII2RGMII扩展出去的。

先启动如下:

Uncompressing Linux... done, booting the kernel.
Booting Linux on physical CPU 0x0
Linux version 4.6.0-g35c0d02-dirty (tigerp@tigerp-CloudStack-KVM-Hypervisor) (gcc version 6.2.1 20161114 (Linaro GCC Snapshot 6.2-2016.11) ) #15 SMP PREEMPT Tue May 14 15:39:08 CST 2019
CPU: ARMv7 Processor [413fc090] revision 0 (ARMv7), cr=18c5387d
CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
Machine model: Xilinx Zynq ZED
bootconsole [earlycon0] enabled
cma: Reserved 128 MiB at 0x38000000
Memory policy: Data cache writealloc
percpu: Embedded 12 pages/cpu @ef7d3000 s19404 r8192 d21556 u49152
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 260608
Kernel command line: console=ttyPS0,115200 root=/dev/mmcblk0p2 rw earlyprintk rootfstype=ext4 rootwait
PID hash table entries: 4096 (order: 2, 16384 bytes)
Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
Memory: 895956K/1048576K available (4795K kernel code, 245K rwdata, 1968K rodata, 248K init, 136K bss, 21548K reserved, 131072K cma-reserved, 131072K highmem)
Virtual kernel memory layout:
    vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
    vmalloc : 0xf0800000 - 0xff800000   ( 240 MB)
    lowmem  : 0xc0000000 - 0xf0000000   ( 768 MB)
    pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
    modules : 0xbf000000 - 0xbfe00000   (  14 MB)
      .text : 0xc0008000 - 0xc06a319c   (6765 kB)
      .init : 0xc06a4000 - 0xc06e2000   ( 248 kB)
      .data : 0xc06e2000 - 0xc071f5a0   ( 246 kB)
       .bss : 0xc071f5a0 - 0xc0741970   ( 137 kB)
Preemptible hierarchical RCU implementation.
Build-time adjustment of leaf fanout to 32.
RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
RCU: Adjusting geometry for rcu_fanout_leaf=32, nr_cpu_ids=2
NR_IRQS:16 nr_irqs:16 16
slcr mapped to f0802000
L2C: platform modifies aux control register: 0x72360000 -> 0x72760000
L2C: DT/platform modifies aux control register: 0x72360000 -> 0x72760000
L2C-310 erratum 769419 enabled
L2C-310 enabling early BRESP for Cortex-A9
L2C-310 full line of zeros enabled for Cortex-A9
L2C-310 ID prefetch enabled, offset 1 lines
L2C-310 dynamic clock gating enabled, standby mode enabled
L2C-310 cache controller enabled, 8 ways, 512 kB
L2C-310: CACHE_ID 0x410000c8, AUX_CTRL 0x76760001
zynq_clock_init: clkc starts at f0802100
Zynq clock init
ps_clk frequency not specified, using 33 MHz.
sched_clock: 64 bits at 333MHz, resolution 3ns, wraps every 4398046511103ns
clocksource: arm_global_timer: mask: 0xffffffffffffffff max_cycles: 0x4ce07af025, max_idle_ns: 440795209040 ns
Switching to timer-based delay loop, resolution 3ns
clocksource: ttc_clocksource: mask: 0xffff max_cycles: 0xffff, max_idle_ns: 537538477 ns
timer #0 at f080a000, irq=17
Console: colour dummy device 80x30
Calibrating delay loop (skipped), value calculated using timer frequency.. 666.66 BogoMIPS (lpj=3333333)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
CPU: Testing write buffer coherency: ok
CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
Setting up static identity map for 0x82c0 - 0x8318
CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
Brought up 2 CPUs
SMP: Total of 2 processors activated (1333.33 BogoMIPS).
CPU: All CPU(s) started in SVC mode.
devtmpfs: initialized
VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
pinctrl core: initialized pinctrl subsystem
NET: Registered protocol family 16
DMA: preallocated 256 KiB pool for atomic coherent allocations
cpuidle: using governor ladder
hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers.
hw-breakpoint: maximum watchpoint size is 4 bytes.
zynq-ocm f800c000.ocmc: ZYNQ OCM pool: 256 KiB @ 0xf0880000
zynq-pinctrl 700.pinctrl: zynq pinctrl initialized
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
media: Linux media interface: v0.10
Linux video capture interface: v2.00
EDAC MC: Ver: 3.0.0
Advanced Linux Sound Architecture Driver Initialized.
clocksource: Switched to clocksource arm_global_timer
NET: Registered protocol family 2
TCP established hash table entries: 8192 (order: 3, 32768 bytes)
TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
TCP: Hash tables configured (established 8192 bind 8192)
UDP hash table entries: 512 (order: 2, 16384 bytes)
UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
NET: Registered protocol family 1
Trying to unpack rootfs image as initramfs...
Freeing initrd memory: 4948K (dfb2b000 - e0000000)
hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 counters available
futex hash table entries: 512 (order: 3, 32768 bytes)
workingset: timestamp_bits=28 max_order=18 bucket_order=0
bounce: pool size: 64 pages
io scheduler noop registered
io scheduler deadline registered
io scheduler cfq registered (default)
Error: Driver 'mwipcore' is already registered, aborting...
dma-pl330 f8003000.dmac: Loaded driver for PL330 DMAC-241330
dma-pl330 f8003000.dmac: DBUFF-128x8bytes Num_Chans-8 Num_Peri-4 Num_Events-16
e0001000.serial: ttyPS0 at MMIO 0xe0001000 (irq = 143, base_baud = 6249999) is a xuartps
?onsole [ttyPS0] enabled
console [ttyPS0] enabled
bootconsole [earlycon0] disabled
bootconsole [earlycon0] disabled
xdevcfg f8007000.devcfg: ioremap 0xf8007000 to f085e000
[drm] Initialized drm 1.1.0 20060810
brd: module loaded
loop: module loaded
[nandsim] warning: read_byte: unexpected data output cycle, state is STATE_READY return 0x0
[nandsim] warning: read_byte: unexpected data output cycle, state is STATE_READY return 0x0
[nandsim] warning: read_byte: unexpected data output cycle, state is STATE_READY return 0x0
[nandsim] warning: read_byte: unexpected data output cycle, state is STATE_READY return 0x0
[nandsim] warning: read_byte: unexpected data output cycle, state is STATE_READY return 0x0
[nandsim] warning: read_byte: unexpected data output cycle, state is STATE_READY return 0x0
nand: device found, Manufacturer ID: 0x98, Chip ID: 0x39
nand: Toshiba NAND 128MiB 1,8V 8-bit
nand: 128 MiB, SLC, erase size: 16 KiB, page size: 512, OOB size: 16
flash size: 128 MiB
page size: 512 bytes
OOB area size: 16 bytes
sector size: 16 KiB
pages number: 262144
pages per sector: 32
bus width: 8
bits in sector size: 14
bits in page size: 9
bits in OOB size: 4
flash size with OOB: 135168 KiB
page address bytes: 4
sector address bytes: 3
options: 0x42
Scanning device for bad blocks
Creating 1 MTD partitions on "NAND 128MiB 1,8V 8-bit":
0x000000000000-0x000008000000 : "NAND simulator partition 0"
 
******************* entrance xemacps_probe *********************** 
xemacps_probe:e000b000.eth interface=8
phy_node=phy
xemacps_probe:read phyid is 0
libphy: XEMACPS mii bus: probed
xemacps e000b000.eth: pdev->id 0, baseaddr 0xe000b000, irq 162
******************* exit xemacps_probe *********************** 
 
******************* entrance xemacps_probe *********************** 
xemacps_probe:e000c000.eth1 interface=2
gmii2rgmii_phy_node=phy
xemacps_probe:read phyid is 8
xemacps e000c000.eth1: invalid address, use random
xemacps e000c000.eth1: MAC updated 32:a2:a0:e0:54:98
xemacps e000c000.eth1: pdev->id 8, baseaddr 0xe000c000, irq 163
******************* exit xemacps_probe *********************** 
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
usbcore: registered new interface driver usb-storage
usbcore: registered new interface driver usbserial
usbcore: registered new interface driver usbserial_generic
usbserial: USB Serial support registered for generic
usbcore: registered new interface driver ftdi_sio
usbserial: USB Serial support registered for FTDI USB Serial Device
e0002000.usb supply vbus not found, using dummy regulator
ULPI transceiver vendor/product ID 0x0424/0x0006
Found SMSC USB331x ULPI transceiver.
ULPI integrity check: passed.
ci_hdrc ci_hdrc.0: EHCI Host Controller
ci_hdrc ci_hdrc.0: new USB bus registered, assigned bus number 1
ci_hdrc ci_hdrc.0: USB 2.0 started, EHCI 1.00
############# hub usb_new_device:busnum=1,devnum=1 #############
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
mousedev: PS/2 mouse device common for all mice
i2c /dev entries driver
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.sdhci [e0100000.sdhci] using ADMA
ledtrig-cpu: registered to indicate activity on CPUs
hidraw: raw HID events driver (C) Jiri Kosina
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
NET: Registered protocol family 17
Registering SWP/SWPB emulation handler
hctosys: unable to open rtc device (rtc0)
mmc0: new high speed SDHC card at address aaaa
mmcblk0: mmc0:aaaa SC16G 14.8 GiB 
 mmcblk0: p1
ALSA device list:
  No soundcards found.
Freeing unused kernel memory: 248K (c06a4000 - c06e2000)
This architecture does not have kernel memory protection.
INIT: version 2.88 booting
Starting Bootlog daemon: bootlogd.
Creating /dev/flash/* device nodes
random: dd urandom read with 1 bits of entropy available
Configuring network interfaces... 
xemacps_open:eth0
xemacps_mii_probe:devname=eth0
 
xemacps_open:eth1
xemacps_mii_probe:devname=eth1
xemacps e000c000.eth1: eth1: no gmii to rgmii converter found
xemacps e000c000.eth1: XEMACPS mii bus mii_probe fail.
ifconfig: SIOCSIFFLAGS: No such device or address
 
xemacps_open:eth1
xemacps_mii_probe:devname=eth1
xemacps e000c000.eth1: eth1: no gmii to rgmii converter found
xemacps e000c000.eth1: XEMACPS mii bus mii_probe fail.
ifconfig: SIOCSIFFLAGS: No such device or address
starting Busybox inet Daemon: inetd... done.
INIT: Entering runlevel: 3
Starting Dropbear SSH server: Will output 1024 bit rsa secret key to '/etc/dropbear/dropbear_rsa_host_key'
Generating key, this may take a while...
Public key portion is:
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAAAgwCw2xqdouR53J3Zdzul6zO9ieEsvhCoJPOSWwogGCznm/4y1upBqH9VIvmC9mbJ8b251cD96w62AIT5N55/+dlkFyCZAB88Ecet9PVCejPe37nEEi9NWsflJQjuQfrCKuDX5wiOtLaQA5/nd8Thz8LlYVkn2KjKmay6wpIHyZRrJLXp root@zynq
Fingerprint: md5 6f:b5:d6:43:17:fe:2e:02:cd:b6:2a:3a:c5:ab:72:f4
dropbear.
Stopping Bootlog daemon: bootlogd.
Starting tcf-agent: OK
 
PetaLinux v2013.10 (Yocto 1.4) zynq ttyPS0
 
zynq login: xemacps e000b000.eth: Set clk to 25000000 Hz
xemacps e000b000.eth: link up (100/FULL)
root

 

0 项奖励
1 个已接受解答

已接受的解答
Highlighted
Xilinx Employee
Xilinx Employee
570 次查看
注册日期: ‎04-15-2011

回复: Zynq 7000 双网卡配置-内核DTS该如何配置

转到解答

@sonnart 

2018.x的kernel都是4.14的,2017.3和2017.4的都是4.9的。

我建议你用跟Vivado搭配的kernel尝试,不然有可能会出现不可预知的问题。

我不清楚为什么你访问不了这个链接,我这边是可以的,下面是部分主要的内容。

Capture1.PNG

-------------------------------------------------------------------------
Don't forget to reply, kudo, and accept as solution.
-------------------------------------------------------------------------
7 条回复7
Xilinx Employee
Xilinx Employee
591 次查看
注册日期: ‎04-15-2011

回复: Zynq 7000 双网卡配置-内核DTS该如何配置

转到解答

@sonnart 

Vivado你用2018.3,那Petalinux或kernel你用的是什么版本的?看kernel的打印,不像是2018.3的。

另外,GMII2RGMII也是需要driver的,FYI。

https://xilinx-wiki.atlassian.net/wiki/spaces/A/pages/18842246/Xilinx+GMII2RGMII+convertor

 

-------------------------------------------------------------------------
Don't forget to reply, kudo, and accept as solution.
-------------------------------------------------------------------------
Observer sonnart
Observer
582 次查看
注册日期: ‎09-04-2018

回复: Zynq 7000 双网卡配置-内核DTS该如何配置

转到解答

内核用的4.6版本的。

2018.3的SDK petalinux对应内核版本是4.9版本的。

GMII2RGMII该怎么配置?

另外,你发的连接打不开

谢谢解答!

0 项奖励
Highlighted
Xilinx Employee
Xilinx Employee
571 次查看
注册日期: ‎04-15-2011

回复: Zynq 7000 双网卡配置-内核DTS该如何配置

转到解答

@sonnart 

2018.x的kernel都是4.14的,2017.3和2017.4的都是4.9的。

我建议你用跟Vivado搭配的kernel尝试,不然有可能会出现不可预知的问题。

我不清楚为什么你访问不了这个链接,我这边是可以的,下面是部分主要的内容。

Capture1.PNG

-------------------------------------------------------------------------
Don't forget to reply, kudo, and accept as solution.
-------------------------------------------------------------------------
Observer sonnart
Observer
519 次查看
注册日期: ‎09-04-2018

回复: Zynq 7000 双网卡配置-内核DTS该如何配置

转到解答

你好,我的设备树修改如下:

eth1@e000c000 {
compatible = "xlnx,ps7-ethernet-1.00.a";
reg = <0xe000c000 0x1000>;
interrupts = <0x0 0x17 0x4>;
interrupt-parent = <0x1>;
#address-cells = <0x1>;
#size-cells = <0x0>;
clock-names = "ref_clk", "aper_clk";
clocks = <0x2 0xd 0x2 0x1e>;
xlnx,enet-clk-freq-hz = <0x17d7840>;
xlnx,enet-reset = "MIO 11";
xlnx,enet-slcr-1000mbps-div0 = <0x8>;
xlnx,enet-slcr-1000mbps-div1 = <0x1>;
xlnx,enet-slcr-100mbps-div0 = <0x8>;
xlnx,enet-slcr-100mbps-div1 = <0x5>;
xlnx,enet-slcr-10mbps-div0 = <0x8>;
xlnx,enet-slcr-10mbps-div1 = <0x32>;
xlnx,eth-mode = <0x1>;
xlnx,has-mdio = <0x1>;
xlnx,ptp-enet-clock = <0x69f6bcb>;
phy-handle = <&phy1>;
phy-mode = "rgmii-id";
 
mdio {
   #address-cells = <1>;
   #size-cells = <0>;
 
phy1:phy1@8 {
compatible="marvell,88E1512";
device_type = "ethernet-phy";
reg = <0x1>;
marvell,reg-init = <0x3 0x10 0xff00 0x1e 0x3 0x11 0xfff0 0xa>;
linux,phandle = <0x8>;
phandle = <0x8>;
};
 
   gmiitorgmii: gmiitorgmii@8 {
       compatible = "xlnx,gmii-to-rgmii-1.0";
       reg = <8>;
       phy-handle = <&phy1>;
 };
};
};
};
 
硬件上断开eth0,只留eth1,eth1的address为1,gmiitorgmii在vivado中地址配置为8.
现象:在驱动加载的时候,可以通过mdio读取phy寄存器ID和状态,在进入文件系统后,系统调用到xemacps_open,通过mdio读取eth1的phy id和状态都是超时。
日志如下:

[drm] Initialized
brd: module loaded
loop: module loaded
libphy: Fixed MDIO Bus: probed,bus=0xeeb04400
libphy: mdio_driver_register: xgmiitorgmii

******************* entrance xemacps_probe ***********************
xemacps e000c000.eth1: BASEADDRESS hw: e000c000 virt: f087d000,lp=0xee9b6500,ndev=0xee9b6000
xemacps_mii_init:phynode parent is mdio,phy is phy1
libphy: XEMACPS mii bus: probed,bus=0xeebb0800
of_mdiobus_register:for each mii_bus=0xeebb0800;child=phy1;addr=1
[Firmware Warn]: /amba/eth1@e000c000/mdio/phy1@8: Whitelisted compatible string. Please remove
$$$$ of_mdiobus_register_phy node=phy1 addr=0x1 $$$$
xemacps_mdio_read:addr=0xf087d000,offset=0x34,mii_id=1,phyreg=0x2
xemacps_mdio_read:addr=0xf087d000,offset=0x34,mii_id=1,phyreg=0x3
mdio_bus e000c000: registered phy phy1 at address 1,mii_buf=0xeebb0800
of_mdiobus_register:for each mii_bus=0xeebb0800;child=gmiitorgmii;addr=8
mdio_bus e000c000:08: mdio_device_register,mdiodev=0xef220200
############ xgmiitorgmii_probe node=gmiitorgmii;mdiodev=0xef220200;bus=0xeebb0800############
xgmiitorgmii_probe:phy-handle=phy1
of_phy_find_device:find phy1 success,mdiodev=0xeebb0400
mdio_bus e000c000: registered mdio device gmiitorgmii at address 8,mii_bus=0xeebb0800
xemacps_mii_init done

xemacps e000c000.eth1: invalid address, use random
xemacps e000c000.eth1: MAC updated 7e:a2:28:a9:39:a0
xemacps e000c000.eth1: pdev->id -1, baseaddr 0xe000c000, irq 41,lp->baseaddr 0xf087d000
xemacps_probe:lp=0xee9b6500,ndev=0xee9b6000,name=eth0
xemacps_mdio_read:addr=0xf087d000,offset=0x34,mii_id=1,phyreg=0x2
phyid=0x141
xemacps_mdio_read:addr=0xf087d000,offset=0x34,mii_id=1,phyreg=0x1
phystatus=0x7969
******************* exit xemacps_probe ***********************
mousedev: PS/2 mouse device common for all mice
i2c /dev entries driver
cdns-wdt f8005000.watchdog: Xilinx Watchdog Timer at f0982000 with timeout 10s
EDAC MC: ECC not enabled
Xilinx Zynq CpuIdle Driver started
ledtrig-cpu: registered to indicate activity on CPUs
fpga_manager fpga0: Xilinx Zynq FPGA Manager registered
NET: Registered protocol family 10
sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
NET: Registered protocol family 17
Registering SWP/SWPB emulation handler
hctosys: unable to open rtc device (rtc0)
of_cfs_init
of_cfs_init: OK
Freeing unused kernel memory: 1024K (c0800000 - c0900000)
INIT: version 2.88 booting
Starting Bootlog daemon: bootlogd.
Creating /dev/flash/* device nodes
random: dd: uninitialized urandom read (512 bytes read)
Configuring network interfaces...
$$$ entracne xemacps_open $$$
xemacps_open:begin to open eth0,phyid=0x0,lp=0xee9b6500,ndev=0xee9b6000
xemacps_mdio_read:addr=0xf087d000,offset=0x34,mii_id=1,phyreg=0x2 timeout
xemacps_mdio_read:addr=0xf087d000,offset=0x34,mii_id=1,phyreg=0x1 timeout
xemacps_open:eth0,status=0xffffff92
xemacps_mii_probe:devname=eth0,bus=0xeebb0800
xemacps_mii_probe,begin to connect phy phy1
of_phy_find_device:find phy1 success,mdiodev=0xeebb0400
xemacps_mdio_read:addr=0xf087d000,offset=0x34,mii_id=1,phyreg=0x0 timeout
xemacps e000c000.eth1: eth0: no PHY found
xemacps e000c000.eth1: XEMACPS mii bus mii_probe fail.
$$$ end of xemacps_open err -6 $$$

ifconfig: SIOCSIFFLAGS: No such device or address

$$$ entracne xemacps_open $$$
xemacps_open:begin to open eth0,phyid=0x0,lp=0xee9b6500,ndev=0xee9b6000
xemacps_mdio_read:addr=0xf087d000,offset=0x34,mii_id=1,phyreg=0x2 timeout
xemacps_mdio_read:addr=0xf087d000,offset=0x34,mii_id=1,phyreg=0x1 timeout
xemacps_open:eth0,status=0xffffff92
xemacps_mii_probe:devname=eth0,bus=0xeebb0800
xemacps_mii_probe,begin to connect phy phy1
of_phy_find_device:find phy1 success,mdiodev=0xeebb0400
xemacps_mdio_read:addr=0xf087d000,offset=0x34,mii_id=1,phyreg=0x0 timeout
xemacps e000c000.eth1: eth0: no PHY found
xemacps e000c000.eth1: XEMACPS mii bus mii_probe fail.
$$$ end of xemacps_open err -6 $$$

ifconfig: SIOCSIFFLAGS: No such device or address
route: SIOCADDRT: Network is unreachable
ifconfig: SIOCGIFFLAGS: No such device
ifconfig: SIOCSIFADDR: No such device
route: SIOCADDRT: No such device
starting Busybox inet Daemon: inetd... done.
INIT: Entering runlevel: 3
Starting Dropbear SSH server: Will output 1024 bit rsa secret key to '/etc/dropbear/dropbear_rsa_hosrandom: dropbearkey: uninitialized urandom read (32 bytes read)
t_key'
Generating key, this may take a while...
Public key portion is:
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAAAgwC7myzWDf0o1NB10NxMhL86fR0jrD9iGYYu7UFA6j6VBvLzjfxSmi8howM403nB1XHTsrandom: dropbear: uninitialized urandom read (32 bytes read)
W73//w538y3BA5N0Dr183nfnzRvyU0cBLh+ujg5CBDLtDxkyt2vF+I+pJ+ngLgBayq/reLAAC4ggLQ3VZjD0wKTNWC0ZrAZjcUPtCT5Mk+f root@zynq
Fingerprint: md5 26:6a:fc:39:14:63:d0:6a:77:61:d2:d4:94:37:2a:5e
dropbear.
Stopping Bootlog daemon: bootlogd.
Starting tcf-agent: random: tcf-agent: uninitialized urandom read (16 bytes read)
OK

 

另外,在4.14内核中,请问下xilinx的网卡驱动在哪里?没看到xilinx_emacps.c文件.

谢谢!

0 项奖励
Observer sonnart
Observer
516 次查看
注册日期: ‎09-04-2018

回复: Zynq 7000 双网卡配置-内核DTS该如何配置

转到解答

由于4.6内核没有gmii2rgmii相关编译选项,把内核替换为4.9版本。

0 项奖励
Xilinx Employee
Xilinx Employee
498 次查看
注册日期: ‎04-15-2011

回复: Zynq 7000 双网卡配置-内核DTS该如何配置

转到解答

如果你phy1的地址是1,那你下面的地址是不是应该改成1,而不是8?

phy1:phy1@8 {
compatible="marvell,88E1512";
device_type = "ethernet-phy";
reg = <0x1>;
marvell,reg-init = <0x3 0x10 0xff00 0x1e 0x3 0x11 0xfff0 0xa>;
linux,phandle = <0x8>;
phandle = <0x8>;
};
 
另外,xilinx_emacps这个driver已经不支持了,现在建议用macb driver。
-------------------------------------------------------------------------
Don't forget to reply, kudo, and accept as solution.
-------------------------------------------------------------------------
0 项奖励
Observer sonnart
Observer
455 次查看
注册日期: ‎09-04-2018

回复: Zynq 7000 双网卡配置-内核DTS该如何配置

转到解答

确实是vivado和内核不兼容的原因,在Xilinx下载2018.3对应的4.14版本的内核,两个phy均可检测得到,插拔网线可显示link up/down

0 项奖励