# setup for building modules (in Debian/Ubuntu land):
sudo apt install build-essential
sudo apt install linux-headers-$(uname -r)
# build and install new modules:
git clone https://github.com/walshb/framework_linux_ec
cd framework_linux_ec/src
make
sudo make insmod
Edit: this only installs the modules in memory, so they will not be running after a reboot. See the README.md for more information.
Edit 2: Builds and installs fine with kernel >= 6.5. I’ve built successfully on a different machine with kernel == 6.2.0. I doubt it will build on kernels before 6.0.
Update: I’ve been running ectool in a tight loop to test, and after a few hundred iterations it would read incorrect data from the EC.
I found a place in the upstream Linux kernel that was missing a lock. Fixed, and pushed to github.
Looks a lot better now. Currently at 85K runs of ectool, and no errors.
Another update: I have rebased my changes upon the AMD Framework code from @DHowett , and pushed to the github repo I mentioned above.
So now the modules should work with AMD-powered Framework laptops.