* Custom kernel error: kernel module not found "xts" "/gnu/store/...-linux-custom-4.14.69/lib/modules"
@ 2018-09-20 16:33 Pierre Neidhardt
2018-09-24 15:28 ` Ludovic Courtès
0 siblings, 1 reply; 3+ messages in thread
From: Pierre Neidhardt @ 2018-09-20 16:33 UTC (permalink / raw)
To: help-guix@gnu.org
[-- Attachment #1: Type: text/plain, Size: 2499 bytes --]
Hi Guix!
I'm working on a building a custom kernel for my laptop.
I've used the instructions given by Ludo in an older mail:
https://lists.gnu.org/archive/html/help-guix/2016-07/msg00166.html
So far so good.
I've generated a .config with Linux' `make menuconfig`. My experience
with menuconfig mostly dates back from my days on Gentoo, so I'm not
sure how much applies to GuixSD.
When building, I run into a sequence of errors:
--8<---------------cut here---------------start------------->8---
...
phase `compress-documentation' succeeded after 0.0 seconds
substitute: updating substitutes from 'https://mirror.hydra.gnu.org'... 100.0%
The following derivations will be built:
/gnu/store/hjwj30a2g5q5msgavcf2hin2xm6i53bj-system.drv
/gnu/store/rkbkwijai8bi053qysvd2grckkf97c06-grub.cfg.drv
/gnu/store/wvahc3jc4v80jdilizsa13sv7biwi1gf-linux-modules.drv
/gnu/store/02zbl4j4svycqp8csr0m1ixbbvcxwl9f-init.drv
/gnu/store/k03h3ry4nrsv8phyphmxrqr5c69j9f7w-parameters.drv
/gnu/store/vhqsgknpamjsl2c36a2z20snjqik5q2p-raw-initrd.drv
Backtrace:
12 (primitive-load "/gnu/store/c9z5pkc2kv416wgjkqpjpp4lypr?")
In ice-9/eval.scm:
619:8 11 (_ #f)
626:19 10 (_ #<directory (guile-user) 7cc140>)
293:34 9 (_ #(#<directory (guile-user) 7cc140> #<procedure loo?>))
In srfi/srfi-1.scm:
592:29 8 (map1 _)
592:29 7 (map1 _)
592:29 6 (map1 ("uas" "usbhid" "hid-generic" "hid-apple" "dm-?" ?))
592:29 5 (map1 ("usbhid" "hid-generic" "hid-apple" "dm-crypt" # ?))
592:29 4 (map1 ("hid-generic" "hid-apple" "dm-crypt" "xts" "s?" ?))
592:29 3 (map1 ("hid-apple" "dm-crypt" "xts" "serpent_generic" ?))
592:29 2 (map1 ("dm-crypt" "xts" "serpent_generic" "wp512" "n?" ?))
592:17 1 (map1 ("xts" "serpent_generic" "wp512" "nls_iso8859-1" ?))
In unknown file:
0 (scm-error misc-error #f "~A ~S ~S" ("kernel module?" ?) ?)
ERROR: In procedure scm-error:
kernel module not found "xts" "/gnu/store/n1fvlgqq3cmfpy120y6ladw0k229y435-linux-custom-4.14.69/lib/modules"
...
--8<---------------cut here---------------end--------------->8---
Note that the build runs fine but install fails. If I edit my .config
to include the missing module (here "xts") then the next rebuilt will
fail on the next missing module.
Including the module into the kernel ("y" instead of "m") does not work.
The list of module does not match the expectation I guess but I don't
know what Guix is trying to do here.
Insights?
--
Pierre Neidhardt
https://ambrevar.xyz/
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Custom kernel error: kernel module not found "xts" "/gnu/store/...-linux-custom-4.14.69/lib/modules"
2018-09-20 16:33 Custom kernel error: kernel module not found "xts" "/gnu/store/...-linux-custom-4.14.69/lib/modules" Pierre Neidhardt
@ 2018-09-24 15:28 ` Ludovic Courtès
2018-09-24 16:35 ` Pierre Neidhardt
0 siblings, 1 reply; 3+ messages in thread
From: Ludovic Courtès @ 2018-09-24 15:28 UTC (permalink / raw)
To: Pierre Neidhardt; +Cc: help-guix@gnu.org
Hello Pierre,
Pierre Neidhardt <mail@ambrevar.xyz> skribis:
> The list of module does not match the expectation I guess but I don't
> know what Guix is trying to do here.
There’s a list of modules that must be present in the initrd, specified
by the ‘initrd-modules’ field. By default that list is:
--8<---------------cut here---------------start------------->8---
scheme@(guile-user)> ,use(gnu system linux-initrd)
scheme@(guile-user)> %base-initrd-modules
$2 = ("ahci" "usb-storage" "uas" "usbhid" "hid-generic" "hid-apple" "dm-crypt" "xts" "serpent_generic" "wp512" "nls_iso8859-1" "pata_acpi" "pata_atiixp" "isci" "virtio_pci" "virtio_balloon" "virtio_blk" "virtio_net" "virtio_console" "virtio-rng")
--8<---------------cut here---------------end--------------->8---
Since your kernel lacks the “xts” module, you may have to do:
(operating-system
;; …
(initrd-modules (delete "xts" %base-initrd-modules)))
HTH!
Ludo’.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2018-09-24 16:41 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-09-20 16:33 Custom kernel error: kernel module not found "xts" "/gnu/store/...-linux-custom-4.14.69/lib/modules" Pierre Neidhardt
2018-09-24 15:28 ` Ludovic Courtès
2018-09-24 16:35 ` Pierre Neidhardt
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.