From nobody Wed Jul 14 14:36:13 2021 X-Original-To: freebsd-arm@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id EF54F1276B9D for ; Wed, 14 Jul 2021 14:36:21 +0000 (UTC) (envelope-from manu@bidouilliste.com) Received: from mx.blih.net (mail.blih.net [212.83.155.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mx.blih.net", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4GQ0S46TLHz3pwY for ; Wed, 14 Jul 2021 14:36:20 +0000 (UTC) (envelope-from manu@bidouilliste.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bidouilliste.com; s=mx; t=1626273373; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=giP0wSNW7MXpAqUsI8Y6cRUvOVz2x/uIghVX9KeCJzQ=; b=XIP2B55iGj2rE5opI6+TJh1afOMalq7SG+k6ZmQ6jR2dF4sePoWN4WIyurwVsx8T5uARFV CNYe1JU8s5I097IL7ayw0NvG1IgdWOdMo+Av9otBoMSx0y8xXUb2RBpVfTkJpwKpSSfkM1 q+QQRGSsDhpJqU1F8TEElZRvvg1bcxQ= Received: from skull.home.blih.net (lfbn-idf2-1-644-4.w86-247.abo.wanadoo.fr [86.247.100.4]) by mx.blih.net (OpenSMTPD) with ESMTPSA id f05fec41 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Wed, 14 Jul 2021 14:36:13 +0000 (UTC) Date: Wed, 14 Jul 2021 16:36:13 +0200 From: Emmanuel Vadot To: "Herbert J. Skuhra" Cc: freebsd-arm@freebsd.org Subject: Re: git: 1dec3639fd0c - main - sysutils/u-boot: Update to 2021.07 Message-Id: <20210714163613.88579f95ca25130ab712cb45@bidouilliste.com> In-Reply-To: References: <202107071618.167GIvXd048504@gitrepo.freebsd.org> <874kd3390q.wl-herbert@gojira.at> <87o8b8n1rf.wl-herbert@gojira.at> <87mtqsn0we.wl-herbert@gojira.at> <20210712115010.a405a8f5e313ec75142fa544@bidouilliste.com> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.33; amd64-portbld-freebsd14.0) List-Id: Porting FreeBSD to ARM processors List-Archive: https://lists.freebsd.org/archives/freebsd-arm List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-arm@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4GQ0S46TLHz3pwY X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=pass header.d=bidouilliste.com header.s=mx header.b=XIP2B55i; dmarc=pass (policy=none) header.from=bidouilliste.com; spf=pass (mx1.freebsd.org: domain of manu@bidouilliste.com designates 212.83.155.74 as permitted sender) smtp.mailfrom=manu@bidouilliste.com X-Spamd-Result: default: False [-1.45 / 15.00]; RCVD_TLS_ALL(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[bidouilliste.com:s=mx]; FREEFALL_USER(0.00)[manu]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; MV_CASE(0.50)[]; MID_RHS_MATCH_FROM(0.00)[]; MIME_GOOD(-0.10)[text/plain]; R_SPF_ALLOW(-0.20)[+ip4:212.83.155.74/32]; ARC_NA(0.00)[]; NEURAL_SPAM_SHORT(0.96)[0.956]; SPAMHAUS_ZRD(0.00)[212.83.155.74:from:127.0.2.255]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[bidouilliste.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[bidouilliste.com,none]; NEURAL_HAM_MEDIUM(-0.90)[-0.902]; NEURAL_HAM_LONG(-1.00)[-1.000]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RBL_DBL_DONT_QUERY_IPS(0.00)[212.83.155.74:from]; ASN(0.00)[asn:12876, ipnet:212.83.128.0/19, country:FR]; RCVD_COUNT_TWO(0.00)[2]; MAILMAN_DEST(0.00)[freebsd-arm] X-ThisMailContainsUnwantedMimeParts: N On Mon, 12 Jul 2021 13:44:43 +0200 "Herbert J. Skuhra" wrote: > Hi Emmanuel, > > thanks for your feedback. > > On Mon, Jul 12, 2021 at 11:50:10AM +0200, Emmanuel Vadot wrote: > > > > So I took the latest snapshot image available on the ftp > > (FreeBSD-14.0-CURRENT-arm-armv7-GENERICSD-20210701-c5f4772c66d-247671.img) > > and dd u-boot for the nanopi_m1plus on it. > > The snapshot already have the u-boot for BeagleBone and RPI* > > > > No problems on the BBB > > No problems on the NanoPi M1Plus > > I do see the hang on the RPI2 though (RPI2 v1.1) > > > > Commit 60a376b09332a0cf061b3 in u-boot removes > > CONFIG_EFI_GRUB_ARM32_WORKAROUND from the RPI2 defconfig but we do > > re-add it in the ports tree (see > > https://cgit.freebsd.org/ports/tree/sysutils/u-boot-master/Makefile#n215 > > and > > https://cgit.freebsd.org/ports/tree/sysutils/u-boot-master/files/FreeBSD_Fragment#n2) > > > > So if you bisected from u-boot tree directly and didn't use a fragment > > that's normal to get this commit as the first bad one. > > I was lazy and built the port (created a *.tar.bz2 archive from > the git checkout or rcX downloads and modified distinfo). > > > Note that the images don't have a boot.scr (u-boot script) for a long > > time now, we rely on EFI. (See commit > > https://cgit.freebsd.org/src/commit/?id=33bec6889a0957d1c06c36378157a46a95fcb004) > > Yes, my RPi2 only boots without this change (a361eabce3cf). Maybe it > should be reverted until we have a proper fix? Or create images with > older U-Boot (2021.01)? Damn, I missed that u-boot-rpi2 used its own fragment. Can you try adding CONFIG_EFI_GRUB_ARM32_WORKAROUND=y to sysutils/u-boot-rpi2/files/rpi2_fragment and see if that fixes the issue for you ? > > For your mmc problem this can be that you are not using the dtoverlay > > that switches between the sdhost controller and the sdhci. Using this > > rewrite the mmc number for u-boot. > > This happens even with the official builds! > > FreeBSD-13.0-STABLE-arm64-aarch64-RPI-20210701-6aee7855180-246143.img.xz > ==> OK (U-Boot 2021.04) > FreeBSD-13.0-STABLE-arm64-aarch64-RPI-20210708-f6d448caf69-246212.img.xz > ==> Not OK. (U-Boot 2021.07) > > I am using U-Boot 2021.04 again because I still don't know how to boot > from mmc device 2 automatically. > > -- > Herbert > -- Emmanuel Vadot