Apr 5, 2002 onl5v4: Solaris8 cc ドライバのテスト --- cc ドライバのインストール#01 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ (http://www-online.kek.jp/~inoue/CAMAC/onl5v4-sol8/ Desktop/camac-step01.txt) 高エネルギー加速器研究機構 素粒子原子核研究所 物理、オンライングループ 井上 栄二 (1). 現状確認 (A). onl5v4テスト用のHD が届いた。 (B). "Solaris 8 7/01" のメディアを使ってシステムをインストールした。 (C). /etc の下の各設定、および /export/home の作成をやった。 (D). CPU-5V にSolaris8用の VMEドライバ、FRCvme-2.5.1をインストールした。 (2). ここでやるべきこと onl5v4 に ccドライバをインストールする。 (3). cc.cファイル一式を入手、再コンパイル、リロード (3-1). CAMACドライバ・キット FORCE-5V-sol7-list を online.kek.jp から入手 onl5v4[44]% pwd /export/home/onl5v4/inoue/CAMAC onl5v4[45]% ls -l 合計 0 onl5v4[46]% 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.49,32828). total 4015 -rw-r--r-- 1 0 10 1173 Apr 19 1995 122d_to_e.tar.gz -rw-r--r-- 1 0 10 1153 Mar 16 2001 8vt-sol2.6-driver.html -rw-r--r-- 1 0 10 89611 Oct 20 2000 FORCE-50T-sol2.6-list.tar.Z -rw-r--r-- 1 0 10 48627 Oct 20 2000 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 98495 Jan 31 16:22 FORCE-50T-sol7-list.tar.Z -rw-r--r-- 1 0 10 53177 Jan 31 16:22 FORCE-50T-sol7-list.tar.gz -rw-r--r-- 1 0 10 68469 Feb 7 2001 FORCE-50T-sol7.tar.Z -rw-r--r-- 1 0 10 39636 Feb 7 2001 FORCE-50T-sol7.tar.gz -rw-r--r-- 1 0 10 98553 Feb 28 10:07 FORCE-50T-sol8-list.tar.Z -rw-r--r-- 1 0 10 53168 Feb 28 10:07 FORCE-50T-sol8-list.tar.gz -rw-r--r-- 1 0 10 22160 Nov 19 1997 FORCE-5V-sol2.5.tar.gz -rw-r--r-- 1 0 10 76149 Mar 22 2001 FORCE-5V-sol7-list.tar.Z -rw-r--r-- 1 0 10 39333 Mar 22 2001 FORCE-5V-sol7-list.tar.gz -rw-r--r-- 1 0 10 2494 Dec 2 1994 README -rw-r--r-- 1 0 10 48471 Mar 7 16:50 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. 2853 bytes received in 0.025 seconds (109.33 Kbytes/s) ftp> binary 200 Type set to I. ftp> get FORCE-5V-sol7-list.tar.gz 200 PORT command successful. 150 Opening BINARY mode data connection for FORCE-5V-sol7-list.tar.gz (130.87.153.49,32829) (39333 bytes). 226 Transfer complete. local: FORCE-5V-sol7-list.tar.gz remote: FORCE-5V-sol7-list.tar.gz 39333 bytes received in 0.061 seconds (631.69 Kbytes/s) ftp> quit 221 Goodbye. onl5v4[47]% onl5v4[47]% ls -l 合計 78 -rw-r--r-- 1 inoue kek 39333 3月 28日 15:49 FORCE-5V-sol7-list.tar.gz onl5v4[48]% gzip -d FORCE-5V-sol7-list.tar.gz onl5v4[49]% ls -l 合計 512 -rw-r--r-- 1 inoue kek 249344 3月 22日 2001年 FORCE-5V-sol7-list.tar onl5v4[50]% tar xvf FORCE-5V-sol7-list.tar x FORCE-5V-sol7-list, 0 bytes, 0 テープブロック x FORCE-5V-sol7-list/Makefile, 2041 bytes, 4 テープブロック x FORCE-5V-sol7-list/README, 4665 bytes, 10 テープブロック x FORCE-5V-sol7-list/cam1.c, 1170 bytes, 3 テープブロック x FORCE-5V-sol7-list/cam2.f, 2295 bytes, 5 テープブロック x FORCE-5V-sol7-list/cam3.c, 2055 bytes, 5 テープブロック x FORCE-5V-sol7-list/camlib.c, 9803 bytes, 20 テープブロック x FORCE-5V-sol7-list/camlib.h, 1415 bytes, 3 テープブロック x FORCE-5V-sol7-list/cc.c, 82075 bytes, 161 テープブロック x FORCE-5V-sol7-list/cc.conf, 288 bytes, 1 テープブロック x FORCE-5V-sol7-list/cc.h, 2829 bytes, 6 テープブロック x FORCE-5V-sol7-list/cc_common.h, 2288 bytes, 5 テープブロック x FORCE-5V-sol7-list/cc_config.h, 876 bytes, 2 テープブロック x FORCE-5V-sol7-list/forlib.c, 3289 bytes, 7 テープブロック x FORCE-5V-sol7-list/k2917.h, 4058 bytes, 8 テープブロック x FORCE-5V-sol7-list/camasm, 0 bytes, 0 テープブロック x FORCE-5V-sol7-list/camasm/Makefile, 448 bytes, 1 テープブロック x FORCE-5V-sol7-list/camasm/asm_code.h, 11250 bytes, 22 テープブロック x FORCE-5V-sol7-list/camasm/camasm.c, 24762 bytes, 49 テープブロック x FORCE-5V-sol7-list/camasm/err_code.h, 1646 bytes, 4 テープブロック x FORCE-5V-sol7-list/camlist, 0 bytes, 0 テープブロック x FORCE-5V-sol7-list/camlist/Makefile, 1415 bytes, 3 テープブロック x FORCE-5V-sol7-list/camlist/camtest4c.c, 2151 bytes, 5 テープブロック x FORCE-5V-sol7-list/camlist/camtest4dma.asm, 709 bytes, 2 テープブロック x FORCE-5V-sol7-list/camlist/camtest4dma.obj, 405 bytes, 1 テープブロック x FORCE-5V-sol7-list/camlist/camtest4int.asm, 903 bytes, 2 テープブロック x FORCE-5V-sol7-list/camlist/camtest4int.obj, 322 bytes, 1 テープブロック x FORCE-5V-sol7-list/camlist/camtest4single.asm, 603 bytes, 2 テープブロック x FORCE-5V-sol7-list/camlist/camtest4single.obj, 195 bytes, 1 テープブロック x FORCE-5V-sol7-list/camlist/camtest5c.c, 2040 bytes, 4 テープブロック x FORCE-5V-sol7-list/camlist/camtest5c1.c, 2027 bytes, 4 テープブロック x FORCE-5V-sol7-list/camlist/camtest5c2.c, 1994 bytes, 4 テープブロック x FORCE-5V-sol7-list/camlist-kine, 0 bytes, 0 テープブロック x FORCE-5V-sol7-list/camlist-kine/Makefile, 1296 bytes, 3 テープブロック x FORCE-5V-sol7-list/camlist-kine/cam6.asm, 708 bytes, 2 テープブロック x FORCE-5V-sol7-list/camlist-kine/cam6.c, 1880 bytes, 4 テープブロック x FORCE-5V-sol7-list/camlist-kine/cam6.klist, 134 bytes, 1 テープブロック x FORCE-5V-sol7-list/camlist-kine/cam6.lis, 1518 bytes, 3 テープブロック x FORCE-5V-sol7-list/camlist-kine/cam6.obj, 258 bytes, 1 テープブロック x FORCE-5V-sol7-list/camlist-kine/cam6a.c, 1541 bytes, 4 テープブロック x FORCE-5V-sol7-list/camlist-kine/cam6b.c, 2983 bytes, 6 テープブロック x FORCE-5V-sol7-list/camlist-kine/cam7.c, 2021 bytes, 4 テープブロック x FORCE-5V-sol7-list/camlist-kine/cam7A.c, 2582 bytes, 6 テープブロック x FORCE-5V-sol7-list/camlist-kine/cam7A.klist, 46 bytes, 1 テープブロック x FORCE-5V-sol7-list/camlist-kine/cam7B.c, 1753 bytes, 4 テープブロック x FORCE-5V-sol7-list/camlist-kine/cam7a.asm, 322 bytes, 1 テープブロック x FORCE-5V-sol7-list/camlist-kine/cam7a.lis, 697 bytes, 2 テープブロック x FORCE-5V-sol7-list/camlist-kine/cam7a.obj, 27 bytes, 1 テープブロック x FORCE-5V-sol7-list/camlist-kine/cam7aA.asm, 322 bytes, 1 テープブロック x FORCE-5V-sol7-list/camlist-kine/cam7aA.lis, 697 bytes, 2 テープブロック x FORCE-5V-sol7-list/camlist-kine/cam7aA.obj, 27 bytes, 1 テープブロック x FORCE-5V-sol7-list/camlist-kine/cam7b.asm, 679 bytes, 2 テープブロック x FORCE-5V-sol7-list/camlist-kine/cam7b.lis, 1228 bytes, 3 テープブロック x FORCE-5V-sol7-list/camlist-kine/cam7b.obj, 90 bytes, 1 テープブロック x FORCE-5V-sol7-list/camlist-kine/cam7bA.asm, 812 bytes, 2 テープブロック x FORCE-5V-sol7-list/camlist-kine/cam7bA.lis, 1419 bytes, 3 テープブロック x FORCE-5V-sol7-list/camlist-kine/cam7bA.obj, 111 bytes, 1 テープブロック x FORCE-5V-sol7-list/camlist-kine/cam7cA.asm, 353 bytes, 1 テープブロック x FORCE-5V-sol7-list/camlist-kine/cam7cA.lis, 757 bytes, 2 テープブロック x FORCE-5V-sol7-list/camlist-kine/cam7cA.obj, 48 bytes, 1 テープブロック x FORCE-5V-sol7-list/script, 0 bytes, 0 テープブロック x FORCE-5V-sol7-list/script/awk1.txt, 66 bytes, 1 テープブロック x FORCE-5V-sol7-list/script/awk2.txt, 37 bytes, 1 テープブロック x FORCE-5V-sol7-list/script/cc_build.gcc.sh, 233 bytes, 1 テープブロック x FORCE-5V-sol7-list/script/cc_build.sh, 234 bytes, 1 テープブロック x FORCE-5V-sol7-list/script/cc_link.sh, 811 bytes, 2 テープブロック x FORCE-5V-sol7-list/script/cc_load.sh, 808 bytes, 2 テープブロック x FORCE-5V-sol7-list/script/cc_unload.sh, 270 bytes, 1 テープブロック onl5v4[51]% (3-2). camac ドライバのキットをコンパイルし直す onl5v4[51]% which cc /net/fs/public/solaris_licensed/forte6/sparc/SUNWspro/bin/cc onl5v4[52]% cc -V cc: Sun WorkShop 6 update 1 C 5.2 2000/09/11 使用法: cc [オプション] ファイル # 詳細は 'cc -flags' を参照してください onl5v4[53]% which f77 /net/fs/public/solaris_licensed/forte6/sparc/SUNWspro/bin/f77 onl5v4[54]% f77 -V f77: Sun WorkShop 6 update 1 FORTRAN 77 5.2 2000/09/11 使用法: f77 [ オプション ] ファイル # 詳細は 'f77 -flags' を参照してください。 onl5v4[55]% onl5v4[40]% pwd /export/home/onl5v4/inoue/CAMAC onl5v4[41]% ls -lR .: 合計 514 drwxr-xr-x 6 inoue kek 512 3月 15日 2001年 FORCE-5V-sol7-list/ -rw-r--r-- 1 inoue kek 249344 3月 22日 2001年 FORCE-5V-sol7-list.tar ./FORCE-5V-sol7-list: 合計 256 -rw-r--r-- 1 inoue kek 2041 6月 23日 2000年 Makefile -rw-r--r-- 1 inoue kek 4665 3月 15日 2001年 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日 2001年 camasm/ -rw-r--r-- 1 inoue kek 9803 10月 3日 2000年 camlib.c -rw-r--r-- 1 inoue kek 1415 6月 23日 2000年 camlib.h drwxr-xr-x 2 inoue kek 512 3月 12日 2001年 camlist/ drwxr-xr-x 2 inoue kek 1024 3月 14日 2001年 camlist-kine/ -rw-r--r-- 1 inoue kek 82075 3月 15日 2001年 cc.c -rw-r--r-- 1 inoue kek 288 6月 23日 2000年 cc.conf -rw-r--r-- 1 inoue kek 2829 3月 22日 2001年 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日 2001年 script/ ./FORCE-5V-sol7-list/camasm: 合計 78 -rw-r--r-- 1 inoue kek 448 6月 28日 2000年 Makefile -rw-r--r-- 1 inoue kek 11250 10月 17日 2000年 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 ./FORCE-5V-sol7-list/camlist: 合計 34 -rw-r--r-- 1 inoue kek 1415 10月 16日 2000年 Makefile -rw-r--r-- 1 inoue kek 2151 10月 16日 2000年 camtest4c.c -rw-r--r-- 1 inoue kek 709 10月 16日 2000年 camtest4dma.asm -rw-r--r-- 1 inoue kek 405 3月 8日 2001年 camtest4dma.obj -rw-r--r-- 1 inoue kek 903 10月 16日 2000年 camtest4int.asm -rw-r--r-- 1 inoue kek 322 3月 8日 2001年 camtest4int.obj -rw-r--r-- 1 inoue kek 603 10月 16日 2000年 camtest4single.asm -rw-r--r-- 1 inoue kek 195 3月 8日 2001年 camtest4single.obj -rw-r--r-- 1 inoue kek 2040 10月 16日 2000年 camtest5c.c -rw-r--r-- 1 inoue kek 2027 10月 16日 2000年 camtest5c1.c -rw-r--r-- 1 inoue kek 1994 10月 16日 2000年 camtest5c2.c ./FORCE-5V-sol7-list/camlist-kine: 合計 78 -rw-r--r-- 1 inoue kek 1296 10月 16日 2000年 Makefile -rw-r--r-- 1 inoue kek 708 10月 17日 2000年 cam6.asm -rw-r--r-- 1 inoue kek 1880 10月 17日 2000年 cam6.c -rw-r--r-- 1 inoue kek 134 3月 9日 2001年 cam6.klist -rw-r--r-- 1 inoue kek 1518 3月 8日 2001年 cam6.lis -rw-r--r-- 1 inoue kek 258 3月 8日 2001年 cam6.obj -rw-r--r-- 1 inoue kek 1541 10月 17日 2000年 cam6a.c -rw-r--r-- 1 inoue kek 2983 10月 17日 2000年 cam6b.c -rw-r--r-- 1 inoue kek 2021 10月 17日 2000年 cam7.c -rw-r--r-- 1 inoue kek 2582 10月 17日 2000年 cam7A.c -rw-r--r-- 1 inoue kek 46 3月 9日 2001年 cam7A.klist -rw-r--r-- 1 inoue kek 1753 10月 17日 2000年 cam7B.c -rw-r--r-- 1 inoue kek 322 10月 18日 2000年 cam7a.asm -rw-r--r-- 1 inoue kek 697 3月 8日 2001年 cam7a.lis -rw-r--r-- 1 inoue kek 27 3月 8日 2001年 cam7a.obj -rw-r--r-- 1 inoue kek 322 10月 18日 2000年 cam7aA.asm -rw-r--r-- 1 inoue kek 697 3月 8日 2001年 cam7aA.lis -rw-r--r-- 1 inoue kek 27 3月 8日 2001年 cam7aA.obj -rw-r--r-- 1 inoue kek 679 10月 18日 2000年 cam7b.asm -rw-r--r-- 1 inoue kek 1228 3月 8日 2001年 cam7b.lis -rw-r--r-- 1 inoue kek 90 3月 8日 2001年 cam7b.obj -rw-r--r-- 1 inoue kek 812 10月 18日 2000年 cam7bA.asm -rw-r--r-- 1 inoue kek 1419 3月 8日 2001年 cam7bA.lis -rw-r--r-- 1 inoue kek 111 3月 8日 2001年 cam7bA.obj -rw-r--r-- 1 inoue kek 353 10月 18日 2000年 cam7cA.asm -rw-r--r-- 1 inoue kek 757 3月 8日 2001年 cam7cA.lis -rw-r--r-- 1 inoue kek 48 3月 8日 2001年 cam7cA.obj ./FORCE-5V-sol7-list/script: 合計 14 -rw-r--r-- 1 inoue kek 66 10月 18日 2000年 awk1.txt -rw-r--r-- 1 inoue kek 37 10月 18日 2000年 awk2.txt -rwxr-xr-x 1 inoue kek 233 10月 18日 2000年 cc_build.gcc.sh* -rwxr-xr-x 1 inoue kek 234 10月 18日 2000年 cc_build.sh* -rwxr-xr-x 1 inoue kek 811 3月 7日 2001年 cc_link.sh* -rwxr-xr-x 1 inoue kek 808 10月 18日 2000年 cc_load.sh* -rwxr-xr-x 1 inoue kek 270 6月 23日 2000年 cc_unload.sh* onl5v4[42]% onl5v4[44]% cd FORCE-5V-sol7-list /export/home/onl5v4/inoue/CAMAC/FORCE-5V-sol7-list onl5v4[45]% ls Makefile cam3.c camlist/ cc.h k2917.h README camasm/ camlist-kine/ cc_common.h script/ cam1.c camlib.c cc.c cc_config.h cam2.f camlib.h cc.conf forlib.c onl5v4[46]% onl5v4[47]% make clean \rm -f cc *.o libcamac.a cam1 cam2 cam3 *~ core onl5v4[48]% 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 onl5v4[49]% onl5v4[61]% cd camasm /export/home/onl5v4/inoue/CAMAC/FORCE-5V-sol7-list/camasm onl5v4[62]% ls Makefile asm_code.h camasm.c err_code.h onl5v4[63]% make clean rm -f camasm *.obj *.lis *~ *.o core onl5v4[64]% make cc -O -o camasm camasm.c "./asm_code.h", 192 行目: 警告: 初期設定値が適合していないか範囲を超えています: -1 onl5v4[65]% onl5v4[66]% cd ../camlist /export/home/onl5v4/inoue/CAMAC/FORCE-5V-sol7-list/camlist onl5v4[67]% ls Makefile camtest4int.asm camtest5c.c camtest4c.c camtest4int.obj camtest5c1.c camtest4dma.asm camtest4single.asm camtest5c2.c camtest4dma.obj camtest4single.obj onl5v4[68]% make clean rm -f camtest4c camtest5c camtest5c1 camtest5c2 \ camtest4single.obj camtest4dma.obj camtest4int.obj \ core onl5v4[69]% make cc -o camtest4c camtest4c.c -I.. -L.. -lcamac cc -o camtest5c camtest5c.c -I.. -L.. -lcamac cc -o camtest5c1 camtest5c1.c -I.. -L.. -lcamac cc -o camtest5c2 camtest5c2.c -I.. -L.. -lcamac ../camasm/camasm camtest4single.asm CAMASM macro assembler V0.1 --- KEK online group --- Modified by Y.T Oct-1991 ../camasm/camasm camtest4dma.asm CAMASM macro assembler V0.1 --- KEK online group --- Modified by Y.T Oct-1991 ../camasm/camasm camtest4int.asm CAMASM macro assembler V0.1 --- KEK online group --- Modified by Y.T Oct-1991 onl5v4[70]% onl5v4[71]% cd ../camlist-kine /export/home/onl5v4/inoue/CAMAC/FORCE-5V-sol7-list/camlist-kine onl5v4[72]% ls Makefile cam6a.c cam7a.asm cam7b.asm cam7cA.asm cam6.asm cam6b.c cam7a.lis cam7b.lis cam7cA.lis cam6.c cam7.c cam7a.obj cam7b.obj cam7cA.obj cam6.klist cam7A.c cam7aA.asm cam7bA.asm cam6.lis cam7A.klist cam7aA.lis cam7bA.lis cam6.obj cam7B.c cam7aA.obj cam7bA.obj onl5v4[73]% make clean rm -f cam6 cam6a cam7 cam6b cam7A cam7B *.lis *.obj *~ *.o core *.klist onl5v4[74]% make cc cam6.c -o cam6 -I.. -L.. -lcamac ../camasm/camasm cam6 a CAMASM macro assembler V0.1 --- KEK online group --- Modified by Y.T Oct-1991 cc cam6a.c -o cam6a -I.. -L.. -lcamac cc cam7.c -o cam7 -I.. -L.. -lcamac ../camasm/camasm cam7a a CAMASM macro assembler V0.1 --- KEK online group --- Modified by Y.T Oct-1991 ../camasm/camasm cam7b a CAMASM macro assembler V0.1 --- KEK online group --- Modified by Y.T Oct-1991 cc cam6b.c -o cam6b -I.. -L.. -lcamac cc cam7A.c -o cam7A -I.. -L.. -lcamac ../camasm/camasm cam7aA a CAMASM macro assembler V0.1 --- KEK online group --- Modified by Y.T Oct-1991 ../camasm/camasm cam7bA a CAMASM macro assembler V0.1 --- KEK online group --- Modified by Y.T Oct-1991 ../camasm/camasm cam7cA a CAMASM macro assembler V0.1 --- KEK online group --- Modified by Y.T Oct-1991 cc cam7B.c -o cam7B -I.. -L.. -lcamac onl5v4[75]% onl5v4[75]% cd .. /export/home/onl5v4/inoue/CAMAC/FORCE-5V-sol7-list onl5v4[76]% ls -lR .: 合計 854 -rw-r--r-- 1 inoue kek 2041 6月 23日 2000年 Makefile -rw-r--r-- 1 inoue kek 4665 3月 15日 2001年 README -rwxr-xr-x 1 inoue kek 13864 4月 3日 15:42 cam1* -rw-r--r-- 1 inoue kek 1170 6月 23日 2000年 cam1.c -rwxr-xr-x 1 inoue kek 196264 4月 3日 15:43 cam2* -rw-r--r-- 1 inoue kek 2295 6月 23日 2000年 cam2.f -rwxr-xr-x 1 inoue kek 14412 4月 3日 15:43 cam3* -rw-r--r-- 1 inoue kek 2055 7月 28日 2000年 cam3.c drwxr-xr-x 2 inoue kek 512 4月 3日 16:05 camasm/ -rw-r--r-- 1 inoue kek 9803 10月 3日 2000年 camlib.c -rw-r--r-- 1 inoue kek 1415 6月 23日 2000年 camlib.h -rw-r--r-- 1 inoue kek 7032 4月 3日 15:42 camlib.o drwxr-xr-x 2 inoue kek 512 4月 3日 16:07 camlist/ drwxr-xr-x 2 inoue kek 1024 4月 3日 16:10 camlist-kine/ -rw-r--r-- 1 inoue kek 47848 4月 3日 15:42 cc -rw-r--r-- 1 inoue kek 82075 3月 15日 2001年 cc.c -rw-r--r-- 1 inoue kek 288 6月 23日 2000年 cc.conf -rw-r--r-- 1 inoue kek 2829 3月 22日 2001年 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 3656 4月 3日 15:42 forlib.o -rw-r--r-- 1 inoue kek 4058 6月 23日 2000年 k2917.h -rw-r--r-- 1 inoue kek 11548 4月 3日 15:42 libcamac.a drwxr-xr-x 2 inoue kek 512 3月 14日 2001年 script/ ./camasm: 合計 134 -rw-r--r-- 1 inoue kek 448 6月 28日 2000年 Makefile -rw-r--r-- 1 inoue kek 11250 10月 17日 2000年 asm_code.h -rwxr-xr-x 1 inoue kek 28024 4月 3日 16:05 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日 2000年 Makefile -rwxr-xr-x 1 inoue kek 14580 4月 3日 16:07 camtest4c* -rw-r--r-- 1 inoue kek 2151 10月 16日 2000年 camtest4c.c -rw-r--r-- 1 inoue kek 709 10月 16日 2000年 camtest4dma.asm -rw-r--r-- 1 inoue kek 405 4月 3日 16:07 camtest4dma.obj -rw-r--r-- 1 inoue kek 903 10月 16日 2000年 camtest4int.asm -rw-r--r-- 1 inoue kek 322 4月 3日 16:07 camtest4int.obj -rw-r--r-- 1 inoue kek 603 10月 16日 2000年 camtest4single.asm -rw-r--r-- 1 inoue kek 195 4月 3日 16:07 camtest4single.obj -rwxr-xr-x 1 inoue kek 14540 4月 3日 16:07 camtest5c* -rw-r--r-- 1 inoue kek 2040 10月 16日 2000年 camtest5c.c -rwxr-xr-x 1 inoue kek 14544 4月 3日 16:07 camtest5c1* -rw-r--r-- 1 inoue kek 2027 10月 16日 2000年 camtest5c1.c -rwxr-xr-x 1 inoue kek 14544 4月 3日 16:07 camtest5c2* -rw-r--r-- 1 inoue kek 1994 10月 16日 2000年 camtest5c2.c ./camlist-kine: 合計 246 -rw-r--r-- 1 inoue kek 1296 10月 16日 2000年 Makefile -rwxr-xr-x 1 inoue kek 14152 4月 3日 16:10 cam6* -rw-r--r-- 1 inoue kek 708 10月 17日 2000年 cam6.asm -rw-r--r-- 1 inoue kek 1880 10月 17日 2000年 cam6.c -rw-r--r-- 1 inoue kek 1518 4月 3日 16:10 cam6.lis -rw-r--r-- 1 inoue kek 258 4月 3日 16:10 cam6.obj -rwxr-xr-x 1 inoue kek 13904 4月 3日 16:10 cam6a* -rw-r--r-- 1 inoue kek 1541 10月 17日 2000年 cam6a.c -rwxr-xr-x 1 inoue kek 15352 4月 3日 16:10 cam6b* -rw-r--r-- 1 inoue kek 2983 10月 17日 2000年 cam6b.c -rwxr-xr-x 1 inoue kek 14284 4月 3日 16:10 cam7* -rw-r--r-- 1 inoue kek 2021 10月 17日 2000年 cam7.c -rwxr-xr-x 1 inoue kek 14588 4月 3日 16:10 cam7A* -rw-r--r-- 1 inoue kek 2582 10月 17日 2000年 cam7A.c -rwxr-xr-x 1 inoue kek 14072 4月 3日 16:10 cam7B* -rw-r--r-- 1 inoue kek 1753 10月 17日 2000年 cam7B.c -rw-r--r-- 1 inoue kek 322 10月 18日 2000年 cam7a.asm -rw-r--r-- 1 inoue kek 697 4月 3日 16:10 cam7a.lis -rw-r--r-- 1 inoue kek 27 4月 3日 16:10 cam7a.obj -rw-r--r-- 1 inoue kek 322 10月 18日 2000年 cam7aA.asm -rw-r--r-- 1 inoue kek 697 4月 3日 16:10 cam7aA.lis -rw-r--r-- 1 inoue kek 27 4月 3日 16:10 cam7aA.obj -rw-r--r-- 1 inoue kek 679 10月 18日 2000年 cam7b.asm -rw-r--r-- 1 inoue kek 1228 4月 3日 16:10 cam7b.lis -rw-r--r-- 1 inoue kek 90 4月 3日 16:10 cam7b.obj -rw-r--r-- 1 inoue kek 812 10月 18日 2000年 cam7bA.asm -rw-r--r-- 1 inoue kek 1419 4月 3日 16:10 cam7bA.lis -rw-r--r-- 1 inoue kek 111 4月 3日 16:10 cam7bA.obj -rw-r--r-- 1 inoue kek 353 10月 18日 2000年 cam7cA.asm -rw-r--r-- 1 inoue kek 757 4月 3日 16:10 cam7cA.lis -rw-r--r-- 1 inoue kek 48 4月 3日 16:10 cam7cA.obj ./script: 合計 14 -rw-r--r-- 1 inoue kek 66 10月 18日 2000年 awk1.txt -rw-r--r-- 1 inoue kek 37 10月 18日 2000年 awk2.txt -rwxr-xr-x 1 inoue kek 233 10月 18日 2000年 cc_build.gcc.sh* -rwxr-xr-x 1 inoue kek 234 10月 18日 2000年 cc_build.sh* -rwxr-xr-x 1 inoue kek 811 3月 7日 2001年 cc_link.sh* -rwxr-xr-x 1 inoue kek 808 10月 18日 2000年 cc_load.sh* -rwxr-xr-x 1 inoue kek 270 6月 23日 2000年 cc_unload.sh* onl5v4[77]% onl5v4# pwd /export/home/onl5v4/inoue/CAMAC/FORCE-5V-sol7-list onl5v4# 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 onl5v4# (3-2). ccドライバをロードし直す onl5v4# make unload ./script/cc_unload.sh [Removing CAMAC device driver] [Removing CAMAC device driver from system] [Deleting CAMAC device files] onl5v4# make load ./script/cc_load.sh [Installing CAMAC device driver] [Adding CAMAC device driver to system] [Configuring CAMAC device driver] [Making CAMAC device files] sun4m onl5v4# onl5v4# ls -l /dev/cc lrwxrwxrwx 1 root other 22 4月 3日 16:48 /dev/cc -> /devices16:48:04///:cc onl5v4# NG. /dev/ccスペシャルファイルを正常に作れなかった。 チェック。 (3-3). cc_link.shの部分を修正 この症状は、CPU-54, Solaris8のシステムでも経験している。 script/cc_link.shファイルを修正する。 onl5v4[43]% pwd /export/home/onl5v4/inoue/CAMAC/FORCE-5V-sol7-list/script onl5v4[44]% ls -l 合計 14 -rw-r--r-- 1 inoue kek 66 10月 18日 2000年 awk1.txt -rw-r--r-- 1 inoue kek 37 10月 18日 2000年 awk2.txt -rwxr-xr-x 1 inoue kek 233 10月 18日 2000年 cc_build.gcc.sh* -rwxr-xr-x 1 inoue kek 234 10月 18日 2000年 cc_build.sh* -rwxr-xr-x 1 inoue kek 811 3月 7日 2001年 cc_link.sh* -rwxr-xr-x 1 inoue kek 808 10月 18日 2000年 cc_load.sh* -rwxr-xr-x 1 inoue kek 270 6月 23日 2000年 cc_unload.sh* onl5v4[45]% onl5v4[45]% vi cc_link.sh : 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 set CCDIR=`dmesg|grep 'cc0 is'|tail -1|awk '{print $3}'|awk -f script/awk1.txt` set CCNAM=`dmesg|grep 'cc0 is'|tail -1|awk '{print $3}'|awk -f script/awk2.txt` #set CCMAJOR = `modinfo | grep CAMAC | awk ' {print $4}'` endif : onl5v4[46]% Solaris8 の時の処理を追加する。 onl5v4[46]% mv cc_link.sh cc_link.sh-org onl5v4[47]% cp cc_link.sh-org cc_link.sh onl5v4[48]% ls -l 合計 16 -rw-r--r-- 1 inoue kek 66 10月 18日 2000年 awk1.txt -rw-r--r-- 1 inoue kek 37 10月 18日 2000年 awk2.txt -rwxr-xr-x 1 inoue kek 233 10月 18日 2000年 cc_build.gcc.sh* -rwxr-xr-x 1 inoue kek 234 10月 18日 2000年 cc_build.sh* -rwxr-xr-x 1 inoue kek 811 4月 4日 11:07 cc_link.sh* -rwxr-xr-x 1 inoue kek 811 3月 7日 2001年 cc_link.sh-org* -rwxr-xr-x 1 inoue kek 808 10月 18日 2000年 cc_load.sh* -rwxr-xr-x 1 inoue kek 270 6月 23日 2000年 cc_unload.sh* onl5v4[49]% vi cc_link.sh : set SYS58 = "5.8" set SYS57 = "5.7" set SYSNL = `uname -sr` if ( $SYSNL[2] == $SYS58 )then set CCDIR=`dmesg|grep 'cc0 is'|tail -1|awk '{print $11}'|awk -f script/awk1.txt` set CCNAM=`dmesg|grep 'cc0 is'|tail -1|awk '{print $11}'|awk -f script/awk2.txt` else 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 set CCDIR=`dmesg|grep 'cc0 is'|tail -1|awk '{print $3}'|awk -f script/awk1.txt` set CCNAM=`dmesg|grep 'cc0 is'|tail -1|awk '{print $3}'|awk -f script/awk2.txt` #set CCMAJOR = `modinfo | grep CAMAC | awk ' {print $4}'` endif : onl5v4[50]% (3-4). ccドライバをロードし直す onl5v4# pwd /export/home/onl5v4/inoue/CAMAC/FORCE-5V-sol7-list onl5v4# make unload ./script/cc_unload.sh [Removing CAMAC device driver] [Removing CAMAC device driver from system] [Deleting CAMAC device files] onl5v4# make load ./script/cc_load.sh [Installing CAMAC device driver] [Adding CAMAC device driver to system] [Configuring CAMAC device driver] [Making CAMAC device files] sun4m onl5v4# onl5v4# ls -l /dev/cc lrwxrwxrwx 1 root other 54 4月 5日 10:11 /dev/cc -> /devices/iommu@0,10000000/VME@0,7ffffe00/cc@2d,ff00:cc onl5v4# ドライバをロードした時のコンソール上のメッセージ。 Apr 5 10:10:26 onl5v4 su: 'su root' succeeded for inoue on /dev/pts/1 Apr 5 10:11:26 onl5v4 cc: CAMAC device driver V2.1, 1991-2000 by Y.TAKEUCHI(ICR R), E.Inoue(KEK) Apr 5 10:11:40 onl5v4 smt: smt0: nf FDDI driver is not active. Initialization of this driver cannot be completed. ok. 正常にロードできた。 (4). VME スレーブ・ウインドウを設定する (4-1). VME.conf ファイルを修正する onl5v4# pwd /platform/sun4m/kernel/drv onl5v4# ls -l 合計 1424 -rw-r----- 1 root other 200932 3月 28日 14:03 VME -rw-r----- 1 root other 2850 3月 28日 14:03 VME.conf -rwxr-xr-x 1 root sys 17456 1月 9日 2000年 bwtwo -rwxr-xr-x 1 root sys 31284 1月 9日 2000年 cgeight -rwxr-xr-x 1 root sys 43484 1月 9日 2000年 cgfourteen -rwxr-xr-x 1 root sys 23364 1月 9日 2000年 cgsix -rwxr-xr-x 1 root sys 19264 1月 9日 2000年 cgthree -rwxr-xr-x 1 root sys 6300 1月 9日 2000年 dma -rwxr-xr-x 1 root sys 75344 1月 25日 2001年 fd -rwxr-xr-x 1 root sys 15444 1月 9日 2000年 iommu -rwxr-xr-x 1 root sys 5232 1月 9日 2000年 ledma -rwxr-xr-x 1 root sys 15048 1月 9日 2000年 mic -rwxr-xr-x 1 root sys 5356 1月 9日 2000年 obio -rwxr-xr-x 1 root sys 7752 1月 9日 2000年 pmc -rwxr-xr-x 1 root sys 9352 1月 9日 2000年 rootnex -rwxr-xr-x 1 root sys 8420 1月 9日 2000年 sbus -rwxr-xr-x 1 root sys 5900 1月 9日 2000年 sbusmem -rw-r--r-- 1 root sys 678 1月 6日 2000年 sbusmem.conf -rwxr-xr-x 1 root sys 63936 11月 2日 2000年 stc -rw-r--r-- 1 root sys 1244 1月 6日 2000年 stc.conf -rwxr-xr-x 1 root sys 26244 1月 9日 2000年 sx -rwxr-xr-x 1 root sys 15808 1月 9日 2000年 sx_cmem -rw-r--r-- 1 root sys 800 3月 19日 15:40 sx_cmem.conf -rwxr-xr-x 1 root sys 18372 12月 11日 1999年 tcx -rwxr-xr-x 1 root sys 57708 1月 9日 2000年 zs -rwxr-xr-x 1 root sys 24936 1月 9日 2000年 zsh -rw-r--r-- 1 root sys 131 1月 6日 2000年 zsh.conf onl5v4# onl54# vi VME.conf # %Z%$RCSfile: VME.conf,v $ $Revision: 1.7 $ %D% FRC # ############################################################################### # The "pamc" property declares the AM-code values for the two programmable AM # codes (if supported by the hardware). Drivers that want to use these have to # use the values configured here in the bustype value(s) of their reg property. # ############################################################################### # "vmewin" properties may be defined to set up static local-to-VMEbus # mappings (usually not necessary, since mappings are set up on demand). # # The format is # vmewin=,, # # can be omitted for the first vmewin property. For subsequent properties, # set it to 1,2,3,4... The limit is the number of hardware ranges, # e.g. 16 on FGA-5000. # defines the requested VMEbus address. # defines the size of the mapping in bytes. # encodes the properties of the VME window. It's a bit set of # VME_BT_xxx values as defined in sys/vme_types.h. # # Example to set up a VME window for VMEbus address 0x0 - 0x10000 in A24 # space for D32 privileged data accesses, write posting enabled: # # vmewin=0x0, 0x10000, 0x01020004 # ############################################################################### # The "slavewin" property defines a VMEbus-to-local mapping. It's necessary for # device drivers that want to set up DMA via the standard DDI DMA interface # calls, so that the VME nexus can provide a VMEbus address where the device # can perform DMA to. # Don't define this if you do not need it, as it will eat up a VME slave # range. Note also that the VME bridge will decode these addresses once the # slavewin property has been set and report VME Bus Errors if no driver # uses it! So if you get strange bus errors, check this file for the # slavewin property. # The format is: # # slavewin , , # # and must be aligned exactly to hardware requirements: # S4: vme_start must be aligned to 1MB, size must be 1MB FGA-5x00: vme_start must be aligned to size. size can be # 8K, 16K, 32K, ..., 16MB for A24 # 2MB, 4MB, 8MB, 16MB for A32 # Universe: vme_start and size must be aligned to 64K # is a bitset of the VME_BT_xxx values as defined # in sys/vme_types. Standard values are: # 0x00020000 for a slave window in A24 space # 0x00040000 for a slave window in A32 space # # Add 0x01000000 to enable write posting for higher performance (FGA-5x00, # Universe). # # Refer to the manual for possible values for different hardware. # Example for a slave window of 1MB in A24 space at address 0: # # slavewin=0x000000,0x100000,0x00020000 ############################################################################### # slavewin=0x000000,0x100000,0x01020000 pamc=0x10, 0x11 ; "VME.conf" 64 行、2888 バイト onl5v4# (5-2). システムをリブートする onl5v4# /usr/sbin/shutdown -i0 -g0 -y Shutdown started. 20020405 () 111940 JST Changing to init state 0 - please wait Broadcast Message from root (console) on onl5v4 () 4 5 11:19:... THE SYSTEM onl5v4 IS BEING SHUT DOWN NOW ! ! ! Log off now or risk your files being damaged showmount: onl5v4: RPC: onl5v4# INIT: New run level: 0 The system is coming down. Please wait. System services are now being stopped. Print services stopped. Apr 5 11:19:58 onl5v4 syslogd: going down on signal 15 umount: /net/fs/public/solaris_licensed/forte6/intel busy umount: /net/fs/public/solaris_licensed/forte6 busy umount: /net/fs/public/compaq busy umount: /net/fs/public/linux busy umount: /net/fs/public/ms-windows busy umount: /net/fs/public/work busy umount: /net/fs/public/sgi busy umount: /net/fs/public/ibm busy umount: /net/fs/public/sun busy umount: /net/fs/public/pc busy umount: /net/fs/public/hp busy umount: /net/fs/public/share busy umount: /net/fs/public/mathematica busy umount: /net/fs/public/solaris_licensed busy umount: /net/fs/public busy umount: /net busy umount: /kekfs busy umount: /net/fs/public/solaris_licensed/forte6/sparc busy umount: /net/fs/public/solaris_licensed/forte6/intel busy umount: /net/fs/public/solaris_licensed/forte6 busy umount: /net/fs/public/compaq busy umount: /net/fs/public/linux busy umount: /net/fs/public/share busy umount: /net/fs/public/work busy umount: /net/fs/public/sgi busy umount: /net/fs/public/ibm busy umount: /net/fs/public/sun busy umount: /net/fs/public/pc busy umount: /net/fs/public/hp busy umount: /net/fs/public/ms-windows busy umount: /net/fs/public/mathematica busy umount: /net/fs/public/solaris_licensed busy umount: /net/fs/public busy umount: /net busy The system is down. syncing file systems... done Program terminated Type help for more information ok ok ok ok boot -r Resetting ... screen not found. Can't open input device. Keyboard not present. Using tty for input and output. SPARC CPU-5V, No Keyboard ROM Rev. 2.15.3, 48 MB memory installed, Serial #9149788. Ethernet address 0:80:42:b:2d:5c, Host ID: 808b9d5c. Rebooting with command: -r Boot device: /iommu/sbus/espdma@5,8400000/esp@5,8800000/sd@3,0 File and args: - r SunOS Release 5.8 Version Generic_108528-09 32-bit Copyright 1983-2001 Sun Microsystems, Inc. All rights reserved. NOTICE: VME: slavewin at vme=0x0, size=0x100000 space=0x2d020617 configuring IPv4 interfaces: le0. configuring IPv6 interfaces: le0. Hostname: onl5v4 Configuring /dev and /devices smt0: nf FDDI driver is not active. Initialization of this driver cannot be com pleted. CAMAC device driver V2.1, 1991-2000 by Y.TAKEUCHI(ICRR), E.Inoue(KEK) 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. NIS domainname is kek.jp Starting IPv6 neighbor discovery. Setting default IPv6 interface for multicast: add net ff00::/8: gateway fe80::28 0:42ff:fe0b:2d5c starting rpc services: rpcbind keyserv done. Setting netmask of le0 to 255.255.252.0 Setting default IPv4 interface for multicast: add net 224.0/4: gateway onl5v4 syslog service starting. Print services started. volume management starting. Wnn6: Key License Server started.... Nihongo Multi Client Server (Wnn6 R2.34) Finished Reading Files Warning: There are no 'nf' devices plumbed and up. Unable to start NF FDDI SMT/SNM daemon. Warning: There are no 'pf' devices plumbed and up. Unable to start PF FDDI SMT/SNM daemon. The system is ready. onl5v4 console login: ok. slavewin は正しく設定できた。 ---xxxx ここまでやった(継続中) --- (6). セクション (6-1). サブセクション (6-1-1). サブサブセクション