On 10.07.2018 17:05, Thomas Goodwin wrote: > Hello, > > I'm attempting to build the picozed-zynq7 machine using meta-xilinx with > Poky 2.4.2. I've tried using the /rocko/ branch as well as > /rel-v2018.2/. For the latter, I had to patch the machine definition > since it was missing /require > /(PR: https://github.com/Xilinx/meta-xilinx/pull/9). My layer > configuration is: > > BBLAYERS ?= " \ > /ssd/yocto_projects/picozed/poky/meta \ > /ssd/yocto_projects/picozed/poky/meta-poky \ > /ssd/yocto_projects/picozed/poky/meta-xilinx/meta-xilinx-bsp \ > " > > In each case, I can build /core-image-minimal/, however there is no > console output on boot over the UART. The D10 and D11 PS LEDs on the > FMC carrier card are flashing in sync. > > Has anyone else successfully built for this target recently?
Yes, the u-boot device tree is broken for the Picozed. There is no console defined (the chosen/stdout-path node is missing) and because of that u-boot panics and the board resets. That's why the LEDs are "blinking" I stepped through the code using JTAG and found out what's causing this after a longer debugging session. I fixed the device tree and it started to work. I also added some more stuff to it like USB, QSPI and the Ethernet MAC. In theory that should make them work as well, but I'm not sure if I ever tested that. You find the patch attached. Maybe Xilinx should upstream that. The u-boot is just broken on Picozeds without this. - Andy
commit 3115e00df2fc969becff15811c5ff5feb0ecd036 Author: Andreas Galauner <[email protected]> Date: Sat Nov 25 06:37:25 2017 +0100 Fix picozed device tree diff --git a/arch/arm/dts/zynq-picozed.dts b/arch/arm/dts/zynq-picozed.dts index e15667c108..73af38415e 100644 --- a/arch/arm/dts/zynq-picozed.dts +++ b/arch/arm/dts/zynq-picozed.dts @@ -15,13 +15,33 @@ aliases { serial0 = &uart1; spi0 = &qspi; - mmc0 = &sdhci1; + mmc0 = &sdhci0; + mmc1 = &sdhci1; }; memory@0 { device_type = "memory"; reg = <0 0x40000000>; }; + + chosen { + bootargs = "earlyprintk"; + stdout-path = "serial0:115200n8"; + }; + + usb_phy0: phy0 { + compatible = "usb-nop-xceiv"; + #phy-cells = <0>; + }; +}; + +&clkc { + ps-clk-frequency = <33333333>; +}; + +&qspi { + u-boot,dm-pre-reloc; + status = "okay"; }; &uart1 { @@ -29,7 +49,17 @@ status = "okay"; }; -&qspi { +&gem0 { + status = "okay"; + phy-mode = "rgmii-id"; + phy-handle = <ðernet_phy>; + + ethernet_phy: ethernet-phy@0 { + reg = <0>; + }; +}; + +&sdhci0 { u-boot,dm-pre-reloc; status = "okay"; }; @@ -38,3 +68,9 @@ u-boot,dm-pre-reloc; status = "okay"; }; + +&usb0 { + status = "okay"; + dr_mode = "host"; + usb-phy = <&usb_phy0>; +};
-- _______________________________________________ meta-xilinx mailing list [email protected] https://lists.yoctoproject.org/listinfo/meta-xilinx
