diff options
| author | Vagrant Cascadian <vagrant@debian.org> | 2019-10-18 13:14:08 -0700 |
|---|---|---|
| committer | Vagrant Cascadian <vagrant@debian.org> | 2019-10-18 13:32:25 -0700 |
| commit | 2fce14af242298a352ed244c192017c922244506 (patch) | |
| tree | e0c51b40c777c27df6e659689f105d54fd62709f /gnu/bootloader | |
| parent | fa7470189eed39ae863f8f269fd3ef29bb084f16 (diff) | |
gnu: Add u-boot-rock64-rk3328.
* gnu/packages/bootloaders (u-boot-rock64-rk3328): New variable.
* gnu/bootloader/u-boot (install-rock64-rk3328-u-boot): New variable.
(u-boot-rock64-rk3328-bootloader): New variable.
* gnu/system/install (define rock64-installation-os): New variable.
Diffstat (limited to 'gnu/bootloader')
| -rw-r--r-- | gnu/bootloader/u-boot.scm | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/gnu/bootloader/u-boot.scm b/gnu/bootloader/u-boot.scm index 4f98be2483a..20eabc370c2 100644 --- a/gnu/bootloader/u-boot.scm +++ b/gnu/bootloader/u-boot.scm | |||
| @@ -34,6 +34,7 @@ | |||
| 34 | u-boot-pine64-plus-bootloader | 34 | u-boot-pine64-plus-bootloader |
| 35 | u-boot-pinebook-bootloader | 35 | u-boot-pinebook-bootloader |
| 36 | u-boot-puma-rk3399-bootloader | 36 | u-boot-puma-rk3399-bootloader |
| 37 | u-boot-rock64-rk3328-bootloader | ||
| 37 | u-boot-rockpro64-rk3399-bootloader | 38 | u-boot-rockpro64-rk3399-bootloader |
| 38 | u-boot-wandboard-bootloader)) | 39 | u-boot-wandboard-bootloader)) |
| 39 | 40 | ||
| @@ -91,6 +92,15 @@ | |||
| 91 | (write-file-on-device u-boot (stat:size (stat u-boot)) | 92 | (write-file-on-device u-boot (stat:size (stat u-boot)) |
| 92 | device (* 512 512))))) | 93 | device (* 512 512))))) |
| 93 | 94 | ||
| 95 | (define install-rock64-rk3328-u-boot | ||
| 96 | #~(lambda (bootloader device mount-point) | ||
| 97 | (let ((idb (string-append bootloader "/libexec/idbloader.img")) | ||
| 98 | (u-boot (string-append bootloader "/libexec/u-boot.itb"))) | ||
| 99 | (write-file-on-device idb (stat:size (stat idb)) | ||
| 100 | device (* 64 512)) | ||
| 101 | (write-file-on-device u-boot (stat:size (stat u-boot)) | ||
| 102 | device (* 16384 512))))) | ||
| 103 | |||
| 94 | (define install-rockpro64-rk3399-u-boot | 104 | (define install-rockpro64-rk3399-u-boot |
| 95 | #~(lambda (bootloader device mount-point) | 105 | #~(lambda (bootloader device mount-point) |
| 96 | (let ((idb (string-append bootloader "/libexec/idbloader.img")) | 106 | (let ((idb (string-append bootloader "/libexec/idbloader.img")) |
| @@ -190,6 +200,13 @@ | |||
| 190 | (package u-boot-puma-rk3399) | 200 | (package u-boot-puma-rk3399) |
| 191 | (installer install-puma-rk3399-u-boot))) | 201 | (installer install-puma-rk3399-u-boot))) |
| 192 | 202 | ||
| 203 | (define u-boot-rock64-rk3328-bootloader | ||
| 204 | ;; SD and eMMC use the same format | ||
| 205 | (bootloader | ||
| 206 | (inherit u-boot-bootloader) | ||
| 207 | (package u-boot-rock64-rk3328) | ||
| 208 | (installer install-rock64-rk3328-u-boot))) | ||
| 209 | |||
| 193 | (define u-boot-rockpro64-rk3399-bootloader | 210 | (define u-boot-rockpro64-rk3399-bootloader |
| 194 | ;; SD and eMMC use the same format | 211 | ;; SD and eMMC use the same format |
| 195 | (bootloader | 212 | (bootloader |
