CONTENTS
#contents
----
Lastmodified &lastmod;
----
*em0 trouble [#ea155163]

NEC Express5800 の onboard em(4)が落ちるので、ドライバーを最新版にしてみる。

 blackhole# pciconf -l -v
 hostb0@pci0:0:0:0:      class=0x060000 card=0x83891033 chip=0x00408086 rev=0x02 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = 'Core Processor DRAM Controller'
    class      = bridge
    subclass   = HOST-PCI
 vgapci0@pci0:0:2:0:     class=0x030000 card=0x83891033 chip=0x00428086 rev=0x02 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = 'Core Processor Integrated Graphics Controller'
    class      = display
    subclass   = VGA
 em0@pci0:0:25:0:        class=0x020000 card=0x83891033 chip=0x10ef8086 rev=0x06 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = '82578DM Gigabit Network Connection'
    class      = network
    subclass   = ethernet

 Jan 31 06:39:34 blackhole kernel: Trying to mount root from zfs:zroot []...
 Jan 31 06:39:36 blackhole kernel: blanktime.
 Jan 31 06:39:36 blackhole kernel: fxp0: link state changed to UP
 Jan 31 06:39:37 blackhole kernel: em0: link state changed to UP
 Feb  3 01:35:07 blackhole kernel: em0: watchdog timeout: head = 82, tail = 125 -- resetting
 Feb  3 01:35:07 blackhole kernel: em0: link state changed to DOWN
 Feb  3 01:35:10 blackhole kernel: em0: link state changed to UP
 Feb  3 01:35:16 blackhole kernel: em0: watchdog timeout: head = 0, tail = 2 -- resetting
 Feb  3 01:35:16 blackhole kernel: em0: link state changed to DOWN
 Feb  3 01:35:19 blackhole kernel: em0: link state changed to UP

blackhole# cat /var/log/all.log
 Jan 15 00:14:38 blackhole kernel: em0: Watchdog timeout -- resetting
 Jan 15 00:14:38 blackhole kernel: em0: Queue(0) tdh = 0, hw tdt = 2
 Jan 15 00:14:38 blackhole kernel: em0: TX(0) desc avail = 1022,Next TX to Clean = 0
 Jan 15 00:15:00 blackhole /usr/sbin/cron[34777]: (root) CMD (/usr/libexec/atrun)
 Jan 15 00:20:00 blackhole /usr/sbin/cron[34782]: (root) CMD (/usr/libexec/atrun)
 Jan 15 00:22:00 blackhole /usr/sbin/cron[34784]: (operator) CMD (/usr/libexec/save-entropy)
 Jan 15 00:24:38 blackhole kernel: em0: Watchdog timeout -- resetting
 Jan 15 00:24:38 blackhole kernel: em0: Queue(0) tdh = 0, hw tdt = 2
 Jan 15 00:24:38 blackhole kernel: em0: TX(0) desc avail = 1022,Next TX to Clean = 0
 Jan 15 00:25:00 blackhole /usr/sbin/cron[34808]: (root) CMD (/usr/libexec/atrun)

blackhole# cat /var/log/messages

 Jan 15 02:49:51 blackhole kernel: uhub2: 8 ports with 8 removable, self powered
 Jan 15 02:49:51 blackhole kernel: Trying to mount root from zfs:zroot []...
 Jan 15 02:49:52 blackhole kernel: .
 Jan 15 02:49:53 blackhole kernel: blanktime.
 Jan 15 02:49:54 blackhole kernel: em0: link state changed to UP
 Jan 17 00:32:43 blackhole kernel: em0: Watchdog timeout -- resetting
 Jan 17 00:32:43 blackhole kernel: em0: Queue(0) tdh = 192, hw tdt = 229
 Jan 17 00:32:43 blackhole kernel: em0: TX(0) desc avail = 984,Next TX to Clean = 189
 Jan 17 11:35:09 blackhole kernel: em0: Watchdog timeout -- resetting
 Jan 17 11:35:09 blackhole kernel: em0: Queue(0) tdh = 0, hw tdt = 2
 Jan 17 11:35:09 blackhole kernel: em0: TX(0) desc avail = 1022,Next TX to Clean = 0
 Jan 17 12:10:34 blackhole login: ROOT LOGIN (root) ON ttyv0
 Jan 17 12:10:36 blackhole reboot: rebooted by root
 Jan 17 12:10:36 blackhole syslogd: exiting on signal 15
 Jan 17 12:11:14 blackhole syslogd: kernel boot file is /boot/kernel/kernel
 Jan 17 12:11:14 blackhole kernel: Waiting (max 60 seconds) for system process `vnlru' to stop...done
 Jan 17 12:11:14 blackhole kernel: Waiting (max 60 seconds) for system process `bufdaemon' to stop...done
 Jan 17 12:11:14 blackhole kernel:

NEC Express5800 の em のドライバーはこちら、

http://www.express.nec.co.jp/linux/distributions/confirm/option/nic/nic.html

にありますが、手元のFreeBSD9.x以降の環境ではエラーでコンパイルできませんでした。ググって、

https://downloadcenter.intel.com/download/17509/Network-Adapter-Gigabit-Base-Driver-for-FreeBSD-

https://downloadcenter.intel.com/ja/download/17509

から、Date: 07/15/2015 版の em-7.5.2.tar.gz をゲット

&ref(em-7.5.2.tar.gz);

FreeBSD 10.1-RELEASE-p19 な NEC Express5800/110b でコンパイル。

&ref(if_em.ko_FreeBSD10_1);

http://subnets.ru/blog/?p=1138

生成したif_em.koを、
 mv if_em.ko /boot/modules
して、
 echo 'if_em_load="YES"' >> /boot/loader.conf

 echo 'WITHOUT_MODULES=em' >> /etc/make.conf

 reboot

if_em.ko 入れ換え前
 root@blackcube2:~ # pciconf -l -v
 em0@pci0:0:25:0:        class=0x020000 card=0x83891033 chip=0x10ef8086 rev=0x06 hdr=0x00
     vendor     = 'Intel Corporation'
     device     = '82578DM Gigabit Network Connection'
     class      = network
     subclass   = ethernet

if_em.ko 入れ換え後
 root@blackcube2:~ # pciconf -l -v
 em0@pci0:0:25:0:        class=0x020000 card=0x83891033 chip=0x10ef8086 rev=0x06 hdr=0x00
     vendor     = 'Intel Corporation'
     device     = '82578DM Gigabit Network Connection'
     class      = network
     subclass   = ethernet

なんの変化も無し???

 em0@pci0:0:25:0:        class=0x020000 card=0x83891033 chip=0x10ef8086 rev=0x06 hdr=0x00
     vendor     = 'Intel Corporation'
     device     = '82578DM Gigabit Network Connection'
     class      = network
     subclass   = ethernet

dmesgでも

 em0: <Intel(R) PRO/1000 Network Connection 7.4.2> port 0x1820-0x183f mem 0xd0400000-0xd041ffff,0xd0424000-0xd0424fff irq 16 at device 25.0 on pci0

と表示される???? なんで???

----
Total access &counter(total);:本日 &counter(today);:昨日 &counter(yesterday);
#counter([total|today|yesterday]);

トップ   編集 差分 履歴 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS