Mar 16, 2001 FORCE CPU-5V、Solaris 7用 ccドライバ・キットの作成 (リスト処理可能なバージョン) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ (http://www-online.kek.jp/~inoue/CAMAC/ onl5v4-sol7/5v-sol7-list-kit.txt) 高エネルギー加速器研究機構 素粒子原子核研究所 物理、オンライングループ 井上 栄二 (1). はじめに FORCE SPARC CPU-5V の CPUボードを使って、Solaris 7 の下で リスト処理 対応の ccドライバの開発を行なった。 基本的な動作は実行できる状況に なったので配布キットを作成する。 (1-1). CPU-5V、Solaris7デスクトップシステム下での ccドライバの開発 SPARC CPU-5V、Desktop Solaris 7 の下でリスト処理対応の ccドライバの開発 を行った。 この ccドライバの開発では "FORCE-50T-sol2.6-list" バージョン のccドライバをベースにして、Solaris 7 の下で動作できるように修正した。 動作確認をしたのは以下の事項である。 (1). 基本処理 o シングルアクション read/write、および NDT o LAM割り込み処理 o ブロック転送 read/write (2). KEKリスト処理、kineticリスト処理 o KEKリスト処理でシングルアクションread/write o KEKリスト処理でLAM割り込み処理 o KEKリスト処理で DMA camacブロック転送 o KEKリスト処理でセーブしたリストファイルを再ロードして実行 o Kineticリスト処理でシングルアクションおよび DMA転送 ・ (1). 16/24ビットのシングルアクション read/write ・ 16/24ビットの DMA、イグノア Q ・ 16/24ビットの DMA、Qストップ ・ 16/24ビットの DMA、アドレス・スキャン o Kineticリスト処理でセーブしたリストファイルを再ロードして 実行 o KEKリスト処理の中から kineticリスト処理を実行 (2). キット作成の元にしたもの キット作りの元にしたものは、今回、SPARC CPU-5V、Solaris7 の下で ccドライバの開発に使用した各ファイルである。 開発時に使用した各ファイル は、ホスト名 onl5v4 のマシンの以下のディレクトリの下にある。 /export/home/onl5v4/inoue/CAMAC/FORCE-50T-sol2.6-list このディレクトリを、onlsun1 のマシンの、以下のキット作成用ディレクトリ にコピーして、新たなキットを作ることにした。 /export/home/onlsun1/inoue/workstation/onl5v4/Solaris7/CAMAC-Kit (2-1). デバッグに使用した各ファイルをキット作成用ディレクトリにコピー onlsun1[78]% pwd /export/home/onlsun1/inoue/workstation/onl5v4/Solaris7 onlsun1[79]% rcp -pr onl5v4:/export/home/onl5v4/inoue/CAMAC/FORCE-50T-sol2.6-list CAMAC-Kit onlsun1[80]% ls -l 合計 4 drwxr-xr-x 2 inoue kek 1024 3月 9日 15:32 CAMAC/ drwxr-xr-x 6 inoue kek 512 3月 8日 10:48 CAMAC-Kit/ onlsun1[81]% cd *t /export/home/onlsun1/inoue/workstation/onl5v4/Solaris7/CAMAC-Kit onlsun1[82]% ls -l 合計 854 -rw-r--r-- 1 inoue kek 2041 6月 23日 2000年 Makefile -rw-r--r-- 1 inoue kek 4099 10月 20日 15:35 README -rwxr-xr-x 1 inoue kek 14232 3月 8日 10:48 cam1* -rw-r--r-- 1 inoue kek 1170 6月 23日 2000年 cam1.c -rwxr-xr-x 1 inoue kek 104900 3月 8日 10:48 cam2* -rw-r--r-- 1 inoue kek 2295 6月 23日 2000年 cam2.f -rwxr-xr-x 1 inoue kek 14620 3月 8日 10:48 cam3* -rw-r--r-- 1 inoue kek 2055 7月 28日 2000年 cam3.c drwxr-xr-x 2 inoue kek 512 3月 8日 10:51 camasm/ -rw-r--r-- 1 inoue kek 9803 10月 3日 17:15 camlib.c -rw-r--r-- 1 inoue kek 1415 6月 23日 2000年 camlib.h -rw-r--r-- 1 inoue kek 9644 3月 8日 10:48 camlib.o drwxr-xr-x 2 inoue kek 512 3月 8日 10:52 camlist/ drwxr-xr-x 2 inoue kek 1024 3月 9日 10:18 camlist-kine/ -rw-r--r-- 1 inoue kek 48276 3月 8日 10:48 cc -rw-r--r-- 1 inoue kek 83124 2月 28日 15:36 cc.c -rw-r--r-- 1 inoue kek 82170 2月 28日 14:21 cc.c-org -rw-r--r-- 1 inoue kek 288 6月 23日 2000年 cc.conf -rw-r--r-- 1 inoue kek 2829 10月 13日 10:59 cc.h -rw-r--r-- 1 inoue kek 2288 6月 23日 2000年 cc_common.h -rw-r--r-- 1 inoue kek 876 6月 23日 2000年 cc_config.h -rw-r--r-- 1 inoue kek 3289 6月 23日 2000年 forlib.c -rw-r--r-- 1 inoue kek 3496 3月 8日 10:48 forlib.o -rw-r--r-- 1 inoue kek 4058 6月 23日 2000年 k2917.h -rw-r--r-- 1 inoue kek 14000 3月 8日 10:48 libcamac.a drwxr-xr-x 2 inoue kek 512 10月 2日 16:39 script/ onlsun1[83]% onlsun1[85]% mkdir FORCE-5V-sol7-list onlsun1[86]% ls -l 合計 856 drwxr-xr-x 2 inoue kek 512 3月 12日 10:11 FORCE-5V-sol7-list/ -rw-r--r-- 1 inoue kek 2041 6月 23日 2000年 Makefile -rw-r--r-- 1 inoue kek 4099 10月 20日 15:35 README -rwxr-xr-x 1 inoue kek 14232 3月 8日 10:48 cam1* -rw-r--r-- 1 inoue kek 1170 6月 23日 2000年 cam1.c -rwxr-xr-x 1 inoue kek 104900 3月 8日 10:48 cam2* -rw-r--r-- 1 inoue kek 2295 6月 23日 2000年 cam2.f -rwxr-xr-x 1 inoue kek 14620 3月 8日 10:48 cam3* -rw-r--r-- 1 inoue kek 2055 7月 28日 2000年 cam3.c drwxr-xr-x 2 inoue kek 512 3月 8日 10:51 camasm/ -rw-r--r-- 1 inoue kek 9803 10月 3日 17:15 camlib.c -rw-r--r-- 1 inoue kek 1415 6月 23日 2000年 camlib.h -rw-r--r-- 1 inoue kek 9644 3月 8日 10:48 camlib.o drwxr-xr-x 2 inoue kek 512 3月 8日 10:52 camlist/ drwxr-xr-x 2 inoue kek 1024 3月 9日 10:18 camlist-kine/ -rw-r--r-- 1 inoue kek 48276 3月 8日 10:48 cc -rw-r--r-- 1 inoue kek 83124 2月 28日 15:36 cc.c -rw-r--r-- 1 inoue kek 82170 2月 28日 14:21 cc.c-org -rw-r--r-- 1 inoue kek 288 6月 23日 2000年 cc.conf -rw-r--r-- 1 inoue kek 2829 10月 13日 10:59 cc.h -rw-r--r-- 1 inoue kek 2288 6月 23日 2000年 cc_common.h -rw-r--r-- 1 inoue kek 876 6月 23日 2000年 cc_config.h -rw-r--r-- 1 inoue kek 3289 6月 23日 2000年 forlib.c -rw-r--r-- 1 inoue kek 3496 3月 8日 10:48 forlib.o -rw-r--r-- 1 inoue kek 4058 6月 23日 2000年 k2917.h -rw-r--r-- 1 inoue kek 14000 3月 8日 10:48 libcamac.a drwxr-xr-x 2 inoue kek 512 10月 2日 16:39 script/ onlsun1[87]% 新たな、CPU-5V用の camacドライバ・キットは onlsun1のマシンの次の ディレクトリに作る。 /export/home/onlsun1/inoue/workstation/onl5v4/Solaris7/ CAMAC-Kit/FORCE-5V-sol7-list (3). キットの作成 キット作りは以下の手順で行なう。 今回修正した部分は cc.cソースファイルと cc_link.shスクリプトファイルの2つだけであるこがはっきりしており限定的で ある。 したがって、他のファイルについて言及することは避けて、これら2つ のファイルのみに言及した記述とする。 まず、今回のデバッグの元にした キット、 ftp://online.kek.jp/pub/kek/camac/FORCE-50T-sol2.6i-list.tar.gz に含まれるファイルの一覧を確認する。 次に、これらのファイルに対して 開発後のものを割り当てる。 そして最後に、デバッグ時に各ファイル に書き加えた不必要な記述を削除する。 (3-1). 今回の開発の元にしたキット 今回の開発の元にしたキットに含まれていた各ファイルを確認する。 onl5v4[68]% pwd /export/home/onl5v4/inoue/CAMAC/tmp/FORCE-50T-sol2.6-list onl5v4[69]% ls -lR .: total 256 -rw-r--r-- 1 inoue kek 2041 Jun 23 2000 Makefile -rw-r--r-- 1 inoue kek 4099 Oct 20 15:35 README -rw-r--r-- 1 inoue kek 1170 Jun 23 2000 cam1.c -rw-r--r-- 1 inoue kek 2295 Jun 23 2000 cam2.f -rw-r--r-- 1 inoue kek 2055 Jul 28 2000 cam3.c drwxr-xr-x 2 inoue kek 512 Oct 20 15:41 camasm/ -rw-r--r-- 1 inoue kek 9803 Oct 3 17:15 camlib.c -rw-r--r-- 1 inoue kek 1415 Jun 23 2000 camlib.h drwxr-xr-x 2 inoue kek 512 Oct 20 16:05 camlist/ drwxr-xr-x 2 inoue kek 512 Oct 20 16:05 camlist-kine/ -rw-r--r-- 1 inoue kek 82172 Oct 13 10:59 cc.c -rw-r--r-- 1 inoue kek 288 Jun 23 2000 cc.conf -rw-r--r-- 1 inoue kek 2829 Oct 13 10:59 cc.h -rw-r--r-- 1 inoue kek 2288 Jun 23 2000 cc_common.h -rw-r--r-- 1 inoue kek 876 Jun 23 2000 cc_config.h -rw-r--r-- 1 inoue kek 3289 Jun 23 2000 forlib.c -rw-r--r-- 1 inoue kek 4058 Jun 23 2000 k2917.h drwxr-xr-x 2 inoue kek 512 Oct 2 16:39 script/ ./camasm: total 132 -rw-r--r-- 1 inoue kek 448 Jun 28 2000 Makefile -rw-r--r-- 1 inoue kek 11250 Oct 17 09:30 asm_code.h -rwxr-xr-x 1 inoue kek 27536 Oct 20 15:41 camasm* -rw-r--r-- 1 inoue kek 24762 Jun 28 2000 camasm.c -rw-r--r-- 1 inoue kek 1646 Jun 28 2000 err_code.h ./camlist: total 28 -rw-r--r-- 1 inoue kek 1415 Oct 16 10:45 Makefile -rw-r--r-- 1 inoue kek 2151 Oct 16 11:17 camtest4c.c -rw-r--r-- 1 inoue kek 709 Oct 16 11:45 camtest4dma.asm -rw-r--r-- 1 inoue kek 903 Oct 16 13:58 camtest4int.asm -rw-r--r-- 1 inoue kek 603 Oct 16 14:12 camtest4single.asm -rw-r--r-- 1 inoue kek 2040 Oct 16 14:25 camtest5c.c -rw-r--r-- 1 inoue kek 2027 Oct 16 14:46 camtest5c1.c -rw-r--r-- 1 inoue kek 1994 Oct 16 15:47 camtest5c2.c ./camlist-kine: total 44 -rw-r--r-- 1 inoue kek 1296 Oct 16 16:30 Makefile -rw-r--r-- 1 inoue kek 708 Oct 17 14:35 cam6.asm -rw-r--r-- 1 inoue kek 1880 Oct 17 14:49 cam6.c -rw-r--r-- 1 inoue kek 1541 Oct 17 15:32 cam6a.c -rw-r--r-- 1 inoue kek 2983 Oct 17 15:39 cam6b.c -rw-r--r-- 1 inoue kek 2021 Oct 17 16:07 cam7.c -rw-r--r-- 1 inoue kek 2582 Oct 17 16:13 cam7A.c -rw-r--r-- 1 inoue kek 1753 Oct 17 16:50 cam7B.c -rw-r--r-- 1 inoue kek 322 Oct 18 09:31 cam7a.asm -rw-r--r-- 1 inoue kek 322 Oct 18 10:24 cam7aA.asm -rw-r--r-- 1 inoue kek 679 Oct 18 10:52 cam7b.asm -rw-r--r-- 1 inoue kek 812 Oct 18 13:43 cam7bA.asm -rw-r--r-- 1 inoue kek 353 Oct 18 14:40 cam7cA.asm ./script: total 14 -rw-r--r-- 1 inoue kek 66 Oct 18 14:58 awk1.txt -rw-r--r-- 1 inoue kek 37 Oct 18 15:30 awk2.txt -rwxr-xr-x 1 inoue kek 233 Oct 18 15:32 cc_build.gcc.sh* -rwxr-xr-x 1 inoue kek 234 Oct 18 15:33 cc_build.sh* -rwxr-xr-x 1 inoue kek 528 Oct 18 15:36 cc_link.sh* -rwxr-xr-x 1 inoue kek 808 Oct 18 15:39 cc_load.sh* -rwxr-xr-x 1 inoue kek 270 Jun 23 2000 cc_unload.sh* onl5v4[70]% (3-2). 今回のデバッグ後のファイル 今回のデバッグ後の各ファイルを確認する。 onlsun1[87]% pwd /export/home/onlsun1/inoue/workstation/onl5v4/Solaris7/CAMAC-Kit onlsun1[88]% ls -lR .: 合計 856 drwxr-xr-x 2 inoue kek 512 3月 12日 10:11 FORCE-5V-sol7-list/ -rw-r--r-- 1 inoue kek 2041 6月 23日 2000年 Makefile -rw-r--r-- 1 inoue kek 4099 10月 20日 15:35 README -rwxr-xr-x 1 inoue kek 14232 3月 8日 10:48 cam1* -rw-r--r-- 1 inoue kek 1170 6月 23日 2000年 cam1.c -rwxr-xr-x 1 inoue kek 104900 3月 8日 10:48 cam2* -rw-r--r-- 1 inoue kek 2295 6月 23日 2000年 cam2.f -rwxr-xr-x 1 inoue kek 14620 3月 8日 10:48 cam3* -rw-r--r-- 1 inoue kek 2055 7月 28日 2000年 cam3.c drwxr-xr-x 2 inoue kek 512 3月 8日 10:51 camasm/ -rw-r--r-- 1 inoue kek 9803 10月 3日 17:15 camlib.c -rw-r--r-- 1 inoue kek 1415 6月 23日 2000年 camlib.h -rw-r--r-- 1 inoue kek 9644 3月 8日 10:48 camlib.o drwxr-xr-x 2 inoue kek 512 3月 8日 10:52 camlist/ drwxr-xr-x 2 inoue kek 1024 3月 9日 10:18 camlist-kine/ -rw-r--r-- 1 inoue kek 48276 3月 8日 10:48 cc -rw-r--r-- 1 inoue kek 83124 2月 28日 15:36 cc.c -rw-r--r-- 1 inoue kek 82170 2月 28日 14:21 cc.c-org -rw-r--r-- 1 inoue kek 288 6月 23日 2000年 cc.conf -rw-r--r-- 1 inoue kek 2829 10月 13日 10:59 cc.h -rw-r--r-- 1 inoue kek 2288 6月 23日 2000年 cc_common.h -rw-r--r-- 1 inoue kek 876 6月 23日 2000年 cc_config.h -rw-r--r-- 1 inoue kek 3289 6月 23日 2000年 forlib.c -rw-r--r-- 1 inoue kek 3496 3月 8日 10:48 forlib.o -rw-r--r-- 1 inoue kek 4058 6月 23日 2000年 k2917.h -rw-r--r-- 1 inoue kek 14000 3月 8日 10:48 libcamac.a drwxr-xr-x 2 inoue kek 512 10月 2日 16:39 script/ ./FORCE-5V-sol7-list: 合計 0 ./camasm: 合計 134 -rw-r--r-- 1 inoue kek 448 6月 28日 2000年 Makefile -rw-r--r-- 1 inoue kek 11250 10月 17日 09:30 asm_code.h -rwxr-xr-x 1 inoue kek 28352 3月 8日 10:51 camasm* -rw-r--r-- 1 inoue kek 24762 6月 28日 2000年 camasm.c -rw-r--r-- 1 inoue kek 1646 6月 28日 2000年 err_code.h ./camlist: 合計 154 -rw-r--r-- 1 inoue kek 1415 10月 16日 10:45 Makefile -rwxr-xr-x 1 inoue kek 15160 3月 8日 10:52 camtest4c* -rw-r--r-- 1 inoue kek 2151 10月 16日 11:17 camtest4c.c -rw-r--r-- 1 inoue kek 709 10月 16日 11:45 camtest4dma.asm -rw-r--r-- 1 inoue kek 405 3月 8日 10:52 camtest4dma.obj -rw-r--r-- 1 inoue kek 903 10月 16日 13:58 camtest4int.asm -rw-r--r-- 1 inoue kek 322 3月 8日 10:52 camtest4int.obj -rw-r--r-- 1 inoue kek 603 10月 16日 14:12 camtest4single.asm -rw-r--r-- 1 inoue kek 195 3月 8日 10:52 camtest4single.obj -rwxr-xr-x 1 inoue kek 15072 3月 8日 10:52 camtest5c* -rw-r--r-- 1 inoue kek 2040 10月 16日 14:25 camtest5c.c -rwxr-xr-x 1 inoue kek 15076 3月 8日 10:52 camtest5c1* -rw-r--r-- 1 inoue kek 2027 10月 16日 14:46 camtest5c1.c -rwxr-xr-x 1 inoue kek 15076 3月 8日 10:52 camtest5c2* -rw-r--r-- 1 inoue kek 1994 10月 16日 15:47 camtest5c2.c ./camlist-kine: 合計 262 -rw-r--r-- 1 inoue kek 1296 10月 16日 16:30 Makefile -rwxr-xr-x 1 inoue kek 14636 3月 8日 14:12 cam6* -rw-r--r-- 1 inoue kek 708 10月 17日 14:35 cam6.asm -rw-r--r-- 1 inoue kek 1880 10月 17日 14:49 cam6.c -rw-r--r-- 1 inoue kek 134 3月 9日 10:02 cam6.klist -rw-r--r-- 1 inoue kek 1518 3月 8日 14:12 cam6.lis -rw-r--r-- 1 inoue kek 258 3月 8日 14:12 cam6.obj -rwxr-xr-x 1 inoue kek 14376 3月 8日 14:12 cam6a* -rw-r--r-- 1 inoue kek 1541 10月 17日 15:32 cam6a.c -rwxr-xr-x 1 inoue kek 16568 3月 8日 14:12 cam6b* -rw-r--r-- 1 inoue kek 2983 10月 17日 15:39 cam6b.c -rwxr-xr-x 1 inoue kek 14784 3月 8日 14:12 cam7* -rw-r--r-- 1 inoue kek 2021 10月 17日 16:07 cam7.c -rwxr-xr-x 1 inoue kek 15100 3月 8日 14:12 cam7A* -rw-r--r-- 1 inoue kek 2582 10月 17日 16:13 cam7A.c -rw-r--r-- 1 inoue kek 46 3月 9日 10:18 cam7A.klist -rwxr-xr-x 1 inoue kek 14552 3月 8日 14:12 cam7B* -rw-r--r-- 1 inoue kek 1753 10月 17日 16:50 cam7B.c -rw-r--r-- 1 inoue kek 322 10月 18日 09:31 cam7a.asm -rw-r--r-- 1 inoue kek 697 3月 8日 14:12 cam7a.lis -rw-r--r-- 1 inoue kek 27 3月 8日 14:12 cam7a.obj -rw-r--r-- 1 inoue kek 322 10月 18日 10:24 cam7aA.asm -rw-r--r-- 1 inoue kek 697 3月 8日 14:12 cam7aA.lis -rw-r--r-- 1 inoue kek 27 3月 8日 14:12 cam7aA.obj -rw-r--r-- 1 inoue kek 679 10月 18日 10:52 cam7b.asm -rw-r--r-- 1 inoue kek 1228 3月 8日 14:12 cam7b.lis -rw-r--r-- 1 inoue kek 90 3月 8日 14:12 cam7b.obj -rw-r--r-- 1 inoue kek 812 10月 18日 13:43 cam7bA.asm -rw-r--r-- 1 inoue kek 1419 3月 8日 14:12 cam7bA.lis -rw-r--r-- 1 inoue kek 111 3月 8日 14:12 cam7bA.obj -rw-r--r-- 1 inoue kek 353 10月 18日 14:40 cam7cA.asm -rw-r--r-- 1 inoue kek 757 3月 8日 14:12 cam7cA.lis -rw-r--r-- 1 inoue kek 48 3月 8日 14:12 cam7cA.obj ./script: 合計 14 -rw-r--r-- 1 inoue kek 66 10月 18日 14:58 awk1.txt -rw-r--r-- 1 inoue kek 37 10月 18日 15:30 awk2.txt -rwxr-xr-x 1 inoue kek 233 10月 18日 15:32 cc_build.gcc.sh* -rwxr-xr-x 1 inoue kek 234 10月 18日 15:33 cc_build.sh* -rwxr-xr-x 1 inoue kek 811 3月 7日 10:57 cc_link.sh* -rwxr-xr-x 1 inoue kek 808 10月 18日 15:39 cc_load.sh* -rwxr-xr-x 1 inoue kek 270 6月 23日 2000年 cc_unload.sh* onlsun1[89]% (3-3). 各ファイルの配置 今回のデバッグの元にしたキットの各ファイル対して、デバッグ後のものを 割り当てる。 onlsun1[90]% pwd /export/home/onlsun1/inoue/workstation/onl5v4/Solaris7/CAMAC-Kit onlsun1[91]% ls FORCE-5V-sol7-list/ camasm/ cc.conf Makefile camlib.c cc.h README camlib.h cc_common.h cam1* camlib.o cc_config.h cam1.c camlist/ forlib.c cam2* camlist-kine/ forlib.o cam2.f cc k2917.h cam3* cc.c libcamac.a cam3.c cc.c-org script/ onlsun1[92]% (3-3-1). Makefile onlsun1[93]% mv Makefile FORCE-5V-sol7-list onlsun1[94]% (3-3-2). README onlsun1[94]% mv README FORCE-5V-sol7-list onlsun1[95]% (3-3-3). cam1.c onlsun1[95]% mv cam1.c FORCE-5V-sol7-list onlsun1[96]% (3-3-4). cam2.f onlsun1[96]% mv cam2.f FORCE-5V-sol7-list onlsun1[97]% (3-3-5). cam3.c onlsun1[97]% mv cam3.c FORCE-5V-sol7-list onlsun1[98]% (3-3-6). camlib.c onlsun1[98]% mv camlib.c FORCE-5V-sol7-list onlsun1[99]% (3-3-7). camlib.h onlsun1[99]% mv camlib.h FORCE-5V-sol7-list onlsun1[100]% (3-3-8). cc.c onlsun1[100]% mv cc.c FORCE-5V-sol7-list onlsun1[101]% (3-3-9). cc.conf onlsun1[101]% mv cc.conf FORCE-5V-sol7-list onlsun1[102]% (3-3-10). cc.h onlsun1[102]% mv cc.h FORCE-5V-sol7-list onlsun1[103]% (3-3-11). cc_common.h onlsun1[103]% mv cc_common.h FORCE-5V-sol7-list onlsun1[104]% (3-3-12). cc_config.h onlsun1[104]% mv cc_config.h FORCE-5V-sol7-list onlsun1[105]% (3-3-13). forlib.c onlsun1[105]% mv forlib.c FORCE-5V-sol7-list onlsun1[106]% (3-3-14). k2917.h nlsun1[106]% mv k2917.h FORCE-5V-sol7-list onlsun1[107]% (3-3-15). camasm ディレクトリ onlsun1[108]% mkdir FORCE-5V-sol7-list/camasm onlsun1[109]% ls camasm Makefile asm_code.h camasm* camasm.c err_code.h onlsun1[110]% (3-3-15-A). camasm ディレクトリの Makefile onlsun1[110]% mv camasm/Makefile FORCE-5V-sol7-list/camasm onlsun1[111]% (3-3-15-B). camasm ディレクトリの asm_code.h onlsun1[111]% mv camasm/asm_code.h FORCE-5V-sol7-list/camasm onlsun1[112]% (3-3-15-C). camasm ディレクトリの camasm.c onlsun1[112]% mv camasm/camasm.c FORCE-5V-sol7-list/camasm onlsun1[113]% (3-3-15-D). camasm ディレクトリの err_code.h onlsun1[113]% mv camasm/err_code.h FORCE-5V-sol7-list/camasm onlsun1[114]% (3-3-16). camlist ディレクトリ onlsun1[114]% mkdir FORCE-5V-sol7-list/camlist onlsun1[115]% ls camlist Makefile camtest4int.asm camtest5c.c camtest4c* camtest4int.obj camtest5c1* camtest4c.c camtest4single.asm camtest5c1.c camtest4dma.asm camtest4single.obj camtest5c2* camtest4dma.obj camtest5c* camtest5c2.c onlsun1[116]% (3-3-16-A). camlist ディレクトリの Makefile onlsun1[116]% mv camlist/Makefile FORCE-5V-sol7-list/camlist onlsun1[117]% (3-3-16-B). camlist ディレクトリの camtest4c.c onlsun1[117]% mv camlist/camtest4c.c FORCE-5V-sol7-list/camlist onlsun1[118]% (3-3-16-C). camlist ディレクトリの camtest4dma.asm onlsun1[118]% mv camlist/camtest4dma.asm FORCE-5V-sol7-list/camlist onlsun1[119]% (3-3-16-D). camlist ディレクトリの camtest4dma.obj onlsun1[119]% mv camlist/camtest4dma.obj FORCE-5V-sol7-list/camlist onlsun1[120]% (3-3-16-E). camlist ディレクトリの camtest4int.asm onlsun1[120]% mv camlist/camtest4int.asm FORCE-5V-sol7-list/camlist onlsun1[121]% (3-3-16-F). camlist ディレクトリの camtest4int.obj onlsun1[121]% mv camlist/camtest4int.obj FORCE-5V-sol7-list/camlist onlsun1[122]% (3-3-16-G). camlist ディレクトリの camtest4single.asm onlsun1[122]% mv camlist/camtest4single.asm FORCE-5V-sol7-list/camlist onlsun1[123]% (3-3-16-H). camlist ディレクトリの camtest4single.obj onlsun1[123]% mv camlist/camtest4single.obj FORCE-5V-sol7-list/camlist onlsun1[124]% (3-3-16-I). camlist ディレクトリの camtest5c.c onlsun1[124]% mv camlist/camtest5c.c FORCE-5V-sol7-list/camlist onlsun1[125]% (3-3-16-J). camlist ディレクトリの camtest5c1.c onlsun1[125]% mv camlist/camtest5c1.c FORCE-5V-sol7-list/camlist onlsun1[126]% (3-3-16-K). camlist ディレクトリの camtest5c2.c onlsun1[126]% mv camlist/camtest5c2.c FORCE-5V-sol7-list/camlist onlsun1[127]% (3-3-17). camlist-kine ディレクトリ onlsun1[127]% mkdir FORCE-5V-sol7-list/camlist-kine onlsun1[128]% ls camlist-kine Makefile cam6a* cam7A.c cam7aA.asm cam7bA.lis cam6* cam6a.c cam7A.klist cam7aA.lis cam7bA.obj cam6.asm cam6b* cam7B* cam7aA.obj cam7cA.asm cam6.c cam6b.c cam7B.c cam7b.asm cam7cA.lis cam6.klist cam7* cam7a.asm cam7b.lis cam7cA.obj cam6.lis cam7.c cam7a.lis cam7b.obj cam6.obj cam7A* cam7a.obj cam7bA.asm onlsun1[129]% (3-3-17-A). camlist-kine ディレクトリの Makefile onlsun1[129]% mv camlist-kine/Makefile FORCE-5V-sol7-list/camlist-kine onlsun1[130]% (3-3-17-B). camlist-kine ディレクトリの cam6.asm onlsun1[130]% mv camlist-kine/cam6.asm FORCE-5V-sol7-list/camlist-kine onlsun1[131]% (3-3-17-C). camlist-kine ディレクトリの cam6.c onlsun1[131]% mv camlist-kine/cam6.c FORCE-5V-sol7-list/camlist-kine onlsun1[132]% (3-3-17-D). camlist-kine ディレクトリの cam6.klist onlsun1[132]% mv camlist-kine/cam6.klist FORCE-5V-sol7-list/camlist-kine onlsun1[133]% (3-3-17-E). camlist-kine ディレクトリの cam6.lis onlsun1[133]% mv camlist-kine/cam6.lis FORCE-5V-sol7-list/camlist-kine onlsun1[134]% (3-3-17-F). camlist-kine ディレクトリの cam6.obj onlsun1[134]% mv camlist-kine/cam6.obj FORCE-5V-sol7-list/camlist-kine onlsun1[135]% (3-3-17-G). camlist-kine ディレクトリの cam6a.c onlsun1[135]% mv camlist-kine/cam6a.c FORCE-5V-sol7-list/camlist-kine onlsun1[136]% (3-3-17-H). camlist-kine ディレクトリの cam6b.c onlsun1[136]% mv camlist-kine/cam6b.c FORCE-5V-sol7-list/camlist-kine onlsun1[137]% (3-3-17-I). camlist-kine ディレクトリの cam7.c onlsun1[137]% mv camlist-kine/cam7.c FORCE-5V-sol7-list/camlist-kine onlsun1[138]% (3-3-17-J). camlist-kine ディレクトリの cam7A.c onlsun1[138]% mv camlist-kine/cam7A.c FORCE-5V-sol7-list/camlist-kine onlsun1[139]% (3-3-17-K). camlist-kine ディレクトリの cam7A.klist onlsun1[139]% mv camlist-kine/cam7A.klist FORCE-5V-sol7-list/camlist-kine onlsun1[140]% (3-3-17-L). camlist-kine ディレクトリの cam7B.c onlsun1[140]% mv camlist-kine/cam7B.c FORCE-5V-sol7-list/camlist-kine onlsun1[141]% (3-3-17-M). camlist-kine ディレクトリの cam7a.asm onlsun1[141]% mv camlist-kine/cam7a.asm FORCE-5V-sol7-list/camlist-kine onlsun1[142]% (3-3-17-N). camlist-kine ディレクトリの cam7a.lis onlsun1[142]% mv camlist-kine/cam7a.lis FORCE-5V-sol7-list/camlist-kine onlsun1[143]% (3-3-17-O). camlist-kine ディレクトリの cam7a.obj onlsun1[143]% mv camlist-kine/cam7a.obj FORCE-5V-sol7-list/camlist-kine onlsun1[144]% (3-3-17-P). camlist-kine ディレクトリの cam7aA.asm onlsun1[144]% mv camlist-kine/cam7aA.asm FORCE-5V-sol7-list/camlist-kine onlsun1[145]% (3-3-17-Q). camlist-kine ディレクトリの cam7aA.lis onlsun1[145]% mv camlist-kine/cam7aA.lis FORCE-5V-sol7-list/camlist-kine onlsun1[146]% (3-3-17-R). camlist-kine ディレクトリの cam7aA.obj onlsun1[146]% mv camlist-kine/cam7aA.obj FORCE-5V-sol7-list/camlist-kine onlsun1[147]% (3-3-17-S). camlist-kine ディレクトリの cam7b.asm onlsun1[147]% mv camlist-kine/cam7b.asm FORCE-5V-sol7-list/camlist-kine onlsun1[148]% (3-3-17-T). camlist-kine ディレクトリの cam7b.lis onlsun1[148]% mv camlist-kine/cam7b.lis FORCE-5V-sol7-list/camlist-kine onlsun1[149]% (3-3-17-U). camlist-kine ディレクトリの cam7b.obj onlsun1[149]% mv camlist-kine/cam7b.obj FORCE-5V-sol7-list/camlist-kine onlsun1[150]% (3-3-17-V). camlist-kine ディレクトリの cam7bA.asm onlsun1[150]% mv camlist-kine/cam7bA.asm FORCE-5V-sol7-list/camlist-kine onlsun1[151]% (3-3-17-W). camlist-kine ディレクトリの cam7bA.lis onlsun1[151]% mv camlist-kine/cam7bA.lis FORCE-5V-sol7-list/camlist-kine onlsun1[152]% (3-3-17-X). camlist-kine ディレクトリの cam7bA.obj onlsun1[152]% mv camlist-kine/cam7bA.obj FORCE-5V-sol7-list/camlist-kine onlsun1[153]% (3-3-17-Y). camlist-kine ディレクトリの cam7cA.asm onlsun1[153]% mv camlist-kine/cam7cA.asm FORCE-5V-sol7-list/camlist-kine onlsun1[154]% (3-3-17-Z). camlist-kine ディレクトリの cam7cA.lis onlsun1[154]% mv camlist-kine/cam7cA.lis FORCE-5V-sol7-list/camlist-kine onlsun1[155]% (3-3-17-AA). camlist-kine ディレクトリの cam7cA.obj onlsun1[155]% mv camlist-kine/cam7cA.obj FORCE-5V-sol7-list/camlist-kine onlsun1[156]% (3-3-18). cript ディレクトリ onlsun1[164]% mkdir FORCE-5V-sol7-list/script onlsun1[165]% ls script awk1.txt cc_build.gcc.sh* cc_link.sh* cc_unload.sh* awk2.txt cc_build.sh* cc_load.sh* onlsun1[166]% (3-3-18-A). script ディレクトリの awk1.txt onlsun1[167]% mv script/awk1.txt FORCE-5V-sol7-list/script onlsun1[168]% (3-3-18-B). script ディレクトリの awk2.txt onlsun1[168]% mv script/awk2.txt FORCE-5V-sol7-list/script onlsun1[169]% (3-3-18-C). script ディレクトリの cc_build.gcc.sh onlsun1[169]% mv script/cc_build.gcc.sh FORCE-5V-sol7-list/script onlsun1[170]% (3-3-18-D). script ディレクトリの cc_build.sh onlsun1[170]% mv script/cc_build.sh FORCE-5V-sol7-list/script onlsun1[171]% (3-3-18-E). script ディレクトリの cc_link.sh onlsun1[171]% mv script/cc_link.sh FORCE-5V-sol7-list/script onlsun1[172]% (3-3-18-F). script ディレクトリの cc_load.sh onlsun1[172]% mv script/cc_load.sh FORCE-5V-sol7-list/script onlsun1[173]% (3-3-18-G). script ディレクトリの cc_unload.sh onlsun1[173]% mv script/cc_unload.sh FORCE-5V-sol7-list/script onlsun1[174]% (3-4). 各ファイル中の記述を添削する 今回は cc.cファイルと script/cc_link.shファイルのみ修正したことがはっき りしている。 したがって、ファイル中の記述の添削、これら2つのファイルと REAMEファイルについてのみ行い、これら以外のファイルは無条件にキット用の ディレクトリ中にコピーするだけに留める。 ファイルの確認。 onlsun1[177]% pwd /export/home/onlsun1/inoue/workstation/onl5v4/Solaris7/CAMAC-Kit/FORCE-5V-sol7-list onlsun1[178]% ls -lR .: 合計 258 -rw-r--r-- 1 inoue kek 2041 6月 23日 2000年 Makefile -rw-r--r-- 1 inoue kek 4099 10月 20日 15:35 README -rw-r--r-- 1 inoue kek 1170 6月 23日 2000年 cam1.c -rw-r--r-- 1 inoue kek 2295 6月 23日 2000年 cam2.f -rw-r--r-- 1 inoue kek 2055 7月 28日 2000年 cam3.c drwxr-xr-x 2 inoue kek 512 3月 12日 15:40 camasm/ -rw-r--r-- 1 inoue kek 9803 10月 3日 17:15 camlib.c -rw-r--r-- 1 inoue kek 1415 6月 23日 2000年 camlib.h drwxr-xr-x 2 inoue kek 512 3月 12日 16:06 camlist/ drwxr-xr-x 2 inoue kek 1024 3月 14日 09:54 camlist-kine/ -rw-r--r-- 1 inoue kek 83124 2月 28日 15:36 cc.c -rw-r--r-- 1 inoue kek 288 6月 23日 2000年 cc.conf -rw-r--r-- 1 inoue kek 2829 10月 13日 10:59 cc.h -rw-r--r-- 1 inoue kek 2288 6月 23日 2000年 cc_common.h -rw-r--r-- 1 inoue kek 876 6月 23日 2000年 cc_config.h -rw-r--r-- 1 inoue kek 3289 6月 23日 2000年 forlib.c -rw-r--r-- 1 inoue kek 4058 6月 23日 2000年 k2917.h drwxr-xr-x 2 inoue kek 512 3月 14日 10:43 script/ ./camasm: 合計 78 -rw-r--r-- 1 inoue kek 448 6月 28日 2000年 Makefile -rw-r--r-- 1 inoue kek 11250 10月 17日 09:30 asm_code.h -rw-r--r-- 1 inoue kek 24762 6月 28日 2000年 camasm.c -rw-r--r-- 1 inoue kek 1646 6月 28日 2000年 err_code.h ./camlist: 合計 34 -rw-r--r-- 1 inoue kek 1415 10月 16日 10:45 Makefile -rw-r--r-- 1 inoue kek 2151 10月 16日 11:17 camtest4c.c -rw-r--r-- 1 inoue kek 709 10月 16日 11:45 camtest4dma.asm -rw-r--r-- 1 inoue kek 405 3月 8日 10:52 camtest4dma.obj -rw-r--r-- 1 inoue kek 903 10月 16日 13:58 camtest4int.asm -rw-r--r-- 1 inoue kek 322 3月 8日 10:52 camtest4int.obj -rw-r--r-- 1 inoue kek 603 10月 16日 14:12 camtest4single.asm -rw-r--r-- 1 inoue kek 195 3月 8日 10:52 camtest4single.obj -rw-r--r-- 1 inoue kek 2040 10月 16日 14:25 camtest5c.c -rw-r--r-- 1 inoue kek 2027 10月 16日 14:46 camtest5c1.c -rw-r--r-- 1 inoue kek 1994 10月 16日 15:47 camtest5c2.c ./camlist-kine: 合計 78 -rw-r--r-- 1 inoue kek 1296 10月 16日 16:30 Makefile -rw-r--r-- 1 inoue kek 708 10月 17日 14:35 cam6.asm -rw-r--r-- 1 inoue kek 1880 10月 17日 14:49 cam6.c -rw-r--r-- 1 inoue kek 134 3月 9日 10:02 cam6.klist -rw-r--r-- 1 inoue kek 1518 3月 8日 14:12 cam6.lis -rw-r--r-- 1 inoue kek 258 3月 8日 14:12 cam6.obj -rw-r--r-- 1 inoue kek 1541 10月 17日 15:32 cam6a.c -rw-r--r-- 1 inoue kek 2983 10月 17日 15:39 cam6b.c -rw-r--r-- 1 inoue kek 2021 10月 17日 16:07 cam7.c -rw-r--r-- 1 inoue kek 2582 10月 17日 16:13 cam7A.c -rw-r--r-- 1 inoue kek 46 3月 9日 10:18 cam7A.klist -rw-r--r-- 1 inoue kek 1753 10月 17日 16:50 cam7B.c -rw-r--r-- 1 inoue kek 322 10月 18日 09:31 cam7a.asm -rw-r--r-- 1 inoue kek 697 3月 8日 14:12 cam7a.lis -rw-r--r-- 1 inoue kek 27 3月 8日 14:12 cam7a.obj -rw-r--r-- 1 inoue kek 322 10月 18日 10:24 cam7aA.asm -rw-r--r-- 1 inoue kek 697 3月 8日 14:12 cam7aA.lis -rw-r--r-- 1 inoue kek 27 3月 8日 14:12 cam7aA.obj -rw-r--r-- 1 inoue kek 679 10月 18日 10:52 cam7b.asm -rw-r--r-- 1 inoue kek 1228 3月 8日 14:12 cam7b.lis -rw-r--r-- 1 inoue kek 90 3月 8日 14:12 cam7b.obj -rw-r--r-- 1 inoue kek 812 10月 18日 13:43 cam7bA.asm -rw-r--r-- 1 inoue kek 1419 3月 8日 14:12 cam7bA.lis -rw-r--r-- 1 inoue kek 111 3月 8日 14:12 cam7bA.obj -rw-r--r-- 1 inoue kek 353 10月 18日 14:40 cam7cA.asm -rw-r--r-- 1 inoue kek 757 3月 8日 14:12 cam7cA.lis -rw-r--r-- 1 inoue kek 48 3月 8日 14:12 cam7cA.obj ./script: 合計 14 -rw-r--r-- 1 inoue kek 66 10月 18日 14:58 awk1.txt -rw-r--r-- 1 inoue kek 37 10月 18日 15:30 awk2.txt -rwxr-xr-x 1 inoue kek 233 10月 18日 15:32 cc_build.gcc.sh* -rwxr-xr-x 1 inoue kek 234 10月 18日 15:33 cc_build.sh* -rwxr-xr-x 1 inoue kek 811 3月 7日 10:57 cc_link.sh* -rwxr-xr-x 1 inoue kek 808 10月 18日 15:39 cc_load.sh* -rwxr-xr-x 1 inoue kek 270 6月 23日 2000年 cc_unload.sh* onlsun1[179]% デバッグで変更した個所を確認するために、既存のキット "FORCE-50T-sol2.6- list" を入手する。 onlsun1[183]% pwd /export/home/onlsun1/inoue/workstation/onl5v4/Solaris7/CAMAC-Kit onlsun1[184]% mkdir tmp1 onlsun1[185]% cd tmp1 /export/home/onlsun1/inoue/workstation/onl5v4/Solaris7/CAMAC-Kit/tmp1 onlsun1[186]% ls -l 合計 0 onlsun1[187]% ftp online.kek.jp Connected to onlax2.kek.jp. 220 onlax2.kek.jp FTP server (Compaq Tru64 UNIX Version 5.60) ready. Name (online.kek.jp:inoue): anonymous 331 Guest login ok, send ident as password. Password: 230 Guest login ok, access restrictions apply. 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.153.10,51575). total 3560 -rw-r--r-- 1 0 10 1173 Apr 19 1995 122d_to_e.tar.gz -rw-r--r-- 1 0 10 89611 Oct 20 16:14 FORCE-50T-sol2.6-list.tar.Z -rw-r--r-- 1 0 10 48627 Oct 20 16:14 FORCE-50T-sol2.6-list.tar.gz -rw-r--r-- 1 0 10 24125 Jul 26 1999 FORCE-50T-sol2.6.tar.gz -rw-r--r-- 1 0 10 68469 Feb 7 15:50 FORCE-50T-sol7.tar.Z -rw-r--r-- 1 0 10 39636 Feb 7 15:50 FORCE-50T-sol7.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 -rw-r--r-- 1 0 10 37083 Oct 27 11:19 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 drwxr-xr-x 2 0 10 512 Jul 24 2000 doc -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. 2288 bytes received in 0.51 seconds (4.35 Kbytes/s) ftp> binary 200 Type set to I. ftp> get FORCE-50T-sol2.6-list.tar.gz 200 PORT command successful. 150 Opening BINARY mode data connection for FORCE-50T-sol2.6-list.tar.gz (130.87.153.10,51576) (48627 bytes). 226 Transfer complete. local: FORCE-50T-sol2.6-list.tar.gz remote: FORCE-50T-sol2.6-list.tar.gz 48627 bytes received in 0.049 seconds (965.50 Kbytes/s) ftp> quit 221 Goodbye. onlsun1[188]% onlsun1[188]% ls -l 合計 96 -rw-r--r-- 1 inoue kek 48627 3月 14日 11:01 FORCE-50T-sol2.6-list.tar.gz onlsun1[189]% gzip -d FORCE-50T-sol2.6-list.tar.gz onlsun1[190]% ls -l 合計 528 -rw-r--r-- 1 inoue kek 254976 10月 20日 16:07 FORCE-50T-sol2.6-list.tar onlsun1[191]% tar xvf FORCE-50T-sol2.6-list.tar x FORCE-50T-sol2.6-list, 0 bytes, 0 テープブロック x FORCE-50T-sol2.6-list/Makefile, 2041 bytes, 4 テープブロック x FORCE-50T-sol2.6-list/README, 4099 bytes, 9 テープブロック x FORCE-50T-sol2.6-list/cam1.c, 1170 bytes, 3 テープブロック x FORCE-50T-sol2.6-list/cam2.f, 2295 bytes, 5 テープブロック x FORCE-50T-sol2.6-list/cam3.c, 2055 bytes, 5 テープブロック x FORCE-50T-sol2.6-list/camlib.c, 9803 bytes, 20 テープブロック x FORCE-50T-sol2.6-list/camlib.h, 1415 bytes, 3 テープブロック x FORCE-50T-sol2.6-list/cc.c, 82172 bytes, 161 テープブロック x FORCE-50T-sol2.6-list/cc.conf, 288 bytes, 1 テープブロック x FORCE-50T-sol2.6-list/cc.h, 2829 bytes, 6 テープブロック x FORCE-50T-sol2.6-list/cc_common.h, 2288 bytes, 5 テープブロック x FORCE-50T-sol2.6-list/cc_config.h, 876 bytes, 2 テープブロック x FORCE-50T-sol2.6-list/forlib.c, 3289 bytes, 7 テープブロック x FORCE-50T-sol2.6-list/k2917.h, 4058 bytes, 8 テープブロック x FORCE-50T-sol2.6-list/camasm, 0 bytes, 0 テープブロック x FORCE-50T-sol2.6-list/camasm/Makefile, 448 bytes, 1 テープブロック x FORCE-50T-sol2.6-list/camasm/asm_code.h, 11250 bytes, 22 テープブロック x FORCE-50T-sol2.6-list/camasm/camasm.c, 24762 bytes, 49 テープブロック x FORCE-50T-sol2.6-list/camasm/err_code.h, 1646 bytes, 4 テープブロック x FORCE-50T-sol2.6-list/camasm/camasm, 27536 bytes, 54 テープブロック x FORCE-50T-sol2.6-list/camlist, 0 bytes, 0 テープブロック x FORCE-50T-sol2.6-list/camlist/Makefile, 1415 bytes, 3 テープブロック x FORCE-50T-sol2.6-list/camlist/camtest4c.c, 2151 bytes, 5 テープブロック x FORCE-50T-sol2.6-list/camlist/camtest4single.asm, 603 bytes, 2 テープブロック x FORCE-50T-sol2.6-list/camlist/camtest5c.c, 2040 bytes, 4 テープブロック x FORCE-50T-sol2.6-list/camlist/camtest5c1.c, 2027 bytes, 4 テープブロック x FORCE-50T-sol2.6-list/camlist/camtest4int.asm, 903 bytes, 2 テープブロック x FORCE-50T-sol2.6-list/camlist/camtest5c2.c, 1994 bytes, 4 テープブロック x FORCE-50T-sol2.6-list/camlist/camtest4dma.asm, 709 bytes, 2 テープブロック x FORCE-50T-sol2.6-list/camlist-kine, 0 bytes, 0 テープブロック x FORCE-50T-sol2.6-list/camlist-kine/Makefile, 1296 bytes, 3 テープブロック x FORCE-50T-sol2.6-list/camlist-kine/cam6.c, 1880 bytes, 4 テープブロック x FORCE-50T-sol2.6-list/camlist-kine/cam6.asm, 708 bytes, 2 テープブロック x FORCE-50T-sol2.6-list/camlist-kine/cam6a.c, 1541 bytes, 4 テープブロック x FORCE-50T-sol2.6-list/camlist-kine/cam6b.c, 2983 bytes, 6 テープブロック x FORCE-50T-sol2.6-list/camlist-kine/cam7.c, 2021 bytes, 4 テープブロック x FORCE-50T-sol2.6-list/camlist-kine/cam7a.asm, 322 bytes, 1 テープブロック x FORCE-50T-sol2.6-list/camlist-kine/cam7b.asm, 679 bytes, 2 テープブロック x FORCE-50T-sol2.6-list/camlist-kine/cam7A.c, 2582 bytes, 6 テープブロック x FORCE-50T-sol2.6-list/camlist-kine/cam7aA.asm, 322 bytes, 1 テープブロック x FORCE-50T-sol2.6-list/camlist-kine/cam7bA.asm, 812 bytes, 2 テープブロック x FORCE-50T-sol2.6-list/camlist-kine/cam7cA.asm, 353 bytes, 1 テープブロック x FORCE-50T-sol2.6-list/camlist-kine/cam7B.c, 1753 bytes, 4 テープブロック x FORCE-50T-sol2.6-list/script, 0 bytes, 0 テープブロック x FORCE-50T-sol2.6-list/script/awk1.txt, 66 bytes, 1 テープブロック x FORCE-50T-sol2.6-list/script/awk2.txt, 37 bytes, 1 テープブロック x FORCE-50T-sol2.6-list/script/cc_build.gcc.sh, 233 bytes, 1 テープブロック x FORCE-50T-sol2.6-list/script/cc_build.sh, 234 bytes, 1 テープブロック x FORCE-50T-sol2.6-list/script/cc_link.sh, 528 bytes, 2 テープブロック x FORCE-50T-sol2.6-list/script/cc_load.sh, 808 bytes, 2 テープブロック x FORCE-50T-sol2.6-list/script/cc_unload.sh, 270 bytes, 1 テープブロック onlsun1[192]% onlsun1[192]% ls -l 合計 530 drwxr-xr-x 6 inoue kek 512 10月 20日 16:04 FORCE-50T-sol2.6-list/ -rw-r--r-- 1 inoue kek 254976 10月 20日 16:07 FORCE-50T-sol2.6-list.tar onlsun1[193]% cd FORCE-50T-sol2.6-list /export/home/onlsun1/inoue/workstation/onl5v4/Solaris7/CAMAC-Kit/tmp1/FORCE-50T-sol2.6-list onlsun1[194]% ls -l 合計 256 -rw-r--r-- 1 inoue kek 2041 6月 23日 2000年 Makefile -rw-r--r-- 1 inoue kek 4099 10月 20日 15:35 README -rw-r--r-- 1 inoue kek 1170 6月 23日 2000年 cam1.c -rw-r--r-- 1 inoue kek 2295 6月 23日 2000年 cam2.f -rw-r--r-- 1 inoue kek 2055 7月 28日 2000年 cam3.c drwxr-xr-x 2 inoue kek 512 10月 20日 15:41 camasm/ -rw-r--r-- 1 inoue kek 9803 10月 3日 17:15 camlib.c -rw-r--r-- 1 inoue kek 1415 6月 23日 2000年 camlib.h drwxr-xr-x 2 inoue kek 512 10月 20日 16:05 camlist/ drwxr-xr-x 2 inoue kek 512 10月 20日 16:05 camlist-kine/ -rw-r--r-- 1 inoue kek 82172 10月 13日 10:59 cc.c -rw-r--r-- 1 inoue kek 288 6月 23日 2000年 cc.conf -rw-r--r-- 1 inoue kek 2829 10月 13日 10:59 cc.h -rw-r--r-- 1 inoue kek 2288 6月 23日 2000年 cc_common.h -rw-r--r-- 1 inoue kek 876 6月 23日 2000年 cc_config.h -rw-r--r-- 1 inoue kek 3289 6月 23日 2000年 forlib.c -rw-r--r-- 1 inoue kek 4058 6月 23日 2000年 k2917.h drwxr-xr-x 2 inoue kek 512 10月 2日 16:39 script/ onlsun1[195]% onlsun1[200]% pwd /export/home/onlsun1/inoue/workstation/onl5v4/Solaris7/CAMAC-Kit/FORCE-5V-sol7-list onlsun1[201]% ls -l 合計 258 -rw-r--r-- 1 inoue kek 2041 6月 23日 2000年 Makefile -rw-r--r-- 1 inoue kek 4099 10月 20日 15:35 README -rw-r--r-- 1 inoue kek 1170 6月 23日 2000年 cam1.c -rw-r--r-- 1 inoue kek 2295 6月 23日 2000年 cam2.f -rw-r--r-- 1 inoue kek 2055 7月 28日 2000年 cam3.c drwxr-xr-x 2 inoue kek 512 3月 12日 15:40 camasm/ -rw-r--r-- 1 inoue kek 9803 10月 3日 17:15 camlib.c -rw-r--r-- 1 inoue kek 1415 6月 23日 2000年 camlib.h drwxr-xr-x 2 inoue kek 512 3月 12日 16:06 camlist/ drwxr-xr-x 2 inoue kek 1024 3月 14日 09:54 camlist-kine/ -rw-r--r-- 1 inoue kek 83124 2月 28日 15:36 cc.c -rw-r--r-- 1 inoue kek 288 6月 23日 2000年 cc.conf -rw-r--r-- 1 inoue kek 2829 10月 13日 10:59 cc.h -rw-r--r-- 1 inoue kek 2288 6月 23日 2000年 cc_common.h -rw-r--r-- 1 inoue kek 876 6月 23日 2000年 cc_config.h -rw-r--r-- 1 inoue kek 3289 6月 23日 2000年 forlib.c -rw-r--r-- 1 inoue kek 4058 6月 23日 2000年 k2917.h drwxr-xr-x 2 inoue kek 512 3月 14日 10:43 script/ onlsun1[202]% onlsun1[204]% ls -l ../tmp1/FORCE-50T-sol2.6-list 合計 256 -rw-r--r-- 1 inoue kek 2041 6月 23日 2000年 Makefile -rw-r--r-- 1 inoue kek 4099 10月 20日 15:35 README -rw-r--r-- 1 inoue kek 1170 6月 23日 2000年 cam1.c -rw-r--r-- 1 inoue kek 2295 6月 23日 2000年 cam2.f -rw-r--r-- 1 inoue kek 2055 7月 28日 2000年 cam3.c drwxr-xr-x 2 inoue kek 512 10月 20日 15:41 camasm/ -rw-r--r-- 1 inoue kek 9803 10月 3日 17:15 camlib.c -rw-r--r-- 1 inoue kek 1415 6月 23日 2000年 camlib.h drwxr-xr-x 2 inoue kek 512 10月 20日 16:05 camlist/ drwxr-xr-x 2 inoue kek 512 10月 20日 16:05 camlist-kine/ -rw-r--r-- 1 inoue kek 82172 10月 13日 10:59 cc.c -rw-r--r-- 1 inoue kek 288 6月 23日 2000年 cc.conf -rw-r--r-- 1 inoue kek 2829 10月 13日 10:59 cc.h -rw-r--r-- 1 inoue kek 2288 6月 23日 2000年 cc_common.h -rw-r--r-- 1 inoue kek 876 6月 23日 2000年 cc_config.h -rw-r--r-- 1 inoue kek 3289 6月 23日 2000年 forlib.c -rw-r--r-- 1 inoue kek 4058 6月 23日 2000年 k2917.h drwxr-xr-x 2 inoue kek 512 10月 2日 16:39 script/ onlsun1[205]% (3-4-1). FORCE-5V-sol7-list/cc.cファイルの整備 cc.cファイルの修正個所の確認 onlsun1[210]% diff cc.c ../tmp1/FORCE-50T-sol2.6-list/cc.c 105d104 < /* E.Inoue 107,108d105 < end */ < timeout_id_t timeout_id; 141,142c138,139 < /* static int cc_ioctl(dev_t dev, int cmd, int arg, int flag, cred_t *cred_p, int *rval_p); */ < static int cc_ioctl(dev_t dev, int cmd, intptr_t arg, int flag, cred_t *cred_p, int *rval_p); --- > static int cc_ioctl(dev_t dev, int cmd, int arg, int flag, cred_t *cred_p, > int *rval_p); 147,149c144,145 < /* E.Inoue static void cc_timeout(); */ < /* E.Inoue static void cc_timeout(caddr_t unit); */ < static void cc_timeout(void *unit); --- > /*static void cc_timeout(); */ > static void cc_timeout(caddr_t unit); 877,878d872 < cc_timeout(void *unit) < /* E.Inoue 880d873 < */ 886d878 < /* E.Inoue 888,889d879 < */ < cc = ddi_get_soft_state(cc_state,(int)unit); 984,985c974 < /* cc_ioctl(dev_t dev, int cmd, int arg, int flag, cred_t *cred_p, int *rval_p) */ < cc_ioctl(dev_t dev, int cmd, intptr_t arg, int flag, cred_t *cred_p, int *rval_p) --- > cc_ioctl(dev_t dev, int cmd, int arg, int flag, cred_t *cred_p, int *rval_p) 1049d1037 < /* E.Inoue 1051,1052d1038 < */ < cc->timeout_id = timeout(cc_timeout, (void *)unit, cc->data1 * hz); 2205d2190 < /* E.Inoue 2207,2208d2191 < end */ < cc->timeout_id = timeout(cc_timeout, (void *)unit, cc->a_reg * hz); 2210d2192 < /* E.Inoue 2212,2213d2193 < end */ < cc->timeout_id = timeout(cc_timeout, (void *)unit, CC_TIMEOUT_LAM * hz); 2252d2231 < /* E.Inoue 2254,2255d2232 < end */ < cc->timeout_id = timeout(cc_timeout, (void *)unit, cc->a_reg * hz); 2257d2233 < /* E.Inoue 2259,2260d2234 < end */ < cc->timeout_id = timeout(cc_timeout, (void *)unit, CC_TIMEOUT_LAM * hz); 3038d3011 < /* E.Inoue 3040,3041d3012 < end */ < cc->timeout_id = timeout(cc_timeout, (void *)unit, CC_TIMEOUT_DMA * hz); onlsun1[211]% cc.cファイルはデバッグ時に変更を加えている。 (3-4-1-a). FORCE-5V-sol7-list/cc.cファイルの修正 onlsun1[216]% vi cc.c : 11 * 4-Oct-2000 E.Inoue List-Processing version * 12 * 14-Mar-2001 E.Inoue FORCE SPARC CPU-5V version * <--- 追加 : 106 /* E.Inoue <--- 削除 107 int timeout_id; <--- 削除 108 end */ <--- 削除 109 timeout_id_t timeout_id; <--- 追加 : 139 /* static int cc_ioctl(dev_t dev, int cmd, int arg, int flag, cred_t *cr ed_p, int *rval_p); */ <--- 削除 140 static int cc_ioctl(dev_t dev, int cmd, intptr_t arg, int flag, cred_t * cred_p, int *rval_p); <--- 追加 : 144 /* E.Inoue static void cc_timeout(); */ <--- 削除 145 /* E.Inoue static void cc_timeout(caddr_t unit); */ <--- 削除 146 static void cc_timeout(void *unit); <--- 追加 : 872 cc_timeout(void *unit) <--- 追加 873 /* E.Inoue <--- 削除 874 cc_timeout(caddr_t unit) <--- 削除 875 */ <--- 削除 : 877 /* cc = ddi_get_soft_state(cc_state,unit); */ <--- 削除 878 /* E.Inoue <--- 削除 879 cc = ddi_get_soft_state(cc_state,(int)*unit);<--- 削除 880 */ <--- 削除 881 cc = ddi_get_soft_state(cc_state,(int)unit); <--- 追加 : 971 static int 972 /* cc_ioctl(dev_t dev, int cmd, int arg, int flag, cred_t *cred_p, int * rval_p) */ <--- 削除 973 cc_ioctl(dev_t dev, int cmd, intptr_t arg, int flag, cred_t *cred_p, int *rval_p) <--- 追加 974 { : 1033 /* E.Inoue <--- 削除 1034 cc->timeout_id = timeout(cc_timeout, (caddr_t)&unit, data * hz); <--- 削除 1035 */ <--- 削除 1036 /* E.Inoue <--- 削除 1037 cc->timeout_id = timeout(cc_timeout, (caddr_t)&unit, cc->data1 * hz); <--- 削除 1038 */ <--- 削除 1039 cc->timeout_id = timeout(cc_timeout, (void *)unit, cc->data1 * hz ); <--- 追加 : 2185 #ifdef CC_SPARC_LIST_EXTENSION 2186 /* E.Inoue <--- 削除 2187 cc->timeout_id = timeout(cc_timeout, (caddr_t)&unit, cc->a_reg * hz) ; <--- 削除 2188 end */ <--- 削除 2189 cc->timeout_id = timeout(cc_timeout, (void *)unit, cc->a_reg * hz); <--- 追加 2190 #else 2191 /* E.Inoue <--- 削除 2192 cc->timeout_id = timeout(cc_timeout, (caddr_t)&unit, CC_TIMEOUT_LAM * hz); <--- 削除 2193 end */ <--- 削除 2194 cc->timeout_id = timeout(cc_timeout, (void *)unit, CC_TIMEOUT_LAM * hz); <--- 追加 2195 #endif : 2226 #ifdef CC_SPARC_LIST_EXTENSION 2227 /* E.Inoue <--- 削除 2228 cc->timeout_id = timeout(cc_timeout, (caddr_t)&unit, cc->a_reg * hz); <--- 削除 2229 end */ <--- 削除 2230 cc->timeout_id = timeout(cc_timeout, (void *)unit, cc->a_reg * hz); <--- 追加 2231 #else 2232 /* E.Inoue <--- 削除 2233 cc->timeout_id = timeout(cc_timeout, (caddr_t)&unit, CC_TIMEOUT_LAM * hz); <--- 削除 2234 end */ <--- 削除 2235 cc->timeout_id = timeout(cc_timeout, (void *)unit, CC_TIMEOUT_LAM * hz); <--- 追加 #endif : 3007 /* E.Inoue <--- 削除 3008 cc->timeout_id = timeout(cc_timeout, (caddr_t)&unit, CC_TIMEOUT_DMA * hz); <--- 削除 3009 end */ <--- 削除 3010 cc->timeout_id = timeout(cc_timeout, (void *)unit, CC_TIMEOUT_DMA * hz); <--- 追加 : onlsun1[217]% (3-4-2). FORCE-5V-sol7-list/script/ ディレクトリの整備 onlsun1[233]% pwd /export/home/onlsun1/inoue/workstation/onl5v4/Solaris7/CAMAC-Kit/FORCE-5V-sol7-list/script onlsun1[234]% ls -l 合計 14 -rw-r--r-- 1 inoue kek 66 10月 18日 14:58 awk1.txt -rw-r--r-- 1 inoue kek 37 10月 18日 15:30 awk2.txt -rwxr-xr-x 1 inoue kek 233 10月 18日 15:32 cc_build.gcc.sh* -rwxr-xr-x 1 inoue kek 234 10月 18日 15:33 cc_build.sh* -rwxr-xr-x 1 inoue kek 811 3月 7日 10:57 cc_link.sh* -rwxr-xr-x 1 inoue kek 808 10月 18日 15:39 cc_load.sh* -rwxr-xr-x 1 inoue kek 270 6月 23日 2000年 cc_unload.sh* onlsun1[235]% (3-4-2A). FORCE-5V-sol7-list/script/cc_link.shファイルの整備 onlsun1[239]% diff cc_link.sh ../../tmp1/FORCE-50T-sol2.6-list/script/cc_link.sh 4d3 < # modified: 7-Mar-2001 E.Inoue(KEK) 6,11d4 < set SYS57 = "5.7" < set SYSNL = `uname -sr` < if ( $SYSNL[2] == $SYS57 )then < set CCDIR=`dmesg|grep 'cc0 is'|tail -1|awk '{print $8}'|awk -f script/awk1.txt` < set CCNAM=`dmesg|grep 'cc0 is'|tail -1|awk '{print $8}'|awk -f script/awk2.txt` < else 15d7 < endif onlsun1[240]% (3-4-2Aa). FORCE-5V-sol7-list/script/cc_link.shファイルの修正 cc_link.shファイルは一部変更を加えている。 onlsun1[241]% vi cc_link.sh : 4 # modified: 7-Mar-2001 E.Inoue(KEK) <--- 追加 : 6 set SYS57 = "5.7" <--- 追加 7 set SYSNL = `uname -sr` <--- 追加 8 if ( $SYSNL[2] == $SYS57 )then <--- 追加 9 set CCDIR=`dmesg|grep 'cc0 is'|tail -1|awk '{print $8}'|awk -f script/aw k1.txt` <--- 追加 10 set CCNAM=`dmesg|grep 'cc0 is'|tail -1|awk '{print $8}'|awk -f script/aw k2.txt` <--- 追加 11 else <--- 追加 12 set CCDIR=`dmesg|grep 'cc0 is'|tail -1|awk '{print $3}'|awk -f script/aw k1.txt` 13 set CCNAM=`dmesg|grep 'cc0 is'|tail -1|awk '{print $3}'|awk -f script/aw k2.txt` 14 #set CCMAJOR = `modinfo | grep CAMAC | awk ' {print $4}'` 15 endif <--- 追加 : onlsun1[242]% (3-4-3). FORCE-5V-sol7-list/READMEファイルの整備 onlsun1[243]% diff README ../tmp1/FORCE-50T-sol2.6-list/README onlsun1[244]% 変更は加えていない。 今回、開発した新しいキットに合わせて書き直すことにする。 (3-4-3A). FORCE-5V-sol7-list/READMEファイルの修正 以下のように修正した。 onlsun1[269]% vi README Mar 15, 2001 CAMAC Device Driver for Solaris7, for 32 bits kernel Release 2.1 Yasuo Takeuchi (ICRR) May 23, 1997 modified by Eiji Inoue (KEK) Jul 26, 1999 modified by Kouji Takahashi(LHS), Eiji Inoue (KEK) Oct 19, 2000 modified by Eiji Inoue (KEK) Mar 15, 2001 modified by Eiji Inoue (KEK) 1. Overview This is a CAMAC Device Driver distribution kit for FORCE 32bits SPARC CPU board of the VME standard. This "CAMAC Device Driver for Solaris7" allows the Kinetic Systems Corporation's K2917-Z1A(VME-CAMAC interface), K3922-Z1B(CAMAC CC) modules to be used under Solaris7. A summary of newfeachers added in a CAMAC device driver of this version is as follows. The 1st point is that it become posssible to use of KEK List Processing and 2nd point is that it become posssible to use of Kinetic List Processing. This distribution kit contains a CAMAC device driver source program, set of CAMAC library program, and some sample programs for the 32bits SPARC CPU board. Please refer to"Usage Guide of CAMAC Library for UNIX" for hese function and directions. You can get this document from web site, "ftp://online.kek.jp/pub/kek/camac/doc/user_guide.txt". The CAMAC functions for SPARC/Solaris7 is fully compatible with those for SPARC/ SunOS4, and almost compatible with the CAMAC drivers on some machines developed at KEK. Any comment aboutthis CAMAC driver is welcome. Please send E-mail to "eiji.inoue@kek.jp" and/or "takeuchi@icrr.u-tokyo.ac.jp". 2. Compile and installing the software (2-1) connect SPARC CPU-5V, K2917 and K3922, and then install the VME device driver according to its manual. (2-2) check Makefile and compile. make (2-3) Reboot your system shutdown : boot -r (2-4) copy and load CAMAC device driver. su make load exit (2-5) execute sample programs. cam1 cam3 If necessary, camlist/ camlist-kine/ (2-6) To remove the CAMAC device driver, type as follows. su make unload exit 3. Configuring the driver Nothing. 4. Pitfalls to avoid Nothing. 5. Requirement Hardware & Software: (our environment) FORCE Computers Inc. SPARC CPU-5V Solaris7 Desktop SPARC Platform Edition VME driver V2.4.1 Kinetic Systems Corporation K3922-Z1B (CAMAC CC) K2917-Z1A (VME-CAMAC interface) 6. History v3.0 Modified Release v1.30-5V for 64 kernel. v2.1 Modified Release v2.0-50T for 32 kernel List processing. KEK List processing and Kinetic List processing became able to be used. v2.0 Modified Release v1.40-50T for List processing. KEK List processing and Kinetic List processing became able to be used. v1.40-50T Modified Release v1.30-5V for FORCE SPARC CPU-50T. This version of CAMAC driver can also be used under the Server & Diskless Clients system. v1.30-5V Modified Release v1.30 for FORCE SPARC CPU-5V. The CAMAC single action, LAM interruption, block transfer, work well. v1.30 test release. under porting from the CAMAC driver for SPARC/SunOS4 v1.22d DMA dosen't work well. 7. Requests for Information 竹内 康雄 東京大学宇宙線研究所 神岡宇宙素粒子研究施設 Yasuo Takeuchi Kamioka Observatory, ICRR, Univ. of Tokyo TEL:0578-5-9607 FAX:0578-5-2121 E-mail:takeuchi@icrr.u-tokyo.ac.jp URL: http://www-sk.icrr.u-tokyo.ac.jp/~takeuchi/ 井上 栄二 高エネルギー加速器研究機構 素粒子原子核研究所 Eiji Inoue High Energy Accelerator Research Organization, Institute of Particle and Nuclear Studies TEL:0298-79-6085, PHS:0298-64-5200-(announce)-4304, FAX:0298-64-2580 E-mail:eiji.inoue@kek.jp URL: http://www-online.kek.jp/~inoue/   高橋 幸治 株式会社エルエッチエス   Kouji Takahashi LHS Incorporated, Technical Support  TEL:03-5337-2631 FAX:03-5337-2635 E-mail:ktaka@lhss.co.jp URL: http://www.lhss.co.jp/ onlsun1[270]% これでキット中の全てのファイルについて、修正が終わった。 このキットを使って最終テストを行う。 ---xxxx ここまでやった(継続中) --- (6). 項目タイトル (6-1). サブ項目タイトル (6-1-1). サブサブ項目タイトル