guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

02/02: gnu: u-boot-rockpro64-rk3399: Fix freeze on boot.


From: guix-commits
Subject: 02/02: gnu: u-boot-rockpro64-rk3399: Fix freeze on boot.
Date: Tue, 29 Dec 2020 07:34:07 -0500 (EST)

dannym pushed a commit to branch master
in repository guix.

commit 219612904c005328d892aaf9737c37a91635db2a
Author: Caliph Nomble <calnomble@protonmail.com>
AuthorDate: Tue Dec 29 13:28:16 2020 +0100

    gnu: u-boot-rockpro64-rk3399: Fix freeze on boot.
    
    * gnu/packages/bootloaders.scm 
(u-boot-rockpro64-rk3399)[arguments]<#:phases>
    [patch-rockpro64-config]: Build with modified config to prevent freeze on 
boot
    due to usb being enabled.
    
    Signed-off-by: Danny Milosavljevic <dannym@scratchpost.org>
---
 gnu/packages/bootloaders.scm | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/bootloaders.scm b/gnu/packages/bootloaders.scm
index 5d4b33e..9ca574a 100644
--- a/gnu/packages/bootloaders.scm
+++ b/gnu/packages/bootloaders.scm
@@ -898,7 +898,14 @@ 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 'set-environment
+              (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/core/uboot-rockpro64/-/issues/4
+                (lambda _
+                  (substitute* "configs/rockpro64-rk3399_defconfig"
+                    (("CONFIG_USE_PREBOOT=y") "CONFIG_USE_PREBOOT=n"))
+                  #t))
+              (add-after 'patch-rockpro64-config 'set-environment
                 (lambda* (#:key inputs #:allow-other-keys)
                   (setenv "BL31" (string-append (assoc-ref inputs "firmware")
                                                 "/bl31.elf"))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]