May 14, 1998 onl7v1: Solaris 2.5 cc ドライバのデバッグ. cc ドライバの再インストール ~~~~~~~~~~~~~~~~~~~~~~~~~~~ (http://www-online.kek.jp/~inoue/CAMAC/ onl7v1-sol2.5/camac-step04.txt) 高エネルギー加速器研究機構 素粒子原子核研究所 物理、オンライングループ 井上 栄二 (1). 現状確認 (A). 同一クレート内に複数の CPUボードを置かなければ cam2ブロック転送 は正常に実行できることを、onl7v2(Solaris2.6) と onl5v4(Solaris2.6) の CAMAC のテストで確認した。 (2). ここでやるべきこと onl7v1 に ccドライバを再インストールする。 (3). VMEドライバがインストールされていることを確認 onlsun1[58]% rlogin onl7v1 Last login: Thu May 14 14:08:57 from onlsun1 Sun Microsystems Inc. SunOS 5.5 Generic November 1995 onl7v1[33]% pkginfo | grep FRC system FRCvme VMEbus Driver CPU-5V/5VT/20VT/24VT/7V/ Solaris 2.5 onl7v1[34]% (4). ccドライバのキットを入手 (4-1). オンライン・グループの anonymous ftp サイトから入手したキットの 確認 onl7v1[53]% pwd /export/home/onl7v1/inoue/CAMAC/Driver/FORCE-5V-sol2.5 onl7v1[54]% ls -l total 216 -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 -rw-r--r-- 1 inoue kek 257 Nov 10 1997 make-install.log -rw-r--r-- 1 inoue kek 1094 Nov 10 1997 make.log drwxr-xr-x 2 inoue kek 512 Nov 10 1997 script/ onl7v1[55]% (4-2). キットをコンパイルする onl7v1[55]% which cc /kek/compilers/volume5/SUNWspro/bin/cc onl7v1[56]% cc -V cc: WorkShop Compilers 4.2.1 04 Feb 1997 C 4.2.1 usage: cc [ options] files. Use 'cc -flags' for details onl7v1[57]% which f77 /kek/compilers/volume5/SUNWspro/bin/f77 onl7v1[58]% 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 onl7v1[59]% onl7v1[59]% 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 onl7v1[60]% onl7v1[60]% su Password: # csh onl7v1# source /.cshrc onl7v1# 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 onl7v1# (4-3). ここで、システムを立ちあげ直す onl7v1 console login: root Password: May 14 15:53:13 onl7v1 May 14 15:51:22 Last login: Thu May 14 15:51:22 on pts/0 May 14 15:53:13 onl7v1 login: ROOT LOGIN /dev/console Sun Microsystems Inc. SunOS 5.5 Generic November 1995 Starting OpenWindows in 5 seconds (type Control-C to interrupt) ^C# /usr/sbin/shutdown -i0 -g0 Shutdown started. Thu May 14 15:53:26 JST 1998 Do you want to continue? (y or n): y Broadcast Message from root (console) on onl7v1 Thu May 14 15:53:28... THE SYSTEM IS BEING SHUT DOWN NOW ! ! ! Log off now or risk your files being damaged showmount: onl7v1: 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. May 14 15:53:35 onl7v1 syslogd: going down on signal 15 umount: /kekfs busy nfs umount: /vol: not mounted May 14 15:53:42 /usr/sbin/vold[557]: problem unmounting /vol; No such file or di rectory umount: /kekfs busy The system is down. syncing file systems... [8] [1] done Program terminated Type help for more information 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, 64 MB memory installed, Serial #9157050. Ethernet address 0:80:42:b:49:ba, Host ID: 808bb9ba. Rebooting with command: -r Boot device: /iommu/sbus/espdma@5,8400000/esp@5,8800000/sd@3,0 File and args: - r SunOS Release 5.5 Version Generic [UNIX(R) System V Release 4.0] Copyright (c) 1983-1995, Sun Microsystems, Inc. NOTICE: VME SYSFAIL (clr) not handled. configuring network interfaces: hme0 le0. Hostname: onl7v1 Configuring the /devices directory vmeplus0 at VME0: vme16d16 0x0 and vme24d16 0x0 and vme32d16 0x0 and vme16d32 0x 0 and vme24d32 0x0 and vme32d32 0x0 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 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. Flushing routing table: add net default: gateway ICCFG1 NIS domainname is kek.jp starting rpc services: rpcbind keyserv kerbd done. Setting netmask of hme0 to 255.255.252.0 Setting netmask of le0 to 255.255.252.0 Setting default interface for multicast: add net 224.0.0.0: gateway onl7v1 syslog service starting. Print services started. volume management starting. The system is ready. onl7v1 console login: onl7v1 console login: inoue Password: Last login: Thu May 14 15:39:53 from onlsun1 Sun Microsystems Inc. SunOS 5.5 Generic November 1995 Starting OpenWindows in 5 seconds (type Control-C to interrupt)^Conl7v1[33]% onl7v1[33]% cd C*C /export/home/onl7v1/inoue/CAMAC onl7v1[34]% ls Driver/ FORCE-5V-sol2.5.tar.gz old/ FORCE-5V-sol2.5/ debug/ onl7v1[35]% cd D* /export/home/onl7v1/inoue/CAMAC/Driver onl7v1[36]% ls FORCE-5V-sol2.5/ onl7v1[37]% cd F* /export/home/onl7v1/inoue/CAMAC/Driver/FORCE-5V-sol2.5 onl7v1[38]% ls Makefile cam3* cc.c forlib.o README cam3.c cc.conf k2917.h cam1* camlib.c cc.h libcamac.a cam1.c camlib.h cc_common.h make-install.log cam2* camlib.o cc_config.h make.log cam2.f cc forlib.c script/ onl7v1[39]% su Password: May 14 16:09:15 onl7v1 su: 'su root' succeeded for inoue on /dev/console # csh onl7v1# source /.cshrc onl7v1# 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] vmeplus0 at VME0: vme16d16 0x0 and vme24d16 0x0 and vme32d16 0x0 and vme16d32 0x 0 and vme24d32 0x0 and vme32d32 0x0 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 vmectl0 at VME0 [Making CAMAC device files] onl7v1# reboot May 14 16:10:21 onl7v1 reboot: rebooted by inoue May 14 16:10:22 onl7v1 syslogd: going down on signal 15 May 14 16:10:22 rpcbind: rpcbind terminating on signal. May 14 16:10:23 /usr/sbin/vold[291]: problem unmounting /vol; No such file or di rectory syncing file systems... [1] done rebooting... 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, 64 MB memory installed, Serial #9157050. Ethernet address 0:80:42:b:49:ba, Host ID: 808bb9ba. Rebooting with command: Boot device: /iommu/sbus/espdma@5,8400000/esp@5,8800000/sd@3,0 File and args: SunOS Release 5.5 Version Generic [UNIX(R) System V Release 4.0] Copyright (c) 1983-1995, Sun Microsystems, Inc. NOTICE: VME SYSFAIL (clr) not handled. configuring network interfaces: hme0 le0. Hostname: onl7v1 Configuring the /devices directory vmeplus0 at VME0: vme16d16 0x0 and vme24d16 0x0 and vme32d16 0x0 and vme16d32 0x 0 and vme24d32 0x0 and vme32d32 0x0 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 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 stable. Flushing routing table: add net default: gateway ICCFG1 NIS domainname is kek.jp starting rpc services: rpcbind keyserv kerbd done. Setting netmask of hme0 to 255.255.252.0 Setting netmask of le0 to 255.255.252.0 Setting default interface for multicast: add net 224.0.0.0: gateway onl7v1 syslog service starting. Print services started. volume management starting. The system is ready. onl7v1 console login: (4-4). ccドライバのロード ccドライバのロードが正しく実行できることを確認する。 onl7v1# ls -l /dev/cc lrwxrwxrwx 1 root other 3 May 14 16:09 /dev/cc -> :cc onl7v1# make unload ./script/cc_unload.sh [Removing CAMAC device driver] [Removing CAMAC device driver from system] [Deleting CAMAC device files] onl7v1# make load ./script/cc_load.sh [Installing CAMAC device driver] [Adding CAMAC device driver to system] [Configuring CAMAC device driver] [Making CAMAC device files] onl7v1# ls -l /dev/cc lrwxrwxrwx 1 root other 69 May 14 16:16 /dev/cc -> /devices/iommu@0,10000000/sbus@0,10001000/VME@5,ffffe00/cc@2d,ff00:cc onl7v1# ok. 正常に実行できた。 --- (6). 項目タイトル (6-1). サブ項目タイトル (6-1-1). サブサブ項目タイトル