summaryrefslogtreecommitdiff
path: root/gnu/system
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/system')
-rw-r--r--gnu/system/images/a20-olinuxino-lime2.scm69
1 files changed, 69 insertions, 0 deletions
diff --git a/gnu/system/images/a20-olinuxino-lime2.scm b/gnu/system/images/a20-olinuxino-lime2.scm
new file mode 100644
index 00000000000..ecab5166500
--- /dev/null
+++ b/gnu/system/images/a20-olinuxino-lime2.scm
@@ -0,0 +1,69 @@
1;;; GNU Guix --- Functional package management for GNU
2;;; Copyright © 2025 Tanguy Le Carrour <tanguy@bioneland.org>
3;;;
4;;; This file is part of GNU Guix.
5;;;
6;;; GNU Guix is free software; you can redistribute it and/or modify it
7;;; under the terms of the GNU General Public License as published by
8;;; the Free Software Foundation; either version 3 of the License, or (at
9;;; your option) any later version.
10;;;
11;;; GNU Guix is distributed in the hope that it will be useful, but
12;;; WITHOUT ANY WARRANTY; without even the implied warranty of
13;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14;;; GNU General Public License for more details.
15;;;
16;;; You should have received a copy of the GNU General Public License
17;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
18
19(define-module (gnu system images a20-olinuxino-lime2)
20 #:use-module (gnu bootloader)
21 #:use-module (gnu bootloader u-boot)
22 #:use-module (gnu image)
23 #:use-module (gnu packages linux)
24 #:use-module (guix platforms arm)
25 #:use-module (gnu services)
26 #:use-module (gnu services base)
27 #:use-module (gnu system)
28 #:use-module (gnu system file-systems)
29 #:use-module (gnu system image)
30 #:use-module (srfi srfi-26)
31 #:export (a20-olinuxino-lime2-barebones-os
32 a20-olinuxino-lime2-image-type
33 a20-olinuxino-lime2-barebones-raw-image))
34
35(define a20-olinuxino-lime2-barebones-os
36 (operating-system
37 (host-name "olimex")
38 (timezone "Europe/Paris")
39 (locale "en_GB.utf8")
40 (bootloader (bootloader-configuration
41 (bootloader u-boot-a20-olinuxino-lime2-bootloader)
42 (targets '("/dev/mmcblk0"))))
43 (initrd-modules '())
44 (kernel linux-libre-arm-generic)
45 (kernel-arguments '("console=tty1"))
46 (file-systems (cons (file-system
47 (device (file-system-label "root"))
48 (mount-point "/")
49 (type "ext4"))
50 %base-file-systems))))
51
52(define a20-olinuxino-lime2-image-type
53 (image-type
54 (name 'a20-olinuxino-lime2-raw)
55 (constructor (lambda (os)
56 (image
57 (inherit (raw-with-offset-disk-image (* 8192 512)))
58 (operating-system os)
59 (platform armv7-linux))))))
60
61(define a20-olinuxino-lime2-barebones-raw-image
62 (image
63 (inherit
64 (os+platform->image a20-olinuxino-lime2-barebones-os armv7-linux
65 #:type a20-olinuxino-lime2-image-type))
66 (name 'a20-olinuxino-lime2-barebones-raw-image)))
67
68;; Return the default image.
69a20-olinuxino-lime2-barebones-raw-image