diff options
| author | Vagrant Cascadian <vagrant@debian.org> | 2018-05-28 21:10:15 -0700 |
|---|---|---|
| committer | Danny Milosavljevic <dannym@scratchpost.org> | 2018-05-29 10:46:13 +0200 |
| commit | 6fe165770539a4551b303dc5cd52db6c51c7604a (patch) | |
| tree | ae271a8af36d02daabaae9935151decbcc88e2c3 /gnu/bootloader | |
| parent | 2a49aee4d120cd3a8bfd855578f0b8832db88227 (diff) | |
system: Add u-boot-puma-rk3399.
* gnu/packages/bootloaders.scm (u-boot-puma-rk3399): New variable.
(make-u-boot-package)[arguments]: Add '.rksd' files to the files installed
during custom 'install phase.
* gnu/bootloader/u-boot.scm (u-boot-puma-rk3399-bootloader):
New exported variable.
* gnu/system/install.scm (rk3399-puma-installation-os):
New exported variable.
* gnu/packages/firmware.scm (arm-trusted-firmware-puma-rk3399): New variable.
(rk3399-cortex-m0): New variable.
Signed-off-by: Danny Milosavljevic <dannym@scratchpost.org>
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))) | ||
