Oct 24, 2001 onl54: Solaris8 cc ドライバのテスト --- cc ドライバのインストール#01 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ (http://www-online.kek.jp/~inoue/CAMAC/onl54-sol8/ Desktop/camac-step01.txt) 高エネルギー加速器研究機構 素粒子原子核研究所 物理、オンライングループ 井上 栄二 (1). 現状確認 (A). Solaris8 6/00 が届いた。 (B). FORCE SPARC CPU-54 が届いた (C). CPU-54 にSolaris8 6/00 をインストールしようとしたが fail した (D). "Solaris 8 7/01" のメディアを使って再インストールした。 (E). /etc の下の各設定、および /export/home の作成をやった。 (F). CPU-54にSolaris8用の VMEドライバ、FRCvme-2.5.1 をインストールした (2). ここでやるべきこと onl54 に ccドライバをインストールする。 (3). onl54 上でデバッグした cc.cファイル一式を入手、再コンパイル、リロード (3-1). CAMACドライバ・キット FORCE-50T-sol7 を online.kek.jp から入手 onl54[39]% pwd /export/home/onl54/inoue/CAMAC onl54[40]% ls -l 合計 0 onl54[41]% ftp online.kek.jp Connected to onlax2.kek.jp. 220 onlax2.kek.jp FTP server (Compaq Tru64 UNIX Version 5.60) ready. Name (online.kek.jp:inoue): anonymous 331 Guest login ok, send ident as password. Password: 230 Guest login ok, access restrictions apply. ftp> cd pub/kek/camac 250 CWD command successful. ftp> dir 200 PORT command successful. 150 Opening ASCII mode data connection for /bin/ls (130.87.220.59,32794). total 3718 -rw-r--r-- 1 0 10 1173 Apr 19 1995 122d_to_e.tar.gz -rw-r--r-- 1 0 10 1153 Mar 16 2001 8vt-sol2.6-driver.html -rw-r--r-- 1 0 10 89611 Oct 20 2000 FORCE-50T-sol2.6-list.tar.Z -rw-r--r-- 1 0 10 48627 Oct 20 2000 FORCE-50T-sol2.6-list.tar.gz -rw-r--r-- 1 0 10 24125 Jul 26 1999 FORCE-50T-sol2.6.tar.gz -rw-r--r-- 1 0 10 68469 Feb 7 2001 FORCE-50T-sol7.tar.Z -rw-r--r-- 1 0 10 39636 Feb 7 2001 FORCE-50T-sol7.tar.gz -rw-r--r-- 1 0 10 22160 Nov 19 1997 FORCE-5V-sol2.5.tar.gz -rw-r--r-- 1 0 10 76149 Mar 22 2001 FORCE-5V-sol7-list.tar.Z -rw-r--r-- 1 0 10 39333 Mar 22 2001 FORCE-5V-sol7-list.tar.gz -rw-r--r-- 1 0 10 2494 Dec 2 1994 README -rw-r--r-- 1 0 10 39165 Mar 16 2001 SPARC-status-old1.html -rw-r--r-- 1 0 10 40268 Mar 26 2001 SPARC-status.html -rw-r--r-- 1 0 10 21435 Dec 13 1994 camac.sol2-1.30.tar.gz -rw-r--r-- 1 0 10 169539 Aug 18 1993 camac.sparc-1.22b.tar.Z -rw-r--r-- 1 0 10 91662 Aug 18 1993 camac.sparc-1.22b.tar.gz -rw-r--r-- 1 0 10 198417 Aug 19 1993 camac.sparc-1.22c.tar.Z -rw-r--r-- 1 0 10 110755 Aug 19 1993 camac.sparc-1.22c.tar.gz -rw-r--r-- 1 0 10 199103 Sep 4 1993 camac.sparc-1.22d.tar.Z -rw-r--r-- 1 0 10 110752 Sep 4 1993 camac.sparc-1.22d.tar.gz -rw-r--r-- 1 0 10 287493 Apr 20 1995 camacv1.01_decs.tar.Z -rw-r--r-- 1 0 10 231505 Dec 2 1994 camacv1.01_hprt.tar.Z -rw-r--r-- 1 0 10 132002 Dec 2 1994 camacv1.01_hprt.tar.gz -rw-r--r-- 1 0 10 283202 Dec 2 1994 camacv1.0_decs.tar.Z -rw-r--r-- 1 0 10 159495 Dec 2 1994 camacv1.0_decs.tar.gz -rw-r--r-- 1 0 10 216777 Sep 13 1994 camacv1.0_hprt.tar.Z -rw-r--r-- 1 0 10 122114 Sep 13 1994 camacv1.0_hprt.tar.gz -rw-r--r-- 1 0 10 87379 Nov 30 1994 camlib-docs-1.0.tar.Z -rw-r--r-- 1 0 10 51118 Nov 30 1994 camlib-docs-1.0.tar.gz drwxr-xr-x 2 0 10 512 Jul 24 2000 doc -rw-r--r-- 1 0 10 13589 Jan 17 1995 sparc-3ce.tar.gz -rw-r--r-- 1 0 10 233395 Aug 18 1993 tdaq-1.00.tar.Z -rw-r--r-- 1 0 10 121288 Apr 2 1992 tdaq-1.00.tar.gz -rw-r--r-- 1 0 10 277799 Jan 20 1995 vme-3CE.tar.gz 226 Transfer complete. 2605 bytes received in 0.46 seconds (5.58 Kbytes/s) ftp> binary 200 Type set to I. ftp> get FORCE-50T-sol7.tar.gz 200 PORT command successful. 150 Opening BINARY mode data connection for FORCE-50T-sol7.tar.gz (130.87.220.59,32795) (39636 bytes). 226 Transfer complete. local: FORCE-50T-sol7.tar.gz remote: FORCE-50T-sol7.tar.gz 39636 bytes received in 0.03 seconds (1269.62 Kbytes/s) ftp> quit 221 Goodbye. onl54[42]% onl54[42]% ls -l 合計 78 -rw-r--r-- 1 inoue kek 39636 10月 22日 09:58 FORCE-50T-sol7.tar.gz onl54[43]% gzip -d FORCE-50T-sol7.tar.gz onl54[44]% ls -l 合計 464 -rw-r--r-- 1 inoue kek 223232 10月 22日 09:58 FORCE-50T-sol7.tar onl54[45]% tar xvf FORCE-50T-sol7.tar x FORCE-50T-sol7, 0 bytes, 0 テープブロック x FORCE-50T-sol7/Makefile, 2102 bytes, 5 テープブロック x FORCE-50T-sol7/README, 4022 bytes, 8 テープブロック x FORCE-50T-sol7/cam1.c, 1170 bytes, 3 テープブロック x FORCE-50T-sol7/cam2.f, 2336 bytes, 5 テープブロック x FORCE-50T-sol7/cam3.c, 2055 bytes, 5 テープブロック x FORCE-50T-sol7/camlib.c, 9740 bytes, 20 テープブロック x FORCE-50T-sol7/camlib.h, 1415 bytes, 3 テープブロック x FORCE-50T-sol7/cc.c, 81531 bytes, 160 テープブロック x FORCE-50T-sol7/cc64.c, 82996 bytes, 163 テープブロック x FORCE-50T-sol7/cc.conf, 288 bytes, 1 テープブロック x FORCE-50T-sol7/cc.h, 2931 bytes, 6 テープブロック x FORCE-50T-sol7/cc_common.h, 2288 bytes, 5 テープブロック x FORCE-50T-sol7/cc_config.h, 876 bytes, 2 テープブロック x FORCE-50T-sol7/forlib.c, 3289 bytes, 7 テープブロック x FORCE-50T-sol7/k2917.h, 4058 bytes, 8 テープブロック x FORCE-50T-sol7/script, 0 bytes, 0 テープブロック x FORCE-50T-sol7/script/awk1.txt, 66 bytes, 1 テープブロック x FORCE-50T-sol7/script/awk2.txt, 37 bytes, 1 テープブロック x FORCE-50T-sol7/script/cc_build.gcc.sh, 233 bytes, 1 テープブロック x FORCE-50T-sol7/script/cc_build.sh, 470 bytes, 1 テープブロック x FORCE-50T-sol7/script/cc_link.sh, 833 bytes, 2 テープブロック x FORCE-50T-sol7/script/cc_load.sh, 949 bytes, 2 テープブロック x FORCE-50T-sol7/script/cc_unload.sh, 404 bytes, 1 テープブロック onl54[46]% (3-2). camac ドライバのキットをコンパイルし直す onl54[40]% which cc /net/fs/public/solaris_licensed/forte6/sparc/SUNWspro/bin/cc onl54[41]% cc -V cc: Sun WorkShop 6 update 1 C 5.2 2000/09/11 使用法: cc [オプション] ファイル # 詳細は 'cc -flags' を参照してください onl54[42]% which f77 /net/fs/public/solaris_licensed/forte6/sparc/SUNWspro/bin/f77 onl54[43]% f77 -V f77: Sun WorkShop 6 update 1 FORTRAN 77 5.2 2000/09/11 使用法: f77 [ オプション ] ファイル # 詳細は 'f77 -flags' を参照してください。 onl54[44]% onl54[45]% ls -l 合計 466 drwxr-xr-x 3 inoue kek 512 10月 23日 16:30 FORCE-50T-sol7/ -rw-r--r-- 1 inoue kek 223232 10月 22日 09:58 FORCE-50T-sol7.tar onl54[46]% cd FORCE-50T-sol7 /export/home/onl54/inoue/CAMAC/FORCE-50T-sol7 onl54[47]% ls -lR .: 合計 1512 -rw-r--r-- 1 inoue kek 2154 10月 23日 14:18 Makefile -rw-r--r-- 1 inoue kek 2102 12月 18日 2000年 Makefile.org -rw-r--r-- 1 inoue kek 4022 2月 7日 2001年 README -rwxr-xr-x 1 inoue kek 18816 10月 23日 16:30 cam1* -rw-r--r-- 1 inoue kek 1170 11月 22日 2000年 cam1.c -rwxr-xr-x 1 inoue kek 384480 10月 23日 16:30 cam2* -rw-r--r-- 1 inoue kek 2336 11月 22日 2000年 cam2.f -rwxr-xr-x 1 inoue kek 19136 10月 23日 16:30 cam3* -rw-r--r-- 1 inoue kek 2055 11月 22日 2000年 cam3.c -rw-r--r-- 1 inoue kek 9740 12月 18日 2000年 camlib.c -rw-r--r-- 1 inoue kek 1415 11月 22日 2000年 camlib.h -rw-r--r-- 1 inoue kek 11352 10月 23日 16:30 camlib.o -rw-r--r-- 1 inoue kek 43696 10月 23日 16:30 cc -rw-r--r-- 1 inoue kek 81531 2月 5日 2001年 cc.c -rw-r--r-- 1 inoue kek 288 11月 22日 2000年 cc.conf -rw-r--r-- 1 inoue kek 2931 2月 5日 2001年 cc.h -rw-r--r-- 1 inoue kek 48360 10月 23日 16:30 cc64 -rw-r--r-- 1 inoue kek 82996 2月 5日 2001年 cc64.c -rw-r--r-- 1 inoue kek 2288 11月 22日 2000年 cc_common.h -rw-r--r-- 1 inoue kek 876 11月 22日 2000年 cc_config.h -rw-r--r-- 1 inoue kek 3289 11月 22日 2000年 forlib.c -rw-r--r-- 1 inoue kek 4912 10月 23日 16:30 forlib.o -rw-r--r-- 1 inoue kek 4058 11月 22日 2000年 k2917.h -rw-r--r-- 1 inoue kek 17124 10月 23日 16:30 libcamac.a drwxr-xr-x 2 inoue kek 512 10月 22日 14:24 script/ ./script: 合計 18 -rw-r--r-- 1 inoue kek 66 11月 22日 2000年 awk1.txt -rw-r--r-- 1 inoue kek 37 11月 22日 2000年 awk2.txt -rwxr-xr-x 1 inoue kek 233 11月 22日 2000年 cc_build.gcc.sh* -rwxr-xr-x 1 inoue kek 470 1月 18日 2001年 cc_build.sh* -rwxr-xr-x 1 inoue kek 1049 10月 22日 14:28 cc_link.sh* -rwxr-xr-x 1 inoue kek 833 1月 19日 2001年 cc_link.sh-org* -rwxr-xr-x 1 inoue kek 949 11月 22日 2000年 cc_load.sh* -rwxr-xr-x 1 inoue kek 404 11月 22日 2000年 cc_unload.sh* onl54[48]% onl54[48]% pwd /export/home/onl54/inoue/CAMAC/FORCE-50T-sol7 onl54[49]% ls -l 合計 1512 -rw-r--r-- 1 inoue kek 2154 10月 23日 14:18 Makefile -rw-r--r-- 1 inoue kek 2102 12月 18日 2000年 Makefile.org -rw-r--r-- 1 inoue kek 4022 2月 7日 2001年 README -rwxr-xr-x 1 inoue kek 18816 10月 23日 16:30 cam1* -rw-r--r-- 1 inoue kek 1170 11月 22日 2000年 cam1.c -rwxr-xr-x 1 inoue kek 384480 10月 23日 16:30 cam2* -rw-r--r-- 1 inoue kek 2336 11月 22日 2000年 cam2.f -rwxr-xr-x 1 inoue kek 19136 10月 23日 16:30 cam3* -rw-r--r-- 1 inoue kek 2055 11月 22日 2000年 cam3.c -rw-r--r-- 1 inoue kek 9740 12月 18日 2000年 camlib.c -rw-r--r-- 1 inoue kek 1415 11月 22日 2000年 camlib.h -rw-r--r-- 1 inoue kek 11352 10月 23日 16:30 camlib.o -rw-r--r-- 1 inoue kek 43696 10月 23日 16:30 cc -rw-r--r-- 1 inoue kek 81531 2月 5日 2001年 cc.c -rw-r--r-- 1 inoue kek 288 11月 22日 2000年 cc.conf -rw-r--r-- 1 inoue kek 2931 2月 5日 2001年 cc.h -rw-r--r-- 1 inoue kek 48360 10月 23日 16:30 cc64 -rw-r--r-- 1 inoue kek 82996 2月 5日 2001年 cc64.c -rw-r--r-- 1 inoue kek 2288 11月 22日 2000年 cc_common.h -rw-r--r-- 1 inoue kek 876 11月 22日 2000年 cc_config.h -rw-r--r-- 1 inoue kek 3289 11月 22日 2000年 forlib.c -rw-r--r-- 1 inoue kek 4912 10月 23日 16:30 forlib.o -rw-r--r-- 1 inoue kek 4058 11月 22日 2000年 k2917.h -rw-r--r-- 1 inoue kek 17124 10月 23日 16:30 libcamac.a drwxr-xr-x 2 inoue kek 512 10月 22日 14:24 script/ onl54[50]% onl54[52]% make clean \rm -f cc cc64 *.o libcamac.a cam1 cam2 cam2a cam3 *~ core onl54[53]% make ./script/cc_build.sh [Building for sun4u] rm -f cc.o cc64.o cc -xarch=v9 -O -c camlib.c -o camlib.o -I. cc -xarch=v9 -O -c forlib.c -o forlib.o -I. rm -f libcamac.a ar rcv libcamac.a camlib.o forlib.o a - camlib.o a - forlib.o ar: writing libcamac.a cc -xarch=v9 -O cam1.c -o cam1 -I. -L. -lcamac f77 -xarch=v9 -fast -O3 -u cam2.f -o cam2 -I. -L. -lcamac f77: 警告: -xarch=native は明示的に指定されたり、マクロのオプションで暗黙に指定されたりします。このアーキテクチャでの -xarch=native は UltraSPARC 以前のプロセッサ以外では動作しないコードを生成する -xarch=v8plusa を意味しています cam2.f: MAIN: ld: 警告: ファイル ./libcamac.a(forlib.o): ELF クラスが正しくありません: ELFCLASS64 未定義の 最初に参照している シンボル ファイル cgenz_ cam2.o cdmal_ cam2.o cdmaw_ cam2.o camcls_ cam2.o cgenc_ cam2.o naf_ cam2.o camopn_ cam2.o cremi_ cam2.o ld: 重大なエラー: シンボル参照エラー。cam2 に書き込まれる出力はありません。 *** Error code 1 make: Fatal error: Command failed for target `cam2' onl54[54]% onl54[54]% pwd /export/home/onl54/inoue/CAMAC/FORCE-50T-sol7 onl54[55]% vi Makefile : cam2 : cam2.f # $(FC) -xarch=v9 $(FFLAGS) cam2.f -o cam2 $(CLIB) $(FC) $(FFLAGS) -xarch=v9 cam2.f -o cam2 $(CLIB) : "Makefile" 79 行、2154 バイト onl54[56]% onl54[56]% pwd /export/home/onl54/inoue/CAMAC/FORCE-50T-sol7 onl54[57]% make clean \rm -f cc cc64 *.o libcamac.a cam1 cam2 cam2a cam3 *~ core onl54[58]% make ./script/cc_build.sh [Building for sun4u] rm -f cc.o cc64.o cc -xarch=v9 -O -c camlib.c -o camlib.o -I. cc -xarch=v9 -O -c forlib.c -o forlib.o -I. rm -f libcamac.a ar rcv libcamac.a camlib.o forlib.o a - camlib.o a - forlib.o ar: writing libcamac.a cc -xarch=v9 -O cam1.c -o cam1 -I. -L. -lcamac f77 -fast -O3 -u -xarch=v9 cam2.f -o cam2 -I. -L. -lcamac cam2.f: MAIN: cc -xarch=v9 -O cam3.c -o cam3 -I. -L. -lcamac onl54[59]% onl54# pwd /export/home/onl54/inoue/CAMAC/FORCE-50T-sol7 onl54# make install /usr/ucb/install -d /usr/local/vme/camac/include /usr/ucb/install -d /usr/local/vme/camac/lib /usr/ucb/install -m 644 camlib.h cc_config.h cc_common.h cc.h \ k2917.h /usr/local/vme/camac/include /usr/ucb/install -m 644 libcamac.a /usr/local/vme/camac/lib onl54# (3-2). ccドライバをロードし直す onl54# make unload ./script/cc_unload.sh [Removing CAMAC device driver] [Removing CAMAC device driver from system] [Deleting CAMAC device files] onl54# make load ./script/cc_load.sh [Installing CAMAC device driver] [Adding CAMAC device driver to system] [Configuring CAMAC device driver] [Making CAMAC device files] sun4u onl54# ls -l /dev/cc lrwxrwxrwx 1 root other 22 10月 24日 11:09 /dev/cc -> /devices11:09:24///:cc onl54# NG. /dev/ccスペシャルファイルを正常に作れなかった。 チェック。 (3-3). "make load"に関係する部分をチェック onl54[115]% pwd /export/home/onl54/inoue/CAMAC/FORCE-50T-sol7 onl54[116]% vi Makefile : load : cc ./script/cc_load.sh : onl54[117]% onl54[120]% pwd /export/home/onl54/inoue/CAMAC/FORCE-50T-sol7/script onl54[121]% ls -l 合計 14 -rw-r--r-- 1 inoue kek 66 11月 22日 2000年 awk1.txt -rw-r--r-- 1 inoue kek 37 11月 22日 2000年 awk2.txt -rwxr-xr-x 1 inoue kek 233 11月 22日 2000年 cc_build.gcc.sh* -rwxr-xr-x 1 inoue kek 470 1月 18日 2001年 cc_build.sh* -rwxr-xr-x 1 inoue kek 833 1月 19日 2001年 cc_link.sh* -rwxr-xr-x 1 inoue kek 949 11月 22日 2000年 cc_load.sh* -rwxr-xr-x 1 inoue kek 404 11月 22日 2000年 cc_unload.sh* onl54[122]% onl54[122]% vi cc_load.sh : echo '[Installing CAMAC device driver]' #cp cc /usr/kernel/drv/ cp cc /kernel/drv/ cp cc64 /kernel/drv/sparcv9/cc #cp cc.conf /usr/kernel/drv/ cp cc.conf /kernel/drv/ echo '[Adding CAMAC device driver to system]' add_drv -m '* 0666 root sys' cc echo '[Configuring CAMAC device driver]' drvconfig -r /devices echo '[Making CAMAC device files]' ARCH=`uname -m` #echo "ARCH=$ARCH" if [ $ARCH = "sun4d" ]; then echo 'sun4d' ln -s /devices/io-unit*/sbi*/sfvme*:cc /dev/cc elif [ $ARCH = "sun4m" ]; then echo 'sun4m' ./script/cc_link.sh elif [ $ARCH = "sun4c" ]; then echo 'sun4c' # ln -s /devices/sbus*/sfvme*:cc /dev/cc ln -s /devices/sbus*/sfvme@1,3ff000/cc@2d,ff00:cc /dev/cc elif [ $ARCH = "sun4u" ]; then echo 'sun4u' ./script/cc_link.sh fi : onl54[123]% onl54[123]% vi cc_link.sh : set SYS57 = "5.7" set SYSNL = `uname -sr` if ( $SYSNL[2] == $SYS57 )then set CCDIR=`dmesg|grep 'cc0 is'|tail -1|awk '{print $8}'|awk -f script/awk1.txt` set CCNAM=`dmesg|grep 'cc0 is'|tail -1|awk '{print $8}'|awk -f script/awk2.txt` else set CCDIR=`dmesg|grep 'cc0 is'|tail -1|awk '{print $3}'|awk -f script/awk1.txt` set CCNAM=`dmesg|grep 'cc0 is'|tail -1|awk '{print $3}'|awk -f script/awk2.txt` #set CCMAJOR = `modinfo | grep CAMAC | awk ' {print $4}'` endif : onl54[124]% Solaris8 の時の処理を追加する。 onl54[125]% mv cc_link.sh cc_link.sh-org onl54[126]% cp cc_link.sh-org cc_link.sh onl54[127]% ls -l 合計 16 -rw-r--r-- 1 inoue kek 66 11月 22日 2000年 awk1.txt -rw-r--r-- 1 inoue kek 37 11月 22日 2000年 awk2.txt -rwxr-xr-x 1 inoue kek 233 11月 22日 2000年 cc_build.gcc.sh* -rwxr-xr-x 1 inoue kek 470 1月 18日 2001年 cc_build.sh* -rwxr-xr-x 1 inoue kek 833 10月 22日 14:24 cc_link.sh* -rwxr-xr-x 1 inoue kek 833 1月 19日 2001年 cc_link.sh-org* -rwxr-xr-x 1 inoue kek 949 11月 22日 2000年 cc_load.sh* -rwxr-xr-x 1 inoue kek 404 11月 22日 2000年 cc_unload.sh* onl54[128]% vi cc_link.sh : set SYS58 = "5.8" set SYS57 = "5.7" set SYSNL = `uname -sr` if ( $SYSNL[2] == $SYS58 )then set CCDIR=`dmesg|grep 'cc0 is'|tail -1|awk '{print $11}'|awk -f script/awk1.txt` set CCNAM=`dmesg|grep 'cc0 is'|tail -1|awk '{print $11}'|awk -f script/awk2.txt` else if ( $SYSNL[2] == $SYS57 )then set CCDIR=`dmesg|grep 'cc0 is'|tail -1|awk '{print $8}'|awk -f script/awk1.txt` set CCNAM=`dmesg|grep 'cc0 is'|tail -1|awk '{print $8}'|awk -f script/awk2.txt` else set CCDIR=`dmesg|grep 'cc0 is'|tail -1|awk '{print $3}'|awk -f script/awk1.txt` set CCNAM=`dmesg|grep 'cc0 is'|tail -1|awk '{print $3}'|awk -f script/awk2.txt` #set CCMAJOR = `modinfo | grep CAMAC | awk ' {print $4}'` endif : onl54[129]% (3-4). ccドライバをロードし直す onl54# pwd /export/home/onl54/inoue/CAMAC/FORCE-50T-sol7 onl54# make unload ./script/cc_unload.sh [Removing CAMAC device driver] [Removing CAMAC device driver from system] [Deleting CAMAC device files] onl54# make load ./script/cc_load.sh [Installing CAMAC device driver] [Adding CAMAC device driver to system] [Configuring CAMAC device driver] [Making CAMAC device files] sun4u onl54# onl54# ls -l /dev/cc lrwxrwxrwx 1 root other 37 10月 24日 11:13 /dev/cc -> /devices/pci@1f,0/vme@5/cc@2d,ff00:cc onl54# ドライバをロードした時のコンソール上のメッセージ。 Oct 24 11:13:39 onl54 cc: [ID 702911 kern.notice] CAMAC device driver V3.0x, 199 1-1993 by Y.TAKEUCHI (T.I.T.) Oct 24 11:13:39 onl54 genunix: [ID 936769 kern.info] cc0 is /pci@1f,0/vme@5/cc@2 d,ff00 ok. 正常にロードできた。 (4). VME スレーブ・ウインドウを設定する (4-1). VME.conf ファイルを修正する onl54# pwd /platform/sun4u/kernel/drv onl54# ls -l 合計 3894 -r-xr-xr-x 1 root sys 60648 11月 12日 1999年 Neide -rw-r----- 1 root other 166432 10月 18日 15:15 VME -rw-r----- 1 root other 2850 10月 18日 15:15 VME.conf -rwxr-xr-x 1 root sys 83176 4月 5日 2001年 afb -rwxr-xr-x 1 root sys 40824 11月 12日 1999年 ata -rw-r--r-- 1 root sys 229 11月 12日 1999年 ata.conf -r-xr-xr-x 1 root sys 6404 11月 12日 1999年 atata -r--r--r-- 1 root sys 34 11月 12日 1999年 atata.conf -rwxr-xr-x 1 root sys 47984 2月 15日 2001年 audioens -rwxr-xr-x 1 root sys 106 11月 11日 1999年 audioens.conf -rwxr-xr-x 1 root sys 17712 1月 9日 2000年 bwtwo -rwxr-xr-x 1 root sys 116308 5月 5日 09:48 ce -rwxr-xr-x 1 root sys 23856 1月 9日 2000年 cgsix -rwxr-xr-x 1 root sys 19456 1月 9日 2000年 cgthree -rwxr-xr-x 1 root sys 16692 11月 12日 1999年 cmdk -rw-r--r-- 1 root sys 265 11月 12日 1999年 cmdk.conf -rwxr-xr-x 2 root sys 11428 6月 5日 22:23 cpc -rw-r--r-- 1 root sys 153 1月 6日 2000年 cpc.conf -rwxr-xr-x 1 root sys 27056 6月 5日 22:23 db21554 lrwxrwxrwx 1 root root 26 9月 28日 11:47 disk_ata -> ../../../../kernel/drv/dad -r--r--r-- 1 root sys 451 11月 12日 1999年 disk_ata.conf -rwxr-xr-x 1 root sys 6484 1月 9日 2000年 dma -rwxr-xr-x 1 root sys 9404 6月 5日 22:23 ebus -rwxr-xr-x 1 root sys 8980 11月 12日 1999年 eide -rw-r--r-- 1 root sys 159 10月 4日 2000年 fcode.conf -rwxr-xr-x 1 root sys 76596 1月 25日 2001年 fd -rwxr-xr-x 1 root sys 68320 4月 19日 2001年 ffb -rw-r--r-- 1 root sys 72480 4月 23日 2001年 gfxp -rwxr-xr-x 1 root sys 22920 8月 7日 2000年 i2c -rwxr-xr-x 1 root sys 14328 8月 7日 2000年 i2cadc -rwxr-xr-x 1 root sys 12336 8月 7日 2000年 i2cgpio -rwxr-xr-x 1 root sys 6296 10月 20日 1999年 i8042 -rwxr-xr-x 1 root sys 159892 4月 6日 2001年 ifb -rwxr-xr-x 1 root sys 37684 11月 2日 1999年 igs -rwxr-xr-x 1 root sys 36420 4月 5日 2001年 kb_ps2 -rwxr-xr-x 1 root sys 4324 10月 13日 1999年 kb_ps2.conf -rwxr-xr-x 1 root sys 11556 4月 5日 2001年 kdmouse -rwxr-xr-x 1 root sys 5400 1月 9日 2000年 ledma -rwxr-xr-x 1 root sys 58168 4月 23日 2001年 m64 -rwxr-xr-x 1 root sys 25012 6月 5日 22:23 pci_pci -rwxr-xr-x 1 root sys 97572 6月 5日 22:23 pcipsy -rwxr-xr-x 1 root sys 8024 1月 9日 2000年 power -rw-r--r-- 1 root sys 164636 4月 23日 2001年 raptor -rwxr-xr-x 1 root sys 13740 6月 5日 22:23 rootnex -rwxr-xr-x 1 root sys 14484 1月 16日 2001年 sbbc -rwxr-xr-x 1 root sys 51604 6月 5日 22:23 sbus -rwxr-xr-x 1 root sys 6052 1月 9日 2000年 sbusmem -rw-r--r-- 1 root sys 678 1月 6日 2000年 sbusmem.conf -rwxr-xr-x 1 root sys 66472 4月 23日 2001年 sf -rw-r--r-- 1 root sys 185 1月 6日 2000年 sf.conf -rwxr-xr-x 1 root sys 13256 1月 9日 2000年 simba drwxr-xr-x 2 root sys 1024 10月 18日 15:09 sparcv9 -rwxr-xr-x 1 root sys 65844 11月 2日 2000年 stc -rw-r--r-- 1 root sys 1244 1月 6日 2000年 stc.conf -rwxr-xr-x 1 root sys 30056 4月 23日 2001年 su -rwxr-xr-x 1 root sys 6248 1月 9日 2000年 tod -rw-r--r-- 1 root sys 68 1月 6日 2000年 tod.conf -rwxr-xr-x 1 root sys 59044 1月 9日 2000年 zs -rwxr-xr-x 1 root sys 25604 1月 9日 2000年 zsh -rw-r--r-- 1 root sys 131 1月 6日 2000年 zsh.conf onl54# onl54# vi VME.conf # %Z%$RCSfile: VME.conf,v $ $Revision: 1.7 $ %D% FRC # ############################################################################### # The "pamc" property declares the AM-code values for the two programmable AM # codes (if supported by the hardware). Drivers that want to use these have to # use the values configured here in the bustype value(s) of their reg property. # ############################################################################### # "vmewin" properties may be defined to set up static local-to-VMEbus # mappings (usually not necessary, since mappings are set up on demand). # # The format is # vmewin=,, # # can be omitted for the first vmewin property. For subsequent properties, # set it to 1,2,3,4... The limit is the number of hardware ranges, # e.g. 16 on FGA-5000. # defines the requested VMEbus address. # defines the size of the mapping in bytes. # encodes the properties of the VME window. It's a bit set of # VME_BT_xxx values as defined in sys/vme_types.h. # # Example to set up a VME window for VMEbus address 0x0 - 0x10000 in A24 # space for D32 privileged data accesses, write posting enabled: # # vmewin=0x0, 0x10000, 0x01020004 # ############################################################################### # The "slavewin" property defines a VMEbus-to-local mapping. It's necessary for # device drivers that want to set up DMA via the standard DDI DMA interface # calls, so that the VME nexus can provide a VMEbus address where the device # can perform DMA to. # Don't define this if you do not need it, as it will eat up a VME slave # range. Note also that the VME bridge will decode these addresses once the # slavewin property has been set and report VME Bus Errors if no driver # uses it! So if you get strange bus errors, check this file for the # slavewin property. # The format is: # # slavewin , , # # and must be aligned exactly to hardware requirements: # S4: vme_start must be aligned to 1MB, size must be 1MB # FGA-5x00: vme_start must be aligned to size. size can be # 8K, 16K, 32K, ..., 16MB for A24 # 2MB, 4MB, 8MB, 16MB for A32 # Universe: vme_start and size must be aligned to 64K # is a bitset of the VME_BT_xxx values as defined # in sys/vme_types. Standard values are: # 0x00020000 for a slave window in A24 space # 0x00040000 for a slave window in A32 space # # Add 0x01000000 to enable write posting for higher performance (FGA-5x00, # Universe). # # Refer to the manual for possible values for different hardware. # Example for a slave window of 1MB in A24 space at address 0: # # slavewin=0x000000,0x100000,0x00020000 ############################################################################### # slavewin=0x000000,0x100000,0x01020000 pamc=0x10, 0x11 ; "VME.conf" 64 行、2888 バイト onl54# (5-2). システムをリブートする onl54# /usr/sbin/shutdown -i0 -g0 -y Shutdown started. 20011024 () 111746 JST Changing to init state 0 - please wait Broadcast Message from root (console) on onl54 () 10 24 11:17:... THE SYSTEM onl54 IS BEING SHUT DOWN NOW ! ! ! Log off now or risk your files being damaged onl54# INIT: New run level: 0 The system is coming down. Please wait. System services are now being stopped. Print services stopped. Oct 24 11:17:57 onl54 syslogd: going down on signal 15 The system is down. syncing file systems... done Program terminated ok ok ok ok boot -r Resetting ... screen not found. keyboard not found. Keyboard not present. Using ttya for input and output. FORCE,CPU-54 (UltraSPARC-IIe 404MHz), No Keyboard OpenBoot 4.0, 128 MB memory installed, Serial #9229550. Ethernet address 0:80:42:10:70:28, Host ID: 808cd4ee. Rebooting with command: boot -r Boot device: /pci@1f,0/pci@3/scsi@4/disk@3,0:a File and args: -r SunOS Release 5.8 Version Generic_108528-09 64-bit Copyright 1983-2001 Sun Microsystems, Inc. All rights reserved. NOTICE: VME: slavewin at vme=0x0, size=0x100000 space=0x302061f configuring IPv4 interfaces: hme0. configuring IPv6 interfaces: hme0. Hostname: onl54 Configuring /dev and /devices WARNING: i2c_client_register failed CAMAC device driver V3.0x, 1991-1993 by Y.TAKEUCHI (T.I.T.) Configuring the /dev directory (compatibility devices) The system is coming up. Please wait. checking ufs filesystems /dev/rdsk/c0t3d0s5: is clean. /dev/rdsk/c0t3d0s4: is clean. /dev/rdsk/c0t3d0s7: is clean. NIS domainname is kek.jp Starting IPv6 neighbor discovery. Setting default IPv6 interface for multicast: add net ff00::/8: gateway fe80::28 0:42ff:fe10:7028 starting rpc services: rpcbind keyserv done. Setting netmask of hme0 to 255.255.248.0 Setting default IPv4 interface for multicast: add net 224.0/4: gateway onl54 syslog service starting. Print services started. volume management starting. Wnn6: Key License Server started.... Nihongo Multi Client Server (Wnn6 R2.34) Finished Reading Files The system is ready. onl54 console login: ok. slavewin は正しく設定できた。 ---xxxx ここまでやった(継続中) --- (6). セクション (6-1). サブセクション (6-1-1). サブサブセクション