From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 0AZtG4vlh2HROwEAgWs5BA (envelope-from ) for ; Sun, 07 Nov 2021 15:41:15 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id oNn7Fovlh2FvawAAbx9fmQ (envelope-from ) for ; Sun, 07 Nov 2021 14:41:15 +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 B00DACC2F for ; Sun, 7 Nov 2021 15:41:14 +0100 (CET) Received: from localhost ([::1]:54248 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mjjM9-0002MA-Ua for larch@yhetil.org; Sun, 07 Nov 2021 09:41:13 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:33012) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mjjLz-0002J9-3g for guix-patches@gnu.org; Sun, 07 Nov 2021 09:41:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:40673) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mjjLy-0008N4-Nt for guix-patches@gnu.org; Sun, 07 Nov 2021 09:41:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mjjLy-0007TP-Io for guix-patches@gnu.org; Sun, 07 Nov 2021 09:41:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#51663] [PATCH] gnu: u-boot: Fix rk3399 boot from emmc. Resent-From: Pierre Langlois Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 07 Nov 2021 14:41:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 51663 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 51663@debbugs.gnu.org Cc: Vagrant Cascadian X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.163629601528657 (code B ref -1); Sun, 07 Nov 2021 14:41:02 +0000 Received: (at submit) by debbugs.gnu.org; 7 Nov 2021 14:40:15 +0000 Received: from localhost ([127.0.0.1]:52219 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mjjL8-0007S2-Vj for submit@debbugs.gnu.org; Sun, 07 Nov 2021 09:40:15 -0500 Received: from lists.gnu.org ([209.51.188.17]:55298) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mjjL4-0007Ro-MU for submit@debbugs.gnu.org; Sun, 07 Nov 2021 09:40:09 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:32812) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mjjL1-0001uF-NO for guix-patches@gnu.org; Sun, 07 Nov 2021 09:40:04 -0500 Received: from mout.gmx.net ([212.227.17.21]:52455) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mjjKv-00089d-Ks for guix-patches@gnu.org; Sun, 07 Nov 2021 09:40:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1636295988; bh=NfnN2TEGs1LasGe2D96wxZmlyYMiMdzEW25HuXWHSRA=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date; b=kwlVoLVKmt9x3/UOx6QYeVOXFLLO2ZQ4BzzuQkmq2kzKqps182df8yYbF5v1tfFSk S04o1XppQtKFpG2daQL9Vqws373t5FxTnxLvsP03tIibyfcb8ac+zvwBg1sDeBrpC3 rWmxtrSRDBAoJZ56YKMzDVFgePl+5k3wNtslQZHY= 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 1Mt79F-1mTrHJ1EN7-00tTPB; Sun, 07 Nov 2021 15:39:48 +0100 User-agent: mu4e 1.6.9; emacs 27.2 From: Pierre Langlois Date: Sun, 07 Nov 2021 14:34:09 +0000 Message-ID: <87a6igav2l.fsf@gmx.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Provags-ID: V03:K1:9HJZEQ3OmJryLQZfeV8l7/t7pPOCm4/Jj7+8/9B1e8R4D6HxiDG 1+3OmuATXwCTf5Eb/yoWjwi+OwoflerYcGA8gAJfd+e8J4FEZzLkh07z4rrWDT7FMeGdcY7 GVDvchTiCayQINy1tW9iZdnIn/iEkfBhzonUetoFS2q4XYCvFJdRXAv/h393sruIn1+Xv8l QRYCwnA1bjH0jKlW/B2CQ== X-UI-Out-Filterresults: notjunk:1;V03:K0:Og5GUBFUeBU=:/+EjLXBqLYiPWS6Kkq6kum a7xwgkhItmeGEwyDmDw0HMhNPJZw9NqcoA2LBsCuRIaaveU7AjrNWr8RZutDWtfQCmBQv9zUW cmWNF0Q2dtmrEOs4xYeGmGVDhe8pleMlhoWoXvqw9nT2AY2Ve/zpUdKaQ1gA5MyakV869rFj4 vH1PUrsLuu7EpoA0g9YRWNIx9KM0U7dCg8seMM6AbVSNmcTtZf+c2NAHL29qUsTXRc5Kp17xD PSk6UqeZH3fbrcqwONVcuJUM1zs8GO0i49cGS4qXuWKv6HM+71r6spXOenpsMq0TM+bB/AXdw atl+VUvLvPIIvDWDBr8YCcO7LHgBE5cdoA0qxEJ59W1AKUl049nlZ+PACx+bYXY7r6v9AnTgP r7CD2rTzlVh5kmoo6R/dePF0pS8zSn3F5rqUZ95chJS2eQPMEZ8YWRlQzGPP/wWedf4WWfnph suVuHYzPQoED3tPullqwVhd+9ptnG9gLv9kSPrij6LfkMhVs8YnXUf2NxG22ZlW7BWAreL9Xf /oHnHloit4/D50IG3IHtvJwLQobYMsQ1NLdc3MakN6j+txCqI+bo5O3b4jq7c4ZxK1wIfb5uW io9HcgSsV2Lzy/GHmp39af8MhzEkcVori4mKjliWGCpN1npSZ/I7D63KH+DvLbvNem3xubjfZ FLMKQ+13k/Kng+XKkpm9AZP3h5VJpdKneJsx6TbSdWx16oop3mzkkuvo/tKeohHQoRJTDGYE2 Qv65Yijj5DFRiVTEYyJTS08eAGxk9p6iyc2/MiJXGHBN9o37S19lG+YxugscvIn/A8GueYylm dFlIqNQH43HP3wY9aRncAaA9P79v7jbg0BWhc29WZBCtqc7ohQubC8UMT4fnhEbaezPQlNtKt Uwsb48T2Qqz9Ff0XuMqijja/fs6Af4g8av2QD7FJv6YIsnfHXnUIXEXo+ydF3rBYiWg5eeGu1 0yBsmjQaa+aTS2UTUpg29cKDnF9ql3H3YBrFYv4fSXUrkbsIQ2oKkOMaGaY2gRzJ256SsKrcs F4QbiEBSdvl9KPUOYHe1pras4uu6BCtvGvSinqc4BWvBaOhvDFnBbS9a/EGxhP2ZWC6elN3Zx HfCAVPho57MYso= Received-SPF: pass client-ip=212.227.17.21; 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_H2=-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: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1636296074; 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:list-id:list-help:list-unsubscribe:list-subscribe: list-post:dkim-signature; bh=wFys6xL122iJE5dVGsjs9ZVZ5kDpBNGCzC7itSQmHS4=; b=ut0r/M2X/h3z4VZRYUbHSZ1uf4DpXCGUi/VShMvf5bsZfSmhJ5c1v1kby6HITRpsnh8fRr HRnp3XkC8zTf5g/z6DqFD2Gu+/hb/Cp2k1x+mVbGJdvQ/taLsIcUJIpaNlI7QaxWX1aSRH ROKeXwaU4uOBs0kJiKRBL5afoBjyobi/2UmWP2MswvHuJzK828elSSR9tRoop1WbBghbtV elCzAwD1dzR5knyTk9N59XKAtoB9UjighyQuOjYbecXa92IuDNZU7vSiwlBaOYH/K9Ec5I ks4Ab8jAzDtqFP9qFDfT3VX3iiO3qKaMwz6OXShUkzoYLBt8usoKN4JzXiMtVQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1636296074; a=rsa-sha256; cv=none; b=odfALNW8E4SCj0fIkJvNE/AtkWUrS0v6iZHYyVLTmrU0NE9I0RNHdPqd01hucHCk1cw7Ql G8DlR2svPGzCXIVUChOFMG+yz7qeUJJTpjVM4E/JAa3Dr7lL0sK809IxbD21ldBr139iKe PM2jqz+zOtgep+YI4bSXfQxbIVS0DTq8V2ls7lEYWAq90rRbvGJ1194qpYvHbaMBQgwn0W /Do0vyY2Psf0+J3VkC/cdCWSrPnLqL/IgpaBmHi+4HDWADoleafCf08XTKuwvT3hCNZM0G pKJ1g2Wt2+vtSKbm4K9rorDldhMy6fXf4nO6cwWyI9nvv+ejELdre8gw36a3+g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmx.net header.s=badeba3b8450 header.b=kwlVoLVK; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-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=kwlVoLVK; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmx.com (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: B00DACC2F X-Spam-Score: -3.42 X-Migadu-Scanner: scn0.migadu.com X-TUID: kMwZe1kQYIWi --=-=-= Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" --==-=-= Content-Type: text/plain Hi Guix! I'm afraid the last u-boot update broke booting the rockpro64 and pinebook-pro from the eMMC card :-/. Going through the u-boot ML, I saw that it was reported [0], and this fix [1] should be applied. So here's a patch! I tested it on on both the pinebook-pro and rockpro64. OK to apply? Thanks, Pierre [0]: https://lists.denx.de/pipermail/u-boot/2021-November/466329.html [1]: https://patchwork.ozlabs.org/project/uboot/patch/20211101044347.17822-1-yifeng.zhao@rock-chips.com/ --==-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQFMBAEBCgA2FiEEctU9gYy29KFyWDdMqPyeRH9PfVQFAmGH5TMYHHBpZXJyZS5s YW5nbG9pc0BnbXguY29tAAoJEKj8nkR/T31UJUQH/2m0UVp+kjnRCRMs4gZ77XVO 68E+/JXH3qi480QCUtZPhGD7HlTounAP3RrMntDINSAZ4E5Hu74778GkAQxvyWNY iCbtzZexa0p1ZKUOppSEesHk97WgDzQZTpchDrrKOxvPWASjPTGT8HBN4W+nmCHx BFhe2eOPiDQKMyQtWv9wiPcFwpx7bLiZNntm/DW7awRMgztS59v3As30yv/UXsZS 6GFSYeoQb5Y3IpiPv536z7mOwJo3i4CoEH4UAHSCkpCnXQjDA84yYZoErbzW9mxA G2JXc8JnEF6LjrkNSjVvhLfax9RRmfm3+pAPiW835xFpSfFrtfnxIOy96rfL/sw= =UFLW -----END PGP SIGNATURE----- --==-=-=-- --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=0001-gnu-u-boot-Fix-rk3399-boot-from-emmc.patch Content-Transfer-Encoding: quoted-printable =46rom 4dea90a439f749f9f54407603c01eabf9900a75e Mon Sep 17 00:00:00 2001 From: Pierre Langlois Date: Fri, 5 Nov 2021 20:38:45 +0000 Subject: [PATCH] gnu: u-boot: Fix rk3399 boot from emmc. * gnu/packages/bootloaders.scm (%u-boot-rk3399-enable-emmc-phy-patch): New variable. (u-boot)[origin]: Register it. * gnu/packages/patches/u-boot-rk3399-enable-emmc-phy.patch: New file. * gnu/local.mk (dist_patch_DATA): Add it. =2D-- gnu/local.mk | 1 + gnu/packages/bootloaders.scm | 8 +++++- .../u-boot-rk3399-enable-emmc-phy.patch | 26 +++++++++++++++++++ 3 files changed, 34 insertions(+), 1 deletion(-) create mode 100644 gnu/packages/patches/u-boot-rk3399-enable-emmc-phy.pat= ch diff --git a/gnu/local.mk b/gnu/local.mk index 05258ac054..0f98d6ce56 100644 =2D-- a/gnu/local.mk +++ b/gnu/local.mk @@ -1842,6 +1842,7 @@ dist_patch_DATA =3D \ %D%/packages/patches/u-boot-rockchip-inno-usb.patch \ %D%/packages/patches/u-boot-sifive-prevent-reloc-initrd-fdt.patch \ %D%/packages/patches/u-boot-riscv64-fix-extlinux.patch \ + %D%/packages/patches/u-boot-rk3399-enable-emmc-phy.patch \ %D%/packages/patches/ucx-tcp-iface-ioctl.patch \ %D%/packages/patches/ungoogled-chromium-extension-search-path.patch \ %D%/packages/patches/ungoogled-chromium-ffmpeg-compat.patch \ diff --git a/gnu/packages/bootloaders.scm b/gnu/packages/bootloaders.scm index 706ddf0207..c93af2241f 100644 =2D-- a/gnu/packages/bootloaders.scm +++ b/gnu/packages/bootloaders.scm @@ -504,6 +504,11 @@ (define %u-boot-allow-disabling-openssl-patch ;; https://lists.denx.de/pipermail/u-boot/2021-October/462728.html (search-patch "u-boot-allow-disabling-openssl.patch")) +(define %u-boot-rk3399-enable-emmc-phy-patch + ;; Fix emmc boot on rockpro64 and pinebook-pro. + ;; https://lists.denx.de/pipermail/u-boot/2021-November/466329.html + (search-patch "u-boot-rk3399-enable-emmc-phy.patch")) + (define u-boot (package (name "u-boot") @@ -512,7 +517,8 @@ (define u-boot (patches (list %u-boot-rockchip-inno-usb-patch %u-boot-allow-disabling-openssl-patch - %u-boot-sifive-prevent-relocating-initrd-fdt)) + %u-boot-sifive-prevent-relocating-initrd-fdt + %u-boot-rk3399-enable-emmc-phy-patch)) (method url-fetch) (uri (string-append "https://ftp.denx.de/pub/u-boot/" diff --git a/gnu/packages/patches/u-boot-rk3399-enable-emmc-phy.patch b/gn= u/packages/patches/u-boot-rk3399-enable-emmc-phy.patch new file mode 100644 index 0000000000..f14a9ce104 =2D-- /dev/null +++ b/gnu/packages/patches/u-boot-rk3399-enable-emmc-phy.patch @@ -0,0 +1,26 @@ +adapting commit ac804143cf ("mmc: rockchip_sdhci: add phy and clock +config for rk3399") to fix the issue "Not found emmc phy device". + +Signed-off-by: Yifeng Zhao +--- + + arch/arm/dts/rk3399-u-boot.dtsi | 4 ++++ + 1 file changed, 4 insertions(+) + +diff --git a/arch/arm/dts/rk3399-u-boot.dtsi b/arch/arm/dts/rk3399-u-boot= .dtsi +index 73922c328a..716b9a433a 100644 +--- a/arch/arm/dts/rk3399-u-boot.dtsi ++++ b/arch/arm/dts/rk3399-u-boot.dtsi +@@ -88,6 +88,10 @@ + u-boot,dm-pre-reloc; + }; + ++&emmc_phy { ++ u-boot,dm-pre-reloc; ++}; ++ + &grf { + u-boot,dm-pre-reloc; + }; +-- +2.17.1 =2D- 2.33.1 --=-=-=--