Sep 22,1998 pollux: Solaris 2.6 cc ドライバのテスト. Solaris2.6 システムのインストール --- システム・インストール#01 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ (http://www-online.kek.jp/~inoue/CAMAC/ pollux-sol2.6/system-install1.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。 (2). ここでやるべきこと 金谷さん所有のシステム・ディスクに Solaris2.6 をインストールし直す。 (3). CPU-7Vボードの設置 VMEクレート中に CPUボードを設置する。 (3-1). CPUボードの配置図 配置図は次のとうり。 スロット #1 #2 #3 #4 #5 #6 +----------------------------------------------------+ |+--+ +--+ +--+ +--+ | || | | | | | | | | || | | | | | | | | || | | | | | | | | || | | | | | | | | || | | | | | | | | || | | | | | | | | || | | |+--+| |+--+| | | || | | || || || || | | || | | || || || || | | || | | || || || || | | || | | || || || || | | || | | |+--+| |+--+| | | |+--+ +--+ +--+ +--+ | +----------------------------------------------------+ スロット#1: SPARC CPU-7V(pollux),ホスト名 onl7v2 でシステムを インストールする。 スロット#2: このスロットは現在ブランクになっている。 スロット#3: SPARC CPU-5V(onl5v4)、このボードは引き抜いてある。 スロット#4: このスロットはスロット#3のCPU-5VのSBusに差した FastEthernetボードが占有している。 スロット#5: SPARC CPU-7V(onl7v1)、このボードは引き抜いてある。 スロット#6: K2917 金谷さんのシステムのホスト名は pollux で PFクラスタにつながれていたもの である。 しかし、現在テストしている場所は PFクラスタが使える環境にない。 そこで、そこで、onl7v2 のホスト名で FGクラスタにつないで使用している。 ここでのシステムのインストールも onl7v2 のホスト名で行うことにする。 本来の onl7v2 のシステムはネットワークから一時的にはずしてあるので、 矛盾は起らない。 (3-2). 現在のディスクの構成をチェック onl7v2[14]% df -k Filesystem kbytes used avail capacity Mounted on /dev/dsk/c0t3d0s0 38799 23526 15235 61% / /dev/dsk/c0t3d0s6 586735 389544 196605 67% /usr /proc 0 0 0 0% /proc fd 0 0 0 0% /dev/fd /dev/dsk/c0t3d0s1 25271 14048 11198 56% /var /dev/dsk/c0t3d0s7 7842917 36372 7728116 1% /export/home /dev/dsk/c0t3d0s5 28719 12344 16347 44% /opt swap 228932 12 228920 1% /tmp /dev/dsk/c0t2d0s7 7910181 141750 7689330 2% /mnt kiwifs:/public2/sun/Solaris2 8316189 7572714 660314 92% /kekfs/kek onlsun1:/home1/local 1572360 1395728 175064 89% /net/onlsun1/home1/local onlsun1:/home1/cern/95a 1572360 1395728 175064 89% /net/onlsun1/home1/cern/95a onl7v2[15]% (4). Solaris2.6 システムのインストール 現在のシステムをシャットダウンする。 onl7v2# /usr/sbin/shutdown -i0 -g0 Shutdown started. Tue Sep 22 11:09:16 JST 1998 Do you want to continue? (y or n): y Broadcast Message from root (console) on onl7v2 Tue Sep 22 11:09:18... 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 umount: /kekfs busy Sep 22 11:10:08 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. Initializing Memory - Type help for more information ok CD-ROM から立ち上げるために、break キーで一旦止める。 システム・インストールを開始する。 ok boot cdrom Boot device: /iommu/sbus/espdma@5,8400000/esp@5,8800000/sd@6,0:d File and args: SunOS Release 5.6 Version Generic [UNIX(R) System V Release 4.0] Copyright (c) 1983-1997, Sun Microsystems, Inc. Configuring devices... The system is coming up. Please wait. Select a Language 0) English 1) German 2) Spanish 3) French 4) Italian 5) Swedish ?0 NOTE: The ASCII only option gives you the default 128-character set that was available in previous releases. If you do not need to send/receive international correspondence where you need locale-specific alphabetic characters (like accented or umlaut characters) the ASCII only set is sufficient. Otherwise, you can select an ISO locale which contains a 256-character set. Selecting an ISO locale can cause a minor performance degradation (in many cases, less than 5%). 0) USA - English (ASCII only) 12) Lithuania 1) Czech Republic 13) Latvia 2) Denmark 14) Netherlands 3) Greece 15) Netherlands/Belgium 4) Australia - English (ISO-8859-1) 16) Norway 5) Canada - English (ISO-8859-1) 17) Poland 6) Ireland - English ( 8 bit ) 18) Portugal 7) New Zealand - English ( 8 bit ) 19) Portugal/Brazil 8) UK - English (ISO-8859-1) 20) Russia 9) USA - English (ISO-8859-1) 21) Finland 10) Estonia 22) Turkey 11) Hungary 23) Go Back to Previous Screen Type a number and press Return or Enter [0]: What type of terminal are you using? 1) ANSI Standard CRT 2) DEC VT52 3) DEC VT100 4) Heathkit 19 5) Lear Siegler ADM31 6) PC Console 7) Sun Command Tool 8) Sun Workstation 9) Televideo 910 10) Televideo 925 11) Wyse Model 50 12) X Terminal Emulator (xterms) 13) Other Type the number of your choice and press Return: 12 The Solaris Installation Program The Solaris installation program is divided into a series of short sections where you'll be prompted to provide information for the installation. At the end of each section, you'll be able to change the selections you've made before continuing. About navigation... - The mouse cannot be used - If your keyboard does not have function keys, or they do not respond, press ESC; the legend at the bottom of the screen will change to show the ESC keys to use for navigation. F2_Continue F6_Help Identify This System On the next screens, you must identify this system as networked or non-networked, and set the default time zone and date/time. If this system is networked, the software will try to find the information it needs to identify your system; you will be prompted to supply any information it cannot find. > To begin identifying this system, press F2. F2_Continue F6_Help Host Name On this screen you must enter your host name, which identifies this system on the network. The name must be unique within your domain; creating a duplicate host name will cause problems on the network after you install Solaris. A host name must be at least two characters; it can contain letters, digits, and minus signs (-). Host name: onl7v2 F2_Continue F6_Help Network Connectivity Specify Yes if the system is connected to the networkby one of the Solaris or vendor network/communicationEthernet cards that are supported on the Solaris CD.See your hardware documentation for the current listof supported cards. Specify No if the system is connected to anetwork/communication card that is not supported onthe Solaris CD, and follow the instructions listedunder Help. Networked [X] Yes [ ] No F2_Continue F6_Help IP Address On this screen you must enter the Internet Protocol (IP) address for this system. It must be unique and follow your site's address conventions, or a system/network failure could result. IP addresses contain four sets of numbers separated by periods (for example 129.200.9.1). IP address: 130.87.153.109 F2_Continue F6_Help Confirm Information > Confirm the following information. If it is correct, press F2; to change any information, press F4. Host name: onl7v2 Networked: Yes IP address: 130.87.153.109 F2_Continue F4_Change F6_Help Name Service On this screen you must provide name service information. Select NIS+ or NIS if this system is known to the name server; select Other if your site is using another name service (for example, DCE or DNS); select None if your site is not using a name service, or if it is not yet established. > To make a selection, use the arrow keys to highlight the option and press Return to mark it [X]. Name service [ ] NIS+ [ ] NIS (formerly yp) [X] Other [ ] None F2_Continue F6_Help Confirm Information > Confirm the following information. If it is correct, press F2; to change any information, press F4. Name service: Other F2_Continue F4_Change F6_Help Subnets On this screen you must specify whether this system is part of a subnet. If you specify incorrectly, the system will have problems communicating on the network after you reboot. > To make a selection, use the arrow keys to highlight the option and press Return to mark it [X]. System part of a subnet [X] Yes [ ] No F2_Continue F6_Help Netmask On this screen you must specify the netmask of your subnet. A default netmask is shown; do not accept the default unless you are sure it is correct for your subnet. A netmask must contain four sets of numbers separated by periods (for example 255.255.255.0). Netmask: 255.255.252.0 F2_Continue F6_Help Time Zone On this screen you must specify your default time zone. You can specify a time zone in three ways: select one of the geographic regions from the list, select other - offset from GMT, or other - specify time zone file. > To make a selection, use the arrow keys to highlight the option and press Return to mark it [X]. Regions ^ [ ] Asia, Western [ ] Australia / New Zealand [ ] Canada [ ] Europe [ ] Mexico [ ] South America [ ] United States [ ] other - offset from GMT - [X] other - specify time zone file F2_Continue F6_Help Time Zone File Specify the time zone file you want to use. The file must already be in the /usr/share/lib/zoneinfo directory. You do not need to enter the full path. File name: Japan F2_Continue F5_Cancel F6_Help Date and Time > Accept the default date and time or enter new values. Date and time: 09/22/98 11:33 Year (4 digits) : 1998 Month (1-12) : 09 Day (1-31) : 22 Hour (0-23) : 11 Minute (0-59) : 33 F2_Continue F6_Help Confirm Information > Confirm the following information. If it is correct, press F2; to change any information, press F4. System part of a subnet: Yes Netmask: 255.255.252.0 Time zone: Japan Date and time: 09/22/98 11:33:00 F2_Continue F4_Change F6_Help System identification is completed. Solaris Interactive Installation This system is upgradable, so you have two options for installing Solaris software. The upgrade option updates the Solaris software on the system to the new release, saving as many modifications as possible that you've made to the previous version of Solaris software. You should back up the system before using the upgrade option. The initial option overwrites the system's disks with the new version of Solaris software. Backing up any modifications that you've made to the previous version of Solaris software is recommended before starting the initial option. This option also lets you preserve any existing file systems. After selecting an option and completing the tasks that follow, a summary of your selections will be displayed. F2_Upgrade F4_Initial F5_Exit F6_Help Solaris Interactive Installation You'll be using the initial option for installing Solaris software on the system. The initial option overwrites the system's disks when the new Solaris software is installed. On the following screens, you can accept the defaults or you can customize how Solaris software will be installed by: - Allocating space for diskless clients or AutoClient systems - Selecting the type of Solaris software to install - Selecting disks to hold software you've selected - Specifying how file systems are laid out on the disks After completing these tasks, a summary of your selections (called a profile) will be displayed. F2_Continue F3_Go Back F5_Exit F6_Help Allocate Client Services? Do you want to allocate space for diskless clients and/or AutoClient systems? F2_Continue F3_Go Back F4_Allocate F5_Exit F6_Help Select Languages Select the languages you want for displaying the user interface after Solaris software is installed. English is automatically installed by default. [ ] French [ ] German [ ] Italian [ ] Spanish [ ] Swedish F2_Continue F3_Go Back F5_Exit F6_Help Select Software Select the Solaris software to install on the system. NOTE: After selecting a software group, you can add or remove software by customizing it. However, this requires understanding of software dependencies and how Solaris software is packaged. [X] Entire Distribution plus OEM support .. 706.00 MB (F4 to Customize) [ ] Entire Distribution ................... 702.00 MB [ ] Developer System Support .............. 634.00 MB [ ] End User System Support ............... 374.00 MB [ ] Core System Support ................... 180.00 MB F2_Continue F3_Go Back F4_Customize F5_Exit F6_Help Select Disks On this screen you must select the disks for installing Solaris software. Start by looking at the Suggested Minimum field; this value is the approximate space needed to install the software you've selected. Keep selecting disks until the Total Selected value exceeds the Suggested Minimum value. Disk Device (Size) Available Space ============================================= [X] c0t3d0 (8639 MB) boot disk 8639 MB (F4 to edit) Total Selected: 8639 MB Suggested Minimum: 492 MB F2_Continue F3_Go Back F4_Edit F5_Exit F6_Help Preserve Data? Do you want to preserve existing data? At least one of the disks you've selected for installing Solaris software has file systems or unnamed slices that you may want to save. F2_Continue F3_Go Back F4_Preserve F5_Exit F6_Help Preserve Data On this screen you can preserve the data on some or all disk slices. Any slice you preserve will not be touched when Solaris software is installed. If you preserve data on / (root), /usr, or /var you must rename them because new versions of these file systems are created when Solaris software is installed. WARNING: Preserving an `overlap' slice will not preserve any data within it. To preserve this data, you must explicitly set the mount point name. Mount Point Disk/Slice Size =================================================================== [ ] / c0t3d0s0 41 MB [ ] /var c0t3d0s1 27 MB [ ] overlap c0t3d0s2 8639 MB [ ] swap c0t3d0s3 149 MB [ ] /opt c0t3d0s5 31 MB [ ] /usr c0t3d0s6 610 MB [X] /export/home c0t3d0s7 7779 MB F2_OK F5_Cancel F6_Help Automatically Layout File Systems? Do you want to use auto-layout to automatically layout file systems? Manually laying out file systems requires advanced system administration skills. F2_Auto Layout F3_Go Back F4_Manual Layout F5_Exit F6_Help Automatically Layout File Systems On this screen you must select all the file systems you want auto-layout to create, or accept the default file systems shown. NOTE: For small disks, it may be necessary for auto-layout to break up some of the file systems you request into smaller file systems to fit the available disk space. So, after auto-layout completes, you may find file systems in the layout that you did not select from the list below. File Systems for Auto-layout ======================================== [X] / [X] /opt [X] /usr [ ] /usr/openwin [X] /var [X] swap F2_Continue F5_Cancel F6_Help File System and Disk Layout The summary below is your current file system and disk layout, based on the information you've supplied. NOTE: If you choose to customize, you should understand file systems, their intended purpose on the disk, and how changing them may affect the operation of the system. File system/Mount point Disk/Slice Size ============================================================= / c0t3d0s0 41 MB /var c0t3d0s1 27 MB overlap c0t3d0s2 8639 MB swap c0t3d0s3 149 MB /opt c0t3d0s5 31 MB /usr c0t3d0s6 610 MB /export/home c0t3d0s7 7779 MB F2_Continue F3_Go Back F4_Customize F5_Exit F6_Help Mount Remote File Systems? Do you want to mount software from a remote file server? This may be necessary if you had to remove software because of disk space problems. F2_Continue F3_Go Back F4_Remote Mounts F5_Exit F6_Help Profile The information shown below is your profile for installing Solaris software. It reflects the choices you've made on previous screens. ============================================================================ Installation Option: Initial Boot Device: c0t3d0s0 Client Services: None Software: Solaris 2.6, Entire Distribution plus OEM s File System and Disk Layout: / c0t3d0s0 41 MB /var c0t3d0s1 27 MB swap c0t3d0s3 149 MB /opt c0t3d0s5 31 MB /usr c0t3d0s6 610 MB /export/home c0t3d0s7 7779 MB F2_Continue F4_Change F5_Exit F6_Help Reboot After Installation? After Solaris software is installed, the system must be rebooted. You can choose to have the system automatically reboot, or you can choose to manually reboot the system if you want to run scripts or do other customizations before the reboot. You can manually reboot a system by using the reboot(1M) command. [X] Auto Reboot [ ] Manual Reboot F2_Begin Installation F5_Cancel Preparing system for Solaris install Configuring disk (c0t3d0) - Creating Solaris disk label (VTOC) Creating and checking UFS file systems - Creating / (c0t3d0s0) - Creating /var (c0t3d0s1) - Creating /opt (c0t3d0s5) - Creating /usr (c0t3d0s6) Solaris Initial Install MBytes Installed: 0.18 MBytes Remaining: 409.53 Installing: UTF-8 Locale Environment Common Files - | | | | | | 0 20 40 60 80 100 On this screen you can create a root password. A root password can contain any number of characters, but only the first eight characters in the password are significant. (For example, if you create `a1b2c3d4e5f6' as your root password, you can use `a1b2c3d4' to gain root access.) You will be prompted to type the root password twice; for security, the password will not be displayed on the screen as you type it. > If you do not want a root password, press RETURN twice. Root password: Re-enter your root password. Press Return to continue. System identification is completed. 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. システム・インストールは正常に終了した。 続いて、/etc の下の設定をやる。 --- (6). 項目タイトル (6-1). サブ項目タイトル (6-1-1). サブサブ項目タイトル