unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
* How to build ramdisk and minimal roots
@ 2022-06-02 15:44 phodina via
  0 siblings, 0 replies; only message in thread
From: phodina via @ 2022-06-02 15:44 UTC (permalink / raw)
  To: help-guix

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-06-02 15:48 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-02 15:44 How to build ramdisk and minimal roots phodina via

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).