summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gnu/local.mk3
-rw-r--r--gnu/system/images/a20-olinuxino-lime2.scm69
2 files changed, 71 insertions, 1 deletions
diff --git a/gnu/local.mk b/gnu/local.mk
index 30475bc7ff0..97608a1d289 100644
--- a/gnu/local.mk
+++ b/gnu/local.mk
@@ -35,7 +35,7 @@
35# Copyright © 2020 Ryan Prior <rprior@protonmail.com> 35# Copyright © 2020 Ryan Prior <rprior@protonmail.com>
36# Copyright © 2020 Jan Wielkiewicz <tona_kosmicznego_smiecia@interia.pl> 36# Copyright © 2020 Jan Wielkiewicz <tona_kosmicznego_smiecia@interia.pl>
37# Copyright © 2020, 2021 Brice Waegeneire <brice@waegenei.re> 37# Copyright © 2020, 2021 Brice Waegeneire <brice@waegenei.re>
38# Copyright © 2020, 2023 Tanguy Le Carrour <tanguy@bioneland.org> 38# Copyright © 2020, 2023, 2025 Tanguy Le Carrour <tanguy@bioneland.org>
39# Copyright © 2020 Martin Becze <mjbecze@riseup.net> 39# Copyright © 2020 Martin Becze <mjbecze@riseup.net>
40# Copyright © 2020 Malte Frank Gerdes <mate.f.gerdes@gmail.com> 40# Copyright © 2020 Malte Frank Gerdes <mate.f.gerdes@gmail.com>
41# Copyright © 2020, 2023 Vinicius Monego <monego@posteo.net> 41# Copyright © 2020, 2023 Vinicius Monego <monego@posteo.net>
@@ -803,6 +803,7 @@ GNU_SYSTEM_MODULES = \
803 %D%/system/uuid.scm \ 803 %D%/system/uuid.scm \
804 %D%/system/vm.scm \ 804 %D%/system/vm.scm \
805 \ 805 \
806 %D%/system/images/a20-olinuxino-lime2.scm \
806 %D%/system/images/hurd.scm \ 807 %D%/system/images/hurd.scm \
807 %D%/system/images/novena.scm \ 808 %D%/system/images/novena.scm \
808 %D%/system/images/orangepi-r1-plus-lts-rk3328.scm \ 809 %D%/system/images/orangepi-r1-plus-lts-rk3328.scm \
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