Nov 9, 1998 onl8v1: Solaris 2.6 cc ドライバのテスト cc ドライバのインストール ~~~~~~~~~~~~~~~~~~~~~~~~~~~ (http://www-online.kek.jp/~inoue/CAMAC/ onl8v1-sol2.6/camac-step01.txt) 高エネルギー加速器研究機構 素粒子原子核研究所 物理、オンライングループ 井上 栄二 (1). 現状確認 (A). 株式会社ロジックハウスの白田様より SPARC CPU-8VT と、VMEドライバ v2.3.1 を借用した。 (B). CPU-8VT に Solaris2.6 のシステムをインストールした。 (C). /etc の下の各設定作業の途中でシステム・ディスクが障害を起こした。 (D). 調査の結果、復旧は困難なことがわかった。 新しいものと交換して もらうことになった。 (E). 交換用のディスクが届いた。 再度システムのインストールを行った。 (F). /etc の下の各設定、および /export/home の作成をやった。 (G). CPU-8VT に Solaris2.6用の VMEドライバ、FRCvme-2.3.1 をインストール する。 (2). ここでやるべきこと onl8v1 に ccドライバをインストールする。 (3). ccドライバのキットを入手、インストールする (3-1). オンライン・グループの anonymous ftp サイトから、キットを入手 onl8v1[58]% pwd /export/home/onl8v1/inoue/CAMAC/Driver onl8v1[59]% ftp online Connected to onlax2. 220 onlax2.kek.jp FTP server (Digital UNIX Version 5.60) ready. Name (online:inoue): anonymous 331 Guest login ok, send ident as password. Password: 230 Guest login ok, access restrictions apply. ftp> dir 200 PORT command successful. 150 Opening ASCII mode data connection for /bin/ls (130.87.217.124,32794). 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.22 seconds (1.11 Kbytes/s) 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.217.124,32798). 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 3569 Oct 21 11:01 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.031 seconds (58.22 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 (130.87.217.124,32799) (22160 bytes). 226 Transfer complete. local: FORCE-5V-sol2.5.tar.gz remote: FORCE-5V-sol2.5.tar.gz 22160 bytes received in 0.13 seconds (161.23 Kbytes/s) ftp> quit 221 Goodbye. onl8v1[60]% ls -l total 44 -rw-r--r-- 1 inoue kek 22160 Nov 9 15:34 FORCE-5V-sol2.5.tar.gz onl8v1[61]% (3-2). 入手したキットを展開する onl8v1[38]% pwd /export/home/onl8v1/inoue/CAMAC/Driver onl8v1[39]% ls -l total 44 -rw-r--r-- 1 inoue kek 22160 Nov 9 15:34 FORCE-5V-sol2.5.tar.gz onl8v1[40]% gzip -d FORCE-5V-sol2.5.tar.gz onl8v1[41]% ls -l total 256 -rw-r--r-- 1 inoue kek 120320 Nov 9 15:34 FORCE-5V-sol2.5.tar onl8v1[42]% 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 onl8v1[43]% (3-3). 展開したキットをコンパイルする (3-3-1). コンパイラのバージョンをチェック onl8v1[45]% which cc /kek/compilers/volume5/SUNWspro/bin/cc onl8v1[46]% which f77 /kek/compilers/volume5/SUNWspro/bin/f77 onl8v1[47]% cc -V cc: WorkShop Compilers 4.2.1 04 Feb 1997 C 4.2.1 usage: cc [ options] files. Use 'cc -flags' for details onl8v1[48]% 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 onl8v1[49]% (3-3-2). CAMACドライバをコンパイルする onl8v1[53]% pwd /export/home/onl8v1/inoue/CAMAC/Driver/FORCE-5V-sol2.5 onl8v1[54]% ls -l total 210 -rw-r--r-- 1 inoue kek 2041 May 23 1997 Makefile -rw-r--r-- 1 inoue kek 2730 Jul 1 1997 README -rw-r--r-- 1 inoue kek 1170 May 13 1997 cam1.c -rw-r--r-- 1 inoue kek 2295 May 22 1997 cam2.f -rw-r--r-- 1 inoue kek 2055 May 21 1997 cam3.c -rw-r--r-- 1 inoue kek 9740 May 21 1997 camlib.c -rw-r--r-- 1 inoue kek 1415 May 13 1997 camlib.h -rw-r--r-- 1 inoue kek 64403 Jun 2 1997 cc.c -rw-r--r-- 1 inoue kek 288 May 13 1997 cc.conf -rw-r--r-- 1 inoue kek 2748 May 13 1997 cc.h -rw-r--r-- 1 inoue kek 2288 May 13 1997 cc_common.h -rw-r--r-- 1 inoue kek 876 May 13 1997 cc_config.h -rw-r--r-- 1 inoue kek 3289 May 13 1997 forlib.c -rw-r--r-- 1 inoue kek 4058 May 13 1997 k2917.h drwxr-xr-x 2 inoue kek 512 Nov 10 1997 script/ onl8v1[55]% 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 onl8v1[56]% (3-4). "make install" をやる onl8v1# ls -l /usr/local /usr/local: No such file or directory onl8v1# mkdir /usr/local onl8v1# pwd /export/home/onl8v1/inoue/CAMAC/Driver/FORCE-5V-sol2.5 onl8v1# ls -l total 486 -rw-r--r-- 1 inoue kek 2041 May 23 1997 Makefile -rw-r--r-- 1 inoue kek 2730 Jul 1 1997 README -rwxr-xr-x 1 inoue kek 13316 Nov 9 15:55 cam1 -rw-r--r-- 1 inoue kek 1170 May 13 1997 cam1.c -rwxr-xr-x 1 inoue kek 27844 Nov 9 15:55 cam2 -rw-r--r-- 1 inoue kek 2295 May 22 1997 cam2.f -rwxr-xr-x 1 inoue kek 13876 Nov 9 15:55 cam3 -rw-r--r-- 1 inoue kek 2055 May 21 1997 cam3.c -rw-r--r-- 1 inoue kek 9740 May 21 1997 camlib.c -rw-r--r-- 1 inoue kek 1415 May 13 1997 camlib.h -rw-r--r-- 1 inoue kek 9528 Nov 9 15:55 camlib.o -rw-r--r-- 1 inoue kek 54400 Nov 9 15:54 cc -rw-r--r-- 1 inoue kek 64403 Jun 2 1997 cc.c -rw-r--r-- 1 inoue kek 288 May 13 1997 cc.conf -rw-r--r-- 1 inoue kek 2748 May 13 1997 cc.h -rw-r--r-- 1 inoue kek 2288 May 13 1997 cc_common.h -rw-r--r-- 1 inoue kek 876 May 13 1997 cc_config.h -rw-r--r-- 1 inoue kek 3289 May 13 1997 forlib.c -rw-r--r-- 1 inoue kek 3480 Nov 9 15:55 forlib.o -rw-r--r-- 1 inoue kek 4058 May 13 1997 k2917.h -rw-r--r-- 1 inoue kek 13868 Nov 9 15:55 libcamac.a drwxr-xr-x 2 inoue kek 512 Nov 10 1997 script onl8v1# 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 onl8v1# ls -lLR /usr/local /usr/local: total 2 drwxr-xr-x 3 root other 512 Nov 9 16:00 vme /usr/local/vme: total 2 drwxr-xr-x 4 root other 512 Nov 9 16:00 camac /usr/local/vme/camac: total 4 drwxr-xr-x 2 root other 512 Nov 9 16:00 include drwxr-xr-x 2 root other 512 Nov 9 16:00 lib /usr/local/vme/camac/include: total 26 -rw-r--r-- 1 root staff 1415 Nov 9 16:00 camlib.h -rw-r--r-- 1 root staff 2748 Nov 9 16:00 cc.h -rw-r--r-- 1 root staff 2288 Nov 9 16:00 cc_common.h -rw-r--r-- 1 root staff 876 Nov 9 16:00 cc_config.h -rw-r--r-- 1 root staff 4058 Nov 9 16:00 k2917.h /usr/local/vme/camac/lib: total 28 -rw-r--r-- 1 root staff 13868 Nov 9 16:00 libcamac.a onl8v1# (3-5). ここで、システムを立ちあげ直す # /usr/sbin/shutdown -i0 -g0 Shutdown started. Mon Nov 9 16:04:18 JST 1998 Do you want to continue? (y or n): y Broadcast Message from root (console) on onl8v1 Mon Nov 9 16:04:20... THE SYSTEM IS BEING SHUT DOWN NOW ! ! ! Log off now or risk your files being damaged showmount: onl8v1: 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/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/onlsun1/home4 busy umount: /net busy umount: /kekfs busy Nov 9 16:05:06 snmpdx: received signal 15 umount: /net/onlsun1/home1/cern/95a busy umount: /net/onlsun1/home1/opt_ext/inoue-nfs 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/home4 busy umount: /net/onlsun1/usr busy umount: /net busy The system is down. 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-8VT, No Keyboard ROM Rev. 2.15.1, 64 MB memory installed, Serial #9172389. Ethernet address 0:80:42:b:85:a5, Host ID: 808bf5a5. 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. configuring network interfaces: le0. Hostname: onl8v1 Configuring the /devices directory FRCvme V2.3.1 VME Nexus (FGA-5000 FGA-5100) 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 vmedma0 at VME0 vmefdma0 at VME0 vmedvma0 at VME0 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/c0t3d0s4: is clean. /dev/rdsk/c0t3d0s3: is clean. /dev/rdsk/c0t3d0s7: is clean. add net default: gateway ICCFP1 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 onl8v1 syslog service starting. Print services started. volume management starting. The system is ready. onl8v1 console login: (3-6). ccドライバのロード、アンロード ccドライバのロード、アンロードが正しく実行できることを確認する。 onl8v1# make load ./script/cc_load.sh [Installing CAMAC device driver] [Adding CAMAC device driver to system] [Configuring CAMAC device driver] [Making CAMAC device files] onl8v1# ls -l /dev/cc lrwxrwxrwx 1 root other 3 Nov 9 16:12 /dev/cc -> :cc onl8v1# camac スペシャル・ファイルが正しく作られていない。 システムをリブートする。 # /usr/sbin/shutdown -i0 -g0 Shutdown started. Mon Nov 9 16:16:55 JST 1998 Do you want to continue? (y or n): y Broadcast Message from root (console) on onl8v1 Mon Nov 9 16:17:14... THE SYSTEM IS BEING SHUT DOWN NOW ! ! ! Log off now or risk your files being damaged showmount: onl8v1: 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/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/onlsun1/home4 busy umount: /net/onlsun1/usr busy umount: /net busy umount: /kekfs busy Nov 9 16:18:00 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/home4 busy umount: /net/onlsun1/usr busy umount: /net busy The system is down. 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-8VT, No Keyboard ROM Rev. 2.15.1, 64 MB memory installed, Serial #9172389. Ethernet address 0:80:42:b:85:a5, Host ID: 808bf5a5. 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. configuring network interfaces: le0. Hostname: onl8v1 Configuring the /devices directory FRCvme V2.3.1 VME Nexus (FGA-5000 FGA-5100) 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 vmedma0 at VME0 vmefdma0 at VME0 vmedvma0 at VME0 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/c0t3d0s4: is clean. /dev/rdsk/c0t3d0s3: is clean. /dev/rdsk/c0t3d0s7: is clean. add net default: gateway ICCFP1 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 onl8v1 syslog service starting. Print services started. volume management starting. The system is ready. onl8v1 console login: onl8v1# ls -l /dev/cc lrwxrwxrwx 1 root other 3 Nov 9 16:16 /dev/cc -> :cc onl8v1# make unload ./script/cc_unload.sh [Removing CAMAC device driver] [Removing CAMAC device driver from system] [Deleting CAMAC device files] onl8v1# ls -l /dev/cc /dev/cc: No such file or directory onl8v1# make load ./script/cc_load.sh [Installing CAMAC device driver] [Adding CAMAC device driver to system] [Configuring CAMAC device driver] [Making CAMAC device files] onl8v1# ls -l /dev/cc lrwxrwxrwx 1 root other 69 Nov 9 16:23 /dev/cc -> /devices/iommu@ 0,10000000/sbus@0,10001000/VME@5,ffffe00/cc@2d,ff00:cc onl8v1# ok. 正常に実行できた。 (3-7). ccドライバがロードされた時の情報 o /var/adm/messagesファイル中の情報 Nov 9 16:22:56 onl8v1 unix: CAMAC device driver V1.3x, 1991-1993 by Y.TAKEUCHI (T.I.T.) Nov 9 16:22:56 onl8v1 unix: cc0 at VME0 Nov 9 16:22:56 onl8v1 unix: : Nov 9 16:22:56 onl8v1 unix: vme16d16 0xff00 Nov 9 16:22:56 onl8v1 unix: Nov 9 16:22:56 onl8v1 unix: VME level 4 vector 0xff sparc ipl 7 Nov 9 16:22:56 onl8v1 unix: cc0 is /iommu@0,10000000/sbus@0,10001000/VME@5,ffff e00/cc@2d,ff00 o デバイス・スペシャル・ファイル情報 onl8v1[48]% ls -l /dev/cc lrwxrwxrwx 1 root other 69 Nov 9 16:23 /dev/cc -> /devices/iommu@0,10000000/sbus@0,10001000/VME@5,ffffe00/cc@2d,ff00:cc onl8v1[49]% (4). VME スレーブ・ウインドウを設定する (4-1). VME.conf ファイルを修正する onl8v1# pwd /platform/sun4m/kernel/drv onl8v1# ls -l total 2992 -rwxr-xr-x 2 root sys 183676 Nov 6 14:42 VME -rw-r--r-- 1 root sys 2850 Jul 29 16:36 VME.conf -rwxr-xr-x 2 root sys 183676 Nov 6 14:42 VME_fga5000 -rwxr-xr-x 1 root sys 157244 Aug 11 00:40 VME_s4 -rwxr-xr-x 1 root sys 17504 Jul 16 1997 bwtwo -rwxr-xr-x 1 root sys 29488 Jul 16 1997 cgeight -rwxr-xr-x 1 root sys 43400 Jul 16 1997 cgfourteen -rwxr-xr-x 1 root sys 24332 Jul 16 1997 cgsix -rwxr-xr-x 1 root sys 18844 Jul 16 1997 cgthree -rwxr-xr-x 1 root sys 5440 Jul 16 1997 dma -rwxr-xr-x 1 root sys 64292 Jul 16 1997 fd -rwxr-xr-x 1 root sys 126916 Mar 19 1998 flash-memory -rw-r--r-- 1 root sys 2282 Nov 6 14:49 flash-memory.conf -rwxr-xr-x 1 root sys 52280 Jul 16 1997 id -rw-r--r-- 1 root sys 410 Jul 16 1997 id.conf -rwxr-xr-x 1 root sys 13096 Jul 16 1997 iommu -rwxr-xr-x 1 root sys 3912 Jul 16 1997 ipi3sc -rwxr-xr-x 1 root sys 5144 Jul 16 1997 ledma -rwxr-xr-x 1 root sys 169992 Jun 26 1997 leo -rwxr-xr-x 1 root sys 12816 Jul 16 1997 mcp -rw-r--r-- 1 root sys 904 Jul 16 1997 mcp.conf -rwxr-xr-x 1 root sys 11812 Jul 16 1997 mcpp -rw-r--r-- 1 root sys 133 Jul 16 1997 mcpp.conf -rwxr-xr-x 1 root sys 23752 Jul 16 1997 mcpzsa -rw-r--r-- 1 root sys 697 Jul 16 1997 mcpzsa.conf -rwxr-xr-x 1 root sys 15000 Jul 16 1997 mic -rwxr-xr-x 1 root sys 6412 Jul 16 1997 obio -rwxr-xr-x 1 root sys 7732 Jul 16 1997 pmc -rwxr-xr-x 1 root sys 18092 Jul 16 1997 pn -rw-r--r-- 1 root sys 146 Jul 16 1997 profile.conf -rwxr-xr-x 1 root sys 7340 Jul 16 1997 rootnex -rwxr-xr-x 1 root sys 7648 Jul 16 1997 sbus -rwxr-xr-x 1 root sys 5752 Jul 16 1997 sbusmem -rw-r--r-- 1 root sys 678 Jul 16 1997 sbusmem.conf -rwxr-xr-x 1 root sys 59452 Jul 16 1997 stc -rw-r--r-- 1 root sys 1244 Jul 16 1997 stc.conf -rwxr-xr-x 1 root sys 26164 Jul 16 1997 sx -rwxr-xr-x 1 root sys 15400 Jul 16 1997 sx_cmem -rw-r--r-- 1 root sys 800 Nov 2 16:52 sx_cmem.conf -rwxr-xr-x 1 root sys 18560 May 28 1997 tcx -rwxr-xr-x 1 root sys 11816 Jul 16 1997 vme -rwxr-xr-x 1 root sys 5840 Jul 16 1997 vmemem -rw-r--r-- 1 root sys 323 Jul 16 1997 vmemem.conf -rwxr-xr-x 1 root sys 56540 Jul 16 1997 zs -rwxr-xr-x 1 root sys 24896 Jul 16 1997 zsh -rw-r--r-- 1 root sys 131 Jul 16 1997 zsh.conf onl8v1# ls -l V* -rwxr-xr-x 2 root sys 183676 Nov 6 14:42 VME -rw-r--r-- 1 root sys 2850 Jul 29 16:36 VME.conf -rwxr-xr-x 2 root sys 183676 Nov 6 14:42 VME_fga5000 -rwxr-xr-x 1 root sys 157244 Aug 11 00:40 VME_s4 onl8v1# mv VME.conf VME.conf.org onl8v1# cp VME.conf.org VME.conf onl8v1# ls -l VME.conf* -rw-r--r-- 1 root other 2850 Nov 13 16:02 VME.conf -rw-r--r-- 1 root sys 2850 Jul 29 16:36 VME.conf.org onl8v1# chgrp sys VME.conf onl8v1# ls -l VME.conf* -rw-r--r-- 1 root sys 2850 Nov 13 16:02 VME.conf -rw-r--r-- 1 root sys 2850 Jul 29 16:36 VME.conf.org onl8v1# 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,0x00020000 pamc=0x10, 0x11 ; onl8v1# (4-2). システムをリブートする onl8v1# /usr/sbin/shutdown -i0 -g0 Shutdown started. Fri Nov 13 16:06:23 JST 1998 Do you want to continue? (y or n): y Broadcast Message from root (console) on onl8v1 Fri Nov 13 16:06:25... THE SYSTEM IS BEING SHUT DOWN NOW ! ! ! Log off now or risk your files being damaged showmount: onl8v1: RPC: Program not registered Changing to init state 0 - please wait onl8v1# 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 Nov 13 16:07:10 snmpdx: received signal 15 The system is down. 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-8VT, No Keyboard ROM Rev. 2.15.1, 64 MB memory installed, Serial #9172389. Ethernet address 0:80:42:b:85:a5, Host ID: 808bf5a5. 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. configuring network interfaces: le0. Hostname: onl8v1 Configuring the /devices directory FRCvme V2.3.1 VME Nexus (FGA-5000 FGA-5100) NOTICE: VME: slavewin at vme=0x0, size=0x100000 space=0x2c020017 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 vmedma0 at VME0 vmefdma0 at VME0 vmedvma0 at VME0 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/c0t3d0s4: is clean. /dev/rdsk/c0t3d0s3: is clean. /dev/rdsk/c0t3d0s7: is clean. add net default: gateway ICCFP1 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 onl8v1 syslog service starting. Print services started. volume management starting. The system is ready. onl8v1 console login: ok. slavewin は正しく設定できた。 --- (6). セクション (6-1). サブセクション (6-1-1). サブサブセクション