~ruther/guix-local

d300b9f7f3ce2a224e38bb12c8a90cc2384af977 — Denis 'GNUtoo' Carikli 1 year, 11 days ago fa832b8
system: Add u-boot-rock-4c-plus-rk3399.

* gnu/packages/bootloaders.scm (u-boot-rock-4c-plus-rk3399): New variable.
* gnu/bootloader/u-boot.scm (u-boot-rock-4c-plus-rk3399-bootloader):
  New exported variable.
* gnu/system/install.scm (rock-4c-plus-installation-os):
  New exported variable.

Change-Id: I37025b248178311ccf8246cb0e02ed9399f9c6ac
Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
Signed-off-by: Danny Milosavljevic <dannym@friendly-machines.com>
3 files changed, 18 insertions(+), 0 deletions(-)

M gnu/bootloader/u-boot.scm
M gnu/packages/bootloaders.scm
M gnu/system/install.scm
M gnu/bootloader/u-boot.scm => gnu/bootloader/u-boot.scm +6 -0
@@ 47,6 47,7 @@
            u-boot-pinebook-bootloader
            u-boot-pinebook-pro-rk3399-bootloader
            u-boot-puma-rk3399-bootloader
            u-boot-rock-4c-plus-rk3399-bootloader
            u-boot-rock64-rk3328-bootloader
            u-boot-rockpro64-rk3399-bootloader
            u-boot-sifive-unmatched-bootloader


@@ 252,6 253,11 @@ is BLOCK-SIZE * COUNT, or FILE size if COUNT is not given."
   (package u-boot-puma-rk3399)
   (disk-image-installer install-puma-rk3399-u-boot)))

(define u-boot-rock-4c-plus-rk3399-bootloader
  (bootloader
   (inherit u-boot-rockchip-bootloader)
   (package u-boot-rock-4c-plus-rk3399)))

(define u-boot-rock64-rk3328-bootloader
  (bootloader
   (inherit u-boot-rockchip-bootloader)

M gnu/packages/bootloaders.scm => gnu/packages/bootloaders.scm +7 -0
@@ 1492,6 1492,13 @@ Documentation} for more information (for example by running @samp{info
(define-public u-boot-firefly-rk3399
  (make-u-boot-rockchip-package "firefly" 'rk3399))

(define-public u-boot-rock-4c-plus-rk3399
  (let ((base (make-u-boot-rockchip-package
               "rock-4c-plus" 'rk3399
               '("CONFIG_USB=y"))))
    (package
      (inherit base))))

(define-public u-boot-rockpro64-rk3399
  (let ((base (make-u-boot-rockchip-package
               "rockpro64" 'rk3399

M gnu/system/install.scm => gnu/system/install.scm +5 -0
@@ 683,6 683,11 @@ The bootloader BOOTLOADER is installed to BOOTLOADER-TARGET."
                            "/dev/mmcblk0" ; SD card/eMMC (SD priority) storage
                            "ttyS2")) ; UART2 connected on the Pi2 bus

(define rock-4c-plus-installation-os
  (embedded-installation-os u-boot-rock-4c-plus-rk3399-bootloader
                            "/dev/mmcblk0" ; SD card storage
                            "ttyS2")) ;; Default UART as per the Linux DTS.

(define rockpro64-installation-os
  (embedded-installation-os u-boot-rockpro64-rk3399-bootloader
                            "/dev/mmcblk0" ; SD card/eMMC (SD priority) storage