GNU bug report logs - #49550
Enable to boot from emmc on rockpro64

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: guix; Reported by: Pierre Langlois <pierre.langlois@HIDDEN>; dated Tue, 13 Jul 2021 19:37:01 UTC; Maintainer for guix is bug-guix@HIDDEN.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 13 Jul 2021 19:36:52 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Jul 13 15:36:51 2021
Received: from localhost ([127.0.0.1]:42069 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1m3OD1-0006r1-Hq
	for submit <at> debbugs.gnu.org; Tue, 13 Jul 2021 15:36:51 -0400
Received: from lists.gnu.org ([209.51.188.17]:58344)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <pierre.langlois@HIDDEN>) id 1m3OCy-0006qq-9S
 for submit <at> debbugs.gnu.org; Tue, 13 Jul 2021 15:36:46 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:53722)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <pierre.langlois@HIDDEN>)
 id 1m3OCx-0006kR-Px
 for bug-guix@HIDDEN; Tue, 13 Jul 2021 15:36:43 -0400
Received: from mout.gmx.net ([212.227.17.22]:37467)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <pierre.langlois@HIDDEN>)
 id 1m3OCu-0003Rz-VO
 for bug-guix@HIDDEN; Tue, 13 Jul 2021 15:36:43 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net;
 s=badeba3b8450; t=1626204994;
 bh=mKSYD2f/eeY7bdjrY7wYNSTsZDrXiBCCE5TUemXFp6Q=;
 h=X-UI-Sender-Class:From:To:Cc:Subject:Date;
 b=JsG74SqewEgqnk/in7UZzNfQdK4xKcgO9xg7mt9Lok3dgaJTiWbBg2xEsNpdLy9E+
 cj0dO3vVPCr9/VqcJMD0A+JiWSNqlLk5Vy01IkopNBPgxLRs/g2SZOwU6j4ZKPW9RO
 Hpcm+FxRI8tkOanviR+JlxluXSmP9mzfGN3kVs0g=
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 1MPXhK-1lqgc40KjS-00Mcfq; Tue, 13
 Jul 2021 21:36:34 +0200
User-agent: mu4e 1.4.15; emacs 27.2
From: Pierre Langlois <pierre.langlois@HIDDEN>
To: Bug guix <bug-guix@HIDDEN>
Subject: Enable to boot from emmc on rockpro64
Date: Tue, 13 Jul 2021 20:36:28 +0100
Message-ID: <87eec2m2f7.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="=-=-="
X-Provags-ID: V03:K1:MZDsHDAt6ZWvpDaqOHZyM8bmm6gs5OkAzUPrqwi6lNWkezQqVLH
 JoR/sI6DZjPuuZKyk/VbxkmaiBjOThf7t1bzP4d/LDqYSEbgpKjQ7fFx6FvqYA4HEvEtIBY
 +NXV60JmuWBkAKRbFaypO5oEuvu47yb6mFsvVkiKvSB7atEz8BXDIaQ+ZUJXafpOb9tppfy
 mCCvfwu+fF7ozRWGA1AGg==
X-Spam-Flag: NO
X-UI-Out-Filterresults: notjunk:1;V03:K0:hkhfhrRXSkA=:3bdQNvRVkhB/gh88cWUtSS
 ME4Ws3hUwE/KSIkqfzmBmT/5m5p145zb4TXAmNLBzsQy/jdkycBj+1x95LrwGWgj3cGIifq00
 hMV32mCPx92viXXdLhBZsKM9Dwx+wUMG17pnVrbwP5krKtJu89EIPcmKcvZwPT3kyLnHB8KEi
 lBBjSn53iY1JE/GH817QcYm9PU56vhimUO4L9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X-Spam_score: -1.9
X-Spam_bar: -
X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_MSPIKE_H2=-0.001,
 SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: submit
Cc: Vagrant Cascadian <vagrant@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.4 (--)

