Quick Porting of PYNQ using Pre-built Images

Hi to everyone, im making a PYNQ image for a custom board with this comand “make BOARDDIR=test_repo PREBUILT=bionic.arm.2.5.img” from a bsp created with petalinux and including the ethernet package, if i boot my board from the petalinux image, ethernet works, at least i can do ping.
This is what i modify in the sistem-user in device-tree for petalinux
/include/ “system-conf.dtsi”
/ {
amba {
ethernet@e000b000 {
status = “okay”;
phy-mode = “mii”;
phy-handle = <&phy0>;
local-mac-address = [00 0a 35 00 00 00];
phy0: phy@1 {

     reg = <1>;
     device_type = "ethernet-phy";
 xlnx,phy-type = <5>;
 };

};
};
};
But when boot from the PYNQ image, ethernet doesnt work (I use the same files in project-spec that in petalinux build). I tried modifiing some things,
for example, I add a ethernet.cfg to the u-boot-xlnx_%.bbappend
CONFIG_CMD_NET=y
CONFIG_NET=y
#CONFIG_NET_RANDOM_ETHADDR is not set
#CONFIG_NETCONSOLE is not set
CONFIG_NET_TFTP_VARS=y
CONFIG_BOOTP_PXE_CLIENTARCH=0x15
CONFIG_BOOTP_VCI_STRING=“U-Boot.armv7”
CONFIG_DM_ETH=y
CONFIG_PHYLIB=y
#CONFIG_RTL8211X_PHY_FORCE_MASTER is not set
CONFIG_NETDEVICES=y
#CONFIG_ALTERA_TSE is not set
#CONFIG_DWC_ETH_QOS is not set
#CONFIG_E1000 is not set
#CONFIG_ETH_DESIGNWARE is not set
#CONFIG_ETHOC is not set
#CONFIG_RTL8139 is not set
#CONFIG_RTL8169 is not set
#CONFIG_SUN8I_EMAC is not set
#CONFIG_XILINX_AXIEMAC is not set
#CONFIG_XILINX_EMACLITE is not set
CONFIG_ZYNQ_GEM=y
CONFIG_ETHERNET
CONFIG_NET_VENDOR_CADENCE
CONFIG_MACB
CONFIG_NETDEVICES
CONFIG_HAS_DMA

and device-tree as follows
/include/ “system-conf.dtsi”
/ {
amba {
ethernet@e000b000 {
status = “okay”;
phy-mode = “mii”;
phy-handle = <&ethernet_phy>;
local-mac-address = [00 0a 35 00 00 00];
ethernet_phy: ethernet-phy@1{

	 reg = <1>;
	 device_type = "ethernet-phy";
	 xlnx,phy-type = <5>;
     };
};

};
macb0: ethernet@e000b000 {
compatible = “cdns,zynq-gem”;
phy-mode = “mii”;
};
};

My board is a EBAZ4205 (GitHub - Elrori/EBAZ4205: EBAZ4205 BOARD), that has a IP101GA PHY with RMII or MII interface.
My hardware design has ethernet 0 with MDIO on EMIO, added pins to xdc to match

I attach the boot log from petalinux and pynq image.

Thanks in advance.

ebaz_boot.txt (24.1 KB)

petalinux_bsp_boot.txt (15.9 KB)