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.
ec_sys-kmod-common.spec: Defines the common files required for theec_syskernel module, including configuration files and documentation.ec_sys-kmod.spec: Defines the kernel module build process, including dependencies and module-specific configurations.
To build the RPM packages, follow these steps:
-
Clone this repository:
git clone https://github.com/ferdiu/ec_sys-kmod.git cd ec_sys-kmod -
Download the source archive:
spectool -g -R ec_sys-kmod.spec
-
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
-
Install dependencies:
sudo dnf install -y rpm-build kernel-devel koji kmodtool rustfmt
-
Build the RPM packages:
rpmbuild -bb ec_sys-kmod-common.spec rpmbuild -bb ec_sys-kmod.spec
-
Remove created links (optional):
rm $(rpm --eval %_topdir)/SPECS/ec_sys-kmod-common.spec rm $(rpm --eval %_topdir)/SPECS/ec_sys-kmod.spec
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-*.rpmNote: change the path to the RPMs if necessary.
After installation, load the ec_sys module with:
sudo modprobe ec_sys write_support=1To verify the module is loaded:
lsmod | grep ec_sysThis 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.
- Kris: add support for Ultramarine Linux (and potentially any other Fedora-based distros)
- Initial release