unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* [WIP 0/6] Add kernel-module-configuration service
@ 2020-07-04 18:52 Brice Waegeneire
  0 siblings, 0 replies; only message in thread
From: Brice Waegeneire @ 2020-07-04 18:52 UTC (permalink / raw)
  To: guix-patches; +Cc: guix-devel

Hello Guix,

Here is a work-in-progress to create a service centralizing the configuration
for built-in and loadable kernel modules.  The kernel module configuration
service has been implemented by making some fields from 'operating-system'
custom from the 'services' field.

Here are are some example of how to use it.
--8<---------------cut here---------------start------------->8---
;; Loadable kernel module
(simple-service 'ddcci-module kernel-module-configuration-service-type
                   (list (kernel-module
                          (name "ddcci")
                          (package ddcci-driver-linux)
                          (load? #t)
                          (options '("dyndbg" "delay=600")))
                         (kernel-module
                          (name "ddcci-backlight")
                          (blacklist? #t))))
;; Built-in kernel module
(simple-service 'intel-module
                         kernel-module-configuration-service-type
                         (list (kernel-module
                                (name "i915")
                                (options '("fastboot=1")))))
--8<---------------cut here---------------end--------------->8---

This WIP version is mainly missing the ability to configure built-in modules
trough the kernel arguments. It's the continuation of the work on
kernel-module-loader-service[1] and is needed to help fixing #41082[2].

I will try to go back to it after the GSOC network boot project.

[1]: https://issues.guix.info/40274
[2]: https://issues.guix.info/41082

- Brice

Brice Waegeneire (6):
  services: simulated-wifi: Use 'kernel-module-loader'.
  services: Add 'kernel-profile-service-type'.
  services: Add 'modprobe-service-type'.
  services: kernel-module-loader: Return a single 'shepherd-service'.
  WIP services: Add kernel-arguments-service-type.
  WIP services: Add kernel-module-configuration service.

 gnu/services.scm               | 102 +++++++++---
 gnu/services/linux.scm         | 276 +++++++++++++++++++++++++++++----
 gnu/services/networking.scm    |  25 +--
 gnu/system.scm                 |  55 +++++--
 gnu/system/linux-container.scm |   2 +
 gnu/tests/linux-modules.scm    |  65 +++++---
 6 files changed, 420 insertions(+), 105 deletions(-)

-- 
2.26.2



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

only message in thread, other threads:[~2020-07-04 18:53 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-04 18:52 [WIP 0/6] Add kernel-module-configuration service Brice Waegeneire

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

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).