はじめに
PW-SH1〜7は有線LANやWi-Fi(無線LAN)を搭載していないため、USBでネットワークデバイスを接続する必要がある。
標準で使えるものと、そうでないものがあるので、個人的に試したものを備忘録としてメモを残しておく。
Brainuxに関する過去の記事はこちら
環境
実機
- PW-HC4
- OS: brainux
- SoC: Freescale MXS
- Kernel: Linux 5.4.149
- 有線LAN
- AX88772BLF (10/100Mbps) 標準サポート
- NX7202D (10/100Mbps) 標準サポート
- Corega FEther USB-TXC (10/100Mbps) カーネルビルド要
- RTL8153 (10/100/1000Mbps) 標準サポート
- 無線LAN
- RTL8188CUS (RTL8192CU) (802.11b/g/n) カーネルビルド要
動作確認
デバイスの認識
AX88772BLF (10/100Mbps) 標準サポート
lsusb
Bus 001 Device 003: ID 0b95:772b ASIX Electronics Corp. AX88772B
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
lsusb -t
/: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=ci_hdrc/1p, 480M
|__ Port 1: Dev 3, If 0, Class=Vendor Specific Class, Driver=asix, 480M
ifconfig
enx0080808a41fc: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.3.35 netmask 255.255.255.0 broadcast 192.168.3.255
inet6 fe80::c4bd:bb13:5c02:f579 prefixlen 64 scopeid 0x20<link>
inet6 2400:2410:d461:3100:bdd8:e3b5:80e6:2814 prefixlen 64 scopeid 0x0<global>
ether 00:80:80:8a:41:fc txqueuelen 1000 (Ethernet)
RX packets 93 bytes 9047 (8.8 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 106 bytes 15451 (15.0 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
USBネットワークデバイス: NX7202D (10/100Mbps) 標準サポート
lsusb
Bus 001 Device 002: ID 35b5:3500 Naxiang SZNX LAN 100M
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
lsusb -t
/: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=ci_hdrc/1p, 480M
|__ Port 1: Dev 2, If 0, Class=Communications, Driver=cdc_ether, 480M
|__ Port 1: Dev 2, If 1, Class=CDC Data, Driver=cdc_ether, 480M
ifconfig
enxec9a0c1a5ec8: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.3.6 netmask 255.255.255.0 broadcast 192.168.3.255
inet6 2400:2410:d461:3100:5bbf:5d06:6f77:ce0c prefixlen 64 scopeid 0x0<global>
inet6 fe80::ee9a:cff:fe1a:5ec8 prefixlen 64 scopeid 0x20<link>
inet6 2400:2410:d461:3100:ee9a:cff:fe1a:5ec8 prefixlen 64 scopeid 0x0<global>
ether ec:9a:0c:1a:5e:c8 txqueuelen 1000 (Ethernet)
RX packets 662 bytes 94231 (92.0 KiB)
RX errors 0 dropped 156 overruns 0 frame 0
TX packets 220 bytes 28423 (27.7 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
Corega FEther USB-TXC (10/100Mbps) カーネルビルド要
RTL8153 (10/100/1000Mbps) 標準サポート
lsusb
Bus 001 Device 005: ID 0bda:8153 Realtek Semiconductor Corp. RTL8153 Gigabit Ethernet Adapter
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
lsusb -t
/: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=ci_hdrc/1p, 480M
|__ Port 1: Dev 5, If 0, Class=Vendor Specific Class, Driver=r8152, 480M
ifconfig
enx00e04c134740: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.3.14 netmask 255.255.255.0 broadcast 192.168.3.255
inet6 fe80::3b2b:bde5:3e0c:5c3e prefixlen 64 scopeid 0x20<link>
inet6 2400:2410:d461:3100:f397:673f:5893:aaf6 prefixlen 64 scopeid 0x0<global>
ether 00:e0:4c:13:47:40 txqueuelen 1000 (Ethernet)
RX packets 153 bytes 15843 (15.4 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 128 bytes 17442 (17.0 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
RTL8188CUS (RTL8192CU) (802.11b/g/n) カーネルビルド要