diff options
| author | Danny Milosavljevic <dannym@scratchpost.org> | 2018-06-15 09:52:42 +0200 |
|---|---|---|
| committer | Danny Milosavljevic <dannym@scratchpost.org> | 2018-06-15 14:16:37 +0200 |
| commit | 4ce4fc501035a8ef461e10d5f3df6ea3a63c7572 (patch) | |
| tree | 1cfa6216bff505a57129d703428fdfcf284f65a6 /gnu/system | |
| parent | 0017e55f892828f7a4d29a50f06e5146270ab8cb (diff) | |
system: Add os-with-u-boot.
* gnu/system/install.scm (os-with-u-boot): New procedure.
* gnu/packages/bootloaders.scm (make-u-boot-package): Export.
* doc/guix.texi (Building the Installation Image for ARM Boards): New
subsection.
Diffstat (limited to 'gnu/system')
| -rw-r--r-- | gnu/system/install.scm | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/gnu/system/install.scm b/gnu/system/install.scm index 35f4ba9c247..6a3ae1947be 100644 --- a/gnu/system/install.scm +++ b/gnu/system/install.scm | |||
| @@ -54,7 +54,8 @@ | |||
| 54 | novena-installation-os | 54 | novena-installation-os |
| 55 | pine64-plus-installation-os | 55 | pine64-plus-installation-os |
| 56 | rk3399-puma-installation-os | 56 | rk3399-puma-installation-os |
| 57 | wandboard-installation-os)) | 57 | wandboard-installation-os |
| 58 | os-with-u-boot)) | ||
| 58 | 59 | ||
| 59 | ;;; Commentary: | 60 | ;;; Commentary: |
| 60 | ;;; | 61 | ;;; |
| @@ -386,6 +387,19 @@ You have been warned. Thanks for being so brave.\x1b[0m | |||
| 386 | nvi ;:wq! | 387 | nvi ;:wq! |
| 387 | %base-packages)))) | 388 | %base-packages)))) |
| 388 | 389 | ||
| 390 | (define* (os-with-u-boot os board #:key (bootloader-target "/dev/mmcblk0") | ||
| 391 | (triplet "arm-linux-gnueabihf")) | ||
| 392 | "Given OS, amend it with the u-boot bootloader for BOARD, | ||
| 393 | installed to BOOTLOADER-TARGET (a drive), compiled for TRIPLET. | ||
| 394 | |||
| 395 | If you want a serial console, make sure to specify one in your | ||
| 396 | operating-system's kernel-arguments (\"console=ttyS0\" or similar)." | ||
| 397 | (operating-system (inherit os) | ||
| 398 | (bootloader (bootloader-configuration | ||
| 399 | (bootloader (bootloader (inherit u-boot-bootloader) | ||
| 400 | (package (make-u-boot-package board triplet)))) | ||
| 401 | (target bootloader-target))))) | ||
| 402 | |||
| 389 | (define* (embedded-installation-os bootloader bootloader-target tty | 403 | (define* (embedded-installation-os bootloader bootloader-target tty |
| 390 | #:key (extra-modules '())) | 404 | #:key (extra-modules '())) |
| 391 | "Return an installation os for embedded systems. | 405 | "Return an installation os for embedded systems. |
