📖

RTL8125のデバイスドライバーをインストール

に公開

前提

内蔵ドライブから起動した場合ネットワークが繋がらないが、ライブイメージから起動するとネットワークが使える状況

mount

ライブイメージから起動して作業する。

# dir=/mnt/foo
# mkdir $dir 
# mount /dev/bar $dir

ドライバーのソースコード配置

下のURLからソースコードをDLして対象内の適当なディレクトリに置く。
https://www.realtek.com/Download/List?cate_id=584

chroot

# mount --rbind /dev $dir/dev
# mount --rbind /sys $dir/sys
# mount -t proc none $dir/proc
# chroot $dir /bin/bash

必要なパッケージのインストール

chrootした端末で以下のようにする。

# ll /boot/vmlinuz
lrwxrwxrwx 1 root root 24  9月 13 20:32 /boot/vmlinuz -> vmlinuz-6.8.0-78-generic
# apt-get update
# apt-get install build-essential linux-headers-6.8.0-78-generic #上で得たバージョンのheaderをインストール

ドライバーのインストール

シャットダウンして、内蔵ドライブから起動した後以下のようにする。

$ cd /path/to/dir
$ tar jxf r8125-9.016.01.tar.bz2
$ cd r8125-9.016.01
$ sudo ./autorun.sh

参考文献

https://matsuu.hatenablog.com/entry/20101225/1293262061
https://qiita.com/bunnyhopper_isolated/items/40aea93b72fb11a0d6a0

Discussion