Skip to content

Instantly share code, notes, and snippets.

@jeschkies
Created July 27, 2020 08:53
Show Gist options
  • Save jeschkies/40977326f492fddbb19f0da246726f3b to your computer and use it in GitHub Desktop.
Save jeschkies/40977326f492fddbb19f0da246726f3b to your computer and use it in GitHub Desktop.
DKMS
DKMS make.log for r8125-9.001.00 for kernel 5.6.6-300.fc32.x86_64 (x86_64)
Mon 27 Jul 2020 10:36:34 AM CEST
make: Entering directory '/var/lib/dkms/r8125/9.001.00/build/src'
make -C /lib/modules/5.6.6-300.fc32.x86_64/build SUBDIRS=/var/lib/dkms/r8125/9.001.00/build/src clean
make[1]: Entering directory '/usr/src/kernels/5.6.6-300.fc32.x86_64'
scripts/Makefile.clean:15: Documentation/Makefile: No such file or directory
make[2]: *** No rule to make target 'Documentation/Makefile'. Stop.
make[1]: *** [Makefile:1690: _clean_Documentation] Error 2
make[1]: Leaving directory '/usr/src/kernels/5.6.6-300.fc32.x86_64'
make: *** [Makefile:98: clean] Error 2
make: Leaving directory '/var/lib/dkms/r8125/9.001.00/build/src'
@gferon
Copy link

gferon commented Jul 27, 2020

so, I managed to make it worked with the following (as root):

# important, since you need the /usr/src/... folder to be populated and not just `/usr/include/linux for the current kernel
dnf install kernel-devel-$(uname -r)

git clone https://github.com/ibmibmibm/r8125/ /usr/src/r8125-9.003.05
dkms add -m r8125 -v 9.003.05
dkms build -m r8125 -v 9.003.05  # I had to run this command twice, as it looks like something is wrong with the driver's Makefile
dkms install -m r8125 -v 9.003.05

contents of dkms.conf:

PACKAGE_NAME="r8125"
PACKAGE_VERSION="9.003.05"
MAKE="make -C $kernel_source_dir M=$source_tree/r8125-9.003.05/src modules"
CLEAN="make -C $kernel_source_dir M=$source_tree/r8125-9.003.05/src clean"
BUILT_MODULE_NAME[0]="r8125"
BUILT_MODULE_LOCATION[0]="src"
DEST_MODULE_LOCATION[0]="/kernel/drivers/net/ethernet/realtek"
AUTOINSTALL="yes"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment