Sep 24,1998 pollux: Solaris 2.6 cc ドライバのテスト. Solaris2.6 システムのインストール --- システム環境設定#02 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ (http://www-online.kek.jp/~inoue/CAMAC/ pollux-sol2.6/system-install2.txt) 高エネルギー加速器研究機構 素粒子原子核研究所 物理、オンライングループ 井上 栄二 (1). 現状確認 (A). 物構研、金谷さんの SPARC CPU-7V の camac システムが動作しない とのこと。 1. camacシングルアクションread/write は正しく実行できる。 2. camac割り込み処理はうまく実行できない。 3. camac DMA read/write はうまく実行できない。 (B). CPUボード、K2917ボード、K3922ボードは正しく動作していることを 確認した。 K2917 は私が使用しているものとは仕様が異なっていたので cc.c を修正して正しく動作するのを確認した。 (C). 上記の(B)で動作確認した CPUボード、K2917ボード、K3922ボードに、 金谷さん所有のシステム・ディスクをつないでサンプル・プログラムを 実行した。 cam1、cam3、cam2 の全て NG。 (D). 金谷さんのシステム・ディスクに Solaris2.6 をインストールし直した。 (2). ここでやるべきこと /etc の下の各設定、および /export/home の作成をやる。 (3). /etc の下の各設定 マウント情報をチェック onl7v2# df -k Filesystem kbytes used avail capacity Mounted on /dev/dsk/c0t3d0s0 38799 15531 23230 41% / /dev/dsk/c0t3d0s6 586735 383722 202427 66% /usr /proc 0 0 0 0% /proc fd 0 0 0 0% /dev/fd /dev/dsk/c0t3d0s1 25271 4437 20809 18% /var /dev/dsk/c0t3d0s7 7842917 36372 7728116 1% /export/home /dev/dsk/c0t3d0s5 28719 10049 18642 36% /opt swap 239736 12 239724 1% /tmp onl7v2# (3-1). ルートの環境設定 onl7v2# pwd / onl7v2# ls -l .??* -rw------- 1 root root 1028 Sep 22 14:08 .cpr_config onl7v2# ls -l /etc/skel total 6 -rw-r--r-- 1 root sys 124 Sep 22 13:31 local.cshrc -rw-r--r-- 1 root sys 575 Jul 16 1997 local.login -rw-r--r-- 1 root sys 560 Jul 16 1997 local.profile onl7v2# cp /etc/skel/local.cshrc .cshrc onl7v2# cp /etc/skel/local.login .login onl7v2# cp /etc/skel/local.profile .profile onl7v2# source .login Starting OpenWindows in 5 seconds (type Control-C to interrupt)^Conl7v2# onl7v2# source .cshrc onl7v2# (3-2). /etc/auto_kekfs の設定 onl7v2# pwd /etc onl7v2# ls -l au* -rw-r--r-- 1 root bin 50 Sep 22 13:35 auto_home -rw-r--r-- 1 root bin 113 Sep 22 13:35 auto_master lrwxrwxrwx 1 root root 16 Sep 22 13:30 autopush -> ../sbin/autopu sh onl7v2# mv auto_master auto_master.org onl7v2# cp auto_master.org auto_master onl7v2# ls -l au* -rw-r--r-- 1 root bin 50 Sep 22 13:35 auto_home -rw-r--r-- 1 root other 113 Sep 22 15:17 auto_master -rw-r--r-- 1 root bin 113 Sep 22 13:35 auto_master.org lrwxrwxrwx 1 root root 16 Sep 22 13:30 autopush -> ../sbin/autopu sh onl7v2# chgrp bin auto_master onl7v2# ls -l au* -rw-r--r-- 1 root bin 50 Sep 22 13:35 auto_home -rw-r--r-- 1 root bin 113 Sep 22 15:17 auto_master -rw-r--r-- 1 root bin 113 Sep 22 13:35 auto_master.org lrwxrwxrwx 1 root root 16 Sep 22 13:30 autopush -> ../sbin/autopu sh onl7v2# setenv TERM vt100 onl7v2# vi auto_master # Master map for automounter # +auto_master /net -hosts -nosuid,nobrowse /home auto_home -nobrowse /xfn -xfn /kekfs /etc/auto_kekfs ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ "auto_master" 7 lines, 137 characters onl7v2# onl7v2# vi auto_kekfs kek -ro,intr,suid kiwifs:/public/sun/Solaris2 ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ "auto_kekfs" [New file] 1 line, 47 characters onl7v2# ls -l au* -rw-r--r-- 1 root bin 50 Sep 22 13:35 auto_home -rw-r--r-- 1 root other 47 Sep 22 15:23 auto_kekfs -rw-r--r-- 1 root bin 137 Sep 22 15:20 auto_master -rw-r--r-- 1 root bin 113 Sep 22 13:35 auto_master.org lrwxrwxrwx 1 root root 16 Sep 22 13:30 autopush -> ../sbin/autopu sh onl7v2# chgrp bin auto_kekfs onl7v2# ls -l au* -rw-r--r-- 1 root bin 50 Sep 22 13:35 auto_home -rw-r--r-- 1 root bin 47 Sep 22 15:23 auto_kekfs -rw-r--r-- 1 root bin 137 Sep 22 15:20 auto_master -rw-r--r-- 1 root bin 113 Sep 22 13:35 auto_master.org lrwxrwxrwx 1 root root 16 Sep 22 13:30 autopush -> ../sbin/autopu sh onl7v2# (3-3). /etc/defaultdomain の設定 onl7v2# pwd /etc onl7v2# vi defaultdomain kek.jp ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ "defaultdomain" [New file] 1 line, 7 characters onl7v2# ls -l defaultdomain -rw-r--r-- 1 root other 7 Sep 22 15:40 defaultdomain onl7v2# chgrp sys defaultdomain onl7v2# ls -l defaultdomain -rw-r--r-- 1 root sys 7 Sep 22 15:40 defaultdomain onl7v2# (3-4). /etc/defaultrouter の設定 onl7v2# vi defaultrouter ICCFG1 ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ "defaultrouter" [New file] 1 line, 7 characters onl7v2# ls -l defaultrouter -rw-r--r-- 1 root other 7 Sep 22 15:43 defaultrouter onl7v2# chgrp sys defaultrouter onl7v2# ls -l defaultrouter -rw-r--r-- 1 root sys 7 Sep 22 15:43 defaultrouter onl7v2# (3-5). /etc/group の設定 onl7v2# ls -l group* -rw-r--r-- 1 root sys 278 Sep 22 13:31 group onl7v2# mv group group.org onl7v2# cp group.org group onl7v2# ls -l group* -rw-r--r-- 1 root other 278 Sep 22 15:47 group -rw-r--r-- 1 root sys 278 Sep 22 13:31 group.org onl7v2# chgrp sys group onl7v2# ls -l group* -rw-r--r-- 1 root sys 278 Sep 22 15:47 group -rw-r--r-- 1 root sys 278 Sep 22 13:31 group.org onl7v2# vi group root::0:root,inoue,kanaya,yasu other::1: bin::2:root,bin,daemon sys::3:root,bin,sys,adm adm::4:root,adm,daemon uucp::5:root,uucp mail::6:root tty::7:root,tty,adm lp::8:root,lp,adm nuucp::9:root,nuucp staff::10: daemon::12:root,daemon sysadmin::14: nobody::60001: noaccess::60002: nogroup::65534: ~ ~ ~ ~ ~ ~ ~ "group" 16 lines, 296 characters onl7v2# (3-6). /etc/nsswitch.conf の設定 onl7v2# ls -l nss* -rw-r--r-- 1 root root 686 Sep 22 14:07 nsswitch.conf -rw-r--r-- 1 root sys 686 Jul 16 1997 nsswitch.files -rw-r--r-- 1 root sys 919 Jul 16 1997 nsswitch.nis -rw-r--r-- 1 root sys 1193 Jul 16 1997 nsswitch.nisplus onl7v2# mv nsswitch.conf nsswitch.conf.org onl7v2# cp nsswitch.conf.org nsswitch.conf onl7v2# ls -l nss* -rw-r--r-- 1 root other 686 Sep 22 15:50 nsswitch.conf -rw-r--r-- 1 root root 686 Sep 22 14:07 nsswitch.conf.org -rw-r--r-- 1 root sys 686 Jul 16 1997 nsswitch.files -rw-r--r-- 1 root sys 919 Jul 16 1997 nsswitch.nis -rw-r--r-- 1 root sys 1193 Jul 16 1997 nsswitch.nisplus onl7v2# chgrp root nsswitch.conf onl7v2# ls -l nss* -rw-r--r-- 1 root root 686 Sep 22 15:50 nsswitch.conf -rw-r--r-- 1 root root 686 Sep 22 14:07 nsswitch.conf.org -rw-r--r-- 1 root sys 686 Jul 16 1997 nsswitch.files -rw-r--r-- 1 root sys 919 Jul 16 1997 nsswitch.nis -rw-r--r-- 1 root sys 1193 Jul 16 1997 nsswitch.nisplus onl7v2# vi nsswitch.conf # # /etc/nsswitch.files: # # An example file that could be copied over to /etc/nsswitch.conf; it # does not use any naming service. # # "hosts:" and "services:" in this file are used only if the # /etc/netconfig file has a "-" for nametoaddr_libs of "inet" transports. passwd: files group: files hosts: files dns networks: files protocols: files rpc: files ethers: files netmasks: files bootparams: files publickey: files # At present there isn't a 'files' backend for netgroup; the system will # figure it out pretty quickly, and won't use netgroups at all. netgroup: files automount: files aliases: files services: files sendmailvars: files "nsswitch.conf" 26 lines, 690 characters onl7v2# (3-7). resolv.conf の設定 onl7v2# ls -l res* No match onl7v2# vi resolv.conf domain kek.jp nameserver 130.87.152.2 nameserver 130.87.34.6 nameserver 130.87.34.2 ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ "resolv.conf" [New file] 5 lines, 109 characters onl7v2# ls -l resolv.conf* -rw-r--r-- 1 root other 109 Sep 22 15:54 resolv.conf onl7v2# (3-8). /etc/hosts の設定 onl7v2# pwd /etc/inet onl7v2# ls -l hosts* -r--r--r-- 1 root sys 77 Sep 22 14:02 hosts onl7v2# mv hosts hosts.org onl7v2# cp hosts.org hosts onl7v2# ls -l hosts* -r--r--r-- 1 root other 77 Sep 22 16:17 hosts -r--r--r-- 1 root sys 77 Sep 22 14:02 hosts.org onl7v2# chgrp sys hosts onl7v2# ls -l hosts* -r--r--r-- 1 root sys 77 Sep 22 16:17 hosts -r--r--r-- 1 root sys 77 Sep 22 14:02 hosts.org onl7v2# vi hosts # # Internet host table # 127.0.0.1 localhost 130.87.153.109 onl7v2 loghost 130.87.152.1 ICCFG1 onl7v2# (3-9). /etc/networks の設定 onl7v2# pwd /etc/inet onl7v2# ls -l networks* -r--r--r-- 1 root sys 372 Sep 22 13:31 networks onl7v2# mv networks networks.org onl7v2# cp networks.org networks onl7v2# ls -l networks* -r--r--r-- 1 root other 372 Sep 22 16:20 networks -r--r--r-- 1 root sys 372 Sep 22 13:31 networks.org onl7v2# chgrp sys networks onl7v2# chmod u+w networks onl7v2# ls -l networks* -rw-r--r-- 1 root sys 372 Sep 22 16:20 networks -r--r--r-- 1 root sys 372 Sep 22 13:31 networks.org onl7v2# vi networks #ident "@(#)networks 1.4 92/07/14 SMI" /* SVr4.0 1.1 */ # # The networks file associates Internet Protocol (IP) network numbers # with network names. The format of this file is: # # network-name network-number nicnames . . . # # # The loopback network is used only for intra-machine communication # loopback 127 # # Internet networks # arpanet 10 arpa # Historical FG-Cluster 130.87.152 ~ ~ ~ ~ ~ "networks" 18 lines, 394 characters onl7v2# chmod u-w networks onl7v2# ls -l networks* -r--r--r-- 1 root sys 394 Sep 22 16:22 networks -r--r--r-- 1 root sys 372 Sep 22 13:31 networks.org onl7v2# (3-10). /etc/passwd の設定 onl7v2# pwd /etc onl7v2# ls -l pass* -rw-r--r-- 1 root sys 445 Sep 22 14:07 passwd onl7v2# mv passwd passwd.org onl7v2# ftp onlsun1 Connected to onlsun1.kek.jp. 220 onlsun1 FTP server (SunOS 5.6) ready. Name (onlsun1:root): root 331 Password required for inoue. Password: 230 User inoue logged in. ftp> : ftp> get passwd 200 PORT command successful. 150 ASCII data connection for passwd (130.87.153.109,32789) (590 bytes). 226 ASCII Transfer complete. local: passwd remote: passwd 606 bytes received in 0.019 seconds (31.79 Kbytes/s) ftp> quit 221 Goodbye. onl7v2# ls -l pass* -rw-r--r-- 1 root other 590 Sep 22 16:28 passwd -rw-r--r-- 1 root sys 445 Sep 22 14:07 passwd.org onl7v2# chgrp sys passwd onl7v2# ls -l pass* -rw-r--r-- 1 root sys 590 Sep 22 16:28 passwd -rw-r--r-- 1 root sys 445 Sep 22 14:07 passwd.org onl7v2# (3-11). /etc/shadow の設定 onl7v2# ls -l sha* -r-------- 1 root sys 265 Sep 22 14:07 shadow onl7v2# mv shadow shadow.org onl7v2# ftp onlsun1 Connected to onlsun1.kek.jp. 220 onlsun1 FTP server (SunOS 5.6) ready. Name (onlsun1:root): root 331 Password required for root. Password: 230 User root logged in. ftp> : ftp> get shadow 200 PORT command successful. 150 ASCII data connection for shadow (130.87.153.109,32792) (357 bytes). 226 ASCII Transfer complete. local: shadow remote: shadow 373 bytes received in 0.019 seconds (19.65 Kbytes/s) ftp> quit 221 Goodbye. onl7v2# ls -l shadow* -rw-r--r-- 1 root other 357 Sep 22 16:30 shadow -r-------- 1 root sys 265 Sep 22 14:07 shadow.org onl7v2# chgrp sys shadow onl7v2# chmod u-w,go-r shadow onl7v2# ls -l shadow* -r-------- 1 root sys 357 Sep 22 16:30 shadow -r-------- 1 root sys 265 Sep 22 14:07 shadow.org onl7v2# (3-12). /etc/oshadow の設定 onl7v2# ls -l oshadow* No match onl7v2# ftp onlsun1 Connected to onlsun1.kek.jp. 220 onlsun1 FTP server (SunOS 5.6) ready. Name (onlsun1:root): root 331 Password required for root. Password: 230 User root logged in. ftp> : get oshadow 200 PORT command successful. 150 ASCII data connection for oshadow (130.87.153.109,32795) (330 bytes). 226 ASCII Transfer complete. local: oshadow remote: oshadow 345 bytes received in 0.019 seconds (18.19 Kbytes/s) ftp> quit 221 Goodbye. onl7v2# ls -l oshadow* -rw-r--r-- 1 root other 330 Sep 22 16:33 oshadow onl7v2# chgrp sys oshadow onl7v2# chmod u-w,go-r oshadow onl7v2# ls -l oshadow* -r-------- 1 root sys 330 Sep 22 16:33 oshadow onl7v2# ここでシステムをリブートする。 onl7v2# /usr/sbin/shutdown -i0 -g0 Shutdown started. Tue Sep 22 16:45:34 JST 1998 Do you want to continue? (y or n): y Broadcast Message from root (console) on onl7v2 Tue Sep 22 16:45:36... THE SYSTEM IS BEING SHUT DOWN NOW ! ! ! Log off now or risk your files being damaged showmount: onl7v2: RPC: Program not registered Changing to init state 0 - please wait onl7v2# INIT: New run level: 0 The system is coming down. Please wait. System services are now being stopped. Print services stopped. Stopping the syslog service. syslogd: going down on signal 15 Sep 22 16:46:25 snmpdx: received signal 15 The system is down. INIT: failed write of utmpx entry:"s0" INIT: failed write of utmpx entry:"fw" syncing file systems... done Program terminated Type help for more information ok CD-ROM をはずしてからパワー・オンする。 ok Power-On Self Test IU Register File Test MMU Context Table Reg Test MMU Context Register Test MMU Sync Fault Stat Reg Test MMU Sync Fault Addr Reg Test D-Cache Tag Ram Test D-Cache Data Ram Test D-TLB CAM Test D-TLB RAM Test I-Cache Tag Ram Test I-Cache Data Ram Test No Secondary Cache Exists No Secondary Cache Exists No Secondary Cache Exists Snoop Ram Test IOMMU-TLB Test IOMMU Control Register Test IOMMU Base Addr Register Test IOMMU SBus Config Registers Test Set RAH to 3 Set WS to 3 DRAM Data Bus Test Probing Bank 0 -- 32 Megs Found Probing Bank 1 -- 32 Megs Found Probing Bank 2 -- 32 Megs Found Probing Bank 3 -- 32 Megs Found Probing Bank 4 -- 0 Megs Found Probing Bank 5 -- 0 Megs Found Probing Bank 6 -- 0 Megs Found Probing Bank 7 -- 0 Megs Found DRAM Address Bus Test Memory Address Pattern Test D-Cache Hit Miss Test D-TLB Hit Miss Test I-TLB Hit Miss Test I-Cache Hit Miss Test No Secondary Cache Exists I-TLB Ram Test FPU Register File Test FPU Misaligned Reg Pair Test FPU Single-precision Tests FPU Double-precision Tests FPU SP Invalid CEXC Test FPU SP Overflow CEXC Test FPU SP Divide-by-0 CEXC Test FPU SP Inexact CEXC Test FPU SP Trap Priority > Test FPU SP Trap Priority < Test FPU DP Invalid CEXC Test FPU DP Overflow CEXC Test FPU DP Divide-by-0 CEXC Test FPU DP Inexact CEXC Test FPU DP Trap Priority > Test FPU DP Trap Priority < Test PROC0 Interrupt Regs Tests Soft Interrupts OFF Test Soft Interrupts ON Test PROC0 User Timer Test PROC0 Counter/Timer Test DMA2 E_CSR Register Test LANCE Address Port Tests LANCE Data Port Tests DMA2 D_CSR Register Test DMA2 D_ADDR Register Test DMA2 D_BCNT Register Test DMA2 D_NADDR Register Test ESP Registers Tests DMA2 P_CSR Register Test DMA2 P_ADDR Register Test DMA2 P_BCNT Register Test PPORT Registers Tests NVRAM Access Test TOD Registers Test screen not found. Can't open input device. Keyboard not present. Using tty for input and output. SPARC CPU-7V, No Keyboard ROM Rev. 2.15.1, 128 MB memory installed, Serial #9161054. Ethernet address 0:80:42:b:59:5e, Host ID: 808bc95e. Boot device: /iommu/sbus/espdma@5,8400000/esp@5,8800000/sd@3,0 File and args: Type 'go' to resume Type help for more information ok ここで break で止めて、"boot -r" で起動する。 ok boot -r Resetting ... screen not found. Can't open input device. Keyboard not present. Using tty for input and output. SPARC CPU-7V, No Keyboard ROM Rev. 2.15.1, 128 MB memory installed, Serial #9161054. Ethernet address 0:80:42:b:59:5e, Host ID: 808bc95e. Rebooting with command: -r Boot device: /iommu/sbus/espdma@5,8400000/esp@5,8800000/sd@3,0 File and args: - r SunOS Release 5.6 Version Generic [UNIX(R) System V Release 4.0] Copyright (c) 1983-1997, Sun Microsystems, Inc. configuring network interfaces: le0. Hostname: onl7v2 Configuring the /devices directory Configuring the /dev directory Configuring the /dev directory (compatibility devices) The system is coming up. Please wait. checking ufs filesystems /dev/rdsk/c0t3d0s5: is clean. /dev/rdsk/c0t3d0s7: is clean. add net default: gateway ICCFG1 NIS domainname is kek.jp starting rpc services: rpcbind keyserv done. Setting netmask of le0 to 255.255.252.0 Setting default interface for multicast: add net 224.0.0.0: gateway onl7v2 syslog service starting. Print services started. volume management starting. The system is ready. onl7v2 console login: ok. 正常に立ち上がった。 /kek のシンボリック・リンクを張る。 onl7v2# pwd / onl7v2# ln -s kekfs/kek kek onl7v2# ls -lL /kek total 8 drwxrwxr-x 23 root sys 512 Apr 1 1995 SUNWspro drwxrwxr-x 10 10101 10101 512 Jun 3 1997 cern drwxr-xr-x 5 root other 512 Mar 4 1998 compilers drwxr-xr-x 34 10101 10101 1024 Mar 26 23:55 local onl7v2# --- (6). 項目タイトル (6-1). サブ項目タイトル (6-1-1). サブサブ項目タイトル