From 35b84261573d469a01b70ba95614e454d4a6123c Mon Sep 17 00:00:00 2001 From: sys64738 Date: Tue, 17 Aug 2021 21:53:54 +0000 Subject: [PATCH] Update 'Linux kernel modules' --- Linux-kernel-modules.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Linux-kernel-modules.md b/Linux-kernel-modules.md index 5b44272..9f0cf3a 100644 --- a/Linux-kernel-modules.md +++ b/Linux-kernel-modules.md @@ -2,14 +2,14 @@ Currently, 5 modules exist: -* `dmj`: This module is responsible for binding to the [USB vendor interface](USB-config-%26-command-protocol), handling the low-level command transfer protocol, exposing this functionality to the other modules, and auto-loading the other modules when their functionality is available on the device. Not to be used directly. -* `dmj-char` implements a character device driver (`/dev/dmj-*`), exposing the USB vendor interface (in use by the kernel) to userspace. Mainly for use with [`dmctl`](dmctl), not to be used directly. -* `spi-dmj` exposes a SPI controller to the kernel. If the `spidev` module has been loaded (load it using `modprobe`), a `/dev/spidevA.B` device should be available to access the device's SPI bus. -* `i2c-dmj` exposes an I2C controller to the kernel. If the `i2c-dev` module has been loaded (load it using `modprobe`), a `/dev/i2c-BUSNUM` device should be available to access the device's I2C bus. -* `dmj-hwmon` implements the temperature sensor functionality as a Linux hardware monitoring device. Its readout should be available in the output of the `sensors` command, from the `lm_sensors` package. +* `dragonprobe`: This module is responsible for binding to the [USB vendor interface](USB-config-%26-command-protocol), handling the low-level command transfer protocol, exposing this functionality to the other modules, and auto-loading the other modules when their functionality is available on the device. Not to be used directly. +* `dragonprobe-char` implements a character device driver (`/dev/dragonprobe-*`), exposing the USB vendor interface (in use by the kernel) to userspace. Mainly for use with [`dmctl`](dmctl), not to be used directly. +* `spi-dragonprobe` exposes a SPI controller to the kernel. If the `spidev` module has been loaded (load it using `modprobe`), a `/dev/spidevA.B` device should be available to access the device's SPI bus. +* `i2c-dragonprobe` exposes an I2C controller to the kernel. If the `i2c-dev` module has been loaded (load it using `modprobe`), a `/dev/i2c-BUSNUM` device should be available to access the device's I2C bus. +* `dragonprobe-hwmon` implements the temperature sensor functionality as a Linux hardware monitoring device. Its readout should be available in the output of the `sensors` command, from the `lm_sensors` package. ### Compiling and loading the modules The source code of the modules can be found in the `host/modules/` folder in the source tree. A `Makefile` is made available to compile these for the Linux kernel you are currently running. Linux 5.4 and up have been tested to work. -Loading these modules can be done using `sudo insmod .ko`, and unloaded using `sudo rmmod `. Note that all modules depend on the `dmj` module, so the latter one has to be loaded first, and unloaded last. \ No newline at end of file +Loading these modules can be done using `sudo insmod .ko`, and unloaded using `sudo rmmod `. Note that all modules depend on the `dragonprobe` module, so the latter one has to be loaded first, and unloaded last. \ No newline at end of file