From owner-freebsd-uboot@freebsd.org Mon Jul 22 17:34:16 2019 Return-Path: Delivered-To: freebsd-uboot@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 1242FB7395 for ; Mon, 22 Jul 2019 17:34:16 +0000 (UTC) (envelope-from freebsd-uboot@dino.sk) Received: from mailhost.netlabit.sk (mailhost.netlabit.sk [84.245.65.72]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id CE53181B0E for ; Mon, 22 Jul 2019 17:34:14 +0000 (UTC) (envelope-from freebsd-uboot@dino.sk) Received: from zeta.dino.sk (fw3.dino.sk [84.245.95.254]) (AUTH: LOGIN milan) by mailhost.netlabit.sk with ESMTPA; Mon, 22 Jul 2019 19:34:11 +0200 id 00F406AE.5D35F393.00013A2F Date: Mon, 22 Jul 2019 19:34:11 +0200 From: Milan Obuch To: Emmanuel Vadot Cc: freebsd-uboot@freebsd.org Subject: Re: u-boot for Zynq Zybo-Z7 board Message-ID: <20190722193411.350ad34e@zeta.dino.sk> In-Reply-To: <20190722174807.eb64f11514b20808ee6b4ca3@bidouilliste.com> References: <20190722143005.152779f3@zeta.dino.sk> <20190722174807.eb64f11514b20808ee6b4ca3@bidouilliste.com> X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; i386-portbld-freebsd11.3) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: CE53181B0E X-Spamd-Bar: ------ Authentication-Results: mx1.freebsd.org; spf=pass (mx1.freebsd.org: domain of freebsd-uboot@dino.sk designates 84.245.65.72 as permitted sender) smtp.mailfrom=freebsd-uboot@dino.sk X-Spamd-Result: default: False [-6.01 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; RCVD_TLS_LAST(0.00)[]; DMARC_NA(0.00)[dino.sk]; TO_MATCH_ENVRCPT_SOME(0.00)[]; MX_GOOD(-0.01)[cached: mail.dino.sk]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[72.65.245.84.list.dnswl.org : 127.0.10.0]; NEURAL_HAM_SHORT(-0.92)[-0.919,0]; IP_SCORE(-2.78)[ip: (-8.02), ipnet: 84.245.64.0/18(-4.01), asn: 16160(-1.93), country: SK(0.06)]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:16160, ipnet:84.245.64.0/18, country:SK]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-uboot@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussions about the use of uboot with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Jul 2019 17:34:16 -0000 On Mon, 22 Jul 2019 17:48:07 +0200 Emmanuel Vadot wrote: > On Mon, 22 Jul 2019 14:30:05 +0200 > Milan Obuch 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. Regards, Milan