From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id qMmfL+RgAGFe4QAAgWs5BA (envelope-from ) for ; Tue, 27 Jul 2021 21:39:16 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id aIVVK+RgAGGqXgAAB5/wlQ (envelope-from ) for ; Tue, 27 Jul 2021 19:39:16 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id ED8A9145B1 for ; Tue, 27 Jul 2021 21:39:15 +0200 (CEST) Received: from localhost ([::1]:49620 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m8Sv4-0004V6-Dn for larch@yhetil.org; Tue, 27 Jul 2021 15:39:14 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35636) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m8Sus-0004Un-DI for bug-guix@gnu.org; Tue, 27 Jul 2021 15:39:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:42431) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m8Sus-0004cF-5i for bug-guix@gnu.org; Tue, 27 Jul 2021 15:39:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1m8Sus-0002Bg-4U for bug-guix@gnu.org; Tue, 27 Jul 2021 15:39:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#49550: Enable to boot from emmc on rockpro64 Resent-From: Pierre Langlois Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Tue, 27 Jul 2021 19:39:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49550 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 49550@debbugs.gnu.org Received: via spool by 49550-submit@debbugs.gnu.org id=B49550.16274147128373 (code B ref 49550); Tue, 27 Jul 2021 19:39:02 +0000 Received: (at 49550) by debbugs.gnu.org; 27 Jul 2021 19:38:32 +0000 Received: from localhost ([127.0.0.1]:53977 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m8SuL-0002Av-0i for submit@debbugs.gnu.org; Tue, 27 Jul 2021 15:38:32 -0400 Received: from mout.gmx.net ([212.227.17.20]:42119) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m8SuI-0002Ai-L3 for 49550@debbugs.gnu.org; Tue, 27 Jul 2021 15:38:27 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1627414700; bh=Oqry8MJTTeH5Mh0c+ySPagZV5oLrCSdYu2BcQmvL0DA=; h=X-UI-Sender-Class:References:From:To:Cc:Subject:In-reply-to:Date; b=FqRHLJtgk96NDQlfsfSzfE+hJLxxaYyZF3jyl5qRnAm/AtNZzfy0DSTJMhbNhEkm8 6j+rWAS8FQQQ2CbQGRj/OmBLcHcgDkcqj4nQb0T5+UxYuTWOuF/616TkCRWqm96dUF uINbO42bwWMfp1/AcHO6oPAWYaaJV4H8PtXOSB7I= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from labiere ([82.69.64.142]) by mail.gmx.net (mrgmx105 [212.227.17.174]) with ESMTPSA (Nemesis) id 1MbAgq-1mk0Zv44q0-00bYqd; Tue, 27 Jul 2021 21:38:20 +0200 References: <87eec2m2f7.fsf@gmx.com> <87sg0eqszi.fsf@yucca> <87bl6nh7yh.fsf@gmx.com> User-agent: mu4e 1.4.15; emacs 27.2 From: Pierre Langlois In-reply-to: <87bl6nh7yh.fsf@gmx.com> Date: Tue, 27 Jul 2021 20:38:18 +0100 Message-ID: <878s1rh7it.fsf@gmx.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Provags-ID: V03:K1:TOHKDNwza0p1SkOHjuOA8KlxFZlOziCxyWpuy1HGDDe5ye1nnZR F3Rnvya8qOfixpRf5TRv0XlVyaYqfNhFQEJvH9SVqNVufaIzOTkblyqBa1DJbOSi+fhvnGh fOWJfm7DCaoUck6Zjsn0oyt7+r+eFK2UPAOiIA8Z4s45gaammRW4klR4fXH/ThnO8V1Ih09 XjawIdbirnVvf9wFo0OkA== X-UI-Out-Filterresults: notjunk:1;V03:K0:THXMUBi1IoU=:2m1nAzee8ROqhgGlKbwmTN KxIzwH7+HUkbgMaQIPdb7LfWcyopoigObGM/Eaf9DcDOETRwYSariEKCyeXn/fBzaCUIVsV3h h8i45dE40MLtqr4et22ZsmovZv5QdBPnY7/fZz917LNjOumL060E2V6dL4d1dCE2eBTzS7TFs tiX51H2EpHh0r1YbWwwN7tgE5xAjrV/n+vqy7cBpNzV7nwQQc50u8JMzIWmThwiLpnXzvEpOu KF5JCyQfRuyOG10c//viactQS/9YZVjbnWMlgR34OGNJI4tuBjpFA3GBA1687RT+HdlmLXUEe Z3pDKTO6N1Ji0BFZ5a6jppW/wFldJas4t8fTzpov7ebzagP492DWSZ7xKLQTU15gYpP3NLfki oUnuyQd6sidyeuYnVesGogvkyjRtuDrvWSW6rSeC3YtSSCnFoaTKyCBHdfLe1fsY9ILhuAOuu BCqyT8oLFq/TOVZZF0hEzuz0vk6dObFxUlteM9rhjlQ8sbWRv/rWUgWv2PD83YEdS5tcUnA7E Gknns35Ik+/DPHl/iBdyuSQDRUbw9kQ8bsbgEZzVbMbhofo1G6dVu4QERfSFo5Y71opf3ZA5l ZH7chT/+zYuVb/QCIE+kn8LSrkr5BKI7uAAuJfOPtS8dl4dJPqCYOpJKdw9Kkb+5Wg44qMk0D jbny+bV40PGHeoo+7nf5WFB93m9Ytm1ferVeaTh+7zOr/x/GrOfzABrqOPnq4/FGSfyicEn+q fjT2yBbYOm2WpmH1B0vzck24Mf4JEYfUNsCQNh6Or7U590Plargpay9uly1N9Bsh/ccceIVAS e7KAddopPHU3NeeLuEEmnG303mrVXNB+u/KSmTf+efjF5rfSev3OT5av/7IX2kan3jFdldtpK gbvWflLPHMVqwVT83Vq0wO926jU6UTITFAtylhn4WAIQfCj5///fezLhKbMGuE4kjG24vdeLJ JvD/kcWNgmjxIKYfA0eCz7ifvlf9ieqThJfPcgLVglXcj9OJEsGu6e38fMbrSolj1jmK+wXpC kKOXaTPHop/m8LorY7mQNqS9oST1QZ+BzLo+HrzDF66DPkYHf/4gO4J/UfLdLaGUmfL6pvMMp w5hW+EPV8OuxhJ6Q1pnQbyUu0bscP6HhJmnXMJo+Ut8fs4aH6zzH4WBXw== X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Vagrant Cascadian Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1627414756; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post: dkim-signature; bh=E5r2ngkvlnDlgv3UvkA4ELvNy0xxW6VlGa4rXqPh1Ck=; b=VN8ranlXh6K/G/sMyh5NqZbsXwL6wbpzvykgS0gyWJMMddF/IRQD8onYfMuGXhjqSahari RkokuPbNhp0N68WdmXA/7sZsjqQQJSs9kpsT9jJ62l8vr0PoGQqpJgzGEsdUcU+Xlt5eeV L4szaMTFtMx3Ca/JMD1FdKJQNBUjIuU5grbsNKdkU9KVp82zwpvGArkYGvQygnIWjBR+RK d64wBELVHFF9gqB9TejMCY7hcDHsnFXTRyoAdCNxmJ0I6BqCMavVrnLWSUfJ6IM2f8Sv+X a13zmJ+w2o7xlS/eh7gcZl0ZJEpKImQ79M6bu7S0fMziZoyCLy5gzDLIadCWOg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1627414756; a=rsa-sha256; cv=none; b=CZYA7XJDFzbzZIiamslR6Do4joEZDs438EeWHlcF4e3T5m6XsnsHmKVj0cDUNA1OmzIW/C gFc+ORvsTODDF1+eexaFTeoRJlWWnPIdpwilZe0i5lJcwSv/c1GPqUeKsyWgVOTYF9W+sF QrdA62/L+FXn5m+HAuuA8kFcVdk+25F/GUUNIvtZ2UEoHF4qldbyfiZz3fk3tLB0g0ejcX Tzt3L98IINLsc/lqDR0CCKyZLFM+4guELWqpS1/kOrwkYowPVD/V4z273GL8hbTVl7oEtZ OfpEvVSgxaJovJwQZ1/urZRVX6pv8wSaUDycmwxvlvKajYA/fRG0Xm4Ag+7K7g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmx.net header.s=badeba3b8450 header.b=FqRHLJtg; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmx.com (policy=none); spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Spam-Score: -3.42 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmx.net header.s=badeba3b8450 header.b=FqRHLJtg; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmx.com (policy=none); spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Queue-Id: ED8A9145B1 X-Spam-Score: -3.42 X-Migadu-Scanner: scn0.migadu.com X-TUID: Q7LzRwYKnjLq --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Whoops, I hadn't realised the bug email wasn't included in the email, sorry! Pierre Langlois writes: > Hi Vagrant, > > I just had a break-through with this! See inline. > > Vagrant Cascadian writes: > >> On 2021-07-13, Pierre Langlois wrote: >>> I'm afraid since commit 3a851d45576e046d696fcf35b34d57b2cd28ea49 [0] >>> I've not been able to boot from eMMC on the rockpro64 board, it freezes >>> before loading the kernel. Re-introducing the work-around fixed the >>> issue for me (see patch attached). >>> >>> Did we mean to remove the work-around? I'm wondering if there's >>> something I'm missing, or if I should instead boot from a USB device. >> >> I definitely tested this on pinebook-pro and probably just assumed it >> would also fix the issue on rockpro64... >> >> >>> I've also updated u-boot to 2021.07 but I'm seeing the same boot issue >>> so it doesn't appear to be fixed upstream :-/ >>> >>> Anybody know of any other work around? If not, are you happy with the >>> patch attached? >> >> I'll try to test on rockpro64 and see if I can confirm the issue and >> your fix... >> >> >> live well, >> vagrant >> >>> From f3c647bb447706f465a3fb4b8d6e09cd089dbed9 Mon Sep 17 00:00:00 2001 >>> From: Pierre Langlois >>> Date: Sat, 8 May 2021 16:19:23 +0100 >>> Subject: [PATCH 1/3] gnu: u-boot-rockpro64-rk3399: Disable USB boot. >>> >>> * gnu/packages/bootloaders.scm (u-boot-rockpro64-rk3399)[arguments]: Add >>> 'patch-rockpro64-config phase. >>> --- >>> gnu/packages/bootloaders.scm | 11 ++++++++--- >>> 1 file changed, 8 insertions(+), 3 deletions(-) >>> >>> diff --git a/gnu/packages/bootloaders.scm b/gnu/packages/bootloaders.scm >>> index 742992a119..75705a27c1 100644 >>> --- a/gnu/packages/bootloaders.scm >>> +++ b/gnu/packages/bootloaders.scm >>> @@ -12,7 +12,7 @@ >>> ;;; Copyright =C2=A9 2019 Mathieu Othacehe >>> ;;; Copyright =C2=A9 2020 Bj=C3=B6rn H=C3=B6fling >>> ;;; Copyright =C2=A9 2018, 2019, 2020 Vagrant Cascadian >>> -;;; Copyright =C2=A9 2020 Pierre Langlois >>> +;;; Copyright =C2=A9 2020, 2021 Pierre Langlois >>> ;;; Copyright =C2=A9 2021 Vincent Legoll >>> ;;; Copyright =C2=A9 2021 Brice Waegeneire >>> ;;; >>> @@ -931,11 +931,16 @@ to Novena upstream, does not load u-boot.img from= the first partition.") >>> (substitute-keyword-arguments (package-arguments base) >>> ((#:phases phases) >>> `(modify-phases ,phases >>> + (add-after 'unpack 'patch-rockpro64-config >>> + ;; Fix regression in 2020.10 causing freezes on boot w= ith USB boot enabled. >>> + ;; See https://gitlab.manjaro.org/manjaro-arm/packages= /core/uboot-rockpro64/-/issues/4 >>> + (lambda _ >>> + (substitute* "configs/rockpro64-rk3399_defconfig" >>> + (("CONFIG_USE_PREBOOT=3Dy") "CONFIG_USE_PREBOOT=3D= n")))) >>> (add-after 'patch-rockpro64-config 'set-environment > > Wait a minute, there was a bug here on master! The 'set-environment > phase runs after 'patch-rockpro64-config phase, it should be 'unpack. > This was the reason it was hanging on boot for me, it wasn't to do with > PREBOOT, ah-ha! :-D > > That's nice, I was really confused about this issue, thinking I maybe > had a faulty board. > > > >>> (lambda* (#:key inputs #:allow-other-keys) >>> (setenv "BL31" (string-append (assoc-ref inputs "fir= mware") >>> - "/bl31.elf")) >>> - #t)) >>> + "/bl31.elf")))) >>> ;; Phases do not succeed on the bl31 ELF. >>> (delete 'strip) >>> (delete 'validate-runpath))))) >>> -- >>> 2.32.0 >>> >>> >>> >>> [0]: https://lists.gnu.org/archive/html/guix-commits/2021-05/msg00085.h= tml > > Thanks, > Pierre --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQFMBAEBCgA2FiEEctU9gYy29KFyWDdMqPyeRH9PfVQFAmEAYKoYHHBpZXJyZS5s YW5nbG9pc0BnbXguY29tAAoJEKj8nkR/T31UuVgIAIAPwOeueBk2K/EhZqdWJN+v CCfDGU5YOZw/zYx3owgmOXYpBh4rVWV/JjUA6DQMxkIuR7q3ulyqbds1C0RIXml1 9kyhjFeg+xBTTp5vKWa6kFXNUVGMqamgrJkObJaVTaAUY89bZBnENEIWGjADBNXR ymh1Qpg6otssY1cuiim6W3641e+QKmYSrsCPAeqr7/bwqDqO+n+9Sy8sKwgpR8BO t+aJa1fPpXbuLJ2aYJfua8dNZOHMtUG4TARygEP4/hTY9FJKrIZo15weFUv8N30m sxnys/vIITuzKVQeZX+hCP4qvk/Z8xWQLj6Kob4ECxPqIYgPkQ0sQ4sis62JiUw= =Fq3m -----END PGP SIGNATURE----- --=-=-=--