0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Ultra96V2(debian)への有線LANをUSB接続したメモ

Last updated at Posted at 2021-04-03

接続機器

例によって@ikwzm氏のDebianイメージでの環境構築です。
接続したのは手元にあった USB-LAN100R となります。

ドライバインストール

realtekからドライバをダウンロード
https://www.realtek.com/ja/component/zoo/category/network-interface-controllers-10-100-1000m-gigabit-ethernet-usb-3-0-software

rootで入って

tar xvf r8152.53.56-2.12.0.tar
cd r8152_2.12.0/
make modules
make install
INSTALL /home/ryuji/downloads/r8152_2.12.0/r8152.ko
DEPMOD  4.19.0-xlnx-v2019.2-zynqmp-fpga
Warning: modules_install: missing 'System.map' file. Skipping depmod.
make[1]: Leaving directory '/usr/src/linux-headers-4.19.0-xlnx-v2019.2-zynqmp-fpga'
modprobe r8152
modprobe: FATAL: Module r8152 not found in directory /lib/modules/4.19.0-xlnx-v2019.2-zynqmp-fpga
make: *** [Makefile:42: install] Error 1

というエラーが出ましたが

sudo depmod -A

したところ通ったようです。

ところが
dmesg | grep eth

[    0.000000] psci: probing for conduit method from DT.
[    2.480750] usbcore: registered new interface driver cdc_ether
[   12.056114] r8152 1-1.1:1.0 eth0: v2.12.0 (2019/04/29)
[   12.061266] r8152 1-1.1:1.0 eth0: This product is covered by one or more of the following patents:
[   12.245177] r8152 1-1.1:1.0 enxXXXXXXXXXXXX: renamed from eth0

で、名前が enxXXXXXXXXXXXX (XX部分はMACアドレス) になってしまったので

こちらを参考にさせて頂いて

/lib/udev/rules.d/73-usb-net-by-mac.rules

の NAME="$env{ID_NET_NAME_MAC}" 部分を NAME="eth0" に書き換えてリブートしたところ無事ネットワークにつながりました。

後日追記

2019.2にバージョンアップして再ビルドしたところ make install で

Warning: modules_install: missing 'System.map' file. Skipping depmod.

と言われましたが、depmod を実行したら解決したようです。

おしらせ

2020/10/30 にて Qrunch がサービス終了したので移転してきた記事となります。
一時退避場所:https://github.com/ryuz/qrunch_blog

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?