Date: Mon, 22 Jul 2019 19:50:39 +0200 From: Emmanuel Vadot <manu@bidouilliste.com> To: Milan Obuch <freebsd-uboot@dino.sk> Cc: freebsd-uboot@freebsd.org Subject: Re: u-boot for Zynq Zybo-Z7 board Message-ID: <20190722195039.c0ab5b4d756791115a9093c0@bidouilliste.com> In-Reply-To: <20190722193411.350ad34e@zeta.dino.sk> References: <20190722143005.152779f3@zeta.dino.sk> <20190722174807.eb64f11514b20808ee6b4ca3@bidouilliste.com> <20190722193411.350ad34e@zeta.dino.sk>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 22 Jul 2019 19:34:11 +0200 Milan Obuch <freebsd-uboot@dino.sk> wrote: > On Mon, 22 Jul 2019 17:48:07 +0200 > Emmanuel Vadot <manu@bidouilliste.com> wrote: > > > On Mon, 22 Jul 2019 14:30:05 +0200 > > Milan Obuch <freebsd-uboot@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 have no ready idea to present, but if other than standard current > > > u-boot version should be used, as in case of zybo and zybo-z7, > > > masterport could maybe look in distinfo present in that specific > > > port... For zybo and zybo-z7, neither 2019.04 nor 2019.07 u-boot > > > compiles, there is something wrong with creating binaries, maybe too > > > big or somesuch, but 2019.01 verzion seems to work just right. > > > > 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. > > > > Trying with patch applied... > > (a bit later) > > build success... > > installed/copied to microSD card... > > does not boot. > > Sorry, this is not proper fix. Something is wrong, I can't tell more, > because there is absolutelly nothing on serial console. Well I suggest you start looking at u-boot upstream and maybe tweak my patch, the error comes from this line. You could try using gnudd too but I don't think we have a port. > Regards, > Milan > _______________________________________________ > freebsd-uboot@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-uboot > To unsubscribe, send any mail to "freebsd-uboot-unsubscribe@freebsd.org" -- Emmanuel Vadot <manu@bidouilliste.com> <manu@freebsd.org>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20190722195039.c0ab5b4d756791115a9093c0>