install.scm 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628
  1. ;;; GNU Guix --- Functional package management for GNU
  2. ;;; Copyright © 2014, 2015, 2016, 2017, 2018, 2019 Ludovic Courtès <ludo@gnu.org>
  3. ;;; Copyright © 2015 Mark H Weaver <mhw@netris.org>
  4. ;;; Copyright © 2016 Andreas Enge <andreas@enge.fr>
  5. ;;; Copyright © 2017 Marius Bakke <mbakke@fastmail.com>
  6. ;;; Copyright © 2017, 2019 Tobias Geerinckx-Rice <me@tobias.gr>
  7. ;;; Copyright © 2020 Florian Pelz <pelzflorian@pelzflorian.de>
  8. ;;;
  9. ;;; This file is part of GNU Guix.
  10. ;;;
  11. ;;; GNU Guix is free software; you can redistribute it and/or modify it
  12. ;;; under the terms of the GNU General Public License as published by
  13. ;;; the Free Software Foundation; either version 3 of the License, or (at
  14. ;;; your option) any later version.
  15. ;;;
  16. ;;; GNU Guix is distributed in the hope that it will be useful, but
  17. ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
  18. ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  19. ;;; GNU General Public License for more details.
  20. ;;;
  21. ;;; You should have received a copy of the GNU General Public License
  22. ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
  23. (define-module (gnu system install)
  24. #:use-module (gnu)
  25. #:use-module (gnu system)
  26. #:use-module (gnu bootloader u-boot)
  27. #:use-module (guix gexp)
  28. #:use-module (guix store)
  29. #:use-module (guix monads)
  30. #:use-module (guix modules)
  31. #:use-module ((guix packages) #:select (package-version))
  32. #:use-module ((guix store) #:select (%store-prefix))
  33. #:use-module (gnu installer)
  34. #:use-module (gnu system locale)
  35. #:use-module (gnu services dbus)
  36. #:use-module (gnu services networking)
  37. #:use-module (gnu services shepherd)
  38. #:use-module (gnu services ssh)
  39. #:use-module (gnu packages admin)
  40. #:use-module (gnu packages bash)
  41. #:use-module (gnu packages bootloaders)
  42. #:use-module (gnu packages certs)
  43. #:use-module (gnu packages file-systems)
  44. #:use-module (gnu packages fonts)
  45. #:use-module (gnu packages fontutils)
  46. #:use-module (gnu packages guile)
  47. #:use-module (gnu packages linux)
  48. #:use-module (gnu packages ssh)
  49. #:use-module (gnu packages cryptsetup)
  50. #:use-module (gnu packages package-management)
  51. #:use-module (gnu packages disk)
  52. #:use-module (gnu packages texinfo)
  53. #:use-module (gnu packages compression)
  54. #:use-module (gnu packages nvi)
  55. #:use-module (gnu packages xorg)
  56. #:use-module (ice-9 match)
  57. #:use-module (srfi srfi-26)
  58. #:export (installation-os
  59. a20-olinuxino-lime-installation-os
  60. a20-olinuxino-lime2-emmc-installation-os
  61. a20-olinuxino-micro-installation-os
  62. bananapi-m2-ultra-installation-os
  63. beaglebone-black-installation-os
  64. mx6cuboxi-installation-os
  65. nintendo-nes-classic-edition-installation-os
  66. novena-installation-os
  67. firefly-rk3399-installation-os
  68. pine64-plus-installation-os
  69. pinebook-installation-os
  70. rock64-installation-os
  71. rockpro64-installation-os
  72. rk3399-puma-installation-os
  73. wandboard-installation-os
  74. os-with-u-boot))
  75. ;;; Commentary:
  76. ;;;
  77. ;;; This module provides an 'operating-system' definition for use on images
  78. ;;; for USB sticks etc., for the installation of the GNU system.
  79. ;;;
  80. ;;; Code:
  81. ;;;
  82. ;;; Documentation service.
  83. ;;;
  84. (define %installation-node-names
  85. ;; Translated name of the "System Installation" node of the manual. Ideally
  86. ;; we'd extract it from the 'guix-manual' gettext domain, but that one is
  87. ;; usually not available at run time, hence this hack.
  88. '(("de" . "Systeminstallation")
  89. ("en" . "System Installation")
  90. ("es" . "Instalación del sistema")
  91. ("fr" . "Installation du système")
  92. ("ru" . "Установка системы")))
  93. (define (log-to-info tty user)
  94. "Return a script that spawns the Info reader on the right section of the
  95. manual."
  96. (program-file "log-to-info"
  97. #~(let* ((tty (open-file #$(string-append "/dev/" tty)
  98. "r0+"))
  99. (locale (cadr (command-line)))
  100. (language (string-take locale
  101. (string-index locale #\_)))
  102. (infodir "/run/current-system/profile/share/info")
  103. (per-lang (string-append infodir "/guix." language
  104. ".info.gz"))
  105. (file (if (file-exists? per-lang)
  106. per-lang
  107. (string-append infodir "/guix.info")))
  108. (node (or (assoc-ref '#$%installation-node-names
  109. language)
  110. "System Installation")))
  111. (redirect-port tty (current-output-port))
  112. (redirect-port tty (current-error-port))
  113. (redirect-port tty (current-input-port))
  114. (let ((pw (getpwnam #$user)))
  115. (setgid (passwd:gid pw))
  116. (setuid (passwd:uid pw)))
  117. ;; 'gunzip' is needed to decompress the doc.
  118. (setenv "PATH" (string-append #$gzip "/bin"))
  119. ;; Change this process' locale so that command-line
  120. ;; arguments to 'info' are properly encoded.
  121. (catch #t
  122. (lambda ()
  123. (setlocale LC_ALL locale)
  124. (setenv "LC_ALL" locale))
  125. (lambda _
  126. ;; Sometimes LOCALE itself is not available. In that
  127. ;; case pick the one UTF-8 locale that's known to work
  128. ;; instead of failing.
  129. (setlocale LC_ALL "en_US.utf8")
  130. (setenv "LC_ALL" "en_US.utf8")))
  131. (execl #$(file-append info-reader "/bin/info")
  132. "info" "-d" infodir "-f" file "-n" node))))
  133. (define (documentation-shepherd-service tty)
  134. (list (shepherd-service
  135. (provision (list (symbol-append 'term- (string->symbol tty))))
  136. (requirement '(user-processes host-name udev virtual-terminal))
  137. (start #~(lambda* (#:optional (locale "en_US.utf8"))
  138. (fork+exec-command
  139. (list #$(log-to-info tty "documentation") locale)
  140. #:environment-variables
  141. `("GUIX_LOCPATH=/run/current-system/locale"
  142. "TERM=linux"))))
  143. (stop #~(make-kill-destructor)))))
  144. (define %documentation-users
  145. ;; User account for the Info viewer.
  146. (list (user-account (name "documentation")
  147. (system? #t)
  148. (group "nogroup")
  149. (home-directory "/var/empty"))))
  150. (define documentation-service-type
  151. ;; Documentation viewer service.
  152. (service-type (name 'documentation)
  153. (extensions
  154. (list (service-extension shepherd-root-service-type
  155. documentation-shepherd-service)
  156. (service-extension account-service-type
  157. (const %documentation-users))))
  158. (description "Run the Info reader on a tty.")))
  159. (define %backing-directory
  160. ;; Sub-directory used as the backing store for copy-on-write.
  161. "/tmp/guix-inst")
  162. (define cow-store-service-type
  163. (shepherd-service-type
  164. 'cow-store
  165. (lambda _
  166. (shepherd-service
  167. (requirement '(root-file-system user-processes))
  168. (provision '(cow-store))
  169. (documentation
  170. "Make the store copy-on-write, with writes going to \
  171. the given target.")
  172. ;; This is meant to be explicitly started by the user.
  173. (auto-start? #f)
  174. (modules `((gnu build install)
  175. ,@%default-modules))
  176. (start
  177. (with-imported-modules (source-module-closure
  178. '((gnu build install)))
  179. #~(case-lambda
  180. ((target)
  181. (mount-cow-store target #$%backing-directory)
  182. target)
  183. (else
  184. ;; Do nothing, and mark the service as stopped.
  185. #f))))
  186. (stop #~(lambda (target)
  187. ;; Delete the temporary directory, but leave everything
  188. ;; mounted as there may still be processes using it since
  189. ;; 'user-processes' doesn't depend on us. The 'user-file-systems'
  190. ;; service will unmount TARGET eventually.
  191. (delete-file-recursively
  192. (string-append target #$%backing-directory))))))))
  193. (define (cow-store-service)
  194. "Return a service that makes the store copy-on-write, such that writes go to
  195. the user's target storage device rather than on the RAM disk."
  196. ;; See <http://bugs.gnu.org/18061> for the initial report.
  197. (service cow-store-service-type 'mooooh!))
  198. (define (/etc/configuration-files _)
  199. "Return a list of tuples representing configuration templates to add to
  200. /etc."
  201. (define directory
  202. (computed-file "configuration-templates"
  203. (with-imported-modules '((guix build utils))
  204. #~(begin
  205. (mkdir #$output)
  206. (for-each (lambda (file target)
  207. (copy-file file
  208. (string-append #$output "/"
  209. target)))
  210. '(#$(local-file "examples/bare-bones.tmpl")
  211. #$(local-file "examples/beaglebone-black.tmpl")
  212. #$(local-file "examples/desktop.tmpl")
  213. #$(local-file "examples/lightweight-desktop.tmpl"))
  214. '("bare-bones.scm"
  215. "beaglebone-black.scm"
  216. "desktop.scm"
  217. "lightweight-desktop.scm"))
  218. #t))))
  219. `(("configuration" ,directory)))
  220. (define configuration-template-service-type
  221. (service-type (name 'configuration-template)
  222. (extensions
  223. (list (service-extension etc-service-type
  224. /etc/configuration-files)))))
  225. (define %configuration-template-service
  226. (service configuration-template-service-type #t))
  227. (define %nscd-minimal-caches
  228. ;; Minimal in-memory caching policy for nscd.
  229. (list (nscd-cache (database 'hosts)
  230. (positive-time-to-live (* 3600 12))
  231. ;; Do not cache lookup failures at all since they are
  232. ;; quite likely (for instance when someone tries to ping a
  233. ;; host before networking is functional.)
  234. (negative-time-to-live 0)
  235. (persistent? #f)
  236. (max-database-size (* 5 (expt 2 20)))))) ;5 MiB
  237. ;; These define a service to load the uvesafb kernel module with the
  238. ;; appropriate options. The GUI installer needs it when the machine does not
  239. ;; support Kernel Mode Setting. Otherwise kmscon is missing /dev/fb0.
  240. (define (uvesafb-shepherd-service _)
  241. (list (shepherd-service
  242. (documentation "Load the uvesafb kernel module if needed.")
  243. (provision '(maybe-uvesafb))
  244. (requirement '(file-systems))
  245. (start #~(lambda ()
  246. ;; uvesafb is only supported on x86 and x86_64.
  247. (or (not (and (string-suffix? "linux-gnu" %host-type)
  248. (or (string-prefix? "x86_64" %host-type)
  249. (string-prefix? "i686" %host-type))))
  250. (file-exists? "/dev/fb0")
  251. (invoke #+(file-append kmod "/bin/modprobe")
  252. "uvesafb"
  253. (string-append "v86d=" #$v86d "/sbin/v86d")
  254. "mode_option=1024x768"))))
  255. (respawn? #f)
  256. (one-shot? #t))))
  257. (define uvesafb-service-type
  258. (service-type
  259. (name 'uvesafb)
  260. (extensions
  261. (list (service-extension shepherd-root-service-type
  262. uvesafb-shepherd-service)))
  263. (description
  264. "Load the @code{uvesafb} kernel module with the right options.")
  265. (default-value #t)))
  266. (define %installation-services
  267. ;; List of services of the installation system.
  268. (let ((motd (plain-file "motd" "
  269. \x1b[1;37mWelcome to the installation of GNU Guix!\x1b[0m
  270. \x1b[2m\
  271. Using this shell, you can carry out the installation process \"manually.\"
  272. Access documentation at any time by pressing Alt-F2.\x1b[0m
  273. ")))
  274. (define (normal-tty tty)
  275. (mingetty-service (mingetty-configuration (tty tty)
  276. (auto-login "root")
  277. (login-pause? #t))))
  278. (define bare-bones-os
  279. (load "examples/bare-bones.tmpl"))
  280. (list (service virtual-terminal-service-type)
  281. (service kmscon-service-type
  282. (kmscon-configuration
  283. (virtual-terminal "tty1")
  284. (login-program (installer-program))))
  285. (login-service (login-configuration
  286. (motd motd)))
  287. ;; Documentation. The manual is in UTF-8, but
  288. ;; 'console-font-service' sets up Unicode support and loads a font
  289. ;; with all the useful glyphs like em dash and quotation marks.
  290. (service documentation-service-type "tty2")
  291. ;; Documentation add-on.
  292. %configuration-template-service
  293. ;; A bunch of 'root' ttys.
  294. (normal-tty "tty3")
  295. (normal-tty "tty4")
  296. (normal-tty "tty5")
  297. (normal-tty "tty6")
  298. ;; The usual services.
  299. (syslog-service)
  300. ;; The build daemon. Register the default substitute server key(s)
  301. ;; as trusted to allow the installation process to use substitutes by
  302. ;; default.
  303. (service guix-service-type
  304. (guix-configuration (authorize-key? #t)))
  305. ;; Start udev so that useful device nodes are available.
  306. ;; Use device-mapper rules for cryptsetup & co; enable the CRDA for
  307. ;; regulations-compliant WiFi access.
  308. (udev-service #:rules (list lvm2 crda))
  309. ;; Add the 'cow-store' service, which users have to start manually
  310. ;; since it takes the installation directory as an argument.
  311. (cow-store-service)
  312. ;; Install Unicode support and a suitable font.
  313. (service console-font-service-type
  314. (map (match-lambda
  315. ("tty2"
  316. ;; Use a font that contains characters such as
  317. ;; curly quotes as found in the manual.
  318. '("tty2" . "LatGrkCyr-8x16"))
  319. (tty
  320. ;; Use a font that doesn't have more than 256
  321. ;; glyphs so that we can use colors with varying
  322. ;; brightness levels (see note in setfont(8)).
  323. `(,tty . "lat9u-16")))
  324. '("tty1" "tty2" "tty3" "tty4" "tty5" "tty6")))
  325. ;; To facilitate copy/paste.
  326. (service gpm-service-type)
  327. ;; Add an SSH server to facilitate remote installs.
  328. (service openssh-service-type
  329. (openssh-configuration
  330. (port-number 22)
  331. (permit-root-login #t)
  332. ;; The root account is passwordless, so make sure
  333. ;; a password is set before allowing logins.
  334. (allow-empty-passwords? #f)
  335. (password-authentication? #t)
  336. ;; Don't start it upfront.
  337. (%auto-start? #f)))
  338. ;; Since this is running on a USB stick with a overlayfs as the root
  339. ;; file system, use an appropriate cache configuration.
  340. (nscd-service (nscd-configuration
  341. (caches %nscd-minimal-caches)))
  342. ;; Having /bin/sh is a good idea. In particular it allows Tramp
  343. ;; connections to this system to work.
  344. (service special-files-service-type
  345. `(("/bin/sh" ,(file-append bash "/bin/sh"))))
  346. ;; Loopback device, needed by OpenSSH notably.
  347. (service static-networking-service-type
  348. (list (static-networking (interface "lo")
  349. (ip "127.0.0.1")
  350. (requirement '())
  351. (provision '(loopback)))))
  352. (service wpa-supplicant-service-type)
  353. (dbus-service)
  354. (service connman-service-type
  355. (connman-configuration
  356. (disable-vpn? #t)))
  357. ;; Keep a reference to BARE-BONES-OS to make sure it can be
  358. ;; installed without downloading/building anything. Also keep the
  359. ;; things needed by 'profile-derivation' to minimize the amount of
  360. ;; download.
  361. (service gc-root-service-type
  362. (append
  363. (list bare-bones-os
  364. glibc-utf8-locales
  365. texinfo
  366. guile-3.0)
  367. %default-locale-libcs))
  368. ;; Machines without Kernel Mode Setting (those with many old and
  369. ;; current AMD GPUs, SiS GPUs, ...) need uvesafb to show the GUI
  370. ;; installer. Some may also need a kernel parameter like nomodeset
  371. ;; or vga=793, but we leave that for the user to specify in GRUB.
  372. (service uvesafb-service-type))))
  373. (define %issue
  374. ;; Greeting.
  375. "
  376. \x1b[1;37mThis is an installation image of the GNU system. Welcome.\x1b[0m
  377. \x1b[1;33mUse Alt-F2 for documentation.\x1b[0m
  378. ")
  379. (define installation-os
  380. ;; The operating system used on installation images for USB sticks etc.
  381. (operating-system
  382. (host-name "gnu")
  383. (timezone "Europe/Paris")
  384. (locale "en_US.utf8")
  385. (bootloader (bootloader-configuration
  386. (bootloader grub-bootloader)
  387. (target "/dev/sda")))
  388. (label (string-append "GNU Guix installation "
  389. (package-version guix)))
  390. (file-systems
  391. ;; Note: the disk image build code overrides this root file system with
  392. ;; the appropriate one.
  393. (cons* (file-system
  394. (mount-point "/")
  395. (device (file-system-label "Guix_image"))
  396. (type "ext4"))
  397. ;; Make /tmp a tmpfs instead of keeping the overlayfs. This
  398. ;; originally was used for unionfs because FUSE creates
  399. ;; '.fuse_hiddenXYZ' files for each open file, and this confuses
  400. ;; Guix's test suite, for instance (see
  401. ;; <http://bugs.gnu.org/23056>). We keep this for overlayfs to be
  402. ;; on the safe side.
  403. (file-system
  404. (mount-point "/tmp")
  405. (device "none")
  406. (type "tmpfs")
  407. (check? #f))
  408. ;; XXX: This should be %BASE-FILE-SYSTEMS but we don't need
  409. ;; elogind's cgroup file systems.
  410. (list %pseudo-terminal-file-system
  411. %shared-memory-file-system
  412. %efivars-file-system
  413. %immutable-store)))
  414. (users (list (user-account
  415. (name "guest")
  416. (group "users")
  417. (supplementary-groups '("wheel")) ; allow use of sudo
  418. (password "")
  419. (comment "Guest of GNU"))))
  420. (issue %issue)
  421. (services %installation-services)
  422. ;; We don't need setuid programs, except for 'passwd', which can be handy
  423. ;; if one is to allow remote SSH login to the machine being installed.
  424. (setuid-programs (list (file-append shadow "/bin/passwd")))
  425. (pam-services
  426. ;; Explicitly allow for empty passwords.
  427. (base-pam-services #:allow-empty-passwords? #t))
  428. (packages (cons* glibc ;for 'tzselect' & co.
  429. parted gptfdisk ddrescue
  430. fontconfig
  431. font-dejavu font-gnu-unifont
  432. grub ;mostly so xrefs to its manual work
  433. cryptsetup
  434. mdadm
  435. dosfstools ;mkfs.fat, for the UEFI boot partition
  436. btrfs-progs
  437. f2fs-tools
  438. jfsutils
  439. openssh ;we already have sshd, having ssh/scp can help
  440. wireless-tools iw wpa-supplicant-minimal iproute
  441. ;; XXX: We used to have GNU fdisk here, but as of version
  442. ;; 2.0.0a, that pulls Guile 1.8, which takes unreasonable
  443. ;; space; furthermore util-linux's fdisk is already
  444. ;; available here, so we keep that.
  445. bash-completion
  446. nvi ;:wq!
  447. nss-certs ; To access HTTPS, use git, etc.
  448. %base-packages))))
  449. (define* (os-with-u-boot os board #:key (bootloader-target "/dev/mmcblk0")
  450. (triplet "arm-linux-gnueabihf"))
  451. "Given OS, amend it with the u-boot bootloader for BOARD,
  452. installed to BOOTLOADER-TARGET (a drive), compiled for TRIPLET.
  453. If you want a serial console, make sure to specify one in your
  454. operating-system's kernel-arguments (\"console=ttyS0\" or similar)."
  455. (operating-system (inherit os)
  456. (bootloader (bootloader-configuration
  457. (bootloader (bootloader (inherit u-boot-bootloader)
  458. (package (make-u-boot-package board triplet))))
  459. (target bootloader-target)))))
  460. (define* (embedded-installation-os bootloader bootloader-target tty
  461. #:key (extra-modules '()))
  462. "Return an installation os for embedded systems.
  463. The initrd gets the extra modules EXTRA-MODULES.
  464. A getty is provided on TTY.
  465. The bootloader BOOTLOADER is installed to BOOTLOADER-TARGET."
  466. (operating-system
  467. (inherit installation-os)
  468. (bootloader (bootloader-configuration
  469. (bootloader bootloader)
  470. (target bootloader-target)))
  471. (kernel linux-libre)
  472. (kernel-arguments
  473. (cons (string-append "console=" tty)
  474. (operating-system-user-kernel-arguments installation-os)))
  475. (initrd-modules (append extra-modules %base-initrd-modules))))
  476. (define beaglebone-black-installation-os
  477. (embedded-installation-os u-boot-beaglebone-black-bootloader
  478. "/dev/sda"
  479. "ttyO0"
  480. #:extra-modules
  481. ;; This module is required to mount the sd card.
  482. '("omap_hsmmc")))
  483. (define a20-olinuxino-lime-installation-os
  484. (embedded-installation-os u-boot-a20-olinuxino-lime-bootloader
  485. "/dev/mmcblk0" ; SD card storage
  486. "ttyS0"))
  487. (define a20-olinuxino-lime2-emmc-installation-os
  488. (embedded-installation-os u-boot-a20-olinuxino-lime2-bootloader
  489. "/dev/mmcblk1" ; eMMC storage
  490. "ttyS0"))
  491. (define a20-olinuxino-micro-installation-os
  492. (embedded-installation-os u-boot-a20-olinuxino-micro-bootloader
  493. "/dev/mmcblk0" ; SD card storage
  494. "ttyS0"))
  495. (define bananapi-m2-ultra-installation-os
  496. (embedded-installation-os u-boot-bananapi-m2-ultra-bootloader
  497. "/dev/mmcblk1" ; eMMC storage
  498. "ttyS0"))
  499. (define firefly-rk3399-installation-os
  500. (embedded-installation-os u-boot-firefly-rk3399-bootloader
  501. "/dev/mmcblk0" ; SD card/eMMC (SD priority) storage
  502. "ttyS2")) ; UART2 connected on the Pi2 bus
  503. (define mx6cuboxi-installation-os
  504. (embedded-installation-os u-boot-mx6cuboxi-bootloader
  505. "/dev/mmcblk0" ; SD card storage
  506. "ttymxc0"))
  507. (define novena-installation-os
  508. (embedded-installation-os u-boot-novena-bootloader
  509. "/dev/mmcblk1" ; SD card storage
  510. "ttymxc1"))
  511. (define nintendo-nes-classic-edition-installation-os
  512. (embedded-installation-os u-boot-nintendo-nes-classic-edition-bootloader
  513. "/dev/mmcblk0" ; SD card (solder it yourself)
  514. "ttyS0"))
  515. (define pine64-plus-installation-os
  516. (embedded-installation-os u-boot-pine64-plus-bootloader
  517. "/dev/mmcblk0" ; SD card storage
  518. "ttyS0"))
  519. (define pinebook-installation-os
  520. (embedded-installation-os u-boot-pinebook-bootloader
  521. "/dev/mmcblk0" ; SD card storage
  522. "ttyS0"))
  523. (define rock64-installation-os
  524. (embedded-installation-os u-boot-rock64-rk3328-bootloader
  525. "/dev/mmcblk0" ; SD card/eMMC (SD priority) storage
  526. "ttyS2")) ; UART2 connected on the Pi2 bus
  527. (define rockpro64-installation-os
  528. (embedded-installation-os u-boot-rockpro64-rk3399-bootloader
  529. "/dev/mmcblk0" ; SD card/eMMC (SD priority) storage
  530. "ttyS2")) ; UART2 connected on the Pi2 bus
  531. (define rk3399-puma-installation-os
  532. (embedded-installation-os u-boot-puma-rk3399-bootloader
  533. "/dev/mmcblk0" ; SD card storage
  534. "ttyS0"))
  535. (define wandboard-installation-os
  536. (embedded-installation-os u-boot-wandboard-bootloader
  537. "/dev/mmcblk0" ; SD card storage
  538. "ttymxc0"))
  539. ;; Return the default os here so 'guix system' can consume it directly.
  540. installation-os
  541. ;;; install.scm ends here