Skip to content

ferdiu/ec_sys-kmod

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ec_sys-kmod

Overview

ec_sys-kmod provides an RPM packaging setup for the ec_sys kernel module. The ec_sys module enables debugging and writing to the Embedded Controller (EC) through the ACPI interface. This repository contains the necessary spec files to build RPM packages for this kernel module.

Repository Contents

  • ec_sys-kmod-common.spec: Defines the common files required for the ec_sys kernel module, including configuration files and documentation.
  • ec_sys-kmod.spec: Defines the kernel module build process, including dependencies and module-specific configurations.

Building the RPMs

To build the RPM packages, follow these steps:

  1. Clone this repository:

    git clone https://github.com/ferdiu/ec_sys-kmod.git
    cd ec_sys-kmod
  2. Download the source archive:

    spectool -g -R ec_sys-kmod.spec
  3. Link the spec files:

    ln -s $(realpath ./ec_sys-kmod-common.spec) $(rpm --eval %_topdir)/SPECS/ec_sys-kmod-common.spec
    ln -s $(realpath ./ec_sys-kmod.spec) $(rpm --eval %_topdir)/SPECS/ec_sys-kmod.spec
  4. Install dependencies:

    sudo dnf install -y rpm-build kernel-devel koji kmodtool rustfmt
  5. Build the RPM packages:

    rpmbuild -bb ec_sys-kmod-common.spec
    rpmbuild -bb ec_sys-kmod.spec
  6. Remove created links (optional):

    rm $(rpm --eval %_topdir)/SPECS/ec_sys-kmod-common.spec
    rm $(rpm --eval %_topdir)/SPECS/ec_sys-kmod.spec

Installation

Once the RPMs are built, you can install them using:

sudo dnf install $(rpm --eval %_topdir)/RPMS/noarch/ec_sys-kmod-common-*.rpm
sudo dnf install $(rpm --eval %_topdir)/RPMS/$(rpm --eval %_arch)/ec_sys-kmod-*.rpm

Note: change the path to the RPMs if necessary.

Usage

After installation, load the ec_sys module with:

sudo modprobe ec_sys write_support=1

To verify the module is loaded:

lsmod | grep ec_sys

License

This project is licensed under the MIT and GPLv2 licenses. See the LICENSE file for details: the module it-self is licensed under the GPLv2 license and the rest of the code is licensed under the MIT license.

Maintainer

Contributors

  • Kris: add support for Ultramarine Linux (and potentially any other Fedora-based distros)

Changelog

v1.0 (Feb 12, 2025)

  • Initial release

About

Build ec_sys kernel module against Fedora kernels

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors