diff options
| author | Herman Rimm <herman@rimm.ee> | 2024-12-12 22:03:25 +0100 |
|---|---|---|
| committer | Vagrant Cascadian <vagrant@debian.org> | 2025-03-04 10:19:37 -0800 |
| commit | 498e0557c56d84a46065f61fef320478577e30fb (patch) | |
| tree | e8a284e6923acfe217971c02d93f0a099e22345c /gnu/bootloader | |
| parent | cc30ed170af04565da9b4127def353e7fdd4a489 (diff) | |
gnu: bootloader: u-boot: Add u-boot-rockchip-bootloader.
* gnu/bootloader/u-boot.scm (install-rockchip-u-boot): Add procedure.
(install-orangepi-r1-plus-lts-rk3328-u-boot,
install-firefly-rk3399-u-boot, install-rock64-rk3328-u-boot,
install-rockpro64-rk3399-u-boot, install-pinebook-pro-rk3399-u-boot):
Remove procedure.
(u-boot-rockchip-bootloader): Add variable.
(u-boot-firefly-rk3399-bootloader,
u-boot-orangepi-r1-plus-lts-rk3328-bootloader,
u-boot-rock64-rk3328-bootloader, u-boot-rockpro64-rk3399-bootloader,
u-boot-pinebook-pro-rk3399-bootloader): Inherit
u-boot-rockchip-bootloader.
[disk-image-installer]: Remove.
Change-Id: Icb7546ee2bb1742c12c7b47ff2779d278dd45b14
Signed-off-by: Vagrant Cascadian <vagrant@debian.org>
Diffstat (limited to 'gnu/bootloader')
| -rw-r--r-- | gnu/bootloader/u-boot.scm | 66 |
1 files changed, 17 insertions, 49 deletions
diff --git a/gnu/bootloader/u-boot.scm b/gnu/bootloader/u-boot.scm index 5e149eaea01..5ea5f418b47 100644 --- a/gnu/bootloader/u-boot.scm +++ b/gnu/bootloader/u-boot.scm | |||
| @@ -111,15 +111,6 @@ | |||
| 111 | (write-file-on-device u-boot (stat:size (stat u-boot)) | 111 | (write-file-on-device u-boot (stat:size (stat u-boot)) |
| 112 | image (* 69 1024))))) | 112 | image (* 69 1024))))) |
| 113 | 113 | ||
| 114 | (define install-orangepi-r1-plus-lts-rk3328-u-boot | ||
| 115 | #~(lambda (bootloader root-index image) | ||
| 116 | (let ((idb (string-append bootloader "/libexec/idbloader.img")) | ||
| 117 | (u-boot (string-append bootloader "/libexec/u-boot.itb"))) | ||
| 118 | (write-file-on-device idb (stat:size (stat idb)) | ||
| 119 | image (* 64 512)) | ||
| 120 | (write-file-on-device u-boot (stat:size (stat u-boot)) | ||
| 121 | image (* 16384 512))))) | ||
| 122 | |||
| 123 | (define install-puma-rk3399-u-boot | 114 | (define install-puma-rk3399-u-boot |
| 124 | #~(lambda (bootloader root-index image) | 115 | #~(lambda (bootloader root-index image) |
| 125 | (let ((spl (string-append bootloader "/libexec/idbloader.img")) | 116 | (let ((spl (string-append bootloader "/libexec/idbloader.img")) |
| @@ -129,25 +120,7 @@ | |||
| 129 | (write-file-on-device u-boot (stat:size (stat u-boot)) | 120 | (write-file-on-device u-boot (stat:size (stat u-boot)) |
| 130 | image (* 512 512))))) | 121 | image (* 512 512))))) |
| 131 | 122 | ||
| 132 | (define install-firefly-rk3399-u-boot | 123 | (define install-rockchip-u-boot |
| 133 | #~(lambda (bootloader root-index image) | ||
| 134 | (let ((idb (string-append bootloader "/libexec/idbloader.img")) | ||
| 135 | (u-boot (string-append bootloader "/libexec/u-boot.itb"))) | ||
| 136 | (write-file-on-device idb (stat:size (stat idb)) | ||
| 137 | image (* 64 512)) | ||
| 138 | (write-file-on-device u-boot (stat:size (stat u-boot)) | ||
| 139 | image (* 16384 512))))) | ||
| 140 | |||
| 141 | (define install-rock64-rk3328-u-boot | ||
| 142 | #~(lambda (bootloader root-index image) | ||
| 143 | (let ((idb (string-append bootloader "/libexec/idbloader.img")) | ||
| 144 | (u-boot (string-append bootloader "/libexec/u-boot.itb"))) | ||
| 145 | (write-file-on-device idb (stat:size (stat idb)) | ||
| 146 | image (* 64 512)) | ||
| 147 | (write-file-on-device u-boot (stat:size (stat u-boot)) | ||
| 148 | image (* 16384 512))))) | ||
| 149 | |||
| 150 | (define install-rockpro64-rk3399-u-boot | ||
| 151 | #~(lambda (bootloader root-index image) | 124 | #~(lambda (bootloader root-index image) |
| 152 | (let ((idb (string-append bootloader "/libexec/idbloader.img")) | 125 | (let ((idb (string-append bootloader "/libexec/idbloader.img")) |
| 153 | (u-boot (string-append bootloader "/libexec/u-boot.itb"))) | 126 | (u-boot (string-append bootloader "/libexec/u-boot.itb"))) |
| @@ -156,8 +129,6 @@ | |||
| 156 | (write-file-on-device u-boot (stat:size (stat u-boot)) | 129 | (write-file-on-device u-boot (stat:size (stat u-boot)) |
| 157 | image (* 16384 512))))) | 130 | image (* 16384 512))))) |
| 158 | 131 | ||
| 159 | (define install-pinebook-pro-rk3399-u-boot install-rockpro64-rk3399-u-boot) | ||
| 160 | |||
| 161 | (define install-sifive-unmatched-u-boot | 132 | (define install-sifive-unmatched-u-boot |
| 162 | #~(lambda (bootloader root-index image) | 133 | #~(lambda (bootloader root-index image) |
| 163 | (let ((spl (string-append bootloader "/libexec/spl/u-boot-spl.bin")) | 134 | (let ((spl (string-append bootloader "/libexec/spl/u-boot-spl.bin")) |
| @@ -219,6 +190,12 @@ | |||
| 219 | (inherit u-boot-bootloader) | 190 | (inherit u-boot-bootloader) |
| 220 | (disk-image-installer install-imx-u-boot))) | 191 | (disk-image-installer install-imx-u-boot))) |
| 221 | 192 | ||
| 193 | (define u-boot-rockchip-bootloader | ||
| 194 | ;; SD and eMMC use the same format | ||
| 195 | (bootloader | ||
| 196 | (inherit u-boot-bootloader) | ||
| 197 | (disk-image-installer install-rockchip-u-boot))) | ||
| 198 | |||
| 222 | (define u-boot-nintendo-nes-classic-edition-bootloader | 199 | (define u-boot-nintendo-nes-classic-edition-bootloader |
| 223 | (bootloader | 200 | (bootloader |
| 224 | (inherit u-boot-allwinner-bootloader) | 201 | (inherit u-boot-allwinner-bootloader) |
| @@ -250,11 +227,9 @@ | |||
| 250 | (package u-boot-cubietruck))) | 227 | (package u-boot-cubietruck))) |
| 251 | 228 | ||
| 252 | (define u-boot-firefly-rk3399-bootloader | 229 | (define u-boot-firefly-rk3399-bootloader |
| 253 | ;; SD and eMMC use the same format | ||
| 254 | (bootloader | 230 | (bootloader |
| 255 | (inherit u-boot-bootloader) | 231 | (inherit u-boot-rockchip-bootloader) |
| 256 | (package u-boot-firefly-rk3399) | 232 | (package u-boot-firefly-rk3399))) |
| 257 | (disk-image-installer install-firefly-rk3399-u-boot))) | ||
| 258 | 233 | ||
| 259 | (define u-boot-mx6cuboxi-bootloader | 234 | (define u-boot-mx6cuboxi-bootloader |
| 260 | (bootloader | 235 | (bootloader |
| @@ -273,9 +248,8 @@ | |||
| 273 | 248 | ||
| 274 | (define u-boot-orangepi-r1-plus-lts-rk3328-bootloader | 249 | (define u-boot-orangepi-r1-plus-lts-rk3328-bootloader |
| 275 | (bootloader | 250 | (bootloader |
| 276 | (inherit u-boot-bootloader) | 251 | (inherit u-boot-rockchip-bootloader) |
| 277 | (package u-boot-orangepi-r1-plus-lts-rk3328) | 252 | (package u-boot-orangepi-r1-plus-lts-rk3328))) |
| 278 | (disk-image-installer install-orangepi-r1-plus-lts-rk3328-u-boot))) | ||
| 279 | 253 | ||
| 280 | (define u-boot-pine64-plus-bootloader | 254 | (define u-boot-pine64-plus-bootloader |
| 281 | (bootloader | 255 | (bootloader |
| @@ -299,25 +273,19 @@ | |||
| 299 | (disk-image-installer install-puma-rk3399-u-boot))) | 273 | (disk-image-installer install-puma-rk3399-u-boot))) |
| 300 | 274 | ||
| 301 | (define u-boot-rock64-rk3328-bootloader | 275 | (define u-boot-rock64-rk3328-bootloader |
| 302 | ;; SD and eMMC use the same format | ||
| 303 | (bootloader | 276 | (bootloader |
| 304 | (inherit u-boot-bootloader) | 277 | (inherit u-boot-rockchip-bootloader) |
| 305 | (package u-boot-rock64-rk3328) | 278 | (package u-boot-rock64-rk3328))) |
| 306 | (disk-image-installer install-rock64-rk3328-u-boot))) | ||
| 307 | 279 | ||
| 308 | (define u-boot-rockpro64-rk3399-bootloader | 280 | (define u-boot-rockpro64-rk3399-bootloader |
| 309 | ;; SD and eMMC use the same format | ||
| 310 | (bootloader | 281 | (bootloader |
| 311 | (inherit u-boot-bootloader) | 282 | (inherit u-boot-rockchip-bootloader) |
| 312 | (package u-boot-rockpro64-rk3399) | 283 | (package u-boot-rockpro64-rk3399))) |
| 313 | (disk-image-installer install-rockpro64-rk3399-u-boot))) | ||
| 314 | 284 | ||
| 315 | (define u-boot-pinebook-pro-rk3399-bootloader | 285 | (define u-boot-pinebook-pro-rk3399-bootloader |
| 316 | ;; SD and eMMC use the same format | ||
| 317 | (bootloader | 286 | (bootloader |
| 318 | (inherit u-boot-bootloader) | 287 | (inherit u-boot-rockchip-bootloader) |
| 319 | (package u-boot-pinebook-pro-rk3399) | 288 | (package u-boot-pinebook-pro-rk3399))) |
| 320 | (disk-image-installer install-pinebook-pro-rk3399-u-boot))) | ||
| 321 | 289 | ||
| 322 | (define u-boot-ts7970-q-2g-1000mhz-c-bootloader | 290 | (define u-boot-ts7970-q-2g-1000mhz-c-bootloader |
| 323 | ;; This bootloader doesn't really need to be installed, as it is read from | 291 | ;; This bootloader doesn't really need to be installed, as it is read from |
