summaryrefslogtreecommitdiff
path: root/gnu/bootloader
diff options
context:
space:
mode:
authorVagrant Cascadian <vagrant@debian.org>2018-05-17 15:16:09 -0700
committerDanny Milosavljevic <dannym@scratchpost.org>2018-05-18 20:21:30 +0200
commit9f7d66656646fac3746c52216ad6061c9c0adc27 (patch)
treeb44230319366ca2ab6c6e54540a82951e4bec51c /gnu/bootloader
parent6ee3f3dec72f87187226bc11ff190f030169e55a (diff)
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>
Diffstat (limited to 'gnu/bootloader')
-rw-r--r--gnu/bootloader/u-boot.scm20
1 files changed, 20 insertions, 0 deletions
diff --git a/gnu/bootloader/u-boot.scm b/gnu/bootloader/u-boot.scm
index bc8f98f32f8..ea0f67b3cdd 100644
--- a/gnu/bootloader/u-boot.scm
+++ b/gnu/bootloader/u-boot.scm
@@ -36,6 +36,7 @@
36 u-boot-mx6cuboxi-bootloader 36 u-boot-mx6cuboxi-bootloader
37 u-boot-nintendo-nes-classic-edition-bootloader 37 u-boot-nintendo-nes-classic-edition-bootloader
38 u-boot-novena-bootloader 38 u-boot-novena-bootloader
39 u-boot-pine64-plus-bootloader
39 u-boot-wandboard-bootloader)) 40 u-boot-wandboard-bootloader))
40 41
41(define install-u-boot 42(define install-u-boot
@@ -65,6 +66,15 @@
65 (write-file-on-device u-boot (stat:size (stat u-boot)) 66 (write-file-on-device u-boot (stat:size (stat u-boot))
66 device (* 8 1024))))) 67 device (* 8 1024)))))
67 68
69(define install-allwinner64-u-boot
70 #~(lambda (bootloader device mount-point)
71 (let ((spl (string-append bootloader "/libexec/spl/sunxi-spl.bin"))
72 (u-boot (string-append bootloader "/libexec/u-boot.itb")))
73 (write-file-on-device spl (stat:size (stat spl))
74 device (* 8 1024))
75 (write-file-on-device u-boot (stat:size (stat u-boot))
76 device (* 40 1024)))))
77
68(define install-imx-u-boot 78(define install-imx-u-boot
69 #~(lambda (bootloader device mount-point) 79 #~(lambda (bootloader device mount-point)
70 (let ((spl (string-append bootloader "/libexec/SPL")) 80 (let ((spl (string-append bootloader "/libexec/SPL"))
@@ -98,6 +108,11 @@
98 (inherit u-boot-bootloader) 108 (inherit u-boot-bootloader)
99 (installer install-allwinner-u-boot))) 109 (installer install-allwinner-u-boot)))
100 110
111(define u-boot-allwinner64-bootloader
112 (bootloader
113 (inherit u-boot-bootloader)
114 (installer install-allwinner64-u-boot)))
115
101(define u-boot-imx-bootloader 116(define u-boot-imx-bootloader
102 (bootloader 117 (bootloader
103 (inherit u-boot-bootloader) 118 (inherit u-boot-bootloader)
@@ -142,3 +157,8 @@
142 (bootloader 157 (bootloader
143 (inherit u-boot-imx-bootloader) 158 (inherit u-boot-imx-bootloader)
144 (package u-boot-novena))) 159 (package u-boot-novena)))
160
161(define u-boot-pine64-plus-bootloader
162 (bootloader
163 (inherit u-boot-allwinner64-bootloader)
164 (package u-boot-pine64-plus)))