--=-=-=
Content-Type: multipart/signed; boundary="==-=-=";
	micalg=pgp-sha512; protocol="application/pgp-signature"

--==-=-=
Content-Type: text/plain

Hi guix!

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'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?

Thanks,
Pierre


--==-=-=
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQFMBAEBCgA2FiEEctU9gYy29KFyWDdMqPyeRH9PfVQFAmDt6zwYHHBpZXJyZS5s
YW5nbG9pc0BnbXguY29tAAoJEKj8nkR/T31UtnwIALHiwVWGuADwCLuoZkP9TERZ
s1aXim4QFe5Vaqd/5XKbEOqSwTNHtZ+pwVJCwJdUdME8hA87UPL89Uwsxh6xf3Of
NzBMP8MFtSTa/4VZWxy/VnpUaVix6T7TbC2WjMIkjQR//FJfn3n5V/52wYw1pTaQ
ruDj6+ARq7vXnKsHtAi/BsHv5sKBQDWDjFyLlfnDlv5Cxx1lIBDy5nz5h3afgy1+
ULphrTbXDy3mUeeOPhkp1Vhhdk5q3QWt+2chdi9V5NUKP6pxs+EDDnZYC41DgSYQ
k+D+2ZcgCBhTqmSCdt5i8DC0QERh38X7qTc5V6WGyj60eiCl01v/AEz2lVLXYZ4=
=wlaR
-----END PGP SIGNATURE-----
--==-=-=--

--=-=-=
Content-Type: text/x-patch; charset=utf-8
Content-Disposition: attachment;
 filename=0001-gnu-u-boot-rockpro64-rk3399-Disable-USB-boot.patch
Content-Transfer-Encoding: quoted-printable

From f3c647bb447706f465a3fb4b8d6e09cd089dbed9 Mon Sep 17 00:00:00 2001
From: Pierre Langlois <pierre.langlois@HIDDEN>
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 <m.othacehe@HIDDEN>
 ;;; Copyright =C2=A9 2020 Bj=C3=B6rn H=C3=B6fling <bjoern.hoefling@bjoernh=
oefling.de>
 ;;; Copyright =C2=A9 2018, 2019, 2020 Vagrant Cascadian <vagrant@HIDDEN=
g>
-;;; Copyright =C2=A9 2020 Pierre Langlois <pierre.langlois@HIDDEN>
+;;; Copyright =C2=A9 2020, 2021 Pierre Langlois <pierre.langlois@HIDDEN>
 ;;; Copyright =C2=A9 2021 Vincent Legoll <vincent.legoll@HIDDEN>
 ;;; Copyright =C2=A9 2021 Brice Waegeneire <brice@HIDDEN>
 ;;;
@@ -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 with =
USB boot enabled.
+                ;; See https://gitlab.manjaro.org/manjaro-arm/packages/cor=
e/uboot-rockpro64/-/issues/4
+                (lambda _
+                  (substitute* "configs/rockpro64-rk3399_defconfig"
+                    (("CONFIG_USE_PREBOOT=3Dy") "CONFIG_USE_PREBOOT=3Dn"))=
))
               (add-after 'patch-rockpro64-config 'set-environment
                 (lambda* (#:key inputs #:allow-other-keys)
                   (setenv "BL31" (string-append (assoc-ref inputs "firmwar=
e")
-                                                "/bl31.elf"))
-                  #t))
+                                                "/bl31.elf"))))
               ;; Phases do not succeed on the bl31 ELF.
               (delete 'strip)
               (delete 'validate-runpath)))))
--=20
2.32.0


--=-=-=
Content-Type: text/plain



[0]: https://lists.gnu.org/archive/html/guix-commits/2021-05/msg00085.html



--=-=-=--




Acknowledgement sent to Pierre Langlois <pierre.langlois@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-guix@HIDDEN. Full text available.
Report forwarded to bug-guix@HIDDEN:
bug#49550; Package guix. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Tue, 13 Jul 2021 19:45:01 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.