diff options
Diffstat (limited to 'gnu/bootloader')
| -rw-r--r-- | gnu/bootloader/u-boot.scm | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/gnu/bootloader/u-boot.scm b/gnu/bootloader/u-boot.scm index ea0f67b3cdd..52b38dd1abf 100644 --- a/gnu/bootloader/u-boot.scm +++ b/gnu/bootloader/u-boot.scm | |||
| @@ -37,6 +37,7 @@ | |||
| 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-pine64-plus-bootloader |
| 40 | u-boot-puma-rk3399-bootloader | ||
| 40 | u-boot-wandboard-bootloader)) | 41 | u-boot-wandboard-bootloader)) |
| 41 | 42 | ||
| 42 | (define install-u-boot | 43 | (define install-u-boot |
| @@ -84,6 +85,15 @@ | |||
| 84 | (write-file-on-device u-boot (stat:size (stat u-boot)) | 85 | (write-file-on-device u-boot (stat:size (stat u-boot)) |
| 85 | device (* 69 1024))))) | 86 | device (* 69 1024))))) |
| 86 | 87 | ||
| 88 | (define install-puma-rk3399-u-boot | ||
| 89 | #~(lambda (bootloader device mount-point) | ||
| 90 | (let ((spl (string-append bootloader "/libexec/u-boot-spl.rksd")) | ||
| 91 | (u-boot (string-append bootloader "/libexec/u-boot.itb"))) | ||
| 92 | (write-file-on-device spl (stat:size (stat spl)) | ||
| 93 | device (* 64 512)) | ||
| 94 | (write-file-on-device u-boot (stat:size (stat u-boot)) | ||
| 95 | device (* 512 512))))) | ||
| 96 | |||
| 87 | 97 | ||
| 88 | 98 | ||
| 89 | ;;; | 99 | ;;; |
| @@ -162,3 +172,9 @@ | |||
| 162 | (bootloader | 172 | (bootloader |
| 163 | (inherit u-boot-allwinner64-bootloader) | 173 | (inherit u-boot-allwinner64-bootloader) |
| 164 | (package u-boot-pine64-plus))) | 174 | (package u-boot-pine64-plus))) |
| 175 | |||
| 176 | (define u-boot-puma-rk3399-bootloader | ||
| 177 | (bootloader | ||
| 178 | (inherit u-boot-bootloader) | ||
| 179 | (package u-boot-puma-rk3399) | ||
| 180 | (installer install-puma-rk3399-u-boot))) | ||
