Sep 24, 1998 pollux: Solaris 2.6 cc ドライバのテスト. cc ドライバのインストール ~~~~~~~~~~~~~~~~~~~~~~~~~~~ (http://www-online.kek.jp/~inoue/CAMAC/ pollux-sol2.6/camac-step01.txt) 高エネルギー加速器研究機構 素粒子原子核研究所 物理、オンライングループ 井上 栄二 (1). 現状確認 (A). 物構研、金谷さんの SPARC CPU-7V の camac システムが動作しない とのこと。 1. camacシングルアクションread/write は正しく実行できる。 2. camac割り込み処理はうまく実行できない。 3. camac DMA read/write はうまく実行できない。 (B). CPUボード、K2917ボード、K3922ボードは正しく動作していることを 確認した。 K2917 は私が使用しているものとは仕様が異なっていたので cc.c を修正して正しく動作するのを確認した。 (C). 上記の(B)で動作確認した CPUボード、K2917ボード、K3922ボードに、 金谷さん所有のシステム・ディスクをつないでサンプル・プログラムを 実行した。 cam1、cam3、cam2 の全て NG。 (D). 金谷さんのシステム・ディスクに英語版 Solaris2.6 をインストール し直した。 (E). /etc の下の各設定、および /export/home の作成をやった。 (F). 7V に Solaris2.6用の VMEドライバ、FRCvme-2.2.2 をインストールした。 (2). ここでやるべきこと 7v に ccドライバをインストールする。 (3). ccドライバのキットを入手してインストールする (3-1). オンライン・グループの anonymous ftp サイトから、キットを入手 onl7v2[45]% pwd /export/home/inoue/CAMAC-rebuild onl7v2[46]% ls -l total 0 onl7v2[47]% ftp online.kek.jp Connected to onlax2.kek.jp. 220 onlax2.kek.jp FTP server (Version wu-2.4(1) Tue May 9 18:06:21 JST 1995) ready. Name (online.kek.jp:inoue): anonymous 331 Guest login ok, send your complete e-mail address as password. Password: 230-*** KEK Online Group Anonymous FTP service *** 230- 230-Welcome to KEK Online Group FTP service. 230- 230-ALL YOUR TRANSFERS WILL BE LOGGED. 230- 230 Guest login ok, access restrictions apply. ftp> dir 200 PORT command successful. 150 Opening ASCII mode data connection for /bin/ls. total 4 d--x--x--x 2 0 0 512 Jun 17 1997 bin drwxr-xr-x 3 0 0 512 Jun 17 1997 etc drwxr-xr-x 4 60002 60002 512 Jun 17 1997 pub -rw-r--r-- 1 0 0 125 Jun 17 1997 welcome.msg 226 Transfer complete. 253 bytes received in 0.26 seconds (0.95 Kbytes/s) ftp> cd pub/kek/camac 250-Please read the file README 250- it was last modified on Fri Dec 2 00:40:41 1994 - 1391 days ago 250 CWD command successful. ftp> dir 200 PORT command successful. 150 Opening ASCII mode data connection for /bin/ls. total 3260 -rw-r--r-- 1 0 10 1173 Apr 19 1995 122d_to_e.tar.gz -rw-r--r-- 1 0 10 22160 Nov 19 1997 FORCE-5V-sol2.5.tar.gz -rw-r--r-- 1 0 10 2494 Dec 2 1994 README -rwxr--r-- 1 0 10 3573 Jun 11 15:49 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 -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. 1830 bytes received in 0.089 seconds (20.09 Kbytes/s) ftp> binary 200 Type set to I. ftp> get FORCE-5V-sol2.5.tar.gz 200 PORT command successful. 150 Opening BINARY mode data connection for FORCE-5V-sol2.5.tar.gz (22160 bytes). 226 Transfer complete. local: FORCE-5V-sol2.5.tar.gz remote: FORCE-5V-sol2.5.tar.gz 22160 bytes received in 0.057 seconds (379.87 Kbytes/s) ftp> quit 221 Goodbye. onl7v2[48]% (3-2). 入手したキットを展開する onl7v2[48]% ls -l total 44 -rw-r--r-- 1 inoue staff 22160 Sep 24 14:20 FORCE-5V-sol2.5.tar.gz onl7v2[49]% /kek/local/bin/gzip -d FORCE-5V-sol2.5.tar.gz onl7v2[50]% ls -l total 256 -rw-r--r-- 1 inoue staff 120320 Sep 24 14:20 FORCE-5V-sol2.5.tar onl7v2[51]% tar xvf FORCE-5V-sol2.5.tar x FORCE-5V-sol2.5, 0 bytes, 0 tape blocks x FORCE-5V-sol2.5/Makefile, 2041 bytes, 4 tape blocks x FORCE-5V-sol2.5/README, 2730 bytes, 6 tape blocks x FORCE-5V-sol2.5/cam1.c, 1170 bytes, 3 tape blocks x FORCE-5V-sol2.5/cam3.c, 2055 bytes, 5 tape blocks x FORCE-5V-sol2.5/camlib.c, 9740 bytes, 20 tape blocks x FORCE-5V-sol2.5/camlib.h, 1415 bytes, 3 tape blocks x FORCE-5V-sol2.5/cc.c, 64403 bytes, 126 tape blocks x FORCE-5V-sol2.5/cc.conf, 288 bytes, 1 tape blocks x FORCE-5V-sol2.5/cc.h, 2748 bytes, 6 tape blocks x FORCE-5V-sol2.5/cc_common.h, 2288 bytes, 5 tape blocks x FORCE-5V-sol2.5/cc_config.h, 876 bytes, 2 tape blocks x FORCE-5V-sol2.5/forlib.c, 3289 bytes, 7 tape blocks x FORCE-5V-sol2.5/k2917.h, 4058 bytes, 8 tape blocks x FORCE-5V-sol2.5/script, 0 bytes, 0 tape blocks x FORCE-5V-sol2.5/script/cc_build.sh, 234 bytes, 1 tape blocks x FORCE-5V-sol2.5/script/cc_load.sh, 611 bytes, 2 tape blocks x FORCE-5V-sol2.5/script/cc_unload.sh, 270 bytes, 1 tape blocks x FORCE-5V-sol2.5/script/cc_build.gcc.sh, 233 bytes, 1 tape blocks x FORCE-5V-sol2.5/script/cc_link.sh, 528 bytes, 2 tape blocks x FORCE-5V-sol2.5/script/awk2.txt, 37 bytes, 1 tape blocks x FORCE-5V-sol2.5/script/awk1.txt, 66 bytes, 1 tape blocks x FORCE-5V-sol2.5/cam2.f, 2295 bytes, 5 tape blocks onl7v2[52]% (3-3). 展開したキットをコンパイルする (3-3-1). コンパイラのバージョンをチェック onl7v2[52]% which cc /kek/compilers/volume5/SUNWspro/bin/cc onl7v2[53]% which f77 /kek/compilers/volume5/SUNWspro/bin/f77 onl7v2[54]% cc -V cc: WorkShop Compilers 4.2.1 04 Feb 1997 C 4.2.1 usage: cc [ options] files. Use 'cc -flags' for details onl7v2[55]% f77 -V f77: WorkShop Compilers 4.2.1 04 Feb 1997 FORTRAN 77 4.2.1 Usage: f77 [ options ] files. Use 'f77 -flags' for details onl7v2[56]% (3-3-2). CAMACドライバを修正する 金谷さんの K2917 はオンライン・グループの K2917 と仕様が異なっている ようなので、そのための修正を行う。 onl7v2[59]% pwd /export/home/inoue/CAMAC-rebuild/FORCE-5V-sol2.5 onl7v2[60]% ls -l total 210 -rw-r--r-- 1 inoue staff 2041 May 23 1997 Makefile -rw-r--r-- 1 inoue staff 2730 Jul 1 1997 README -rw-r--r-- 1 inoue staff 1170 May 13 1997 cam1.c -rw-r--r-- 1 inoue staff 2295 May 22 1997 cam2.f -rw-r--r-- 1 inoue staff 2055 May 21 1997 cam3.c -rw-r--r-- 1 inoue staff 9740 May 21 1997 camlib.c -rw-r--r-- 1 inoue staff 1415 May 13 1997 camlib.h -rw-r--r-- 1 inoue staff 64403 Jun 2 1997 cc.c -rw-r--r-- 1 inoue staff 288 May 13 1997 cc.conf -rw-r--r-- 1 inoue staff 2748 May 13 1997 cc.h -rw-r--r-- 1 inoue staff 2288 May 13 1997 cc_common.h -rw-r--r-- 1 inoue staff 876 May 13 1997 cc_config.h -rw-r--r-- 1 inoue staff 3289 May 13 1997 forlib.c -rw-r--r-- 1 inoue staff 4058 May 13 1997 k2917.h drwxr-xr-x 2 inoue staff 512 Nov 10 1997 script/ onl7v2[61]% vi cc.c : static int cc_strategy(struct buf *bp) { register struct cc_device *cc = &ccdevice[0]; register struct K_REG *k = cc->k; : cc->retlen = 0; k->csr = CC_RST; /* K2917 Reset */ ^ | 2472行目のこの文がコメント・アウトされていたのをはずして、有効にした。 : : onl7v2[62]% (3-3-3). CAMACドライバをコンパイルする onl7v2[63]% pwd /export/home/inoue/CAMAC-rebuild/FORCE-5V-sol2.5 onl7v2[64]% make ./script/cc_build.sh [Building for sun4m] rm -f cc.o cc -O -c camlib.c -o camlib.o -I. cc -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 -O cam1.c -o cam1 -I. -L. -lcamac f77 -fast -O3 -u cam2.f -o cam2 -I. -L. -lcamac cam2.f: MAIN: cc -O cam3.c -o cam3 -I. -L. -lcamac onl7v2[65]% (3-4). "make install" をやる onl7v2# pwd /export/home/inoue/CAMAC-rebuild/FORCE-5V-sol2.5 onl7v2# ls -l /usr/local /usr/local: No such file or directory onl7v2# mkdir /usr/local onl7v2# ls -l total 484 -rw-r--r-- 1 inoue staff 2041 May 23 1997 Makefile -rw-r--r-- 1 inoue staff 2730 Jul 1 1997 README -rwxr-xr-x 1 inoue staff 13304 Sep 24 14:45 cam1* -rw-r--r-- 1 inoue staff 1170 May 13 1997 cam1.c -rwxr-xr-x 1 inoue staff 27824 Sep 24 14:45 cam2* -rw-r--r-- 1 inoue staff 2295 May 22 1997 cam2.f -rwxr-xr-x 1 inoue staff 13864 Sep 24 14:45 cam3* -rw-r--r-- 1 inoue staff 2055 May 21 1997 cam3.c -rw-r--r-- 1 inoue staff 9740 May 21 1997 camlib.c -rw-r--r-- 1 inoue staff 1415 May 13 1997 camlib.h -rw-r--r-- 1 inoue staff 9520 Sep 24 14:45 camlib.o -rw-r--r-- 1 inoue staff 54404 Sep 24 14:44 cc -rw-r--r-- 1 inoue staff 64399 Sep 24 14:43 cc.c -rw-r--r-- 1 inoue staff 288 May 13 1997 cc.conf -rw-r--r-- 1 inoue staff 2748 May 13 1997 cc.h -rw-r--r-- 1 inoue staff 2288 May 13 1997 cc_common.h -rw-r--r-- 1 inoue staff 876 May 13 1997 cc_config.h -rw-r--r-- 1 inoue staff 3289 May 13 1997 forlib.c -rw-r--r-- 1 inoue staff 3472 Sep 24 14:45 forlib.o -rw-r--r-- 1 inoue staff 4058 May 13 1997 k2917.h -rw-r--r-- 1 inoue staff 13852 Sep 24 14:45 libcamac.a drwxr-xr-x 2 inoue staff 512 Nov 10 1997 script/ onl7v2# 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 onl7v2# ls -lLR /usr/local /usr/local: total 2 drwxr-xr-x 3 root other 512 Sep 24 14:51 vme/ /usr/local/vme: total 2 drwxr-xr-x 4 root other 512 Sep 24 14:51 camac/ /usr/local/vme/camac: total 4 drwxr-xr-x 2 root other 512 Sep 24 14:51 include/ drwxr-xr-x 2 root other 512 Sep 24 14:51 lib/ /usr/local/vme/camac/include: total 26 -rw-r--r-- 1 root staff 1415 Sep 24 14:51 camlib.h -rw-r--r-- 1 root staff 2748 Sep 24 14:51 cc.h -rw-r--r-- 1 root staff 2288 Sep 24 14:51 cc_common.h -rw-r--r-- 1 root staff 876 Sep 24 14:51 cc_config.h -rw-r--r-- 1 root staff 4058 Sep 24 14:51 k2917.h /usr/local/vme/camac/lib: total 28 -rw-r--r-- 1 root staff 13852 Sep 24 14:51 libcamac.a onl7v2# (3-5). ccドライバのロード、アンロード onl7v2# pwd /export/home/inoue/CAMAC-rebuild/FORCE-5V-sol2.5 onl7v2# make load ./script/cc_load.sh [Installing CAMAC device driver] [Adding CAMAC device driver to system] [Configuring CAMAC device driver] [Making CAMAC device files] onl7v2# make unload ./script/cc_unload.sh [Removing CAMAC device driver] [Removing CAMAC device driver from system] [Deleting CAMAC device files] onl7v2# ok. ccドライバのロード、アンロードはうまくできている。 onl7v2# make load ./script/cc_load.sh [Installing CAMAC device driver] [Adding CAMAC device driver to system] [Configuring CAMAC device driver] [Making CAMAC device files] onl7v2# (3-6). ここで、システムを立ちあげ直す onl7v2 console login: root Password: Sep 24 14:58:29 onl7v2 login: ROOT LOGIN /dev/console Last login: Thu Sep 24 11:12:46 on console Sun Microsystems Inc. SunOS 5.6 Generic August 1997 Starting OpenWindows in 5 seconds (type Control-C to interrupt) ^C# # /usr/sbin/shutdown -i0 -g0 Shutdown started. Thu Sep 24 14:58:42 JST 1998 Do you want to continue? (y or n): y Broadcast Message from root (console) on onl7v2 Thu Sep 24 14:58:43... THE SYSTEM IS BEING SHUT DOWN NOW ! ! ! Log off now or risk your files being damaged showmount: onl7v2: RPC: Program not registered Changing to init state 0 - please wait # INIT: New run level: 0 The system is coming down. Please wait. System services are now being stopped. Print services stopped. Stopping the syslog service. syslogd: going down on signal 15 umount: /net/onlsun1/home1/local busy umount: /net/onlsun1/home1/opt_ext busy umount: /net/onlsun1/export busy umount: /net/onlsun1/home1 busy umount: /net/onlsun1/usr busy umount: /net busy umount: /kekfs busy Sep 24 14:59:33 snmpdx: received signal 15 umount: /net/onlsun1/home1/cern/95a busy umount: /net/onlsun1/home1/local busy umount: /net/onlsun1/home1/opt_ext busy umount: /net/onlsun1/home1/cern busy umount: /net/onlsun1/export busy umount: /net/onlsun1/home1 busy umount: /net/onlsun1/usr busy umount: /net busy The system is down. INIT: failed write of utmpx entry:"s0" INIT: failed write of utmpx entry:"fw" syncing file systems... done Program terminated Type help for more information ok ok boot -r Resetting ... screen not found. Can't open input device. Keyboard not present. Using tty for input and output. SPARC CPU-7V, No Keyboard ROM Rev. 2.15.1, 128 MB memory installed, Serial #9161054. Ethernet address 0:80:42:b:59:5e, Host ID: 808bc95e. Rebooting with command: -r Boot device: /iommu/sbus/espdma@5,8400000/esp@5,8800000/sd@3,0 File and args: - r SunOS Release 5.6 Version Generic [UNIX(R) System V Release 4.0] Copyright (c) 1983-1997, Sun Microsystems, Inc. FRCvme VME Nexus V2.2.2 (FGA-5000 FGA-5100) configuring network interfaces: le0. Hostname: onl7v2 Configuring the /devices directory CAMAC device driver V1.3x, 1991-1993 by Y.TAKEUCHI (T.I.T.) cc0 at VME0: vme16d16 0xff00 VME level 4 vector 0xff sparc ipl 7 vmemem0 at VME0: vme32d16 0x0 vmemem1 at VME0: vme16d16 0x0 vmemem2 at VME0: vme24d16 0x0 vmemem3 at VME0: vme32d32 0x0 vmemem4 at VME0: vme16d32 0x0 vmemem5 at VME0: vme24d32 0x0 vmeplus0 at VME0: vme16d16 0x0 and vme24d16 0x0 and vme32d16 0x0 and vme16d32 0x 0 and vme24d32 0x0 and vme32d32 0x0 and space 0x2f offset 0x0 and space 0x6f offset 0x0 and space 0x10 offset 0x0 and space 0x11 offset 0x0 and space 0x50 offset 0x0 and space 0x51 offset 0x0 vmectl0 at VME0 Configuring the /dev directory Configuring the /dev directory (compatibility devices) The system is coming up. Please wait. checking ufs filesystems /dev/rdsk/c0t3d0s5: is clean. /dev/rdsk/c0t3d0s7: is clean. add net default: gateway ICCFG1 NIS domainname is kek.jp starting rpc services: rpcbind keyserv done. Setting netmask of le0 to 255.255.252.0 Setting default interface for multicast: add net 224.0.0.0: gateway onl7v2 syslog service starting. Print services started. volume management starting. The system is ready. onl7v2 console login: onl7v2 console login: root Password: Last login: Thu Sep 24 14:58:29 on console Sep 24 15:04:16 onl7v2 login: ROOT LOGIN /dev/console Sun Microsystems Inc. SunOS 5.6 Generic August 1997 Starting OpenWindows in 5 seconds (type Control-C to interrupt) ^C# # csh onl7v2# source /.cshrc onl7v2# ls -l /dev/cc lrwxrwxrwx 1 root other 3 Sep 24 14:55 /dev/cc -> :cc onl7v2# camac用のデバイス・スペシャル・ファイルが正しく作られていない。 再度リブートしてみる。 onl7v2# /usr/sbin/shutdown -i0 -g0 Shutdown started. Thu Sep 24 15:05:51 JST 1998 Do you want to continue? (y or n): y Broadcast Message from root (console) on onl7v2 Thu Sep 24 15:05:52... THE SYSTEM IS BEING SHUT DOWN NOW ! ! ! Log off now or risk your files being damaged showmount: onl7v2: RPC: Program not registered Changing to init state 0 - please wait onl7v2# INIT: New run level: 0 The system is coming down. Please wait. System services are now being stopped. Print services stopped. Stopping the syslog service. syslogd: going down on signal 15 Sep 24 15:06:41 snmpdx: received signal 15 The system is down. INIT: failed write of utmpx entry:"s0" INIT: failed write of utmpx entry:"fw" syncing file systems... done Program terminated Type help for more information ok ok boot -r Resetting ... screen not found. Can't open input device. Keyboard not present. Using tty for input and output. SPARC CPU-7V, No Keyboard ROM Rev. 2.15.1, 128 MB memory installed, Serial #9161054. Ethernet address 0:80:42:b:59:5e, Host ID: 808bc95e. Rebooting with command: -r Boot device: /iommu/sbus/espdma@5,8400000/esp@5,8800000/sd@3,0 File and args: - r SunOS Release 5.6 Version Generic [UNIX(R) System V Release 4.0] Copyright (c) 1983-1997, Sun Microsystems, Inc. FRCvme VME Nexus V2.2.2 (FGA-5000 FGA-5100) configuring network interfaces: le0. Hostname: onl7v2 Configuring the /devices directory CAMAC device driver V1.3x, 1991-1993 by Y.TAKEUCHI (T.I.T.) cc0 at VME0: vme16d16 0xff00 VME level 4 vector 0xff sparc ipl 7 vmemem0 at VME0: vme32d16 0x0 vmemem1 at VME0: vme16d16 0x0 vmemem2 at VME0: vme24d16 0x0 vmemem3 at VME0: vme32d32 0x0 vmemem4 at VME0: vme16d32 0x0 vmemem5 at VME0: vme24d32 0x0 vmeplus0 at VME0: vme16d16 0x0 and vme24d16 0x0 and vme32d16 0x0 and vme16d32 0x 0 and vme24d32 0x0 and vme32d32 0x0 and space 0x2f offset 0x0 and space 0x6f offset 0x0 and space 0x10 offset 0x0 and space 0x11 offset 0x0 and space 0x50 offset 0x0 and space 0x51 offset 0x0 vmectl0 at VME0 Configuring the /dev directory Configuring the /dev directory (compatibility devices) The system is coming up. Please wait. checking ufs filesystems /dev/rdsk/c0t3d0s5: is clean. /dev/rdsk/c0t3d0s7: is clean. add net default: gateway ICCFG1 NIS domainname is kek.jp starting rpc services: rpcbind keyserv done. Setting netmask of le0 to 255.255.252.0 Setting default interface for multicast: add net 224.0.0.0: gateway onl7v2 syslog service starting. Print services started. volume management starting. The system is ready. onl7v2 console login: onl7v2 console login: inoue Password: Last login: Thu Sep 24 13:40:15 from onlsun1.kek.jp Sun Microsystems Inc. SunOS 5.6 Generic August 1997 Starting OpenWindows in 5 seconds (type Control-C to interrupt)^Conl7v2[33]% onl7v2[33]% cd CAMAC-rebuild/FORCE-5V-sol2.5 onl7v2[34]% ls -l total 484 -rw-r--r-- 1 inoue staff 2041 May 23 1997 Makefile -rw-r--r-- 1 inoue staff 2730 Jul 1 1997 README -rwxr-xr-x 1 inoue staff 13304 Sep 24 14:45 cam1* -rw-r--r-- 1 inoue staff 1170 May 13 1997 cam1.c -rwxr-xr-x 1 inoue staff 27824 Sep 24 14:45 cam2* -rw-r--r-- 1 inoue staff 2295 May 22 1997 cam2.f -rwxr-xr-x 1 inoue staff 13864 Sep 24 14:45 cam3* -rw-r--r-- 1 inoue staff 2055 May 21 1997 cam3.c -rw-r--r-- 1 inoue staff 9740 May 21 1997 camlib.c -rw-r--r-- 1 inoue staff 1415 May 13 1997 camlib.h -rw-r--r-- 1 inoue staff 9520 Sep 24 14:45 camlib.o -rw-r--r-- 1 inoue staff 54404 Sep 24 14:44 cc -rw-r--r-- 1 inoue staff 64399 Sep 24 14:43 cc.c -rw-r--r-- 1 inoue staff 288 May 13 1997 cc.conf -rw-r--r-- 1 inoue staff 2748 May 13 1997 cc.h -rw-r--r-- 1 inoue staff 2288 May 13 1997 cc_common.h -rw-r--r-- 1 inoue staff 876 May 13 1997 cc_config.h -rw-r--r-- 1 inoue staff 3289 May 13 1997 forlib.c -rw-r--r-- 1 inoue staff 3472 Sep 24 14:45 forlib.o -rw-r--r-- 1 inoue staff 4058 May 13 1997 k2917.h -rw-r--r-- 1 inoue staff 13852 Sep 24 14:45 libcamac.a drwxr-xr-x 2 inoue staff 512 Nov 10 1997 script/ onl7v2[38]% su Password: Sep 24 15:11:36 onl7v2 su: 'su root' succeeded for inoue on /dev/console # csh onl7v2# source /.cshrc onl7v2# make load ./script/cc_load.sh [Installing CAMAC device driver] [Adding CAMAC device driver to system] Driver (cc) is already installed. [Configuring CAMAC device driver] CAMAC device driver V1.3x, 1991-1993 by Y.TAKEUCHI (T.I.T.) cc0 at VME0: vme16d16 0xff00 VME level 4 vector 0xff sparc ipl 7 vmemem0 at VME0: vme32d16 0x0 vmemem1 at VME0: vme16d16 0x0 vmemem2 at VME0: vme24d16 0x0 vmemem3 at VME0: vme32d32 0x0 vmemem4 at VME0: vme16d32 0x0 vmemem5 at VME0: vme24d32 0x0 vmeplus0 at VME0: vme16d16 0x0 and vme24d16 0x0 and vme32d16 0x0 and vme16d32 0x 0 and vme24d32 0x0 and vme32d32 0x0 and space 0x2f offset 0x0 and space 0x6f offset 0x0 and space 0x10 offset 0x0 and space 0x11 offset 0x0 and space 0x50 offset 0x0 and space 0x51 offset 0x0 vmectl0 at VME0 [Making CAMAC device files] ln: cannot create /dev/cc: File exists onl7v2# ls -l /dev/cc lrwxrwxrwx 1 root other 3 Sep 24 14:55 /dev/cc -> :cc onl7v2# make unload ./script/cc_unload.sh [Removing CAMAC device driver] [Removing CAMAC device driver from system] [Deleting CAMAC device files] onl7v2# ls -l /dev/cc /dev/cc: No such file or directory onl7v2# make load ./script/cc_load.sh [Installing CAMAC device driver] [Adding CAMAC device driver to system] CAMAC device driver V1.3x, 1991-1993 by Y.TAKEUCHI (T.I.T.) cc0 at VME0: vme16d16 0xff00 VME level 4 vector 0xff sparc ipl 7 [Configuring CAMAC device driver] [Making CAMAC device files] onl7v2# ls -l /dev/cc lrwxrwxrwx 1 root other 69 Sep 24 15:12 /dev/cc -> /devices/iommu@ 0,10000000/sbus@0,10001000/VME@5,ffffe00/cc@2d,ff00:cc onl7v2# ok. camac用のデバイス・スペシャル・ファイルは正しく作られた。 (4). VME.conf に slavewin プロパティを設定する onl7v2# pwd /platform/sun4m/kernel/drv onl7v2# ls VME* dma* mcp.conf profile.conf sx_cmem.conf VME.conf fd* mcpp* rootnex* tcx* VME_fga5000* id* mcpp.conf sbus* vme* VME_s4* id.conf mcpzsa* sbusmem* vmemem* bwtwo* iommu* mcpzsa.conf sbusmem.conf vmemem.conf cgeight* ipi3sc* mic* stc* zs* cgfourteen* ledma* obio* stc.conf zsh* cgsix* leo* pmc* sx* zsh.conf cgthree* mcp* pn* sx_cmem* onl7v2# mv VME.conf VME.conf.org onl7v2# cp VME.conf.org VME.conf onl7v2# ls -l VME* -rwxr-xr-x 2 root sys 204112 Sep 24 11:26 VME* -rw-r--r-- 1 root other 1810 Sep 24 16:19 VME.conf -rw-r--r-- 1 root sys 1810 Nov 21 1997 VME.conf.org -rwxr-xr-x 2 root sys 204112 Sep 24 11:26 VME_fga5000* -rwxr-xr-x 1 root sys 170744 Jan 15 1998 VME_s4* onl7v2# chgrp sys VME.conf onl7v2# ls -l VME.conf* -rw-r--r-- 1 root sys 1810 Sep 24 16:19 VME.conf -rw-r--r-- 1 root sys 1810 Nov 21 1997 VME.conf.org onl7v2# vi VME.conf # %Z%$RCSfile: VME.conf,v $ $Revision: 1.5.2.1 $ %D% FRC # # vmewin must be on a 256MB boundary # vmewin= # vmewinX= # The syntax for VME A24/A16 windows is vmexxdxx=, # The parameter is currently ignored (the full 16MB/64K range is used). # If these properties exist, the VSI is programmed with a static SBus to # VMEbus mapping. # # If you don't need this and want to save range registers in the VSI, # you should comment it out. # # The slavewin property is only needed for device drivers that want to # to do 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 VSI 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 , , # # vme_start must be aligned to vme_size. vme_size must be 0x100000 (1MB), 2MB # 4MB, 8MB, ... 64MB. Space is a bitset of the VME_BT_xxx literals defined # in sys/vme_types. Standard values are: # 0x00020000 for a slave window in A24 space # 0x00040000 for a slave window in A32 space # # Refer to the manual for possible values for different hardware. E.g. if # you want the slave memory to accept BLT/MBLT transfers, set the # VME_BT_BLT/VME_BT_MBLT bits: # 0x00040600 for a slave window in A32 space with BLT/MBLT enabled. # #vmewin1=0x40000000 #vmewin2=0x20000000 #vmewin3=0x30000000 #vmewin=0x10000000 #vme16d16=0x0,0x10000 #vme16d32=0x0,0x10000 #vme24d32=0x0,0x100000 #vme24d16=0x0,0x100000 #slavewin=0x000000,0x100000,0x00020000 slavewin=0x000000,0x100000,0x00020000 pamc=0x10, 0x11 ; "VME.conf" 48 lines, 1848 characters onl7v2# (5). システムをリブートする onl7v2# /usr/sbin/shutdown -i0 -g0 Shutdown started. Thu Sep 24 16:25:54 JST 1998 Do you want to continue? (y or n): y Broadcast Message from root (console) on onl7v2 Thu Sep 24 16:25:56... THE SYSTEM IS BEING SHUT DOWN NOW ! ! ! Log off now or risk your files being damaged showmount: onl7v2: RPC: Program not registered Changing to init state 0 - please wait onl7v2# Hangup # INIT: New run level: 0 The system is coming down. Please wait. System services are now being stopped. Print services stopped. Stopping the syslog service. syslogd: going down on signal 15 umount: /net/onlsun1/home1/opt_ext/inoue-nfs busy umount: /net/onlsun1/home1/opt_ext busy umount: /net/onlsun1/home1/cern busy umount: /net/onlsun1/export busy umount: /net/onlsun1/home1 busy umount: /net busy umount: /kekfs busy umount: /net/onlsun1/usr busy # Sep 24 16:26:46 snmpdx: received signal 15 umount: /net/onlsun1/home1/opt_ext/inoue-nfs busy umount: /net/onlsun1/home1/cern/95a busy umount: /net/onlsun1/home1/local busy umount: /net/onlsun1/home1/opt_ext busy umount: /net/onlsun1/home1/cern busy umount: /net/onlsun1/export busy umount: /net/onlsun1/home1 busy umount: /net/onlsun1/usr busy umount: /net busy The system is down. INIT: failed write of utmpx entry:"s0" INIT: failed write of utmpx entry:"fw" syncing file systems... done Program terminated Type help for more information ok ok boot -r Resetting ... screen not found. Can't open input device. Keyboard not present. Using tty for input and output. SPARC CPU-7V, No Keyboard ROM Rev. 2.15.1, 128 MB memory installed, Serial #9161054. Ethernet address 0:80:42:b:59:5e, Host ID: 808bc95e. Rebooting with command: -r Boot device: /iommu/sbus/espdma@5,8400000/esp@5,8800000/sd@3,0 File and args: - r SunOS Release 5.6 Version Generic [UNIX(R) System V Release 4.0] Copyright (c) 1983-1997, Sun Microsystems, Inc. FRCvme VME Nexus V2.2.2 (FGA-5000 FGA-5100) NOTICE: VME: slavewin at vme=0x0, size=0x100000 space=0x2c020017 configuring network interfaces: le0. Hostname: onl7v2 Configuring the /devices directory CAMAC device driver V1.3x, 1991-1993 by Y.TAKEUCHI (T.I.T.) cc0 at VME0: vme16d16 0xff00 VME level 4 vector 0xff sparc ipl 7 vmemem0 at VME0: vme32d16 0x0 vmemem1 at VME0: vme16d16 0x0 vmemem2 at VME0: vme24d16 0x0 vmemem3 at VME0: vme32d32 0x0 vmemem4 at VME0: vme16d32 0x0 vmemem5 at VME0: vme24d32 0x0 vmeplus0 at VME0: vme16d16 0x0 and vme24d16 0x0 and vme32d16 0x0 and vme16d32 0x 0 and vme24d32 0x0 and vme32d32 0x0 and space 0x2f offset 0x0 and space 0x6f offset 0x0 and space 0x10 offset 0x0 and space 0x11 offset 0x0 and space 0x50 offset 0x0 and space 0x51 offset 0x0 vmectl0 at VME0 Configuring the /dev directory Configuring the /dev directory (compatibility devices) The system is coming up. Please wait. checking ufs filesystems /dev/rdsk/c0t3d0s5: is clean. /dev/rdsk/c0t3d0s7: is clean. add net default: gateway ICCFG1 NIS domainname is kek.jp starting rpc services: rpcbind keyserv done. Setting netmask of le0 to 255.255.252.0 Setting default interface for multicast: add net 224.0.0.0: gateway onl7v2 syslog service starting. Print services started. volume management starting. The system is ready. onl7v2 console login: ok. VME slave window の設定は正常に行われた。 --- (6). 項目タイトル (6-1). サブ項目タイトル (6-1-1). サブサブ項目タイトル