[SCore-users-jp] PM_Ethenetのtg3について

Yuta Inoue f0530146 @ ipc.shizuoka.ac.jp
2006年 12月 11日 (月) 20:19:45 JST


 はじめまして.
 静岡大学 理工学研究科2年の井上雄太といいます.

 現在Scoreを3台のコンピュータにインストールしようとしていますが,
Pm_Ethernetで躓いてしまいこの場で助言をいただければと思い投稿しました.

 こちらで起きた症状ですが,まず,
# cd /opt/score/install
# ./setup -score_comp
を,実行しますとtg3 cannot Useと表示をされ,
# /etc/rc.d/init.d/pm_ethernet start
を実行したところ,
Starting PM/Ethernet: open_epm(0): open failed: 2
Trying old style....device: eth1
etherpmctl: ERROR on unit 0: "Operation not supported(95)" Check dmesg log!!
となり,起動をしない状況です.
 dmesgについては,
e1000_scorepm1: no version for "struct_module" found: kernel tainted.
e1000_scorepm1: Unknown symbol pm_ethernet_netif_rxfunc
e1000_scorepm1: Unknown symbol pm_ethernet_request_irq
e1000_scorepm1: Unknown symbol pm_ethernet_free_irq
との表示がありました.

 また,makeで出力された表示を確認したところ以下のようなERROR文の表示を確認しました.
