EZ482に載ってたLANポートがGbEにならない

この記事は2年以上前に書いたものです。
そのため情報が古い可能性があります。ご了承ください。m(_ _)m

EZ482は、かなり前に購入した小さいベアボーン。それに、入れて使ってる。
自宅のLAN環境を化しようと、安いハブCG-SW05GTPLX(3,500円くらい)を購入したんだけど、何故か100MbpsでしかLink Upしない。

% uname -a
prime 2.6.26-2-amd64 #1 SMP Thu Nov 5 02:23:12 UTC 2009 x86_64 GNU/Linux

% lspci | grep Ether
02:00.0 Ethernet controller: Marvell Technology Group Ltd. 88E8053 PCI-E Gigabit Ethernet Controller (rev 22)

Auto-NegotiationをOFFにして、手動で速度を1000Mbpsに。
% sudo ethtool -s eth0 speed 1000 duplex full autoneg off

すると、Link Downする。
Auto-NegotiationをONにすると、Link Upするけど、速度が100Mbpsになる。

ethtoolで見ると、
% sudo ethtool eth0
Settings for eth0:
Supported ports: [ TP ]
Supported link modes:   10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Half 1000baseT/Full
Supports auto-negotiation: Yes
Advertised link modes:  10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Half 1000baseT/Full
Advertised auto-negotiation: Yes
Speed: 100Mb/s
Duplex: Full
Port: Twisted Pair
PHYAD: 0
Transceiver: internal
Auto-negotiation: on
Supports Wake-on: g
Wake-on: g
Link detected: yes

CG-SW05GTPLX
と相性が悪いとかかな?

sky2.koが悪い場合が有るとか誰かが言ってたので、
ドライバを入れ替えてみる。

ドライバをコンパイルするときにKernelのソースが必要になるので、
# aptitude install linux-source
# cd /usr/src
# tar jxf linux-source-2.6.26.tar.bz2
# ln -s /usr/src/linux-source-2.6.26 /lib/modules/2.6.26-2-amd64/source
# mkdir ~/tmp
# cd ~/tmp

http://www.marvell.com/drivers/search.do
で、 Control、Linux Kernel 2.4.20 and Higherを選んで、
sbumit ・・・ Linux_10.81.6.3.zipをダウンロード。

# unzip Linux_10.81.6.3.zip
# tar jxvf install_v10.81.6.3.tar.bz2
# cd DriverInstall

archコマンドが無いと言われるので、uname -m叩くだけのスクリプトを作った。
どのパッケージに入ってるか分からなかったので。。
# cat arch
#!/bin/sh

uname -m

# PATH=$PATH:.
# ./install.sh
・・・
1) installation
2) generate patch
3) exit
Choose your favorite installation method: 1
・・・
1) Do nothing
2) Deactivate diver
3) Remove driver
Action: 1
・・・
All done. Driver installed and loaded.
To load the module manually, proceed as follows:
Enter “modprobe sk98lin”

# ifconfig eth0 down
# modprobe -r sky2
# modprobe sk98lin
insmod /lib/modules/2.6.26-2-amd64/kernel/drivers/net/sk98lin/sk98lin.ko
[24184.972861] sk98lin: Network Device Driver v10.81.6.3
[24184.972863] (C)Copyright 1999-2009 Marvell(R).
[24184.972932] PCI: Setting latency timer of device 0000:02:00.0 to 64
[24185.029875] eth0: Marvell Yukon 88E8053 Gigabit Ethernet Controller
[24185.029900]       PrefPort:A  RlmtMode:Check Link State
[24185.068063] ADDRCONF(NETDEV_UP): eth0: link is not ready
[24196.024013] eth0: — INFORMATION —
[24196.024013]         Msg:  2 Pair Downshift detected
[24196.024013] eth0: network connection up using port A
[24196.024013]     interrupt src:   INTx
[24196.024013]     speed:           100
[24196.024013]     autonegotiation: yes
[24196.024013]     duplex mode:     full
[24196.024013]     flowctrl:        symmetric
[24196.024013]     tcp offload:     enabled
[24196.024013]     scatter-gather:  enabled
[24196.024013]     tx-checksum:     enabled
[24196.024013]     rx-checksum:     enabled
[24196.024013]     rx-polling:      enabled

う~ん・・・
[24196.024013]         Msg:  2 Pair Downshift detected
なんで?

カテゴリー: ハードウェア タグ: , , , , パーマリンク

コメントを残す

メールアドレスが公開されることはありません。 が付いている欄は必須項目です