From nobody Mon Jul 12 11:44:43 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 7CD4A127A097 for ; Mon, 12 Jul 2021 11:44:47 +0000 (UTC) (envelope-from herbert@gojira.at) Received: from mail.bsd4all.net (mail.bsd4all.net [94.130.200.20]) (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 (4096 bits) client-digest SHA256) (Client CN "mail.bsd4all.net", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4GNhl24bqCz3Ccx for ; Mon, 12 Jul 2021 11:44:46 +0000 (UTC) (envelope-from herbert@gojira.at) Date: Mon, 12 Jul 2021 13:44:43 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=gojira.at; s=mail202005; t=1626090283; bh=aQDyyXq8bTkkWfq9uScClnESdM2uyQUplB2g6a09WbE=; h=Date:From:To:Subject:Message-ID:MIME-Version:Content-Type; b=cl3XU441qh3CtiDEcUmWiz2s2YA3sXJx9iW+2XWsT84oeEuNvd7Qdwu9VQxgAYt5I gSBv3QQk2kBAt429QdGot4EYRxyL4MzmWKCfgCClYpmm+LvWMs+M1NO1J25WbZ48NP W23jvENrLeSQvf14e2+yupYTXXZGwMQAXEV0NvNhrnKFEOiffjuuP88DIta/I39DYK AlmWlprONrE/R/eLG3zH0ZF7S5SR+/b0QiLtiry/7J6M60KEzbKRF17PSJrUfOuPZW r4HMvlnt9wqfbQO26dCbfpr2Oeb+X2s7bQjAH16/rcn5y7hvafjhJynWtHhGok9KbK 8FgMuhvHW60QA== From: "Herbert J. Skuhra" To: freebsd-arm@freebsd.org Subject: Re: git: 1dec3639fd0c - main - sysutils/u-boot: Update to 2021.07 Message-ID: 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> 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-Disposition: inline In-Reply-To: <20210712115010.a405a8f5e313ec75142fa544@bidouilliste.com> X-Rspamd-Queue-Id: 4GNhl24bqCz3Ccx X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gojira.at header.s=mail202005 header.b=cl3XU441; dmarc=none; spf=pass (mx1.freebsd.org: domain of herbert@gojira.at designates 94.130.200.20 as permitted sender) smtp.mailfrom=herbert@gojira.at X-Spamd-Result: default: False [-3.41 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[gojira.at:s=mail202005]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:94.130.200.20:c]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; DMARC_NA(0.00)[gojira.at]; RCPT_COUNT_ONE(0.00)[1]; SPAMHAUS_ZRD(0.00)[94.130.200.20:from:127.0.2.255]; DKIM_TRACE(0.00)[gojira.at:+]; NEURAL_HAM_SHORT(-0.91)[-0.911]; NEURAL_HAM_LONG(-1.00)[-1.000]; RCVD_COUNT_ZERO(0.00)[0]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RBL_DBL_DONT_QUERY_IPS(0.00)[94.130.200.20:from]; ASN(0.00)[asn:24940, ipnet:94.130.0.0/16, country:DE]; MAILMAN_DEST(0.00)[freebsd-arm] X-ThisMailContainsUnwantedMimeParts: N 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)? > 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