[Top][All Lists]

[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


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"))
(inherit linux-libre-arm64-generic)
(name "linux-next")
(version (git-version "5.17-" revision commit))
(method url-fetch)
(uri (string-append ""; commit 
"/linux-next-" commit ".tar.gz"))
`(("kconfig" ,(local-file "pinenote_defconfig"))
,@(alist-delete "kconfig" (package-native-inputs linux-libre)))))))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]