Dear community, I went a little step forward but I'm still confused: by building the derivation of linux-modules in the store (for linux-libre) I've obtained the full list of modules that must be available for initrd to work (why, it's still not clear). Now, the #:extra-options key in my custom linux package looks like this #:extra-options (append `(;; Required by gnu/build/linux-modules ("CONFIG_SATA_AHCI" . m) ("CONFIG_USB_STORAGE" . m) ("CONFIG_USB_UAS" . m) ("CONFIG_USB_HID" . m) ("CONFIG_HID_GENERIC" . m) ("CONFIG_HID_APPLE" . m) ("CONFIG_DM_CRYPT" . m) ("CONFIG_CRYPTO_XTS" . m) ("CONFIG_CRYPTO_SERPENT" . m) ("CONFIG_CRYPTO_WP512" . m) ("CONFIG_NLS_ISO8859_1" . m) ("CONFIG_PATA_ACPI" . m) ("CONFIG_PATA_ATIIXP" . m) ("CONFIG_SCSI_ISCI" . m) ("CONFIG_VIRTIO_PCI" . m) ("CONFIG_VIRTIO_BALLOON" . m) ("CONFIG_VIRTIO_BLK" . m) ("CONFIG_VIRTIO_NET" . m) ("CONFIG_VIRTIO_CONSOLE" . m) ("CONFIG_HW_RANDOM_VIRTIO" . m) ("CONFIG_VIRTIO_RING" . m) ("CONFIG_VIRTIO" . m) ("CONFIG_VIRTIO_PCI_LIB_LEGACY" . m) ("CONFIG_VIRTIO_PCI_LIB" . m) ("CONFIG_SCSI_SAS_ATTRS" . m) ("CONFIG_SCSI_SAS_LIBSAS" . m) ("CONFIG_HID" . m) ;; Xenomai specific tweaks ("CONFIG_SCHED_MC_PRIO" . #f) ("CONFIG_CPU_FREQ" . #f) ("CONFIG_ACPI_PROCESSOR" . #f) ("CONFIG_CPU_IDLE" . #f) ("CONFIG_APM" . #f) ("CONFIG_INTEL_IDLE" . #f) ("CONFIG_INPUT_PCSPKR" . #f) ("CONFIG_COMPACTION" . #f) ("CONFIG_MIGRATION" . #f) ;; PCP customization ("CONFIG_XENO_DRIVERS_NET" . #t) ("CONFIG_XENO_DRIVERS_NET_DRV_E1000" . m) ("CONFIG_XENO_DRIVERS_NET_DRV_E1000E" . m) ("CONFIG_XENO_DRIVERS_NET_DRV_IGB" . m) ("CONFIG_NTFS_FS" . m) ("CONFIG_NTFS_RW" . #t) ("CONFIG_CIFS" . m) ("CONFIG_CIFS_XATTR" . #t) ("CONFIG_CONSOLE_LOGLEVEL_DEFAULT" . "4") ) (@@ (gnu packages linux) %default-extra-linux-options))
I was expecting to see a successful build of linux-modules this time but, instead, I've obtained another fail, this time due to module "isci" being not present. Funny thing is that module isci is produced with CONFIG_SCSI_ISCI, which is present in my config list! I've stopped the kernel build after the config phase and I've inspected the resulting .config file. There's no evidence of CONFIG_SCSI_ISCI in there, not even "# CONFIG_SCSI_ISCI is not set". It's not clear why this happens with my custom build and not with linux-libre... Can you help me debug this issue? Moreover, where is created the list of module required by "linux-modules" ? Regards On Tue, Jan 17, 2023 at 9:22 AM dabb...@gmail.com <dabb...@gmail.com> wrote: > > Dear community, > > I am trying to create a package for linux-xenomai (see previous thread > "Creating a package > using two sources/origins"). > Thank to your help I managed to successfully build the (patched) > kernel, but when I start a > "guix system reconfigure" to adopt linux-xenomai in my setup the > system build fails while > building linux-modules (and also grub, raw-initrd and init which depends on > it). > > This is the build log: > ------------------------------------------------------------------------------------ > Backtrace: > 6 (primitive-load "/gnu/store/m0kd924mhb1bl6wn384gpcss29w?") > In ice-9/eval.scm: > 619:8 5 (_ #f) > 626:19 4 (_ #<directory (guile-user) 7ffff5fdbc80>) > 293:34 3 (_ #(#<directory (guile-user) 7ffff5fdbc80> #<procedu?>)) > In srfi/srfi-1.scm: > 586:29 2 (map1 ("ahci" "usb-storage" "uas" "usbhid" "hid-gene?" ?)) > 586:17 1 (map1 ("usb-storage" "uas" "usbhid" "hid-generic" "h?" ?)) > In gnu/build/linux-modules.scm: > 269:5 0 (_) > > gnu/build/linux-modules.scm:269:5: kernel module not found > "usb-storage" > "/gnu/store/r2f9wrf17ys0znnxmvmy31h1z8b2nvrv-linux-xenomai-5.4.228-5.4.228/lib/modules" > ------------------------------------------------------------------------------------------------------- > > The package is expecting to find kernel modules for "ahci", > "usb-storage", "uas", "usbhid", > "hid-generic" and I'm sure also many more (because I iterated the > build by inserting these new > config without success). Unfortunately the list (in the log) is > truncated and I don't know how > many we need. > My questions are these: > 1. can you point me to the full list of modules required? > 2. if they are needed, why those modules are not inserted in > %default-extra-linux-options? > > Regards, > Davide