system: Add u-boot-pine64-plus installer.

* gnu/bootloader/u-boot.scm (u-boot-pine64-plus-bootloader):
New exported variable.
* gnu/system/install.scm (pine64-plus-installation-os):
New exported variable.

Signed-off-by: Danny Milosavljevic <dannym@scratchpost.org>
This commit is contained in:
Vagrant Cascadian 2018-05-17 15:16:09 -07:00 committed by Danny Milosavljevic
parent 6ee3f3dec7
commit 9f7d666566
No known key found for this signature in database
GPG Key ID: E71A35542C30BAA5
2 changed files with 26 additions and 0 deletions

View File

@ -36,6 +36,7 @@
u-boot-mx6cuboxi-bootloader u-boot-mx6cuboxi-bootloader
u-boot-nintendo-nes-classic-edition-bootloader u-boot-nintendo-nes-classic-edition-bootloader
u-boot-novena-bootloader u-boot-novena-bootloader
u-boot-pine64-plus-bootloader
u-boot-wandboard-bootloader)) u-boot-wandboard-bootloader))
(define install-u-boot (define install-u-boot
@ -65,6 +66,15 @@
(write-file-on-device u-boot (stat:size (stat u-boot)) (write-file-on-device u-boot (stat:size (stat u-boot))
device (* 8 1024))))) device (* 8 1024)))))
(define install-allwinner64-u-boot
#~(lambda (bootloader device mount-point)
(let ((spl (string-append bootloader "/libexec/spl/sunxi-spl.bin"))
(u-boot (string-append bootloader "/libexec/u-boot.itb")))
(write-file-on-device spl (stat:size (stat spl))
device (* 8 1024))
(write-file-on-device u-boot (stat:size (stat u-boot))
device (* 40 1024)))))
(define install-imx-u-boot (define install-imx-u-boot
#~(lambda (bootloader device mount-point) #~(lambda (bootloader device mount-point)
(let ((spl (string-append bootloader "/libexec/SPL")) (let ((spl (string-append bootloader "/libexec/SPL"))
@ -98,6 +108,11 @@
(inherit u-boot-bootloader) (inherit u-boot-bootloader)
(installer install-allwinner-u-boot))) (installer install-allwinner-u-boot)))
(define u-boot-allwinner64-bootloader
(bootloader
(inherit u-boot-bootloader)
(installer install-allwinner64-u-boot)))
(define u-boot-imx-bootloader (define u-boot-imx-bootloader
(bootloader (bootloader
(inherit u-boot-bootloader) (inherit u-boot-bootloader)
@ -142,3 +157,8 @@
(bootloader (bootloader
(inherit u-boot-imx-bootloader) (inherit u-boot-imx-bootloader)
(package u-boot-novena))) (package u-boot-novena)))
(define u-boot-pine64-plus-bootloader
(bootloader
(inherit u-boot-allwinner64-bootloader)
(package u-boot-pine64-plus)))

View File

@ -52,6 +52,7 @@
mx6cuboxi-installation-os mx6cuboxi-installation-os
nintendo-nes-classic-edition-installation-os nintendo-nes-classic-edition-installation-os
novena-installation-os novena-installation-os
pine64-plus-installation-os
wandboard-installation-os)) wandboard-installation-os))
;;; Commentary: ;;; Commentary:
@ -447,6 +448,11 @@ The bootloader BOOTLOADER is installed to BOOTLOADER-TARGET."
"/dev/mmcblk0" ; SD card (solder it yourself) "/dev/mmcblk0" ; SD card (solder it yourself)
"ttyS0")) "ttyS0"))
(define pine64-plus-installation-os
(embedded-installation-os u-boot-pine64-plus-bootloader
"/dev/mmcblk0" ; SD card storage
"ttyS0"))
(define wandboard-installation-os (define wandboard-installation-os
(embedded-installation-os u-boot-wandboard-bootloader (embedded-installation-os u-boot-wandboard-bootloader
"/dev/mmcblk0" ; SD card storage "/dev/mmcblk0" ; SD card storage