u-boot for Zynq Zybo-Z7 board
Emmanuel Vadot
manu at bidouilliste.com
Thu Jan 9 11:08:52 UTC 2020
On Thu, 9 Jan 2020 11:54:02 +0100
Milan Obuch <freebsd-uboot at dino.sk> wrote:
> On Mon, 22 Jul 2019 19:50:39 +0200
> Emmanuel Vadot <manu at bidouilliste.com> wrote:
>
> > On Mon, 22 Jul 2019 19:34:11 +0200
> > Milan Obuch <freebsd-uboot at dino.sk> wrote:
> >
> > > On Mon, 22 Jul 2019 17:48:07 +0200
> > > Emmanuel Vadot <manu at bidouilliste.com> wrote:
> > >
> > > > On Mon, 22 Jul 2019 14:30:05 +0200
> > > > Milan Obuch <freebsd-uboot at dino.sk> wrote:
> > > >
> > > > > Hi,
> > > > >
> > > > > as there is support for older version, Zybo, it should be
> > > > > possible to run FreeBSD on newer board too. We have a port
> > > > > sysutils/u-boot-zybo for it, but it does not run correctly on
> > > > > newer board, so I copied this port and modified Makefile to
> > > > > contain
> > > > >
> > > > > MASTERDIR= ${.CURDIR}/../u-boot-master
> > > > >
> > > > > MODEL= zybo-z7
> > > > > BOARD_CONFIG= zynq_zybo_z7_defconfig
> > > > > FAMILY= zynq_7000
> > > > >
> > > > > UBOOT_VERSION= 2019.01
> > > > >
> > > > > .include "${MASTERDIR}/Makefile"
>
> [ snip ]
>
> > > > I would prefer that we fix the u-boot port using 2019.07
> > > > I've never looked to what was the problem but if you have a board
> > > > could you test building after applying this patch to the u-boot
> > > > source tree :
> > > >
> > > > diff --git a/scripts/Makefile.spl b/scripts/Makefile.spl
> > > > index 7af6b120b6..34e74506e3 100644
> > > > --- a/scripts/Makefile.spl
> > > > +++ b/scripts/Makefile.spl
> > > > @@ -200,7 +200,7 @@ MKIMAGEFLAGS_boot.bin = -T zynqmpimage -R $
> > > > (srctree)/$(CONFIG_BOOT_INIT_FILE) \ endif
> > > >
> > > > $(obj)/$(SPL_BIN)-align.bin: $(obj)/$(SPL_BIN).bin
> > > > - @dd if=$< of=$@ conv=block,sync bs=4 2>/dev/null;
> > > > + @dd if=$< of=$@ conv=block,sync bs=4 cbs=4 2>/dev/null;
> > > >
> > > > spl/boot.bin: $(obj)/$(SPL_BIN)-align.bin FORCE
> > > > $(call if_changed,mkimage)
> > > >
> > > > It might not work at all, I have no idea what cbs means for dd
> > > > and failed to understand with the man page.
>
> Thomas Skibo reported working patch for this issue some time ago and I
> was able after some tinkering (and finding time to do it) produce
> working port. I verified it is possible to create working system from
> generic image available at ftp.freebd.org for sd (I downloaded snapshot
> file FreeBSD-13.0-CURRENT-arm-armv7-GENERICSD-20200102-r356261.img)
> simply by copying boot.bin, boot.scr, u-boot.img and uEnv.txt files to
> root directory of FAT partition therein. Only remaining issue is to
> copy zybo-z7.dtb into image, as it is not yet in out src tree (solved
> locally here, too).
>
> My port is OK with both u-boot version 2019.10 currently in ports and
> just recently released version 2020.01 - both build and run equally
> well.
>
> New port is just submitted, see
> https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=243211
>
> Regards,
> Milan
I don't like having patches, do you plan to upstream the change for
board/xilinx/zynq/zynq-zybo-z7/ps7_init_gpl.c ?
For the defconfig patch, please use a fragment.
--
Emmanuel Vadot <manu at bidouilliste.com>
More information about the freebsd-uboot
mailing list