diff options
| author | Caliph Nomble <nomble@palism.com> | 2019-10-14 02:01:53 -0400 |
|---|---|---|
| committer | Vagrant Cascadian <vagrant@debian.org> | 2019-10-18 13:32:09 -0700 |
| commit | fa7470189eed39ae863f8f269fd3ef29bb084f16 (patch) | |
| tree | b87c31734be69fd6b66dd303b0c91c27453dbacd /gnu/bootloader | |
| parent | c07f3b184d6ed81a5f60850fe563092b07784e3b (diff) | |
gnu: Add u-boot-rockpro64-rk3399
* gnu/packages/bootloaders.scm (u-boot-rockpro64-rk3399): New exported
variable.
(u-boot-2019.10): New variable.
* gnu/bootloader/u-boot.scm (u-boot-rockpro64-rk3399-bootloader): New exported
variable.
(install-rockpro64-rk3399-u-boot): New variable.
* gnu/system/install.scm (rockpro64-installation-os): New exported variable.
Adjusted-by: Vagrant Cascadian <vagrant@debian.org>
Signed-off-by: Caliph Nomble <nomble@palism.com>
Signed-off-by: Vagrant Cascadian <vagrant@debian.org>
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 54abfe1c69d..4f98be2483a 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-rockpro64-rk3399-bootloader | ||
| 37 | u-boot-wandboard-bootloader)) | 38 | u-boot-wandboard-bootloader)) |
| 38 | 39 | ||
| 39 | (define install-u-boot | 40 | (define install-u-boot |
| @@ -90,6 +91,15 @@ | |||
| 90 | (write-file-on-device u-boot (stat:size (stat u-boot)) | 91 | (write-file-on-device u-boot (stat:size (stat u-boot)) |
| 91 | device (* 512 512))))) | 92 | device (* 512 512))))) |
| 92 | 93 | ||
| 94 | (define install-rockpro64-rk3399-u-boot | ||
| 95 | #~(lambda (bootloader device mount-point) | ||
| 96 | (let ((idb (string-append bootloader "/libexec/idbloader.img")) | ||
| 97 | (u-boot (string-append bootloader "/libexec/u-boot.itb"))) | ||
| 98 | (write-file-on-device idb (stat:size (stat idb)) | ||
| 99 | device (* 64 512)) | ||
| 100 | (write-file-on-device u-boot (stat:size (stat u-boot)) | ||
| 101 | device (* 16384 512))))) | ||
| 102 | |||
| 93 | 103 | ||
| 94 | 104 | ||
| 95 | ;;; | 105 | ;;; |
| @@ -179,3 +189,10 @@ | |||
| 179 | (inherit u-boot-bootloader) | 189 | (inherit u-boot-bootloader) |
| 180 | (package u-boot-puma-rk3399) | 190 | (package u-boot-puma-rk3399) |
| 181 | (installer install-puma-rk3399-u-boot))) | 191 | (installer install-puma-rk3399-u-boot))) |
| 192 | |||
| 193 | (define u-boot-rockpro64-rk3399-bootloader | ||
| 194 | ;; SD and eMMC use the same format | ||
| 195 | (bootloader | ||
| 196 | (inherit u-boot-bootloader) | ||
| 197 | (package u-boot-rockpro64-rk3399) | ||
| 198 | (installer install-rockpro64-rk3399-u-boot))) | ||
