You are not logged in.
Dear users,
this is a follow up to the problem reported by timothychare in the thread: https://bbs.archlinux.org/viewtopic.php?id=257114. It doesn't appear that he started a discussion for the issue he raised in the thread, which is what I am doing here.
The original problem was, as out of kernel 5.8.1, the driver for the Ethernet network card Realtek RTL8125 2.5GbE is not included in the kernel nor in a official Arch package. User Rumcajs reported a solution to install the AUR package: https://aur.archlinux.org/packages/r8125/ , further aliased in https://aur.archlinux.org/packages/r8125-dkms .
The AUR package provides two archives r8125 and r8125-dkms, which are in conflict with each other:
package_r8125() {
# Install
_kernver=$(</usr/src/linux/version)
msg2 "Starting make install..."
install -Dt "${pkgdir}/usr/lib/modules/${_kernver}/extramodules" -m644 "${_pkgbase}-${pkgver}/src/r8125.ko"
find "${pkgdir}" -name '*.ko' -exec gzip -n {} +
}
package_r8125-dkms() {
pkgdesc="r8125 kernel driver sources for linux"
depends=('dkms')
optdepends=('linux-headers: Build the module for Arch kernel'
'linux-lts-headers: Build the module for LTS Arch kernel')
provides=("8125=$pkgver")
conflicts+=(r8125)
# Copy dkms.conf
install -Dm644 dkms.conf "${pkgdir}"/usr/src/${_pkgbase}-${pkgver}/dkms.conf
# Set name and version
sed -e "s/@_PKGBASE@/${_pkgbase}/" \
-e "s/@PKGVER@/${pkgver}/" \
-i "${pkgdir}"/usr/src/${_pkgbase}-${pkgver}/dkms.conf
# Copy sources (including Makefile)
cp -r ${_pkgbase}-${pkgver}/* "${pkgdir}"/usr/src/${_pkgbase}-${pkgver}/
}
Question #1 What's the difference between these two?
Question #2 Rumcajs suggested in the solution to install the dkms version, which I also believe it needs to be rebuilt everytime the kernel is updated. Is there a way to automatically ensure that?
Thanks,
Atari
Offline
Have you read DKMS?
Offline
Ensure? No. But I've never had a problem with either of my dkms drivers being automatically built into either my linux-zen or linux-lts kernels when the kernel(s) or driver(s) update. I also pay very close attention to my updates.
Offline
Does it mean that pacman already takes care of saving the sources somewhere and rebuild the module when a new kernel is available ? That is, there is nothing to do from my side?
Is this the only difference between the non-dkms and the dkms version of that package?
I tried an update of the kernel, according to pacman it ended in error:
(2/2) Remove DKMS modules
==> dkms remove --no-depmod -m r8125 -v 9.003.05 -k 5.8.1-arch1-1
==> depmod 5.8.1-arch1-1
...
(11/15) Install DKMS modules
==> dkms install --no-depmod -m r8125 -v 9.003.05 -k 5.8.3-arch1-1
Error! Build of r8125.ko failed for: 5.8.3-arch1-1 (x86_64)
Consult the make.log in the build directory
/var/lib/dkms/r8125/9.003.05/build/ for more information.
==> Warning, `dkms install --no-depmod -m r8125 -v 9.003.05 -k 5.8.3-arch1-1' returned 7
==> depmod 5.8.3-arch1-1
But then the make.log seems okay:
DKMS make.log for r8125-9.003.05 for kernel 5.8.3-arch1-1 (x86_64)
Sun 23 Aug 18:55:57 CEST 2020
make: Entering directory '/usr/lib/modules/5.8.3-arch1-1/build'
CC [M] /usr/src/r8125-9.003.05/src/r8125_n.o
CC [M] /usr/src/r8125-9.003.05/src/rtl_eeprom.o
CC [M] /usr/src/r8125-9.003.05/src/rtltool.o
LD [M] /usr/src/r8125-9.003.05/src/r8125.o
MODPOST /usr/src/r8125-9.003.05/src/Module.symvers
CC [M] /usr/src/r8125-9.003.05/src/r8125.mod.o
LD [M] /usr/src/r8125-9.003.05/src/r8125.ko
make: Leaving directory '/usr/lib/modules/5.8.3-arch1-1/build'
# dkms status
r8125, 9.003.05: added
Thanks,
Atari
Offline
Do you have the kernel header files installed? Ie- I have linux-zen-headers and linux-lts-headers installed for my linux-zen and linux-lts kernels.
Offline