[Linux]
Ryzen 5 3600 + B550M Steel Legend
トラブルなどをまとめる
NICのドライバがない
起動時にNICのドライバがないためにsystemdのnetworking.serviceが開始できず、リカバリモードで起動。
とりあえずUSB-LAN変換ケーブルで外部ネットワークと通信。
- NICの調べ方
$ sudo lspci | grep Ethernet 06:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. Device 8125 (rev 05)
Realtekの8125というやつらしい
Realtek 8125を使えるようにする
Realtek 8125 NIC をCentOS8で動かす を参考に
- Realtek PCIe FE / GBE / 2.5G / Gaming Ethernet Family Controller Software
- 上記の2.5G Ethernet LINUX driver r8125 for kernel up to 5.6 をDL
$ cd ~/Downloads/ $ tar xvf r8125-9.005.01.tar.bz2 $ cd r8125-9.005.01/ $ sudo ./autorun.sh $ sudo depmod -a
Realtek 8125をDKMSに登録して自動で配備
kernel update時にRealtek 8125 NICのドライバを自動コンパイルする
// ドライバのソースコードを/usr/srcへ移動 $ tar xvf r8125-9.005.01.tar.bz2 $ sudo mv r8125-9.005.01 /usr/src // vim /usr/src/r8125-9.005.01/src/Makefile - BASEDIR := /lib/modules/$(shell uname -r) + BASEDIR := /lib/modules/$(KVER) // dkms.confの作成 $ cat /usr/src/r8125-9.005.01/dkms.conf PACKAGE_NAME="r8125" PACKAGE_VERSION="9.005.01" BUILT_MODULE_LOCATION[0]="src" BUILT_MODULE_NAME[0]="r8125" MAKE[0]="'make' KVER=${kernelver} modules" CLEAN="make clean" DEST_MODULE_LOCATION[0]="/updates/dkms" AUTOINSTALL="yes" // DKMSへの追加、ビルド、インストール $ sudo dkms add -m r8125 -v 9.005.01 Creating symlink /var/lib/dkms/r8125/9.005.01/source -> /usr/src/r8125-9.005.01 DKMS: add completed. $ sudo dkms build -m r8125 -v 9.005.01 Kernel preparation unnecessary for this kernel. Skipping... Building module: cleaning build area...(bad exit status: 2) 'make' KVER=4.19.0-13-amd64 modules.... cleaning build area...(bad exit status: 2) DKMS: build completed. $ sudo dkms install -m r8125 -v 9.005.01 r8125.ko: Running module version sanity check. Good news! Module version 9.005.01-NAPI for r8125.ko exactly matches what is already found in kernel 4.19.0-13-amd64. DKMS will not replace this module. You may override by specifying --force. depmod... DKMS: install completed.
ZENカーネルを使用する
最適な性能を得るには linux-zen カーネルをインストールします。Linux ZEN はあらゆるプロセッサで優れた速度と安定性を提供します。デフォルトカーネルと同じ電力を消費するためデスクトップで使用する場合のみ推奨です。