From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 2AjZJ89eAGEU3gAAgWs5BA (envelope-from ) for ; Tue, 27 Jul 2021 21:30:23 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id WNuFI89eAGHlHgAA1q6Kng (envelope-from ) for ; Tue, 27 Jul 2021 19:30:23 +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 D388514382 for ; Tue, 27 Jul 2021 21:30:22 +0200 (CEST) Received: from localhost ([::1]:48742 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m8SmT-0003JZ-Os for larch@yhetil.org; Tue, 27 Jul 2021 15:30:21 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34072) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m8SmB-0003JP-0r for bug-guix@gnu.org; Tue, 27 Jul 2021 15:30:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:42394) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m8SmA-0007Aw-OQ for bug-guix@gnu.org; Tue, 27 Jul 2021 15:30:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1m8SmA-0001x8-MI for bug-guix@gnu.org; Tue, 27 Jul 2021 15:30: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:30: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: Vagrant Cascadian X-Debbugs-Original-Cc: Pierre Langlois , Bug guix Received: via spool by submit@debbugs.gnu.org id=B.16274141507426 (code B ref -1); Tue, 27 Jul 2021 19:30:02 +0000 Received: (at submit) by debbugs.gnu.org; 27 Jul 2021 19:29:10 +0000 Received: from localhost ([127.0.0.1]:53940 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m8SlF-0001ve-Uf for submit@debbugs.gnu.org; Tue, 27 Jul 2021 15:29:10 -0400 Received: from lists.gnu.org ([209.51.188.17]:36242) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m8SlE-0001vW-20 for submit@debbugs.gnu.org; Tue, 27 Jul 2021 15:29:05 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33930) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m8SlD-0003Gi-N0 for bug-guix@gnu.org; Tue, 27 Jul 2021 15:29:03 -0400 Received: from mout.gmx.net ([212.227.17.20]:35421) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m8SlB-0006V9-4V for bug-guix@gnu.org; Tue, 27 Jul 2021 15:29:03 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1627414136; bh=IszRv1fYkQarub9tPxe27ffDYQjH7vJtYzn2BXLc/48=; h=X-UI-Sender-Class:References:From:To:Cc:Subject:In-reply-to:Date; b=jfLjv0yb/YhfbiLM9NChQTdYFLEpLUKLiB3trTMxmY4VHGIL48OoEmbqFlBpwz3ae ziwcjwSW+oBIRar0qucOOdEJL+syO9Nhv32gXneppGG6LjPEzudrJDg8K1xEgKh+3S VQRM6ZJ4N0s66WsyJ0EHg5B5YiWJK+Q/UADJMjWQ= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from labiere ([82.69.64.142]) by mail.gmx.net (mrgmx104 [212.227.17.174]) with ESMTPSA (Nemesis) id 1MVvPJ-1maCLN0FoD-00Rm87; Tue, 27 Jul 2021 21:28:56 +0200 References: <87eec2m2f7.fsf@gmx.com> <87sg0eqszi.fsf@yucca> User-agent: mu4e 1.4.15; emacs 27.2 From: Pierre Langlois In-reply-to: <87sg0eqszi.fsf@yucca> Date: Tue, 27 Jul 2021 20:28:54 +0100 Message-ID: <87bl6nh7yh.fsf@gmx.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Provags-ID: V03:K1:eECCH828LkiaPoYndn88wVln/Ap29F+4EmPmFC4TQkmbODzLTth j5Q3Cz5+RYxPdVKd2yNEoPo8sqsC9s1W43wW3V3aRuHf6YQRVOiD4Kakmc31G588HoDX9Wz tyl34tWAT2mczQbt7CMYBwepU0m30rJyjNwpjXr1ur3tGvlp5Us5TVgJa9Uy+GuoB31wKaC ktq5pTizHE5pMl0pFH85w== X-UI-Out-Filterresults: notjunk:1;V03:K0:x4foel791VU=:t1GYyQDIGMB30w4OrM9D6N nEIn+tgUNdTQzi4W2WJYH/3++7xQmhf3qB41j7EZGLYbnqlvaW8J3wMQtlNRtDKps72U0e2EL 3Bx+gN3tadAr4nSwdbTcROVFdq5/tW0rsuo7d6vczI/2v/Ws5p0pH0VapZlJyAGeCa0LOCFln rxr3IykHylC1EO5l33Mqc96a1PTIx/yh13sfKQZaR01h5eT3CDej6ItOauitBWq3xAUKSWzrB Oj323chUC4U6MhSF53SHXFO7fFRjm4tKIBI3lpr39h+OJB+Hyqeloz39GFgyeospwhWE8RD1J 53vDd47q4V2mnZyZRpWe1uttEPBKVUA1WpiU13kvIa0NOfHXUglp65VipMwEz7LsnKqy7JpI/ LpAp3YlgQ0sRKmIB3PdYR7CSnXuGYYkL/wlKZgk6z/QwCbHFmIzTW+bR+X/YfpspF/FTcb0Xj OqCYWRNIBKMv8Rl+80ulHSZEnF6vIVaoIm7K8o0kTwwAT79m5yFPHfGp3WWGasI4xF23MdWaM jFcc03bwxkyqxdPVyWfNunTKRYtqajqANBksb+81Zdz+2F0SatxdEUL5HFZW+PHimwUh04jib CBt01xZ5KH718VFDrrMWgNdQLRugBtV5TobC1xpn1/PoAGblD8PtW+pe8DOkkv8U7kS8g54Zg wA9evDH6aHngXu8WAUS1p5y1bfa81qHa6jQvLSVlJwK4VYRt6ETcoQr4Edry5fRCi6dAbOfDy crm8GEYybdiuzd8RgIYidYW1IbLpxR04geLl35iRPf8RG8uOgXFtA0MoD90+gbgLq2Y/C7zEt GI9VI8GQekLO9Lgy9IWke6TObIzbuajTvtPm6mQ8UbM6MeTIF91UcilhHZxLwSO4AIDf0UJK7 cQhRVEnkWRzav/FS06AapkkgZBVrnnYj2+74fprk5iZOsl7EtvPP0nb7rZHuiRnxWpS8JgWt1 60VWbop4m0m0yEXv9LnqtemoFCgr14QwTr32MvIRn45SRYL+2/eRYgWDdifqm7mPbgJdkMk8n R5dBY6kmcgUYqUDFoK4Nd1/YEPOl/S021q61hcb7ByvKOhL11Xj6Q/8vfTErB4FfqmyACHKNW rpIL8C2m6ZnZRzKo+Hi/bjaQETg+2QihMgtpQZComEPWnOWdZm+4Rv+Uw== Received-SPF: pass client-ip=212.227.17.20; envelope-from=pierre.langlois@gmx.com; helo=mout.gmx.net X-Spam_score_int: -18 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_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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: 49550@debbugs.gnu.org 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=1627414223; 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=ojHiKDhMuBesLoKTtmkfgvhWL5nClFChVRef88zBSuA=; b=TPRtqxjqZ5L7tgEBbbh3eMA2zJ7b8/rDFk7xaCA5uD8ZtoA+dj5pI4n60Lz5KbZwmaKOnY ciIAEFSScGTfCFsME271BR/Xf2zDQW9tRL5zgFNaBuy7cZM0I5bZmcv2Uks8Nnukb7GxgW j87hhKCrtCFYXhhSmq4bnlaynB+krvr/wW3xPmC20PJk35awfaz7xRP9oLxB8vrBEry5Ht CY85G6mQ8Yagwe6Afq3qfGSHIeIN1/jSCfSlX8J2mII1H8/cC776ydgOijVLrQRHshk34+ 3nElM78sGipjtYnkeBSqtraQm38TXYrCPRlKM0OeDrmv+DdFyF6uf5RXRjfO7w== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1627414223; a=rsa-sha256; cv=none; b=d6diUB6QPtSq2rPXU7eo5GRBpzSjpoINfRd5CTP9W5pkMU7cmI3ODvcPQShXxt4OdJEe7/ lO/hCzrqh19SBFNuwUcfb+GUCwvp509AH9uzKg090kaQjgTyYf2GRBO/5dNZEdfshoKjzO oY8lA0gi5a/Z3yKl4L5QWLlOJrPI4O2xIZSDBkwOqC9rDKk0nrnX7yJK9C12+3p7l4oQqk DFFIMkoGX32gaAfRYCNFowcQ24DrFSnuRu5Q2Lf7WOVcCNK7hbaX8FlrrkwAtHdL76eRme 15dFjD3RlMflcLvk+A/Rv9oqApnccIOGZBSnWl5KsLTR6nXOdH+GiVvIUD1ikA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmx.net header.s=badeba3b8450 header.b=jfLjv0yb; 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=jfLjv0yb; 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: D388514382 X-Spam-Score: -3.42 X-Migadu-Scanner: scn0.migadu.com X-TUID: hWhMYCq63FW5 --=-=-= Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" --==-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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 wi= th 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=3Dn= ")))) >> (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. --==-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQFMBAEBCgA2FiEEctU9gYy29KFyWDdMqPyeRH9PfVQFAmEAXnYYHHBpZXJyZS5s YW5nbG9pc0BnbXguY29tAAoJEKj8nkR/T31U96EH/jYtucjdw1C1n1pn38aZP8/c vyuz97VcExdRHD5mw3XBwRsKV6AUh54rHGIRvmGds0QewzN3a+CFPbtEiDxprzqI Ar1no4AaNAHT04oiXsu/GSrDogRjsxQqdqA4lbMvQgzdpHTrVGCAsMo/N/NLA6is hk6DBEvRE0JzxnYvAtgMmSMXc/u2w+9py6V7lHm7Z0AowYDcsYzrruAbN9jspQc5 72/ZV6HByaVU1w3Ln4vSQSw6SYNUPfqZrO+1JnjADAIOxG13FbwzDuyPEi/ul7uD SZqtNR8y/U9LX68EG/CiEUVgrL7QHeSv9uJNR8VAbMgDWOVt7/N75sA2qLAX+MY= =qF+Q -----END PGP SIGNATURE----- --==-=-=-- --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-gnu-u-boot-rockpro64-rk3399-Enable-set-environment-p.patch Content-Transfer-Encoding: quoted-printable =46rom 055d1d358c55811cafd4c56b919865b75e59d936 Mon Sep 17 00:00:00 2001 From: Pierre Langlois Date: Tue, 27 Jul 2021 20:15:55 +0100 Subject: [PATCH] gnu: u-boot-rockpro64-rk3399: Enable 'set-environment pha= se. * gnu/packages/bootloaders.scm (u-boot-rockpro64-rk3399)[arguments]: Run 'set-environment phase after 'unpack instead of non-existent 'patch-rockpro64-config phase. =2D-- gnu/packages/bootloaders.scm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gnu/packages/bootloaders.scm b/gnu/packages/bootloaders.scm index 742992a119..4f7a8853e8 100644 =2D-- a/gnu/packages/bootloaders.scm +++ b/gnu/packages/bootloaders.scm @@ -931,7 +931,7 @@ 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 'patch-rockpro64-config 'set-environment + (add-after 'unpack 'set-environment (lambda* (#:key inputs #:allow-other-keys) (setenv "BL31" (string-append (assoc-ref inputs "firmwa= re") "/bl31.elf")) =2D- 2.32.0 --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable >> (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 --=-=-=--