Sep 21, 1998 pollux: Solaris 2.6 cc ドライバのデバッグ. ソフトウェアのチェック ~~~~~~~~~~~~~~~~~~~~~~~~ (http://www-online.kek.jp/~inoue/CAMAC/ pollux-sol2.6/soft-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 を修正して正しく動作するのを確認した。 (2). ここでやるべきこと 上記の(B)で動作確認した CPUボード、K2917ボード、K3922ボードに、金谷さん 所有のシステム・ディスクをつないでサンプル・プログラムを実行する。 (3). 金谷さん所有のシステム・ディスクをつないでシステムを立ち上げる。 (3-1). pollux の IPアドレスの確認 onlsun1[57]% grep pollux /etc/hosts 130.87.172.172 pollux # CPU-7v PF-RING-BF onlsun1[58]% 現在 pollux は PF のクラスタに登録されている。 しかし、私がいま作業を している南建屋には PF のクラスタは通っていないので、一時的に FG クラスタ につないでテストをする。 onl7v2 の IP を使ってテストする。 (3-2). 金谷さん所有のシステム・ディスクの設定変更 onl7v2 のシステムをシャットダウンしてから、金谷さん所有のシステム ディスクをつないで立ち上げる。 (3-2-1). onl7v2 をシャットダウンする onl7v2 console login: root Password: Sep 18 14:27:00 onl7v2 login: ROOT LOGIN /dev/console Last login: Thu Sep 17 15:19:12 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. Fri Sep 18 14:27:31 JST 1998 Do you want to continue? (y or n): y Broadcast Message from root (console) on onl7v2 Fri Sep 18 14:27:33... 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 Sep 18 14:28:22 snmpdx: received signal 15 The system is down. syncing file systems... done Program terminated Type help for more information ok (3-2-2). SCSI ID の変更 現在、金谷さんのシステム・ディスクの SCSI ID は 3 に設定してある。 これを 2 に変更して onl7v2 のシステムにつなぐ。 (3-2-3). onl7v2 のシステムを立ち上げる ok Power-On Self Test IU Register File Test MMU Context Table Reg Test MMU Context Register Test MMU Sync Fault Stat Reg Test MMU Sync Fault Addr Reg Test D-Cache Tag Ram Test D-Cache Data Ram Test D-TLB CAM Test D-TLB RAM Test I-Cache Tag Ram Test I-Cache Data Ram Test No Secondary Cache Exists No Secondary Cache Exists No Secondary Cache Exists Snoop Ram Test IOMMU-TLB Test IOMMU Control Register Test IOMMU Base Addr Register Test IOMMU SBus Config Registers Test Set RAH to 3 Set WS to 3 DRAM Data Bus Test Probing Bank 0 -- 32 Megs Found Probing Bank 1 -- 32 Megs Found Probing Bank 2 -- 32 Megs Found Probing Bank 3 -- 32 Megs Found Probing Bank 4 -- 0 Megs Found Probing Bank 5 -- 0 Megs Found Probing Bank 6 -- 0 Megs Found Probing Bank 7 -- 0 Megs Found DRAM Address Bus Test Memory Address Pattern Test D-Cache Hit Miss Test D-TLB Hit Miss Test I-TLB Hit Miss Test I-Cache Hit Miss Test No Secondary Cache Exists I-TLB Ram Test FPU Register File Test FPU Misaligned Reg Pair Test FPU Single-precision Tests FPU Double-precision Tests FPU SP Invalid CEXC Test FPU SP Overflow CEXC Test FPU SP Divide-by-0 CEXC Test FPU SP Inexact CEXC Test FPU SP Trap Priority > Test FPU SP Trap Priority < Test FPU DP Invalid CEXC Test FPU DP Overflow CEXC Test FPU DP Divide-by-0 CEXC Test FPU DP Inexact CEXC Test FPU DP Trap Priority > Test FPU DP Trap Priority < Test PROC0 Interrupt Regs Tests Soft Interrupts OFF Test Soft Interrupts ON Test PROC0 User Timer Test PROC0 Counter/Timer Test DMA2 E_CSR Register Test LANCE Address Port Tests LANCE Data Port Tests DMA2 D_CSR Register Test DMA2 D_ADDR Register Test DMA2 D_BCNT Register Test DMA2 D_NADDR Register Test ESP Registers Tests DMA2 P_CSR Register Test DMA2 P_ADDR Register Test DMA2 P_BCNT Register Test PPORT Registers Tests NVRAM Access Test TOD Registers Test 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. Boot device: /iommu/sbus/espdma@5,8400000/esp@5,8800000/sd@3,0 File and args: 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:hme0: No such device or address ifconfig: SIOCGIFFLAGS: hme0: no such interface hme0 le0. Hostname: onl7v2 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. 正常に立ち上がった。 pollux のディスクをマウントする。 # mount /dev/dsk/c0t2d0s0 /mnt mount: /dev/dsk/c0t2d0s0 or /mnt, no such file or directory # マウントできない。 onl7v2 システムを "boot -r" で起動し直す。 onl7v2 console login: root Password: Sep 18 15:48:48 onl7v2 login: ROOT LOGIN /dev/console Last login: Fri Sep 18 14:27:00 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. Fri Sep 18 15:48:59 JST 1998 Do you want to continue? (y or n): y Broadcast Message from root (console) on onl7v2 Fri Sep 18 15:49:01... 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 Sep 18 15:49:50 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-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:hme0: No such device or address ifconfig: SIOCGIFFLAGS: hme0: no such interface hme0 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. 正常に立ち上がった。 pollux のディスクをマウントする。 # df -k Filesystem kbytes used avail capacity Mounted on /dev/dsk/c0t3d0s0 65767 23032 42670 36% / /dev/dsk/c0t3d0s6 586735 384577 201572 66% /usr /proc 0 0 0 0% /proc fd 0 0 0 0% /dev/fd /dev/dsk/c0t3d0s7 7910181 141750 7689330 2% /export/home /dev/dsk/c0t3d0s5 28719 11684 17007 41% /opt swap 169944 12 169932 1% /tmp kiwifs:/public/sun/Solaris2 8316189 7572713 660315 92% /kekfs/kek onlsun1:/home1/local 1572360 1395728 175064 89% /net/onlsun1/home1/local onlsun1:/home1/cern/95a 1572360 1395728 175064 89% /net/onlsun1/home1/cern/95a # mount /dev/dsk/c0t2d0s0 /mnt # ok. うまくマウントできた。 (3-2-4). polllux の /etc の下を修正する onl7v2# pwd /mnt/etc onl7v2# ls TIMEZONE@ ioctl.syscon rc2.d/ acct/ iu.ap rc3@ aliases@ killall@ rc3.d/ asppp.cf* labelit@ rc5@ auto_home lib/ rc6@ auto_kekfs link@ rcS@ auto_master log@ rcS.d/ auto_master.org logindevperm reboot@ autopush@ lp/ release backargus.sh* magic rem_name_to_major backargus.sh~* mail/ remote backup.sh* minor_perm resolv.conf chroot@ mkfs@ rmmount.conf clri@ mknod@ rmt@ crash@ mnttab rpc cron@ motd rpld.conf cron.d/ mount@ saf/ datemsk mountall@ security/ dcopy@ mvdir@ services@ default/ name_to_major setmnt@ defaultdomain name_to_sysnum shadow device.tab ncheck@ shutdown@ devlink.tab net/ skel/ dfs/ netconfig snmp/ dgroup.tab netmasks@ sock2path@ dhcp/ networks@ sulogin@ dmi/ nfssec.conf swap@ driver_aliases nodename swapadd@ driver_classes nscd.conf sysdef@ dt/ nsswitch.conf syslog.conf dumpdates nsswitch.conf.orig system ff@ nsswitch.files tar@ fmthard@ nsswitch.nis telinit@ fn/ nsswitch.nisplus termcap@ format@ openwin/ tm/ format.dat opt/ ttydefs fs/ oshadow ttysrch fsck@ pam.conf uadmin@ fsdb@ passwd umount@ fstyp@ path_to_inst umountall@ fuser@ path_to_inst.old unlink@ getty@ power.conf utmp@ group printers.conf utmppipe| grpck@ profile utmpx@ halt@ protocols@ uucp/ hostname.le0 prtconf@ vfstab hosts@ prtvtoc@ volcopy@ inet/ publickey vold.conf inetd.conf@ pwck@ wall@ init@ rc0@ whodo@ init.d/ rc0.d/ wtmp@ initpipe| rc1@ wtmpx@ inittab rc1.d/ install@ rc2@ onl7v2# cat hostname.le0 pollux onl7v2# (3-2-4-1). polllux の /etc の下を修正する hostname.le0 の内容を修正する。 onl7v2# pwd /mnt/etc onl7v2# ls -l hostname* -rw-r--r-- 1 root root 7 Jul 29 20:02 hostname.le0 onl7v2# cat hostname.le0 pollux onl7v2# mv hostname.le0 hostname.le0.pollux onl7v2# vi hostname.le0 onl7v2 "hostname.le0" [New file] 1 line, 7 characters onl7v2# ls -l hostname.le0* -rw-r--r-- 1 root other 7 Sep 21 10:06 hostname.le0 -rw-r--r-- 1 root root 7 Jul 29 20:02 hostname.le0.pollux onl7v2# chgrp root hostname.le0 onl7v2# ls -l hostname.le0* -rw-r--r-- 1 root root 7 Sep 21 10:06 hostname.le0 -rw-r--r-- 1 root root 7 Jul 29 20:02 hostname.le0.pollux onl7v2# nadename の内容を修正する。 onl7v2# pwd /mnt/etc onl7v2# ls -l nodename -rw-r--r-- 1 root root 7 Jul 29 20:02 nodename onl7v2# cat nodename pollux onl7v2# mv nodename nodename.polux onl7v2# vi nodename onl7v2 "nodename" [New file] 1 line, 7 characters onl7v2# ls -l nodename* -rw-r--r-- 1 root other 7 Sep 21 10:10 nodename -rw-r--r-- 1 root root 7 Jul 29 20:02 nodename.polux onl7v2# chgrp root nodename onl7v2# ls -l nodename* -rw-r--r-- 1 root root 7 Sep 21 10:10 nodename -rw-r--r-- 1 root root 7 Jul 29 20:02 nodename.polux onl7v2# resolv.conf の内容を修正する。 onl7v2# pwd /mnt/etc onl7v2# ls -l resolv.conf* -rw-r--r-- 1 root other 62 Aug 10 15:11 resolv.conf onl7v2# mv resolv.conf resolv.conf.pollux onl7v2# cp resolv.conf.pollux resolv.conf onl7v2# ls -l resolv.conf* -rw-r--r-- 1 root other 62 Sep 21 10:19 resolv.conf -rw-r--r-- 1 root other 62 Aug 10 15:11 resolv.conf.pollux onl7v2# vi resolv.conf domain kek.jp nameserver 130.87.152.2 nameserver 130.87.34.6 nameserver 130.87.34.2 "resolv.conf" 4 lines, 84 characters onl7v2# hosts の内容を修正する。 onl7v2# source /.cshrc onl7v2# cd /etc/inet onl7v2# ls -l hosts -r--r--r-- 1 root sys 77 Jul 29 20:02 hosts onl7v2# mv hosts hosts.org onl7v2# cp hosts.org hosts onl7v2# ls -l hosts* -r--r--r-- 1 root other 77 Sep 21 10:51 hosts -r--r--r-- 1 root sys 77 Jul 29 20:02 hosts.pollux onl7v2# chgrp sys hosts onl7v2# ls -l hosts* -r--r--r-- 1 root sys 77 Sep 21 10:51 hosts -r--r--r-- 1 root sys 77 Jul 29 20:02 hosts.pollux onl7v2# chmod u+w hosts onl7v2# ls -l hosts -rw-r--r-- 1 root sys 77 Sep 21 10:51 hosts onl7v2# vi hosts # # Internet host table # 127.0.0.1 localhost 130.87.153.109 onl7v2 loghost "hosts" 5 lines, 77 characters onl7v2# netmasks の内容を修正する。 # pwd /etc/inet # ls -l netmasks* -r--r--r-- 1 root sys 592 Jul 29 20:02 netmasks # cat netmasks # # The netmasks file associates Internet Protocol (IP) address # masks with IP network numbers. # # network-number netmask # # The term network-number refers to a number obtained from the Internet Network # Information Center. Currently this number is restricted to being a class # A, B, or C network number. In the future we should be able to support # arbitrary network numbers per the Classless Internet Domain Routing # guidelines. # # Both the network-number and the netmasks are specified in # "decimal dot" notation, e.g: # # 128.32.0.0 255.255.255.0 # 130.87.0.0 255.255.224.0 # mv netmasks netmasks.pollux # cp netmasks.pollux netmasks # ls -l netmasks* -r--r--r-- 1 root other 592 Sep 21 11:26 netmasks -r--r--r-- 1 root sys 592 Jul 29 20:02 netmasks.pollux # chgrp sys netmasks # ls -l netmasks* -r--r--r-- 1 root sys 592 Sep 21 11:26 netmasks -r--r--r-- 1 root sys 592 Jul 29 20:02 netmasks.pollux # chmod u+w netmasks # ls -l netmasks* -rw-r--r-- 1 root sys 592 Sep 21 11:26 netmasks -r--r--r-- 1 root sys 592 Jul 29 20:02 netmasks.pollux # csh onl7v2# source /.login Starting OpenWindows in 5 seconds (type Control-C to interrupt)^Conl7v2# onl7v2# vi netmasks # # The netmasks file associates Internet Protocol (IP) address # masks with IP network numbers. # # network-number netmask # # The term network-number refers to a number obtained from the Internet Network # Information Center. Currently this number is restricted to being a class # A, B, or C network number. In the future we should be able to support # arbitrary network numbers per the Classless Internet Domain Routing # guidelines. # # Both the network-number and the netmasks are specified in # "decimal dot" notation, e.g: # # 128.32.0.0 255.255.255.0 # 130.87.0.0 255.255.252.0 ~ onl7v2# (3-3). 金谷さん所有のシステム・ディスクの立ち上げ ここで金谷さんのディスクのシステムを立ち上げ直す。 (3-3-1). システムをシャットダウンする onl7v2 console login: root Password: Sep 21 10:33:00 onl7v2 login: ROOT LOGIN /dev/console Last login: Fri Sep 18 16:54:56 from onlsun1 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. Mon Sep 21 10:33:12 JST 1998 Do you want to continue? (y or n): y Broadcast Message from root (console) on onl7v2 Mon Sep 21 10:33:14... 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 Sep 21 10:34:03 snmpdx: received signal 15 The system is down. syncing file systems... done Program terminated Type help for more information ok (3-3-2). SCSI ID の変更 オンライン・グループのシステム・ディスクの SCSI ID を 3 から 2 へ設定 し直す。 金谷さんのシステム・ディスクの SCSI ID は 2 から 3 へ設定 し直す。 これで、金谷さんのシステム・ディスクは onl7v2 のホスト名で 立ち上がることになる。 (3-3-3). 金谷さんのシステム・ディスクを立ち上げる 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_105181-05 [UNIX(R) System V Release 4.0] Copyright (c) 1983-1997, Sun Microsystems, Inc. configuring network interfaces: le0. Hostname: onl7v2 Configuring the /devices directory FRCvme VME Nexus V2.2.2 (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 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. NIS domainname is kek.jp starting routing daemon. 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. 正常に立ち上がった。 (3-3-4). camac テストのために、私のアカウントを作る 金谷さんのシステム・ディスクに私のアカウントを作った。 さらに、先に オンライン・グループの onl7v2用システム・ディスクから camacテスト用の 各ファイルをコピーした。 onl7v2[8]% pwd /export/home/inoue/CAMAC/Driver/Kanaya onl7v2[9]% (4). サンプル・プログラムの実行 この状態で camac のサンプル・プログラムを実行してみる。 (4-1). camacドライバ のインストールおよび、ロードとアンロード onl7v2[13]% su Password: # csh onl7v2# source /.cshrc onl7v2# pwd /export/home/inoue/CAMAC/Driver/Kanaya onl7v2# ls -l total 496 -rw-r--r-- 1 inoue staff 2041 Sep 16 16:41 Makefile -rw-r--r-- 1 inoue staff 2730 Sep 16 16:41 README -rwxr-xr-x 1 inoue staff 13344 Sep 17 11:17 cam1 -rw-r--r-- 1 inoue staff 1207 Sep 16 16:41 cam1.c -rw-r--r-- 1 inoue staff 1170 Sep 16 16:41 cam1.c.org -rwxr-xr-x 1 inoue staff 27816 Sep 17 11:18 cam2 -rw-r--r-- 1 inoue staff 2295 Sep 16 16:41 cam2.f -rwxr-xr-x 1 inoue staff 13856 Sep 17 11:18 cam3 -rw-r--r-- 1 inoue staff 2055 Sep 16 16:41 cam3.c -rw-r--r-- 1 inoue staff 2055 Sep 16 16:41 cam3.c.org -rw-r--r-- 1 inoue staff 9740 Sep 16 16:41 camlib.c -rw-r--r-- 1 inoue staff 1415 Sep 16 16:41 camlib.h -rw-r--r-- 1 inoue staff 9520 Sep 17 11:17 camlib.o -rw-r--r-- 1 inoue staff 54400 Sep 17 11:17 cc -rw-r--r-- 1 inoue staff 64399 Sep 16 17:52 cc.c -rw-r--r-- 1 inoue staff 288 Sep 16 16:41 cc.conf -rw-r--r-- 1 inoue staff 2748 Sep 16 16:41 cc.h -rw-r--r-- 1 inoue staff 2288 Sep 16 16:41 cc_common.h -rw-r--r-- 1 inoue staff 876 Sep 16 16:41 cc_config.h -rw-r--r-- 1 inoue staff 3289 Sep 16 16:41 forlib.c -rw-r--r-- 1 inoue staff 3472 Sep 17 11:17 forlib.o -rw-r--r-- 1 inoue staff 4058 Sep 16 16:41 k2917.h -rw-r--r-- 1 inoue staff 13852 Sep 17 11:17 libcamac.a drwxr-xr-x 2 inoue staff 512 Sep 16 16:41 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# make unload ./script/cc_unload.sh [Removing CAMAC device driver] [Removing CAMAC device driver from system] [Deleting CAMAC device files] 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# ls -l /dev/cc lrwxrwxrwx 1 root other 69 Sep 21 14:15 /dev/cc -> /devices/iommu@0,10000000/sbus@0,10001000/VME@5,ffffe00/cc@2d,ff00:cc onl7v2# (4-2). cam1 の実行 onl7v2[9]% cam1 Input n a f (data)>3 0 0 return value = 2(Hex) <-- エラーが起っている。 N=3 A=0 F=0 Q=1 X=1 Data:000000(Hex) 00000000(Dec) Input n a f (data)>3 0 16 7777 return value = 2(Hex) N=3 A=0 F=16 Q=1 X=1 Data:001E61(Hex) 00007777(Dec) Input n a f (data)>3 0 0 return value = 2(Hex) N=3 A=0 F=0 Q=1 X=1 Data:001E61(Hex) 00007777(Dec) Input n a f (data)>3 0 16 0 return value = 2(Hex) N=3 A=0 F=16 Q=1 X=1 Data:000000(Hex) 00000000(Dec) Input n a f (data)>3 0 0 return value = 2(Hex) N=3 A=0 F=0 Q=1 X=1 Data:000000(Hex) 00000000(Dec) Input n a f (data)>^Conl7v2[10]% onl7v2[10]% NG. camac ディスプレー・モジュールで確認すると、camac オペレーションは 何も実行されていない。 (4-3). cam3 の実行 onl7v2[11]% cam3 INIT. ERROR! onl7v2[12]% NG. イニシャライズ時にエラーを起こしている。 (4-4). cam2 の実行 onl7v2[12]% cam2 Input transfer mode (1:word 2:long word) >1 Input loop >5 Input mode (0:QSTOP 1:QIGNORE 2:QREPEAT 3:QSCAN) >1 Input data counts >5 Input n a f >3 0 0 MODE=1 N= 3 A= 0 F= 0 len= 5 lenr= 0 error= 0(Hex) Data( 1)= 0 0x 0(Hex) Data( 2)= 0 0x 0(Hex) Data( 3)= 0 0x 0(Hex) Data( 4)= 0 0x 0(Hex) Data( 5)= 0 0x 0(Hex) Data( 6)= 0 0x 0(Hex) Data( 7)= 0 0x 0(Hex) Data( 8)= 0 0x 0(Hex) Data( 9)= 0 0x 0(Hex) Data(10)= 0 0x 0(Hex) Input n a f >3 0 16 Input data >555 MODE=1 N= 3 A= 0 F=16 len= 5 lenr= 0 error= 0(Hex) Data( 1)= 555 0x 22B(Hex) Data( 2)= 555 0x 22B(Hex) Data( 3)= 555 0x 22B(Hex) Data( 4)= 555 0x 22B(Hex) Data( 5)= 555 0x 22B(Hex) Data( 6)= 0 0x 0(Hex) Data( 7)= 0 0x 0(Hex) Data( 8)= 0 0x 0(Hex) Data( 9)= 0 0x 0(Hex) Data(10)= 0 0x 0(Hex) Input n a f >3 0 0 MODE=1 N= 3 A= 0 F= 0 len= 5 lenr= 0 error= 0(Hex) Data( 1)= 555 0x 22B(Hex) Data( 2)= 555 0x 22B(Hex) Data( 3)= 555 0x 22B(Hex) Data( 4)= 555 0x 22B(Hex) Data( 5)= 555 0x 22B(Hex) Data( 6)= 0 0x 0(Hex) Data( 7)= 0 0x 0(Hex) Data( 8)= 0 0x 0(Hex) Data( 9)= 0 0x 0(Hex) Data(10)= 0 0x 0(Hex) Input n a f >3 0 16 Input data >0 MODE=1 N= 3 A= 0 F=16 len= 5 lenr= 0 error= 0(Hex) Data( 1)= 0 0x 0(Hex) Data( 2)= 0 0x 0(Hex) Data( 3)= 0 0x 0(Hex) Data( 4)= 0 0x 0(Hex) Data( 5)= 0 0x 0(Hex) Data( 6)= 0 0x 0(Hex) Data( 7)= 0 0x 0(Hex) Data( 8)= 0 0x 0(Hex) Data( 9)= 0 0x 0(Hex) Data(10)= 0 0x 0(Hex) Input n a f >3 0 0 MODE=1 N= 3 A= 0 F= 0 len= 5 lenr= 0 error= 0(Hex) Data( 1)= 0 0x 0(Hex) Data( 2)= 0 0x 0(Hex) Data( 3)= 0 0x 0(Hex) Data( 4)= 0 0x 0(Hex) Data( 5)= 0 0x 0(Hex) Data( 6)= 0 0x 0(Hex) Data( 7)= 0 0x 0(Hex) Data( 8)= 0 0x 0(Hex) Data( 9)= 0 0x 0(Hex) Data(10)= 0 0x 0(Hex) onl7v2[13]% NG. camac ディスプレー・モジュールで確認すると、シングル・アクション時と 同じく、camacオペレーションは何も実行されていない。 システム・インストールからやり直す。 (5). 参考資料、システムの情報 (5-1). 現在あてられているパッチ onl7v2# pwd /var/sadm/patch onl7v2# ls -l total 52 drwxr-x--- 2 root other 512 Aug 27 14:26 105181-05 drwxr-x--- 2 root other 512 Aug 27 14:27 105210-06 drwxr-x--- 2 root other 512 Aug 27 14:47 105216-03 drwxr-x--- 2 root other 512 Aug 27 14:28 105357-01 drwxr-x--- 2 root other 512 Aug 27 14:29 105379-03 drwxr-x--- 2 root other 512 Aug 27 14:29 105393-03 drwxr-x--- 2 root other 512 Aug 27 14:31 105401-08 drwxr-x--- 2 root other 512 Aug 27 14:43 105407-01 drwxr-x--- 2 root other 512 Aug 27 14:36 105490-04 drwxr-x--- 2 root other 512 Aug 27 14:44 105518-01 drwxr-x--- 2 root other 512 Aug 27 14:36 105615-03 drwxr-x--- 2 root other 512 Aug 27 14:37 105621-02 drwxr-x--- 2 root other 512 Aug 27 14:45 105665-01 drwxr-x--- 2 root other 512 Aug 27 14:44 105669-02 drwxr-x--- 2 root other 512 Aug 27 14:05 105686-02 drwxr-x--- 2 root other 512 Aug 27 14:38 105720-03 drwxr-x--- 2 root other 512 Aug 27 14:39 105736-01 drwxr-x--- 2 root other 512 Aug 27 14:39 105755-03 drwxr-x--- 2 root other 512 Aug 27 14:40 105786-05 drwxr-x--- 2 root other 512 Aug 27 14:46 105795-03 drwxr-x--- 2 root other 512 Aug 27 14:41 105837-02 drwxr-x--- 2 root other 512 Aug 27 14:41 105845-01 drwxr-x--- 2 root other 512 Aug 27 14:07 106033-01 drwxr-x--- 2 root other 512 Aug 27 14:22 106125-02 drwxr-x--- 2 root other 512 Aug 27 14:42 106222-01 drwxr-x--- 2 root other 512 Aug 27 14:42 106271-01 onl7v2# onl7v2# pwd /export/home/inoue onl7v2# ls -l total 36 drwxr-xr-x 3 inoue staff 512 Sep 21 13:41 CAMAC -rwxr-xr-x 1 inoue staff 16795 Sep 21 15:30 installpatch onl7v2# ./installpatch -p Patches currently applied: 105181-05 105216-03 105357-01 105401-08 105407-01 105490-04 105621-02 105669-02 105795-03 105837-02 105845-01 106125-02 106222-01 onl7v2# (5-2). VMEドライバのバージョン onl7v2# pkginfo -l FRCvme PKGINST: FRCvme NAME: VMEbus Driver CPU-3CE,5CE,5TE,5V,7V,8V,20V,24V Solaris 2.5, 2.6 CATEGORY: system ARCH: sparc.force VERSION: V2.2.2 BASEDIR: / VENDOR: FORCE COMPUTERS GmbH DESC: Drivers for accessing the VMEbus PSTAMP: Chronos980115135754 INSTDATE: Sep 11 1998 14:37 STATUS: completely installed FILES: 107 installed pathnames 28 directories 28 executables 4014 blocks used (approx) onl7v2# --- (6). 項目タイトル (6-1). サブ項目タイトル (6-1-1). サブサブ項目タイトル