[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
How to build ramdisk and minimal roots
From: |
phodina |
Subject: |
How to build ramdisk and minimal roots |
Date: |
Thu, 02 Jun 2022 15:44:54 +0000 |
Hi,
I'm attempting to run Guix on Pinenote - eink tablet running Aarch64 [1].
Here's definition for the kernel based on mainline kernel with patches.
I build the kernel running this command:
guix build -f kernel.scm --target=aarch64-linux-gnu
However, I'm still missing ramdisk and I don't know how to build it. Do I have
to come up with the whole system definition or is there way to generate it
without one?
Also what's the best way to generate minimal roots, pack it as tarball?
I've run:
guix system image --list-image-types
but none of them is simple tarball. Should I instead pick some dir and run guix
init on it and later just put the content into tarball?
(define-module (kernel)
#:use-module (gnu packages)
#:use-module (guix packages)
#:use-module (guix utils)
#:use-module (guix gexp)
#:use-module (srfi srfi-1)
#:use-module (guix download)
#:use-module (guix git-download)
#:use-module (gnu packages linux)
#:use-module ((guix licenses) #:prefix license:))
(define linux-next
(let ((commit "d869c01c005f5ef5e77485409e890d62a4ae353d")
(revision "1"))
(package
(inherit linux-libre-arm64-generic)
(name "linux-next")
(version (git-version "5.17-" revision commit))
(source
(origin
(method url-fetch)
(uri (string-append "https://gitlab.com/pgwipeout/linux-next/-/archive/" commit
"/linux-next-" commit ".tar.gz"))
(sha256
(base32
"13mckij4492i0bhgvppxi58wxbgqxai6p08qw269y2k7khvafyqd"))))
(native-inputs
`(("kconfig" ,(local-file "pinenote_defconfig"))
,@(alist-delete "kconfig" (package-native-inputs linux-libre)))))))
[1] https://wiki.pine64.org/wiki/PineNote[2]
https://guix.gnu.org/manual/en/html_node/Initial-RAM-Disk.html
----
Petr
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- How to build ramdisk and minimal roots,
phodina <=