|
2.准备编译环境:
sudo apt-get install --reinstall linux-headers-$(uname -r) linux-headers-generic build-essential dkms
3.解压对应的源码到/usr/src:
sudo tar xvf r8125-9.011.00.tar.bz2 -C /usr/src
4.添加一个dkms.conf到/usr/src/r8125-9.011.00/dkms.conf,内容如下:
PACKAGE_NAME=Realtek_r8125
PACKAGE_VERSION=9.011.00
DEST_MODULE_LOCATION=/updates/dkms
BUILT_MODULE_NAME=r8125
BUILT_MODULE_LOCATION=src/
MAKE="'make' -C src/ all"
CLEAN="'make' -C src/ clean"
AUTOINSTALL="yes"
|
|