cd /u1/Projects/Zynq git clone https://github.com/Xilinx/u-boot-xlnx.gitThis produced "u-boot-xlnx" as a working directory on my linux system.
xilinx_zynq_virt_defconfigIt contains a suggestive line:
CONFIG_OF_LIST="zynq-zc702 zynq-zc706 zynq-zc770-xm010 zynq-zc770-xm011 zynq-zc770-xm011-x16 zynq-zc770-xm012 zynq-zc770-xm013 zynq-cc108 zynq-microzed zynq-minized zynq-picozed zynq-zed zynq-zturn zynq-zturn-v5 zynq-zybo zynq-zybo-z7 zynq-dlc20-rev1.0"Around 2020 they merged a bunch of different defconfig files together into this one. Different boards are differentiated by their device trees. Look at arch/arm/dts ...
zynq-picozed.dts zynq-zc702.dts zynq-zed.dts zynq-zybo.dts zynq-zybo-z7.dts ...Some things to check are whether the console is set up on uart0 or uart1 and if there is support for the fsbl on nand. It may be necessary to copy one of these files and make a specific dts (device tree) for the Antminer.
make distclean make xilinx_zynq_virt_defconfigAfter this we need to choose a device tree and then build. Just for fun, I will chose the zybo rather than "zed".
export DEVICE_TREE="zynq-zybo" make
# hostprogs-$(CONFIG_TOOLS_MKEFICAPSULE) += mkeficapsuleIf you care (and I don't know why you would), you can read about my struggles here:
LD spl/u-boot-spl OBJCOPY spl/u-boot-spl-nodtb.bin mkdir -p spl/dts/ FDTGREP spl/dts/dt-spl.dtb COPY spl/u-boot-spl.dtb CAT spl/u-boot-spl-dtb.bin COPY spl/u-boot-spl.bin SYM spl/u-boot-spl.sym MKIMAGE spl/boot.bin MKIMAGE u-boot.img COPY u-boot.dtb MKIMAGE u-boot-dtb.img LDS u-boot-elf.lds LD u-boot.elf OFCHK .config
Tom's Computer Info / [email protected]