Hi,
I'm back here because I still have problems in setting up an ethernet connection in microzed.
I did several tests:
1) image provided in QSPI: no issue
2) my boot.ini in SD + linux boot from tftp (I use this release http://www.wiki.xilinx.com/Zynq+2014.4+Release): linux boots, I can configure eth0, I can ping the localhost but I cannot ping the laptop
3) same as above, but I converted the dtb to dtc and then back again to dtb: I cannot configure eth0 any more!!! (no phy found)
4) like 2 but using Kevin's dts (see http://zedboard.org/content/device-tree-generation-0): no phy found
I seems to me that the dtc converter does something wrong: how is it possible?
Any idea?
Is there a way to extract the files loaded in QSPI?
I copy the dts generated at point 3 here:
/dts-v1/;
/ {
t#address-cells = <0x1>;
t#size-cells = <0x1>;
tcompatible = "xlnx,zynq-zed", "xlnx,zynq-7000";
tmodel = "Zynq Zed Development Board";
tchosen {
ttbootargs = "console=ttyPS0,115200 root=/dev/ram rw earlyprintk";
ttlinux,stdout-path = "/amba/serial@e0001000";
t};
taliases {
ttethernet0 = "/amba/ethernet@e000b000";
ttserial0 = "/amba/serial@e0001000";
ttspi0 = "/amba/spi@e000d000";
t};
tmemory {
ttdevice_type = "memory";
ttreg = <0x0 0x40000000>;
t};
tcpus {
tt#address-cells = <0x1>;
tt#size-cells = <0x0>;
ttcpu@0 {
tttcompatible = "arm,cortex-a9";
tttdevice_type = "cpu";
tttreg = <0x0>;
tttclocks = <0x1 0x3>;
tttclock-latency = <0x3e8>;
tttcpu0-supply = <0x2>;
tttoperating-points = <0xa2c2b 0xf4240 0x51616 0xf4240>;
tt};
ttcpu@1 {
tttcompatible = "arm,cortex-a9";
tttdevice_type = "cpu";
tttreg = <0x1>;
tttclocks = <0x1 0x3>;
tt};
t};
tpmu {
ttcompatible = "arm,cortex-a9-pmu";
ttinterrupts = <0x0 0x5 0x4 0x0 0x6 0x4>;
ttinterrupt-parent = <0x3>;
ttreg = <0xf8891000 0x1000 0xf8893000 0x1000>;
t};
tfixedregulator@0 {
ttcompatible = "regulator-fixed";
ttregulator-name = "VCCPINT";
ttregulator-min-microvolt = <0xf4240>;
ttregulator-max-microvolt = <0xf4240>;
ttregulator-boot-on;
ttregulator-always-on;
ttlinux,phandle = <0x2>;
ttphandle = <0x2>;
t};
tamba {
ttcompatible = "simple-bus";
tt#address-cells = <0x1>;
tt#size-cells = <0x1>;
ttinterrupt-parent = <0x3>;
ttranges;
ttadc@f8007100 {
tttcompatible = "xlnx,zynq-xadc-1.00.a";
tttreg = <0xf8007100 0x20>;
tttinterrupts = <0x0 0x7 0x4>;
tttinterrupt-parent = <0x3>;
tttclocks = <0x1 0xc>;
tt};
ttcan@e0008000 {
tttcompatible = "xlnx,zynq-can-1.0";
tttstatus = "disabled";
tttclocks = <0x1 0x13 0x1 0x24>;
tttclock-names = "can_clk", "pclk";
tttreg = <0xe0008000 0x1000>;
tttinterrupts = <0x0 0x1c 0x4>;
tttinterrupt-parent = <0x3>;
ttttx-fifo-depth = <0x40>;
tttrx-fifo-depth = <0x40>;
tt};
ttcan@e0009000 {
tttcompatible = "xlnx,zynq-can-1.0";
tttstatus = "disabled";
tttclocks = <0x1 0x14 0x1 0x25>;
tttclock-names = "can_clk", "pclk";
tttreg = <0xe0009000 0x1000>;
tttinterrupts = <0x0 0x33 0x4>;
tttinterrupt-parent = <0x3>;
ttttx-fifo-depth = <0x40>;
tttrx-fifo-depth = <0x40>;
tt};
ttgpio@e000a000 {
tttcompatible = "xlnx,zynq-gpio-1.0";
ttt#gpio-cells = <0x2>;
tttclocks = <0x1 0x2a>;
tttgpio-controller;
tttinterrupt-parent = <0x3>;
tttinterrupts = <0x0 0x14 0x4>;
tttreg = <0xe000a000 0x1000>;
tt};
tti2c@e0004000 {
tttcompatible = "cdns,i2c-r1p10";
tttstatus = "disabled";
tttclocks = <0x1 0x26>;
tttinterrupt-parent = <0x3>;
tttinterrupts = <0x0 0x19 0x4>;
tttreg = <0xe0004000 0x1000>;
ttt#address-cells = <0x1>;
ttt#size-cells = <0x0>;
tt};
tti2c@e0005000 {
tttcompatible = "cdns,i2c-r1p10";
tttstatus = "disabled";
tttclocks = <0x1 0x27>;
tttinterrupt-parent = <0x3>;
tttinterrupts = <0x0 0x30 0x4>;
tttreg = <0xe0005000 0x1000>;
ttt#address-cells = <0x1>;
ttt#size-cells = <0x0>;
tt};
ttinterrupt-controller@f8f01000 {
tttcompatible = "arm,cortex-a9-gic";
ttt#interrupt-cells = <0x3>;
tttinterrupt-controller;
tttreg = <0xf8f01000 0x1000 0xf8f00100 0x100>;
tttlinux,phandle = <0x3>;
tttphandle = <0x3>;
tt};
ttcache-controller@f8f02000 {
tttcompatible = "arm,pl310-cache";
tttreg = <0xf8f02000 0x1000>;
tttarm,data-latency = <0x3 0x2 0x2>;
tttarm,tag-latency = <0x2 0x2 0x2>;
tttcache-unified;
tttcache-level = <0x2>;
tt};
ttmemory-controller@f8006000 {
tttcompatible = "xlnx,zynq-ddrc-1.0";
tttreg = <0xf8006000 0x1000>;
tttxlnx,has-ecc = <0x0>;
tt};
ttocmc@f800c000 {
tttcompatible = "xlnx,zynq-ocmc-1.0";
tttinterrupt-parent = <0x3>;
tttinterrupts = <0x0 0x3 0x4>;
tttreg = <0xf800c000 0x1000>;
tt};
ttserial@e0000000 {
tttcompatible = "xlnx,xuartps", "cdns,uart-r1p8";
tttstatus = "disabled";
tttclocks = <0x1 0x17 0x1 0x28>;
tttclock-names = "uart_clk", "pclk";
tttreg = <0xe0000000 0x1000>;
tttinterrupts = <0x0 0x1b 0x4>;
tt};
ttserial@e0001000 {
tttcompatible = "xlnx,xuartps", "cdns,uart-r1p8";
tttstatus = "okay";
tttclocks = <0x1 0x18 0x1 0x29>;
tttclock-names = "uart_clk", "pclk";
tttreg = <0xe0001000 0x1000>;
tttinterrupts = <0x0 0x32 0x4>;
tt};
ttspi@e0006000 {
tttcompatible = "xlnx,zynq-spi-r1p6";
tttreg = <0xe0006000 0x1000>;
tttstatus = "disabled";
tttinterrupt-parent = <0x3>;
tttinterrupts = <0x0 0x1a 0x4>;
tttclocks = <0x1 0x19 0x1 0x22>;
tttclock-names = "ref_clk", "pclk";
ttt#address-cells = <0x1>;
ttt#size-cells = <0x0>;
tt};
ttspi@e0007000 {
tttcompatible = "xlnx,zynq-spi-r1p6";
tttreg = <0xe0007000 0x1000>;
tttstatus = "disabled";
tttinterrupt-parent = <0x3>;
tttinterrupts = <0x0 0x31 0x4>;
tttclocks = <0x1 0x1a 0x1 0x23>;
tttclock-names = "ref_clk", "pclk";
ttt#address-cells = <0x1>;
ttt#size-cells = <0x0>;
tt};
ttspi@e000d000 {
tttclock-names = "ref_clk", "pclk";
tttclocks = <0x1 0xa 0x1 0x2b>;
tttcompatible = "xlnx,zynq-qspi-1.0";
tttstatus = "okay";
tttinterrupt-parent = <0x3>;
tttinterrupts = <0x0 0x13 0x4>;
tttreg = <0xe000d000 0x1000>;
ttt#address-cells = <0x1>;
ttt#size-cells = <0x0>;
tttis-dual = <0x0>;
tttnum-cs = <0x1>;
tttflash@0 {
ttttcompatible = "n25q128a11";
ttttreg = <0x0>;
ttttspi-tx-bus-width = <0x1>;
ttttspi-rx-bus-width = <0x4>;
ttttspi-max-frequency = <0x2faf080>;
tttt#address-cells = <0x1>;
tttt#size-cells = <0x1>;
ttttpartition@qspi-fsbl-uboot {
tttttlabel = "qspi-fsbl-uboot";
tttttreg = <0x0 0x100000>;
tttt};
ttttpartition@qspi-linux {
tttttlabel = "qspi-linux";
tttttreg = <0x100000 0x500000>;
tttt};
ttttpartition@qspi-device-tree {
tttttlabel = "qspi-device-tree";
tttttreg = <0x600000 0x20000>;
tttt};
ttttpartition@qspi-rootfs {
tttttlabel = "qspi-rootfs";
tttttreg = <0x620000 0x5e0000>;
tttt};
ttttpartition@qspi-bitstream {
tttttlabel = "qspi-bitstream";
tttttreg = <0xc00000 0x400000>;
tttt};
ttt};
tt};
ttmemory-controller@e000e000 {
ttt#address-cells = <0x1>;
ttt#size-cells = <0x1>;
tttstatus = "disabled";
tttclock-names = "memclk", "aclk";
tttclocks = <0x1 0xb 0x1 0x2c>;
tttcompatible = "arm,pl353-smc-r2p1";
tttinterrupt-parent = <0x3>;
tttinterrupts = <0x0 0x12 0x4>;
tttranges;
tttreg = <0xe000e000 0x1000>;
tttflash@e1000000 {
ttttstatus = "disabled";
ttttcompatible = "arm,pl353-nand-r2p1";
ttttreg = <0xe1000000 0x1000000>;
tttt#address-cells = <0x1>;
tttt#size-cells = <0x1>;
ttt};
tttflash@e2000000 {
ttttstatus = "disabled";
ttttcompatible = "cfi-flash";
ttttreg = <0xe2000000 0x1000>;
tttt#address-cells = <0x1>;
tttt#size-cells = <0x1>;
ttt};
tt};
ttethernet@e000b000 {
tttcompatible = "xlnx,ps7-ethernet-1.00.a";
tttreg = <0xe000b000 0x1000>;
tttstatus = "okay";
tttinterrupts = <0x0 0x16 0x4>;
tttclocks = <0x1 0xd 0x1 0x1e>;
tttclock-names = "ref_clk", "aper_clk";
tttlocal-mac-address = [00 0a 35 00 00 00];
tttxlnx,has-mdio = <0x1>;
ttt#address-cells = <0x1>;
ttt#size-cells = <0x0>;
tttphy-mode = "rgmii-id";
tttphy-handle = <0x4>;
tttphy@0 {
ttttreg = <0xe000b000 0x1000>;
ttttmarvel,reg-init = <3 16 0xff00 0x1e 3 17 0xfff0 0x00>;
ttttlinux,phandle = <0x4>;
ttttphandle = <0x4>;
tttt/*
ttttreg = <0x0>;
ttttlinux,phandle = <0x4>;
ttttphandle = <0x4>;
tttt*/
ttt};
tt};
ttethernet@e000c000 {
tttcompatible = "xlnx,ps7-ethernet-1.00.a";
tttreg = <0xe000c000 0x1000>;
tttstatus = "disabled";
tttinterrupts = <0x0 0x2d 0x4>;
tttclocks = <0x1 0xe 0x1 0x1f>;
tttclock-names = "ref_clk", "aper_clk";
tttlocal-mac-address = [00 0a 35 00 00 00];
tttxlnx,has-mdio = <0x1>;
ttt#address-cells = <0x1>;
ttt#size-cells = <0x0>;
tt};
ttsdhci@e0100000 {
tttcompatible = "arasan,sdhci-8.9a";
tttstatus = "okay";
tttclock-names = "clk_xin", "clk_ahb";
tttclocks = <0x1 0x15 0x1 0x20>;
tttinterrupt-parent = <0x3>;
tttinterrupts = <0x0 0x18 0x4>;
tttreg = <0xe0100000 0x1000>;
tt};
ttsdhci@e0101000 {
tttcompatible = "arasan,sdhci-8.9a";
tttstatus = "disabled";
tttclock-names = "clk_xin", "clk_ahb";
tttclocks = <0x1 0x16 0x1 0x21>;
tttinterrupt-parent = <0x3>;
tttinterrupts = <0x0 0x2f 0x4>;
tttreg = <0xe0101000 0x1000>;
tt};
ttslcr@f8000000 {
ttt#address-cells = <0x1>;
ttt#size-cells = <0x1>;
tttcompatible = "xlnx,zynq-slcr", "syscon";
tttreg = <0xf8000000 0x1000>;
tttranges;
tttclkc@100 {
tttt#clock-cells = <0x1>;
ttttcompatible = "xlnx,ps7-clkc";
ttttps-clk-frequency = <0x1fca055>;
ttttfclk-enable = <0xf>;
ttttclock-output-names = "armpll", "ddrpll", "iopll", "cpu_6or4x", "cpu_3or2x", "cpu_2x", "cpu_1x", "ddr2x", "ddr3x", "dci", "lqspi", "smc", "pcap", "gem0", "gem1", "fclk0", "fclk1", "fclk2", "fclk3", "can0", "can1", "sdio0", "sdio1", "uart0", "uart1", "spi0", "spi1", "dma", "usb0_aper", "usb1_aper", "gem0_aper", "gem1_aper", "sdio0_aper", "sdio1_aper", "spi0_aper", "spi1_aper", "can0_aper", "can1_aper", "i2c0_aper", "i2c1_aper", "uart0_aper", "uart1_aper", "gpio_aper", "lqspi_aper", "smc_aper", "swdt", "dbg_trc", "dbg_apb";
ttttreg = <0x100 0x100>;
ttttlinux,phandle = <0x1>;
ttttphandle = <0x1>;
ttt};
tt};
ttdmac@f8003000 {
tttcompatible = "arm,pl330", "arm,primecell";
tttreg = <0xf8003000 0x1000>;
tttinterrupt-parent = <0x3>;
tttinterrupt-names = "abort", "dma0", "dma1", "dma2", "dma3", "dma4", "dma5", "dma6", "dma7";
tttinterrupts = <0x0 0xd 0x4 0x0 0xe 0x4 0x0 0xf 0x4 0x0 0x10 0x4 0x0 0x11 0x4 0x0 0x28 0x4 0x0 0x29 0x4 0x0 0x2a 0x4 0x0 0x2b 0x4>;
ttt#dma-cells = <0x1>;
ttt#dma-channels = <0x8>;
ttt#dma-requests = <0x4>;
tttclocks = <0x1 0x1b>;
tttclock-names = "apb_pclk";
tt};
ttdevcfg@f8007000 {
tttclock-names = "ref_clk", "fclk0", "fclk1", "fclk2", "fclk3";
tttclocks = <0x1 0xc 0x1 0xf 0x1 0x10 0x1 0x11 0x1 0x12>;
tttcompatible = "xlnx,zynq-devcfg-1.0";
tttinterrupt-parent = <0x3>;
tttinterrupts = <0x0 0x8 0x4>;
tttreg = <0xf8007000 0x100>;
tt};
tttimer@f8f00200 {
tttcompatible = "arm,cortex-a9-global-timer";
tttreg = <0xf8f00200 0x20>;
tttinterrupts = <0x1 0xb 0x301>;
tttinterrupt-parent = <0x3>;
tttclocks = <0x1 0x4>;
tt};
tttimer@f8001000 {
tttinterrupt-parent = <0x3>;
tttinterrupts = <0x0 0xa 0x4 0x0 0xb 0x4 0x0 0xc 0x4>;
tttcompatible = "cdns,ttc";
tttclocks = <0x1 0x6>;
tttreg = <0xf8001000 0x1000>;
tt};
tttimer@f8002000 {
tttinterrupt-parent = <0x3>;
tttinterrupts = <0x0 0x25 0x4 0x0 0x26 0x4 0x0 0x27 0x4>;
tttcompatible = "cdns,ttc";
tttclocks = <0x1 0x6>;
tttreg = <0xf8002000 0x1000>;
tt};
tttimer@f8f00600 {
tttinterrupt-parent = <0x3>;
tttinterrupts = <0x1 0xd 0x301>;
tttcompatible = "arm,cortex-a9-twd-timer";
tttreg = <0xf8f00600 0x20>;
tttclocks = <0x1 0x4>;
tt};
ttwatchdog@f8005000 {
tttclocks = <0x1 0x2d>;
tttcompatible = "xlnx,zynq-wdt-r1p2";
tttdevice_type = "watchdog";
tttinterrupt-parent = <0x3>;
tttinterrupts = <0x0 0x9 0x1>;
tttreg = <0xf8005000 0x1000>;
tttreset = <0x0>;
ttttimeout-sec = <0xa>;
tt};
ttusb@e0002000 {
tttclocks = <0x1 0x1c>;
tttcompatible = "xlnx,ps7-usb-1.00.a", "xlnx,zynq-usb-1.00.a";
tttstatus = "okay";
tttinterrupt-parent = <0x3>;
tttinterrupts = <0x0 0x15 0x4>;
tttreg = <0xe0002000 0x1000>;
tttdr_mode = "host";
tttphy_type = "ulpi";
tt};
ttusb@e0003000 {
tttclocks = <0x1 0x1d>;
tttcompatible = "xlnx,ps7-usb-1.00.a", "xlnx,zynq-usb-1.00.a";
tttstatus = "disabled";
tttinterrupt-parent = <0x3>;
tttinterrupts = <0x0 0x2c 0x4>;
tttreg = <0xe0003000 0x1000>;
tt};
t};
};