Feb 18, 1999 frc8vt: Server Solaris 2.6、cc ドライバのテスト --- サーバシステムへのcc ドライバの インストール#02 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ (http://www-online.kek.jp/~inoue/CAMAC/onl8v1-sol2.6-serv/ Serv-CAMAC/camac-step01.txt) 高エネルギー加速器研究機構 素粒子原子核研究所 物理、オンライングループ 井上 栄二 (1). 現状確認 (A). 株式会社ロジックハウスの白田様より SPARC CPU-8VT と、VMEドライバ v2.3.1 を借用した。 (B). 株式会社ロジックハウスの白田様より Server Solaris 2.6 のシステム がインストールされているハードディスクを借用した。 (C). 借用したハードディスクのサーバ側のシステム設定を変更して、KEK の FP クラスタ上で立ち上げた。 (D). ファイルを直接修正する方法で、クライアント(その1)側のシステム 設定を変更したがクライアントは立ち上がれなかった。 (E). Solsticeを起動してホストマネージャを使って、frc7v-cl1ディスクレス クライアントの設定をやり直した。 (F). ディスクレス・クライアントのシステム、frc7v-cl1 が起動できること を確認した。 (G). frc7v-cl1 のシステムにVMEドライバ、FRCvme-2.3.1 をインストールし、 その後、frc7v-cl1 のシステム設定をやり直した。 (H). Solsticeを起動してホストマネージャを使って、frc7v-cl2ディスクレス クライアントの設定をやり直した。 (I). ディスクレス・クライアントのシステム、frc7v-cl2 が起動できること を確認した。 (J). frc7v-cl1、クライアントのシステムに ccドライバをインストールした。 (K). frc7v-cl1、クライアントのシステム上でサンプル・プログラムを実行 シングルアクションの 24ビットread/write は ok. LAM割り込み処理は、ok. ブロック転送 read/write は NG. (L). CPU-7Vのボードで FRCvme2.3.1 が正しく動作できることを確認した。 (2). ここでやるべきこと frc8vt、サーバ側に ccドライバをインストールする。 (3). サーバシステムでの camacテスト構成 配置図は次のとうり。 Slot Number #1 #2 #3 #4 #5 #6 #7 +----------------------------------------------------+ |+--+ +--+ | || | | | | Server || | | | | CPU || | | | VME Crate #1 | || | | | | || | | | | || | | | | || | | | | Hard Disk || | | | | +------+ || | | | | | o--------------o | | | | | | || | | | | +------+ ||o | | | | |+|-+ +|-+ | +-|-----------------------|--------------------------+ | V | CAMAC 10Base-T | | FP +-------------|-------------------------------------+ Cluster | +--+ +|-+ +--+ | <--------o | |o | |o | Switching Hub | | +--+ +--+ +--+ | | | +---------------------------------------------------+ クレート#1 スロット#1: SPARC CPU-8VT(ホスト名はfrc8vt) このボードには、一時的にFPクラスタのIPアドレス   を割り当ててテストを行う。 このボードには ローカル・ディスクがつないであり、 Server Solaris2.6 のシステムが動作している。 スロット#2: 空き スロット#3: 空き スロット#4: 空き スロット#5: 空き スロット#6: 空き スロット#7: K2917 (3). ccドライバのキットを入手、インストールする frc8vt のシステムの CAMACテスト用のディレクトリには、frc7v-cl1 の システムで CAMAC をテストした時に、すでにccドライバのキットを展開 したものが置いてある。 (3-1). ccドライバ・キットの確認 frc8vt[47]% pwd /export/home/frc8vt/inoue/CAMAC/Driver/FORCE-5V-sol2.5 frc8vt[48]% ls -l total 490 -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 13952 Feb 10 10:11 cam1* -rw-r--r-- 1 inoue staff 1170 May 13 1997 cam1.c -rwxr-xr-x 1 inoue staff 28972 Feb 10 10:11 cam2* -rw-r--r-- 1 inoue staff 2295 May 22 1997 cam2.f -rwxr-xr-x 1 inoue staff 14480 Feb 10 10:11 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 9532 Feb 10 10:11 camlib.o -rw-r--r-- 1 inoue staff 54404 Feb 10 10:11 cc -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 3484 Feb 10 10:11 forlib.o -rw-r--r-- 1 inoue staff 4058 May 13 1997 k2917.h -rw-r--r-- 1 inoue staff 13876 Feb 10 10:11 libcamac.a drwxr-xr-x 2 inoue staff 512 Nov 10 1997 script/ frc8vt[49]% make clean \rm -f cc *.o libcamac.a cam1 cam2 cam3 *~ core frc8vt[50]% (3-2). 展開したキットをコンパイルする (3-2-1). コンパイラのバージョンをチェック frc8vt[50]% which cc /kek/compilers/volume5/SUNWspro/bin/cc frc8vt[51]% which f77 /kek/compilers/volume5/SUNWspro/bin/f77 frc8vt[52]% cc -V cc: WorkShop Compilers 4.2.1 04 Feb 1997 C 4.2.1 usage: cc [ options] files. Use 'cc -flags' for details frc8vt[53]% 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 frc8vt[54]% (3-2-2). CAMACドライバをコンパイルする frc8vt[54]% pwd /export/home/frc8vt/inoue/CAMAC/Driver/FORCE-5V-sol2.5 frc8vt[55]% 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/ frc8vt[56]% 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 frc8vt[57]% (3-3). "make install" をやる frc8vt# pwd /export/home/frc8vt/inoue/CAMAC/Driver/FORCE-5V-sol2.5 frc8vt# ls -l total 490 -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 13944 Feb 17 13:47 cam1* -rw-r--r-- 1 inoue staff 1170 May 13 1997 cam1.c -rwxr-xr-x 1 inoue staff 28964 Feb 17 13:47 cam2* -rw-r--r-- 1 inoue staff 2295 May 22 1997 cam2.f -rwxr-xr-x 1 inoue staff 14476 Feb 17 13:47 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 9528 Feb 17 13:47 camlib.o -rw-r--r-- 1 inoue staff 54400 Feb 17 13:47 cc -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 3480 Feb 17 13:47 forlib.o -rw-r--r-- 1 inoue staff 4058 May 13 1997 k2917.h -rw-r--r-- 1 inoue staff 13868 Feb 17 13:47 libcamac.a drwxr-xr-x 2 inoue staff 512 Nov 10 1997 script/ frc8vt# 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 frc8vt# ls -lLR /usr/local /usr/local: total 2 drwxr-xr-x 3 nobody other 512 Feb 10 10:55 vme/ /usr/local/vme: total 2 drwxr-xr-x 4 nobody other 512 Feb 10 10:55 camac/ /usr/local/vme/camac: total 4 drwxr-xr-x 2 nobody other 512 Feb 17 13:51 include/ drwxr-xr-x 2 nobody other 512 Feb 17 13:51 lib/ /usr/local/vme/camac/include: total 26 -rw-r--r-- 1 root staff 1415 Feb 17 13:51 camlib.h -rw-r--r-- 1 root staff 2748 Feb 17 13:51 cc.h -rw-r--r-- 1 root staff 2288 Feb 17 13:51 cc_common.h -rw-r--r-- 1 root staff 876 Feb 17 13:51 cc_config.h -rw-r--r-- 1 root staff 4058 Feb 17 13:51 k2917.h /usr/local/vme/camac/lib: total 28 -rw-r--r-- 1 root staff 13868 Feb 17 13:51 libcamac.a frc8vt# (3-4). ccドライバをロードする frc8vt# pwd /export/home/frc8vt/inoue/CAMAC/Driver/FORCE-5V-sol2.5 frc8vt# ls -l total 490 -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 13944 Feb 17 13:47 cam1* -rw-r--r-- 1 inoue staff 1170 May 13 1997 cam1.c -rwxr-xr-x 1 inoue staff 28964 Feb 17 13:47 cam2* -rw-r--r-- 1 inoue staff 2295 May 22 1997 cam2.f -rwxr-xr-x 1 inoue staff 14476 Feb 17 13:47 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 9528 Feb 17 13:47 camlib.o -rw-r--r-- 1 inoue staff 54400 Feb 17 13:47 cc -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 3480 Feb 17 13:47 forlib.o -rw-r--r-- 1 inoue staff 4058 May 13 1997 k2917.h -rw-r--r-- 1 inoue staff 13868 Feb 17 13:47 libcamac.a drwxr-xr-x 2 inoue staff 512 Nov 10 1997 script/ frc8vt# 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] [Making CAMAC device files] ln: cannot create /dev/cc: File exists frc8vt# ls -l /dev/cc lrwxrwxrwx 1 root other 3 Feb 10 15:01 /dev/cc -> :cc frc8vt# (3-5). ここで、システムを立ちあげ直す frc8vt console login: root Password: Last login: Wed Feb 17 13:32:07 on console Feb 17 13:54:48 frc8vt 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# # /usr/sbin/shutdown -i0 -g0 Shutdown started. Wed Feb 17 13:54:59 JST 1999 Do you want to continue? (y or n): y Broadcast Message from root (console) on frc8vt Wed Feb 17 13:55:00... THE SYSTEM IS BEING SHUT DOWN NOW ! ! ! Log off now or risk your files being damaged rwall: Can't send to frc7v-cl1 frc7v-cl1: RPC: Rpcbind failure - RPC: Timed out rwall: Can't send to frc7v-cl2 frc7v-cl2: RPC: Rpcbind failure - RPC: Timed out 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/home1/cern busy umount: /net/onlsun1/home3 busy umount: /net/onlsun1/export busy umount: /net/onlsun1/home1 busy umount: /net/onlsun1/home4 busy umount: /net/onlsun1/usr busy umount: /net busy Feb 17 13:55:47 snmpdx: received signal 15 umount: /net/onlsun1/home1/local busy umount: /net/onlsun1/home1/opt_ext busy umount: /net/onlsun1/home1/cern busy umount: /net/onlsun1/home3 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_105181-05 [UNIX(R) System V Release 4.0] Copyright (c) 1983-1997, Sun Microsystems, Inc. configuring network interfaces: le0. Hostname: frc8vt Configuring the /devices directory FRCvme V2.3.1 VME Nexus (FGA-5000 FGA-5100) NOTICE: VME: slavewin at vme=0x0, size=0x100000 space=0x2d020617 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/c0t3d0s7: is clean. /dev/rdsk/c0t3d0s3: 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 frc8vt syslog service starting. Print services started. volume management starting. Wnn6: Key License Server started.... Nihongo Multi Client Server (Wnn6 R2.30) Finished Reading Files The system is ready. frc8vt console login: ***************************************************************************** * * Starting Desktop Login on display :0... * * Wait for the Desktop Login screen before logging in. * ***************************************************************************** ***************************************************************************** * * The X-server can not be started on display :0... * ***************************************************************************** frc8vt console login: ok. frc8vt サーバ・システムは正常に立ち上がった。 (3-6). ccドライバのロード frc8vt# ls -l /dev/cc lrwxrwxrwx 1 root other 3 Feb 10 15:01 /dev/cc -> :cc frc8vt# rm /dev/cc frc8vt# pwd /export/home/frc8vt/inoue/CAMAC/Driver/FORCE-5V-sol2.5 frc8vt# 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] [Making CAMAC device files] frc8vt# ls -l /dev/cc lrwxrwxrwx 1 root other 69 Feb 17 14:01 /dev/cc -> /devices/iommu@ 0,10000000/sbus@0,10001000/VME@5,ffffe00/cc@2d,ff00:cc frc8vt# modinfo | grep CAMAC 103 f60c0000 898b3 60 1 cc (CAMAC driver v1.3x by Y.Takeuch) frc8vt# modinfo | grep vme 110 f5cdb000 69f 67 1 vmemem (VME memory driver) 173 f5ddd800 2445 137 1 vmeplus (FORCE VME leaf driver vmeplus A) 174 f5976000 24b1 138 1 vmedma (vmedma driverJul 31 1998) 175 f5d92558 191d 139 1 vmefdma (vmefdma driverAug 10 1998) 176 f5e19000 28a5 140 1 vmedvma (FORCE vmedvma driver Jul 31 199) 177 f5d94000 437d 141 1 vmectl (FORCE VME leaf driver vmectl Ju) frc8vt# modinfo | grep FORCE 104 f5db4000 12ad6 136 1 VME (FORCE VME Nexus V2.3.1) 173 f5ddd800 2445 137 1 vmeplus (FORCE VME leaf driver vmeplus A) 176 f5e19000 28a5 140 1 vmedvma (FORCE vmedvma driver Jul 31 199) 177 f5d94000 437d 141 1 vmectl (FORCE VME leaf driver vmectl Ju) frc8vt# ok. /dev/ccファイルは正常に作られた。 (3-7). ccドライバがロードされた時の情報 (3-7-1). アンロード時の状態 frc8vt# pwd /export/home/frc8vt/inoue/CAMAC/Driver/FORCE-5V-sol2.5 frc8vt# make unload ./script/cc_unload.sh [Removing CAMAC device driver] [Removing CAMAC device driver from system] [Deleting CAMAC device files] frc8vt# ls -l /dev/cc /dev/cc: No such file or directory frc8vt# modinfo | grep CAMAC frc8vt# modinfo | grep vme 110 f5cdb000 69f 67 1 vmemem (VME memory driver) 173 f5ddd800 2445 137 1 vmeplus (FORCE VME leaf driver vmeplus A) 174 f5976000 24b1 138 1 vmedma (vmedma driverJul 31 1998) 175 f5d92558 191d 139 1 vmefdma (vmefdma driverAug 10 1998) 176 f5e19000 28a5 140 1 vmedvma (FORCE vmedvma driver Jul 31 199) 177 f5d94000 437d 141 1 vmectl (FORCE VME leaf driver vmectl Ju) frc8vt# modinfo | grep FORCE 104 f5db4000 12ad6 136 1 VME (FORCE VME Nexus V2.3.1) 173 f5ddd800 2445 137 1 vmeplus (FORCE VME leaf driver vmeplus A) 176 f5e19000 28a5 140 1 vmedvma (FORCE vmedvma driver Jul 31 199) 177 f5d94000 437d 141 1 vmectl (FORCE VME leaf driver vmectl Ju) frc8vt# (3-7-2). ロード時の状態 frc8vt# pwd /export/home/frc8vt/inoue/CAMAC/Driver/FORCE-5V-sol2.5 frc8vt# make load ./script/cc_load.sh [Installing CAMAC device driver] [Adding CAMAC device driver to system] [Configuring CAMAC device driver] [Making CAMAC device files] frc8vt# ls -l /dev/cc lrwxrwxrwx 1 root other 69 Feb 17 14:05 /dev/cc -> /devices/iommu@ 0,10000000/sbus@0,10001000/VME@5,ffffe00/cc@2d,ff00:cc frc8vt# modinfo | grep CAMAC 103 f60c0000 898b3 60 1 cc (CAMAC driver v1.3x by Y.Takeuch) frc8vt# modinfo | grep vme 110 f5cdb000 69f 67 1 vmemem (VME memory driver) 173 f5ddd800 2445 137 1 vmeplus (FORCE VME leaf driver vmeplus A) 174 f5976000 24b1 138 1 vmedma (vmedma driverJul 31 1998) 175 f5d92558 191d 139 1 vmefdma (vmefdma driverAug 10 1998) 176 f5e19000 28a5 140 1 vmedvma (FORCE vmedvma driver Jul 31 199) 177 f5d94000 437d 141 1 vmectl (FORCE VME leaf driver vmectl Ju) frc8vt# modinfo | grep FORCE 104 f5db4000 12ad6 136 1 VME (FORCE VME Nexus V2.3.1) 173 f5ddd800 2445 137 1 vmeplus (FORCE VME leaf driver vmeplus A) 176 f5e19000 28a5 140 1 vmedvma (FORCE vmedvma driver Jul 31 199) 177 f5d94000 437d 141 1 vmectl (FORCE VME leaf driver vmectl Ju) frc8vt# (4). VME スレーブ・ウインドウの設定を確認する frc8vt# pwd /platform/sun4m/kernel/drv frc8vt# ls -l VME* -rwxr-xr-x 2 root sys 183676 Dec 7 17:04 VME* -rw-r--r-- 1 root sys 2888 Feb 16 13:43 VME.conf -rw-r--r-- 1 root sys 2850 Jul 29 1998 VME.conf.org -rwxr-xr-x 2 root sys 183676 Dec 7 17:04 VME_fga5000* -rwxr-xr-x 1 root sys 157244 Aug 11 1998 VME_s4* frc8vt# cat 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 ; frc8vt# ok. VME スレーブ・ウインドウは正しく設定されている。 --- (6). セクション (6-1). サブセクション (6-1-1). サブサブセクション