echo "  ERROR: Kernel configuration is invalid.";               \
echo "         include/linux/autoconf.h or include/config/auto.conf are missing.";      \
echo "         Run 'make oldconfig && make prepare' on kernel src to fix it.";  \
echo;                                                           \
/bin/false)
mkdir -p /opt/score/score6-src/SCore/pm-v2/arch/ethernet/driver/tg3_scorepm/centos4-linux2_6/obj.i386-centos4-linux2_6 @ 2.6.18.3/.tmp_versions
rm -f /opt/score/score6-src/SCore/pm-v2/arch/ethernet/driver/tg3_scorepm/centos4-linux2_6/obj.i386-centos4-linux2_6 @ 2.6.18.3/.tmp_versions/*
make -f scripts/Makefile.build obj=/opt/score/score6-src/SCore/pm-v2/arch/ethernet/driver/tg3_scorepm/centos4-linux2_6/obj.i386-centos4-linux2_6 @ 2.6.18.3
  gcc -m32 -Wp,-MD,/opt/score/score6-src/SCore/pm-v2/arch/ethernet/driver/tg3_scorepm/centos4-linux2_6/obj.i386-centos4-linux2_6 @ 2.6.18.3/.tg3.o.d  -nostdinc -isystem /usr/lib/gcc/i386-redhat-linux/3.4.6/include -D__KERNEL__ -Iinclude  -i
nclude include/linux/autoconf.h -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Os -pipe -msoft-float -mpreferred-stack-boundary=2 -fno-unit-at-a-time -march=i686 -mtune=pentium4  -mregparm=3 -ffreestand
ing -Iinclude/asm-i386/mach-generic -Iinclude/asm-i386/mach-default -fomit-frame-pointer -g  -Wdeclaration-after-statement  -I/opt/score/score6-src/SCore/pm-v2/arch/ethernet/driver/tg3_scorepm/centos4-linux2_6/obj.i386-centos4-linux2_6 @ 2.
6.18.3/.. -I/opt/score/score6-src/SCore/pm-v2/arch/ethernet/driver/tg3_scorepm/centos4-linux2_6/obj.i386-centos4-linux2_6 @ 2.6.18.3/../../../include -I/opt/score/score6-src/SCore/pm-v2/arch/ethernet/driver/tg3_scorepm/centos4-linux2_6/obj.
i386-centos4-linux2_6 @ 2.6.18.3/../../../../include -I/opt/score/score6-src/SCore/pm-v2/arch/ethernet/driver/tg3_scorepm/centos4-linux2_6/obj.i386-centos4-linux2_6 @ 2.6.18.3/../../../../../../include   -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUIL
D_BASENAME=KBUILD_STR(tg3)"  -D"KBUILD_MODNAME=KBUILD_STR(tg3_scorepm1)" -c -o /opt/score/score6-src/SCore/pm-v2/arch/ethernet/driver/tg3_scorepm/centos4-linux2_6/obj.i386-centos4-linux2_6 @ 2.6.18.3/.tmp_tg3.o /opt/score/score6-src/SCore/p
m-v2/arch/ethernet/driver/tg3_scorepm/centos4-linux2_6/obj.i386-centos4-linux2_6 @ 2.6.18.3/tg3.c
In file included from /opt/score/score6-src/SCore/pm-v2/arch/ethernet/driver/tg3_scorepm/centos4-linux2_6/obj.i386-centos4-linux2_6 @ 2.6.18.3/tg3.c:70:
/opt/score/score6-src/SCore/pm-v2/arch/ethernet/driver/tg3_scorepm/centos4-linux2_6/obj.i386-centos4-linux2_6 @ 2.6.18.3/tg3_compat.h:10: error: conflicting types for 'pm_message_t'
include/linux/pm.h:142: error: previous declaration of 'pm_message_t' was here
/opt/score/score6-src/SCore/pm-v2/arch/ethernet/driver/tg3_scorepm/centos4-linux2_6/obj.i386-centos4-linux2_6 @ 2.6.18.3/tg3_compat.h:12: error: redefinition of typedef 'pci_power_t'
include/linux/pci.h:70: error: previous declaration of 'pci_power_t' was here
/opt/score/score6-src/SCore/pm-v2/arch/ethernet/driver/tg3_scorepm/centos4-linux2_6/obj.i386-centos4-linux2_6 @ 2.6.18.3/tg3_compat.h:44: warning: static declaration of 'pci_dev_present' follows non-static declaration
include/linux/pci.h:457: warning: previous declaration of 'pci_dev_present' was here
/opt/score/score6-src/SCore/pm-v2/arch/ethernet/driver/tg3_scorepm/centos4-linux2_6/obj.i386-centos4-linux2_6 @ 2.6.18.3/tg3.c: In function `tg3_start_xmit':
/opt/score/score6-src/SCore/pm-v2/arch/ethernet/driver/tg3_scorepm/centos4-linux2_6/obj.i386-centos4-linux2_6 @ 2.6.18.3/tg3.c:3724: error: structure has no member named `tso_size'
/opt/score/score6-src/SCore/pm-v2/arch/ethernet/driver/tg3_scorepm/centos4-linux2_6/obj.i386-centos4-linux2_6 @ 2.6.18.3/tg3.c: In function `tg3_start_xmit_dma_bug':
/opt/score/score6-src/SCore/pm-v2/arch/ethernet/driver/tg3_scorepm/centos4-linux2_6/obj.i386-centos4-linux2_6 @ 2.6.18.3/tg3.c:3852: error: structure has no member named `tso_size'
/opt/score/score6-src/SCore/pm-v2/arch/ethernet/driver/tg3_scorepm/centos4-linux2_6/obj.i386-centos4-linux2_6 @ 2.6.18.3/tg3.c: In function `tg3_chip_reset':
/opt/score/score6-src/SCore/pm-v2/arch/ethernet/driver/tg3_scorepm/centos4-linux2_6/obj.i386-centos4-linux2_6 @ 2.6.18.3/tg3.c:4648: error: too many arguments to function `pci_restore_state'
/opt/score/score6-src/SCore/pm-v2/arch/ethernet/driver/tg3_scorepm/centos4-linux2_6/obj.i386-centos4-linux2_6 @ 2.6.18.3/tg3.c: In function `tg3_init_one':
/opt/score/score6-src/SCore/pm-v2/arch/ethernet/driver/tg3_scorepm/centos4-linux2_6/obj.i386-centos4-linux2_6 @ 2.6.18.3/tg3.c:11375: error: too many arguments to function `pci_save_state'
/opt/score/score6-src/SCore/pm-v2/arch/ethernet/driver/tg3_scorepm/centos4-linux2_6/obj.i386-centos4-linux2_6 @ 2.6.18.3/tg3.c:11409: error: too many arguments to function `pci_save_state'
/opt/score/score6-src/SCore/pm-v2/arch/ethernet/driver/tg3_scorepm/centos4-linux2_6/obj.i386-centos4-linux2_6 @ 2.6.18.3/tg3.c: In function `tg3_resume':
/opt/score/score6-src/SCore/pm-v2/arch/ethernet/driver/tg3_scorepm/centos4-linux2_6/obj.i386-centos4-linux2_6 @ 2.6.18.3/tg3.c:11541: error: too many arguments to function `pci_restore_state'
/opt/score/score6-src/SCore/pm-v2/arch/ethernet/driver/tg3_scorepm/centos4-linux2_6/obj.i386-centos4-linux2_6 @ 2.6.18.3/tg3.c: At top level:
/opt/score/score6-src/SCore/pm-v2/arch/ethernet/driver/tg3_scorepm/centos4-linux2_6/obj.i386-centos4-linux2_6 @ 2.6.18.3/tg3.c:11569: warning: initialization from incompatible pointer type
make[10]: *** [/opt/score/score6-src/SCore/pm-v2/arch/ethernet/driver/tg3_scorepm/centos4-linux2_6/obj.i386-centos4-linux2_6 @ 2.6.18.3/tg3.o] Error 1
make[9]: *** [_module_/opt/score/score6-src/SCore/pm-v2/arch/ethernet/driver/tg3_scorepm/centos4-linux2_6/obj.i386-centos4-linux2_6 @ 2.6.18.3] Error 2
make[9]: Leaving directory `/usr/src/kernels/linux-2.6.18.3'
make[8]: *** [all] Error 2
make[8]: Leaving directory `/opt/score/score6-src/SCore/pm-v2/arch/ethernet/driver/tg3_scorepm/centos4-linux2_6/obj.i386-centos4-linux2_6 @ 2.6.18.3'
make[7]: *** [kernelmod-all] Error 2
make[7]: Leaving directory `/opt/score/score6-src/SCore/pm-v2/arch/ethernet/driver/tg3_scorepm/centos4-linux2_6'
make[6]: [subdir-all] Error 2 (ignored)

 ここでのERRORの指示通り,kernelソースのところでmake oldconfigと
make prepareを実行したましたが,これ以降のmakeでも同様のERRORを確認しています.

 kernel2.6.18.3を利用しているのは,Centos4.4のインストール時のkernelでは
オンボードのBroadcomのNICを利用できなかったため利用しています.
 また,コンピュータホストをディスクレスで動かすためにドライバをkernelにbuildinしています.

 申し訳ありませんが,このような症状になっている原因と対策について助言をいただけないでしょうか?

 それでは,失礼いたします.

------------------------------------------------------------
井上雄太     Email:f0530146 @ ipc.shizuoka.ac.jp





SCore-users-jp メーリングリストの案内