ようへいの日々精進XP

よかろうもん

Ubuntu に AX88179 ドライバを組み込む

はじめに

LogitechLAN-GTJU3H3 という Gigabit Ethernet ポートと USB 3.0 が 3 ポートがコンボになった USB ハブを入手したので Ubuntu 13.04 で利用してみる。


ちなみに AX88179 とは

AX88179 とは台湾の ASIX が製造する USB3.0 の Gigabit Ethernet アダプタ。


試した環境


dmesg

USB ハブを ThinkPad X1 Carbon の USB ポートに挿して dmesg を確認すると以下のような出力となった。

[284988.495023] usb 4-2: new SuperSpeed USB device number 2 using xhci_hcd
[284988.512445] usb 4-2: New USB device found, idVendor=2109, idProduct=0812
[284988.512455] usb 4-2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[284988.512460] usb 4-2: Product: USB 3.0 HUB
[284988.512460]
[284988.512466] usb 4-2: Manufacturer: VLI Labs, Inc.
[284988.514131] hub 4-2:1.0: USB hub found
[284988.514242] hub 4-2:1.0: 4 ports detected
[284988.682620] usb 3-2: new high-speed USB device number 2 using xhci_hcd
[284988.700243] usb 3-2: New USB device found, idVendor=2109, idProduct=2811
[284988.700258] usb 3-2: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[284988.700268] usb 3-2: Product: USB 2.0 HUB
[284988.700268]
[284988.701044] hub 3-2:1.0: USB hub found
[284988.701236] hub 3-2:1.0: 4 ports detected
[284988.887419] usb 4-2.4: new SuperSpeed USB device number 3 using xhci_hcd
[284988.910072] usb 4-2.4: New USB device found, idVendor=0b95, idProduct=1790
[284988.910086] usb 4-2.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[284988.910096] usb 4-2.4: Product: AX88179
[284988.910105] usb 4-2.4: Manufacturer: ASIX Elec. Corp.
[284988.910113] usb 4-2.4: SerialNumber: 003495DB0430A1
[285888.220145] usb 4-2.4: USB disconnect, device number 3
[285888.223861] usb 4-2.4: Failed to set U1 timeout to 0x0,error code -71
[285888.223879] usb 4-2.4: Set SEL for device-initiated U1 failed.
[285888.223886] usb 4-2.4: Set SEL for device-initiated U2 failed.
[285888.229293] usb 4-2: Disable of device-initiated U1 failed.
[285888.232819] usb 4-2: Disable of device-initiated U2 failed.
[285888.286219] hub 4-2:1.0: set hub depth failed
[285888.489888] hub 4-2:1.0: hub_port_status failed (err = -19)
[285888.489902] hub 4-2:1.0: hub_port_status failed (err = -19)
[285888.489908] hub 4-2:1.0: hub_port_status failed (err = -19)
[285888.489912] hub 4-2:1.0: hub_port_status failed (err = -19)
[285888.489917] hub 4-2:1.0: activate --> -19
[285888.489946] usb 4-2: USB disconnect, device number 2
[285888.490909] usb 3-2: USB disconnect, device number 2
[285896.307943] usb 4-2: new SuperSpeed USB device number 4 using xhci_hcd
[285896.325426] usb 4-2: New USB device found, idVendor=2109, idProduct=0812
[285896.325437] usb 4-2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[285896.325443] usb 4-2: Product: USB 3.0 HUB
[285896.325443]
[285896.325449] usb 4-2: Manufacturer: VLI Labs, Inc.
[285896.327348] hub 4-2:1.0: USB hub found
[285896.327455] hub 4-2:1.0: 4 ports detected
[285896.495493] usb 3-2: new high-speed USB device number 3 using xhci_hcd
[285896.513320] usb 3-2: New USB device found, idVendor=2109, idProduct=2811
[285896.513330] usb 3-2: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[285896.513336] usb 3-2: Product: USB 2.0 HUB
[285896.513336]
[285896.513934] hub 3-2:1.0: USB hub found
[285896.514094] hub 3-2:1.0: 4 ports detected
[285896.700204] usb 4-2.4: new SuperSpeed USB device number 5 using xhci_hcd
[285896.721798] usb 4-2.4: New USB device found, idVendor=0b95, idProduct=1790
[285896.721813] usb 4-2.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[285896.721821] usb 4-2.4: Product: AX88179
[285896.721829] usb 4-2.4: Manufacturer: ASIX Elec. Corp.
[285896.721836] usb 4-2.4: SerialNumber: 003495DB0430A1

USB HUB としては認識されているようだが、この時点では Gigabit Ethernet のポートは利用出来ない。しかし Product: AX88179 とあるのでこのドライバを組み込めば使えるかもしれない。


AX88179 ドライバを組み込む

ググったらこちらの情報がヒットしたのでそのまま鵜呑みにした。

リポジトリの登録

sudo apt-get install python-software-properties
sudo add-apt-repository ppa:qji/ax88179

ドライバのインストール

sudo apt-get install ax88179

実行すると以下のようにドライバパッケージをインストール後、カーネルに組み込まれている。

パッケージリストを読み込んでいます... 完了
依存関係ツリーを作成しています
状態情報を読み取っています... 完了
以下のパッケージが新たにインストールされます:
  ax88179
アップグレード: 0 個、新規インストール: 1 個、削除: 0 個、保留: 54 個。
47.4 kB のアーカイブを取得する必要があります。
この操作後に追加で 243 kB のディスク容量が消費されます。
取得:1 http://ppa.launchpad.net/qji/ax88179/ubuntu/ raring/main ax88179 all 1.6.0-0 [47.4 kB]
47.4 kB を 1秒 で取得しました (29.1 kB/s)
以前に未選択のパッケージ ax88179 を選択しています。
(データベースを読み込んでいます ... 現在 232363 個のファイルとディレクトリがインストールされています。)
(.../ax88179_1.6.0-0_all.deb から) ax88179 を展開しています...
ax88179 (1.6.0-0) を設定しています ...

Creating symlink /var/lib/dkms/ax88179_178a/1.6.0/source ->
                 /usr/src/ax88179_178a-1.6.0

DKMS: add completed.

Kernel preparation unnecessary for this kernel.  Skipping...

Building module:
cleaning build area....
make KERNELRELEASE=3.8.0-30-generic.....
cleaning build area....

DKMS: build completed.

ax88179_178a:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/3.8.0-30-generic/updates/dkms/

depmod.....

Backing up initrd.img-3.8.0-30-generic to /boot/initrd.img-3.8.0-30-generic.old-dkms
Making new initrd.img-3.8.0-30-generic
(If next boot fails, revert to initrd.img-3.8.0-30-generic.old-dkms image)
update-initramfs....

DKMS: install completed.
initramfs-tools のトリガを処理しています ...
update-initramfs: Generating /boot/initrd.img-3.8.0-30-generic

確認

ドライバを組み込んだ後の dmesg は下記のようになった。

[285897.109155] ASIX USB Ethernet Adapter:v1.6.0 11:12:50 Oct 16 2013
[285897.109155]                 http://www.asix.com.tw
[285897.109176] ax88179_178a 4-2.4:1.0 (unregistered net_device): mtu 1500
[285897.109777] ax88179_178a 4-2.4:1.0 eth0: register 'ax88179_178a' at usb-0000:00:14.0-2.4, ASIX AX88179 USB 3.0 Gigibit Ethernet, 34:95:db:04:30:a1
[285897.111099] usbcore: registered new interface driver ax88179_178a
[285897.499912] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[285897.502771] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[285929.215580] ax88179_178a 4-2.4:1.0 eth0: ax88179_178a - Link status is: 1
[285929.217398] ax88179_178a 4-2.4:1.0 eth0: Write medium type: 0x013f
[285929.218312] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[285929.220122] ax88179_178a 4-2.4:1.0 eth0: link up, 1000Mbps, full-duplex, lpa 0xC5E1
[285946.728801] ax88179_178a 4-2.4:1.0 eth0: ax88179_178a - Link status is: 0

最後に

  • 簡単につかえて良かった、良かった
  • Linux で使えそうなものを dmesg で確認してドライバをググって探してインストールするという手順を久々に思い出しましたとさ