Sep 22, 2004

             onlsbc1, Debian Sarge のインストール
          			---  Sarge インストール #2
           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
               (http://www-online.kek.jp/~inoue/para-CAMAC/
                                   Work/SBC-Linux43.html)



                        高エネルギー加速器研究機構
                            素粒子原子核研究所
                         物理、オンライングループ
                                井上 栄二

        目的

	    SBC-Linux42.htmlでのテストによって2.5"IDEハードディスク上で CC/NET用
	    Debian GNU/Linux 3.1 Testingパッケージ(Sarge)が利用可能になった。 
	    ここでは、Sarge をCC/NET用コンパクトフラッシュLinuxシステムとして
	    コンパクトフラッシュ上に構築する。


        項目

        (1). Sarge のインストール
        (2). カーネルソース、Apache、Java のインストール
        (3). CC/NETソフトウェアのインストール
        (4). CC/NETソフトウェアの実行
        (5). USBストレージの動作チェック
        (6). RAMディスク化
        (7). コンパクトフラッシュの復旧
        (8). 復旧したコンパクトフラッシュの起動

  --------------------------------------------------------------------


 (1). Sarge のインストール
	
onlsbc1:/home/toyo# dpkg -l
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
||/ Name           Version        Description
+++-==============-==============-============================================
ii  adduser        3.59           Add and remove users and groups
ii  analog         5.32-11        analyzes logfiles from web servers
ii  apache2        2.0.50-12      Next generation, scalable, extendable web se
ii  apache2-common 2.0.50-12      Next generation, scalable, extendable web se
ii  apache2-doc    2.0.50-12      Documentation for apache2
ii  apache2-mpm-pr 2.0.50-12      Traditional model for Apache2
ii  apt            0.5.27         Advanced front-end for dpkg
ii  apt-utils      0.5.27         APT utility programs
ii  aptitude       0.2.15.2-1     curses-based apt frontend
rc  at             3.1.8-11       Delayed job execution and batch processing
ii  base-config    2.40.3         Debian base system configurator
ii  base-files     3.1            Debian base system miscellaneous files
ii  base-passwd    3.5.7          Debian base system master password and group
ii  bash           2.05b-15       The GNU Bourne Again SHell
ii  bsdmainutils   6.0.15         collection of more utilities from FreeBSD
ii  bsdutils       2.12-3         Basic utilities from 4.4BSD-Lite
ii  console-common 0.7.46         Basic infrastructure for text console config
ii  console-data   2002.12.04dbs- Keymaps, fonts, charset maps, fallback table
ii  console-tools  0.2.3dbs-54    Linux console and font utilities
ii  coreutils      5.2.1-2        The GNU core utilities
ii  cpio           2.5-1.1        GNU cpio -- a program to manage archives of 
ii  cramfsprogs    1.1-6          Tools for CramFs (Compressed ROM File System
ii  cron           3.0pl1-86      management of regular background processing
ii  dash           0.5.1-3        The Debian Almquist Shell
ii  debconf        1.4.30.2       Debian configuration management system
ii  debconf-i18n   1.4.30.2       full internationalization support for debcon
ii  debianutils    2.8.4          Miscellaneous utilities specific to Debian
ii  dhcp-client    2.0pl5-19      DHCP Client
ii  diff           2.8.1-6        File comparison utilities
ii  discover       2.0.4-5        hardware identification system
ii  discover-data  2.2004.05.03-4 Data lists for Discover hardware detection s
rc  discover1      1.6.5          hardware identification system
ii  dpkg           1.10.23        Package maintenance system for Debian
ii  dselect        1.10.23        a user tool to manage Debian packages
ii  e2fslibs       1.35-6         The EXT2 filesystem libraries
ii  e2fsprogs      1.35-6         The EXT2 file system utilities and libraries
ii  ed             0.2-20         The classic unix line editor
rc  exim4-base     4.34-4         EXperimental Internal Mailer -- a Mail Trans
rc  exim4-config   4.34-4         Debian configuration for exim4
ii  fdutils        5.4-20040228-1 Linux floppy utilities
ii  findutils      4.1.20-4       utilities for finding files--find, xargs, an
ii  gcc-3.3-base   3.3.4-6sarge1. The GNU Compiler Collection (base package)
ii  gettext-base   0.14.1-5       GNU Internationalization utilities for the b
ii  grep           2.5.1.ds1-3    GNU grep, egrep and fgrep
ii  groff-base     1.18.1.1-1     GNU troff text-formatting system (base syste
ii  grub           0.95+cvs200406 GRand Unified Bootloader
ii  gzip           1.3.5-9        The GNU compression utility
ii  hostname       2.13           A utility to set/show the host name or domai
ii  hotplug        0.0.20040329-1 Linux Hotplug Scripts
ii  ifupdown       0.6.4-4.8      High level tools to configure network interf
ii  info           4.7-2.1        Standalone GNU Info documentation browser
ii  initrd-tools   0.1.74         tools to create initrd image for prepackaged
ii  initscripts    2.86-1         Standard scripts needed for booting and shut
ii  ipchains       1.3.10-15      Network firewalling for Linux 2.2.x
ii  iptables       1.2.9-10       Linux kernel 2.4+ iptables administration to
ii  iputils-ping   20020927-2     Tools to test the reachability of network ho
ii  kernel-image-2 2.4.25-3       Linux kernel image for version 2.4.25 on 386
ii  klogd          1.4.1-15       Kernel Logging Daemon
ii  libacl1        2.2.23-1       Access control list shared library
ii  libapache2-mod 1.99.14-4      Integration of perl with the Apache2 web ser
ii  libapache2-mod 4.3.8-9        server-side, HTML-embedded scripting languag
ii  libapache2-mod 3.1.3-2.2      An Apache module that embeds Python within t
ii  libapache2-mod 3.1.3-2.2      An Apache 2 module that embeds Python 2.3 wi
ii  libapr0        2.0.50-12      The Apache Portable Runtime
ii  libattr1       2.4.16-1       Extended attribute shared library
ii  libblkid1      1.35-6         Block device id library
ii  libbz2-1.0     1.0.2-1        A high-quality block-sorting file compressor
ii  libc6          2.3.2.ds1-13   GNU C Library: Shared libraries and Timezone
ii  libcap1        1.10-14        support for getting/setting POSIX.1e capabil
ii  libcomerr2     1.35-6         The Common Error Description library
ii  libconsole     0.2.3dbs-54    Shared libraries for Linux console and font 
ii  libcurl2       7.11.2-8       Multi-protocol file transfer library, now wi
ii  libdb1-compat  2.1.3-7        The Berkeley database routines [glibc 2.0/2.
ii  libdb3         3.2.9-20       Berkeley v3 Database Libraries [runtime]
ii  libdb4.2       4.2.52-17      Berkeley v4.2 Database Libraries [runtime]
ii  libdevel-symdu 2.03-3         Perl module for inspecting perl's symbol tab
rc  libdiscover1   1.6.5          hardware identification library
ii  libdiscover2   2.0.4-5        hardware identification library
ii  libexpat1      1.95.6-8       XML parsing C library - runtime library
ii  libfreetype6   2.1.7-2.2      FreeType 2 font engine, shared library files
ii  libgcc1        3.4.1-4sarge1  GCC support library
ii  libgcrypt1     1.1.12-8       LGPL Crypto library - runtime library
ii  libgcrypt11    1.2.0-4        LGPL Crypto library - runtime library
ii  libgcrypt7     1.1.90-9       LGPL Crypto library - runtime library
ii  libgd2-noxpm   2.0.28-2       GD Graphics Library version 2 (without XPM s
ii  libgdbm3       1.8.3-2        GNU dbm database routines (runtime version)
ii  libgnutls10    1.0.4-3        GNU TLS library - runtime library
ii  libgnutls11    1.0.16-7       GNU TLS library - runtime library
ii  libgnutls7     0.8.12-6       GNU TLS library - runtime library
ii  libgpg-error0  1.0-1          library for common error values and messages
ii  libhtml-parser 3.36-1         A collection of modules that parse HTML text
ii  libhtml-tagset 3.03-2         Data tables pertaining to HTML
ii  libhtml-tree-p 3.18-1         represent and create HTML syntax trees
ii  libjpeg62      6b-9           The Independent JPEG Group's JPEG runtime li
ii  libldap2       2.1.30-3       OpenLDAP libraries
ii  liblocale-gett 1.01-17        Using libc functions for internationalizatio
ii  liblockfile1   1.06           NFS-safe locking library, includes dotlockfi
ii  liblzo1        1.08-1.2       A real-time data compression library
ii  libmagic1      4.09-1         File type determination library using "magic
ii  libncurses5    5.4-4          Shared libraries for terminal handling
ii  libncursesw5   5.4-4          Shared libraries for terminal handling (wide
ii  libnewt0.51    0.51.6-5       Not Erik's Windowing Toolkit - text mode win
ii  libopencdk8    0.5.5-8        Open Crypto Development Kit (OpenCDK) (runti
ii  libpam-modules 0.76-22        Pluggable Authentication Modules for PAM
ii  libpam-runtime 0.76-22        Runtime support for the PAM library
ii  libpam0g       0.76-22        Pluggable Authentication Modules library
ii  libpcap0.7     0.7.2-7        System interface for user-level packet captu
ii  libpcre3       4.5-1.1        Perl 5 Compatible Regular Expression Library
ii  libperl5.8     5.8.4-2        Shared Perl library.
ii  libpng12-0     1.2.5.0-7      PNG library - runtime
ii  libpopt0       1.7-4          lib for parsing cmdline parameters
ii  libreadline4   4.3-11         GNU readline and history libraries, run-time
ii  libsasl2       2.1.19-1.1     Authentication abstraction library
ii  libsigc++-1.2- 1.2.5-1        Type-safe Signal Framework for C++ - runtime
ii  libss2         1.35-6         Command-line interface parsing library
ii  libssl0.9.7    0.9.7d-4       SSL shared libraries
ii  libstdc++5     3.3.4-6sarge1. The GNU Standard C++ Library v3
ii  libtasn1-0     0.1.2-5        Manage ASN.1 structures (runtime)
ii  libtasn1-2     0.2.10-3       Manage ASN.1 structures (runtime)
ii  libtext-charwi 0.04-1         get display widths of characters on the term
ii  libtext-iconv- 1.2-3          Convert between character sets in Perl
ii  libtext-wrapi1 0.06-1         internationalized substitute of Text::Wrap
ii  libtextwrap1   0.1-1          text-wrapping library with i18n - runtime
ii  liburi-perl    1.30-1         Manipulates and accesses URI strings
ii  libusb-0.1-4   0.1.8-16       Userspace USB programming library
ii  libuuid1       1.35-6         Universally unique id library
ii  libwrap0       7.6.dbs-5      Wietse Venema's TCP wrappers library
ii  libwww-perl    5.800-1        WWW client/server library for Perl (aka LWP)
ii  locales        2.3.2.ds1-13   GNU C Library: National Language (locale) da
ii  login          4.0.3-30       System login tools
ii  logrotate      3.7-2          Log rotation utility
ii  lynx           2.8.5-1        Text-mode WWW Browser
rc  mailx          8.1.2-0.200405 A simple mail user agent
ii  makedev        2.3.1-74       Creates device files in /dev
ii  man-db         2.4.2-19       The on-line manual pager
ii  manpages       1.67-2         Manual pages about using a GNU/Linux system
ii  mawk           1.3.3-11       a pattern scanning and text processing langu
ii  mime-support   3.28-1         MIME files 'mime.types' & 'mailcap', and sup
ii  modutils       2.4.26-1       Linux module utilities
ii  mount          2.12-3         Tools for mounting and manipulating filesyst
ii  nano           1.2.4-2        free Pico clone with some new features
ii  ncurses-base   5.4-4          Descriptions of common terminal types
ii  ncurses-bin    5.4-4          Terminal-related programs and man pages
ii  net-tools      1.60-10        The NET-3 networking toolkit
ii  netbase        4.18           Basic TCP/IP networking system
ii  netkit-inetd   0.10-9         The Internet Superserver
ii  nvi            1.79-21        4.4BSD re-implementation of vi
ii  openssl        0.9.7d-4       Secure Socket Layer (SSL) binary and related
ii  passwd         4.0.3-30       Change and administer password and group dat
ii  pciutils       2.1.11-15      Linux PCI Utilities
ii  perl           5.8.4-2        Larry Wall's Practical Extraction and Report
ii  perl-base      5.8.4-2        The Pathologically Eclectic Rubbish Lister.
ii  perl-modules   5.8.4-2        Core Perl modules.
ii  php4-common    4.3.8-9        Common files for packages built from the php
ii  ppp            2.4.2+20040428 Point-to-Point Protocol (PPP) daemon
ii  pppconfig      2.3.2          A text menu based utility for configuring pp
ii  pppoe          3.5-3          PPP over Ethernet driver
ii  pppoeconf      1.0.4          configures PPPoE/ADSL connections
ii  procps         3.2.1-2        The /proc file system utilities
ii  psmisc         21.5-1         Utilities that use the proc filesystem
ii  python         2.3.4-1        An interactive high-level object-oriented la
ii  python2.3      2.3.4-5        An interactive high-level object-oriented la
ii  sed            4.1.2-1        The GNU sed stream editor
ii  setserial      2.17-36        Controls configuration of serial ports
ii  slang1a-utf8   1.4.9dbs-6     The S-Lang programming library with utf8 sup
ii  ssh            3.8.1p1-8      Secure rlogin/rsh/rcp replacement (OpenSSH)
ii  ssl-cert       1.0-10         Simple debconf wrapper for openssl
ii  sysklogd       1.4.1-15       System Logging Daemon
ii  sysv-rc        2.86-1         Standard boot mechanism using symlinks in /e
ii  sysvinit       2.86-1         System-V like init
ii  tar            1.13.93-4      GNU tar
ii  tasksel        2.09           Tool for selecting tasks for installation on
ii  tcpd           7.6.dbs-5      Wietse Venema's TCP wrapper utilities
ii  telnet         0.17-24        The telnet client.
ii  usbutils       0.11+cvs200403 USB console utilities
ii  util-linux     2.12-3         Miscellaneous system utilities
ii  wget           1.9.1-4        retrieves files from the web
ii  whiptail       0.51.6-5       Displays user-friendly dialog boxes from she
ii  zlib1g         1.2.1.1-5      compression library - runtime
onlsbc1:/home/toyo# 

	この後、以下のパッケージを追加インストールした。

ii  binutils       2.14.90.0.7-8  The GNU assembler, linker and binary utiliti
ii  cpp            3.3.4-2        The GNU C preprocessor (cpp)
ii  cpp-3.3        3.3.4-6sarge1. The GNU C preprocessor
ii  gcc            3.3.4-2        The GNU C compiler
ii  gcc-3.3        3.3.4-6sarge1. The GNU C compiler
ii  g++            3.3.4-2        The GNU C++ compiler
ii  g++-3.3        3.3.4-6sarge1. The GNU C++ compiler
ii  libc6-dev      2.3.2.ds1-13   GNU C Library: Development Libraries and Hea
ii  libstdc++5-3.3 3.3.4-6sarge1. The GNU Standard C++ Library v3 (development
ii  linux-kernel-h 2.5.999-test7- Linux Kernel Headers for development
ii  bison          1.875a-1.1     A parser generator that is compatible with Y
ii  m4             1.4.1-1        a macro processing language
ii  bzip2          1.0.2-1        A high-quality block-sorting file compressor
ii  gdb            6.1-3          The GNU Debugger
ii  make           3.80-9         The GNU version of the "make" utility.
ii  patch          2.5.9-2        Apply a diff file to an original
ii  nfs-common     1.0.6-3        NFS support files common to client and serve
ii  portmap        5-4            The RPC portmapper
ii  autoconf       2.59-7         automatic configure script builder
ii  automake1.4    1.4-p6-8       A tool for generating GNU Standards-complian
ii  autotools-dev  20040822.1     Update infrastructure for config.{guess,sub}
ii  file           4.09-1         Determines file type using "magic" numbers
ii  libtool        1.5.6-2        Generic library support script
ii  libc6-dev      2.3.2.ds1-13   GNU C Library: Development Libraries and Hea

	現在の Sargeインストーラによるファイルシステムの作成では ext2ファイルシ
	ステムしか作成できない。 ここで ext2ファイルシステムをext3 ファイルシ
	ステムへ変換した。


 (2). カーネルソース、Apache、Java のインストール

onlsbc1:/usr/src# pwd
/usr/src
onlsbc1:/usr/src# 
onlsbc1:/usr/src# ls -l
total 1
drwxr-xr-x  15 root root 1024 Apr 14 18:58 kernel-source-2.4.25
lrwxrwxrwx   1 root src    20 Sep 10 17:23 linux -> kernel-source-2.4.25
lrwxrwxrwx   1 root src    20 Sep 10 17:26 linux-2.4 -> kernel-source-2.4.25
onlsbc1:/usr/src# 
onlsbc1:/usr/src# ls -lLa linux
total 816
drwxr-xr-x  15 root root   1024 Apr 14 18:58 .
drwxrwsr-x   3 root src    1024 Sep 10 17:26 ..
-rw-r--r--   1 root root  18691 Aug  3  2002 COPYING
-rw-r--r--   1 root root  82295 Feb 21  2004 CREDITS
-rw-r--r--   1 root root 551213 Feb 23  2004 ChangeLog
-rw-r--r--   1 root root  45278 Apr 14 18:30 Debian.src.changelog
drwxr-xr-x  33 root root   3072 Apr 14 18:52 Documentation
-rw-r--r--   1 root root  48187 Feb 22  2004 MAINTAINERS
-rw-r--r--   1 root root  19132 Mar 30 19:40 Makefile
-rw-r--r--   1 root root  14287 Aug 30  2003 README
-rw-r--r--   1 root root   8788 Apr 14 18:40 README.Debian
-rw-r--r--   1 root root   2818 Jun  1  2003 REPORTING-BUGS
-rw-r--r--   1 root root   9325 Feb 21  2004 Rules.make
drwxr-xr-x  20 root root   1024 Apr 12 10:21 arch
drwxr-xr-x   2 root root   1024 Apr 12 10:21 crypto
drwxr-xr-x  40 root root   1024 Apr 12 10:22 drivers
drwxr-xr-x  48 root root   2048 Apr 12 10:22 fs
drwxr-xr-x  28 root root   1024 Apr 12 10:23 include
drwxr-xr-x   2 root root   1024 Apr 12 10:23 init
drwxr-xr-x   2 root root   1024 Apr 12 10:23 ipc
drwxr-xr-x   2 root root   1024 Apr 12 10:23 kernel
drwxr-xr-x   4 root root   1024 Apr 12 10:23 lib
drwxr-xr-x   2 root root   1024 Apr 12 10:23 mm
drwxr-xr-x  31 root root   1024 Apr 12 10:23 net
drwxr-xr-x   4 root root   1024 Apr 14 18:58 scripts
-rw-r--r--   1 root root      9 Apr 14 18:51 version.Debian
onlsbc1:/usr/src#

	kernel ヘッダのインストール。

onlsbc1:/usr/src# ls -l
total 3
drwxr-xr-x   3 root root 1024 Sep 13 10:18 kernel-headers-2.4.25-1
drwxr-xr-x   3 root root 1024 Sep 13 10:18 kernel-headers-2.4.25-1-386
drwxr-xr-x  15 root root 1024 Apr 14 18:58 kernel-source-2.4.25
lrwxrwxrwx   1 root src    20 Sep 10 17:23 linux -> kernel-source-2.4.25
lrwxrwxrwx   1 root src    20 Sep 10 17:26 linux-2.4 -> kernel-source-2.4.25
onlsbc1:/usr/src#

	Apache のインストール

	今回のコンパクトフラッシュ上への Sarge のインストールでは、Web server と
	してシステムをインストールしたので、上記の項目 (4) で、Apache はすでに
	インストールされている。 したがって、ここでやるべき作業は設定の確認のみ
	である。

onlsbc1:/usr/src# ps -ef
UID        PID  PPID  C STIME TTY          TIME CMD
root         1     0  0 Sep10 ?        00:00:00 init [2]
root         2     1  0 Sep10 ?        00:00:00 [keventd]
root         3     1  0 Sep10 ?        00:00:00 [ksoftirqd_CPU0]
root         4     1  0 Sep10 ?        00:00:00 [kswapd]
root         5     1  0 Sep10 ?        00:00:00 [bdflush]
root         6     1  0 Sep10 ?        00:00:01 [kupdated]
root       279     1  0 Sep10 ?        00:00:00 [khubd]
daemon     570     1  0 Sep10 ?        00:00:00 /sbin/portmap
root       639     1  0 Sep10 ?        00:00:00 /sbin/syslogd
root       642     1  0 Sep10 ?        00:00:00 /sbin/klogd
root       652     1  0 Sep10 ?        00:00:00 /usr/sbin/inetd
root       659     1  0 Sep10 ?        00:00:03 /usr/sbin/sshd
root       664     1  0 Sep10 ?        00:00:00 /sbin/rpc.statd
root       668     1  0 Sep10 ?        00:00:00 /usr/sbin/cron
root       672     1  0 Sep10 ?        00:00:02 /usr/sbin/apache2 -k start -DSSL
root       678     1  0 Sep10 tty1     00:00:00 /sbin/getty 38400 tty1
root       679     1  0 Sep10 tty2     00:00:00 /sbin/getty 38400 tty2
root       680     1  0 Sep10 tty3     00:00:00 /sbin/getty 38400 tty3
root       681     1  0 Sep10 tty4     00:00:00 /sbin/getty 38400 tty4
root       682     1  0 Sep10 tty5     00:00:00 /sbin/getty 38400 tty5
root       683     1  0 Sep10 tty6     00:00:00 /sbin/getty 38400 tty6
root       694   659  0 Sep10 ?        00:00:00 sshd: toyo [priv]
toyo       697   694  0 Sep10 ?        00:00:05 sshd: toyo@pts/0
toyo       698   697  0 Sep10 pts/0    00:00:00 -bash
root       752   698  0 Sep10 pts/0    00:00:00 bash
root       811     1  0 Sep10 ?        00:00:00 [rpciod]
root       812     1  0 Sep10 ?        00:00:00 [lockd]
www-data  1696   672  0 Sep12 ?        00:00:00 /usr/sbin/apache2 -k start -DSSL
www-data  1697   672  0 Sep12 ?        00:00:00 /usr/sbin/apache2 -k start -DSSL
www-data  1698   672  0 Sep12 ?        00:00:00 /usr/sbin/apache2 -k start -DSSL
www-data  1699   672  0 Sep12 ?        00:00:00 /usr/sbin/apache2 -k start -DSSL
www-data  1700   672  0 Sep12 ?        00:00:00 /usr/sbin/apache2 -k start -DSSL
root      2149   659  0 10:10 ?        00:00:00 sshd: toyo [priv]
toyo      2152  2149  0 10:11 ?        00:00:00 sshd: toyo@pts/1
toyo      2153  2152  0 10:11 pts/1    00:00:00 -bash
root      2160  2153  0 10:11 pts/1    00:00:00 bash
root      2229  2160  0 11:15 pts/1    00:00:00 ps -ef
onlsbc1:/usr/src#

	WebブラウザIE6で、http://onlsbc1.kek.jp/ にアクセスしてみた。



	ok.  アクセスできた。 

	onlsbc1:/home/toyo ディレクトリの下に、HTMLファイルを置いてアクセスして
	みる。

	WebブラウザIE6で、http://onlsbc1.kek.jp/~toyo/index.html にアクセスして
	みた。



        ok.  アクセスできた。 

	Java のインストール

onlsbc1:/usr# pwd
/usr
onlsbc1:/usr# ls -l
total 26
drwxr-xr-x   2 root root  8192 Sep 10 10:33 bin
drwxr-xr-x   2 root root  1024 Sep 10 09:43 doc
drwxr-xr-x   2 root root  1024 Sep  9 19:48 games
drwxr-xr-x  25 root root  3072 Sep 10 10:33 include
lrwxrwxrwx   1 root root    10 Sep  9 19:38 info -> share/info
drwxrwxr-x   9 root root  1024 Sep 15 13:32 j2sdk1.4.2_04
lrwxrwxrwx   1 root root    13 Sep 15 13:36 java -> j2sdk1.4.2_04
drwxr-xr-x  28 root root  5120 Sep 10 10:33 lib
drwxrwsr-x   9 root staff 1024 Sep  9 19:38 local
drwxr-xr-x   2 root root  3072 Sep 10 09:47 sbin
drwxr-xr-x  66 root root  2048 Sep 10 10:32 share
drwxrwsr-x   5 root src   1024 Sep 13 10:18 src
onlsbc1:/usr#

        ok.  Java は正常にインストールされた。


 (3). CC/NETソフトウェアのインストール

toyo@onlsbc1:~$ pwd
/home/toyo
toyo@onlsbc1:~$ ls -l
total 4
drwxr-xr-x  2 toyo toyo 1024 Sep 13 16:29 camac
drwxr-xr-x  2 toyo toyo 1024 Aug 25  2003 check
drwxr-xr-x  2 toyo toyo 1024 Sep 15 14:01 public_html
drwxr-xr-x  2 toyo toyo 1024 Sep 13 16:41 remote-camac
toyo@onlsbc1:~$


 (4). CC/NETソフトウェアの実行

toyo@onlsbc1:~$ gcc -v
Reading specs from /usr/lib/gcc-lib/i486-linux/3.3.4/specs
Configured with: ../src/configure -v --enable-languages=c,c++,java,f77,pascal,ob
jc,ada,treelang --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info
--with-gxx-include-dir=/usr/include/c++/3.3 --enable-shared --with-system-zlib -
-enable-nls --without-included-gettext --enable-__cxa_atexit --enable-clocale=gn
u --enable-debug --enable-java-gc=boehm --enable-java-awt=xlib --enable-objc-gc
i486-linux
Thread model: posix
gcc version 3.3.4 (Debian 1:3.3.4-6sarge1)
toyo@onlsbc1:~$

	camacドライバが組み込まれていることを確認。

toyo@onlsbc1:~$ /sbin/lsmod
Module                  Size  Used by    Tainted: P
pcc                     7292   0 (unused)
mousedev                3732   0 (unused)
hid                    18532   0 (unused)
input                   3040   0 [mousedev hid]
e100                   42056   1
usb-uhci               19632   0 (unused)
usbcore                52908   1 [hid usb-uhci]
parport_pc             19400   0
parport                21736   0 [parport_pc]
ide-cd                 27936   0
cdrom                  25056   0 [ide-cd]
rtc                     6280   0 (autoclean)
ide-detect               288   0 (autoclean) (unused)
via82cxxx               9416   1 (autoclean)
ide-disk               12512   1 (autoclean)
ide-core               94108   1 (autoclean) [ide-cd ide-detect via82cxxx ide-di
sk]
unix                   13260   6 (autoclean)
toyo@onlsbc1:~$


   (4-1 ).  rst_camコマンドの実行

toyo@onlsbc1:~/camac$ pwd
/home/toyo/camac
toyo@onlsbc1:~/camac$ ls
Makefile  camlib.o        dump_reg    exam3      get_cam       put_cam.c
README    camtest1c       dump_reg.c  exam3.c    get_cam.c     rst_cam
cam       camtest1c.c     exam0       exam4      get_camint    rst_cam.c
cam.c     clr_fifo        exam0.c     exam4.c    get_camint.c
camac.c   clr_fifo.c      exam1       exam5      pcc.c
camac.o   data_pattern.c  exam1.c     exam5.c    pcc.h
camlib.c  dec_cam         exam2       gen_cam    pcc.o
camlib.h  dec_cam.c       exam2.c     gen_cam.c  put_cam
toyo@onlsbc1:~/camac$

toyo@onlsbc1:~/camac$ ./rst_cam
toyo@onlsbc1:~/camac$

	正常終了した。


   (4-2 ).  clr_fifoコマンドの実行

toyo@onlsbc1:~/camac$ ./clr_fifo
toyo@onlsbc1:~/camac$

        正常終了した。


   (4-3 ).  dump_regコマンドの実行

toyo@onlsbc1:~/camac$ ./dump_reg
Tx Control      = 0
Tx Status       = 0
Tx Address      = 0
Tx Preset Count = 0
Tx Actual Count = 0
Tx Fifo Count   = 0
Rx Control      = 0
Rx Status       = 0
Rx Address      = 0
Rx Preset Count = 0
Rx Actual Count = 0
Rx Fifo Count   = 0
System          = 83000000
Int Control     = 0
Int Status      = 0
Int Fifo Count  = 0
toyo@onlsbc1:~/camac$

        正常終了した。


   (4-4 ).  camコマンドの実行

toyo@onlsbc1:~/camac$ ./cam
usage : ./cam n a f [data]
toyo@onlsbc1:~/camac$ ./cam 4 0 16 0xffffff
Q = 1 : X = 1
toyo@onlsbc1:~/camac$ ./cam 4 0 0
Q = 1 : X = 1 : data = ffffff
toyo@onlsbc1:~/camac$ ./cam 4 0 16 0xaaaaaa
Q = 1 : X = 1
toyo@onlsbc1:~/camac$ ./cam 4 0 0
Q = 1 : X = 1 : data = aaaaaa
toyo@onlsbc1:~/camac$

        正常終了した。


   (4-5 ).  gen_camコマンドの実行

toyo@onlsbc1:~/camac$ ./gen_cam
usage : ./gen_cam n a f data flag(1:start,2:end,0:normal,packet:others)
toyo@onlsbc1:~/camac$ ./gen_cam 4 0 16 0x555555 1
Data1 = 555555(hex)
Data2 = c0040010(hex)
toyo@onlsbc1:~/camac$

        正常終了した。


   (4-6 ).  dec_camコマンドの実行

toyo@onlsbc1:~/camac$ ./dec_cam
usage : ./dec_cam data1(hex) data2(hex)
toyo@onlsbc1:~/camac$ ./dec_cam 0x3555555 0xC0040010
n(4) a(0) f(16) data(0x555555) status(0x3)
toyo@onlsbc1:~/camac$

        正常終了した。


   (4-7 ).  put_camコマンドの実行

toyo@onlsbc1:~/camac$ ./put_cam
usage : ./put_cam data(hex) cmd(hex)
toyo@onlsbc1:~/camac$ ./put_cam 0x55555 0xc0040010
toyo@onlsbc1:~/camac$

        正常終了した。


   (4-8 ).  get_camコマンドの実行

toyo@onlsbc1:~/camac$ ./get_cam
data = 0x7000000 : reply = 0xc0040010
toyo@onlsbc1:~/camac$

        正常終了した。


   (4-9 ).  exam0コマンドの実行

toyo@onlsbc1:~/camac$ ./exam0
number of reply frames : 13
( 1) Z :                 data( 4000000) =  4000000 rply(c0190011) = c0190011
( 2) C :                 data( 4000000) =  4000000 rply(80190010) = 80190010
( 3) set Inhibit :       data( 4000000) =  4000000 rply(8019001a) = 8019001a
( 4) remove Inhibit :    data(       0) =        0 rply(80190018) = 80190018
( 5) disable interrupt : data(  ffffff) =   ffffff rply(80190118) = 80190118
( 6) enable interrupt :  data(10ffffff) = 10ffffff rply(8019011a) = 8019011a
( 7) write enable bits : data(10ffffff) = 10ffffff rply(80190110) = 80190110
( 8) read enable bits :  data(10ffffff) = 10ffffff rply(8019011a) = 8019011a
( 9) set fast cycle :    data(90000000) = 90000000 rply(8019021a) = 8019021a
(10) reset fast cyclc :  data(10000000) = 10000000 rply(80190218) = 80190218
(11) write data to SW :  data(13000000) = 13000000 rply(80040010) = 80040010
(12) read data from SW : data(13aaaaaa) = 13aaaaaa rply(80040000) = 80040000
(13) clear data in  SW : data(12000000) = 13000000 rply(a004000a) = a004000a
toyo@onlsbc1:~/camac$

        正常終了した。


   (4-10 ).  exam1コマンドの実行

toyo@onlsbc1:~/camac$ ./exam1
usage : ./exam1 process:0 [pattern:1] [loop:1] [num_frame] [fast]
        process 0: cam_exec_pio (default)
        process 1: cam_exec_dma
        process 2: cam_exec_dma_seq
        process 3: cam_exec
        pattern 0: a series of data (0xFFFFFF, 0)
        pattern 1: a series of data (0xFFFFFF, 0, 0x555555, 0, 0xAAAAAA) (defaul
t)
        pattern 2: a series of data (0,1,2,3,4,5...)
        pattern 3: a series of random data
        loop     : iteration count to be executed (default = 1)
        num_frame: number of frame to be executed (default = 10)
        fast     : fast cycle:1 normal cycle:0 (default = 0)
For an example
        % ./exam1 0 1 1 10 0
toyo@onlsbc1:~/camac$
toyo@onlsbc1:~/camac$ ./exam1 0 2 10 100
100 command frames...
Execution with loop = 10
cam_exec_pio process is selected...
Start CAMAC access to Switch register...
exam1 has been done successfully
toyo@onlsbc1:~/camac$


   (4-11 ).  exam2コマンドの実行

toyo@onlsbc1:~/camac$ ./exam2
number of reply frames : 7
read event count     : data(       0) =        0 rply(d0000000) = d0000000
clear busy out       : data(       0) =        0 rply(90010000) = 90010000
clear event counter  : data(       0) =        0 rply(90020000) = 90020000
enable trigger input : data(       0  =        0 rply(90030002) = 90030002
disable trigger input: data(       0) =        0 rply(90040000) = 90040000
set pulse out        : data(       0) =        0 rply(90050008) = 90050008
reset pulse out      : data(       0) =        0 rply(b0060000) = b0060000
toyo@onlsbc1:~/camac$

        正常終了した。


   (4-12 ).  exam3コマンドの実行

toyo@onlsbc1:~/camac$ ./exam3 10
Loop count = 1 : LAM pattern = 2
Loop count = 2 : LAM pattern = 2
Loop count = 3 : LAM pattern = 2
Loop count = 4 : LAM pattern = 2
Loop count = 5 : LAM pattern = 2
Loop count = 6 : LAM pattern = 2
Loop count = 7 : LAM pattern = 2
Loop count = 8 : LAM pattern = 2
Loop count = 9 : LAM pattern = 2
Loop count = 10 : LAM pattern = 2
toyo@onlsbc1:~/camac$

        正常終了した。


   (4-13 ).  exam4コマンドの実行

toyo@onlsbc1:~/camac$ ./exam4 10
Loop count = 1 : Event count = 1
Loop count = 2 : Event count = 2
Loop count = 3 : Event count = 3
Loop count = 4 : Event count = 4
Loop count = 5 : Event count = 5
Loop count = 6 : Event count = 6
Loop count = 7 : Event count = 7
Loop count = 8 : Event count = 8
Loop count = 9 : Event count = 9
Loop count = 10 : Event count = 10
toyo@onlsbc1:~/camac$

        正常終了した。


   (4-14 ).  ノン・コールバック版のweb3の実行

toyo@onlsbc1:~/public_html/Web$ gcc -v
Reading specs from /usr/lib/gcc-lib/i486-linux/3.3.4/specs
Configured with: ../src/configure -v --enable-languages=c,c++,java,f77,pascal,ob
jc,ada,treelang --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info
--with-gxx-include-dir=/usr/include/c++/3.3 --enable-shared --with-system-zlib -
-enable-nls --without-included-gettext --enable-__cxa_atexit --enable-clocale=gn
u --enable-debug --enable-java-gc=boehm --enable-java-awt=xlib --enable-objc-gc
i486-linux
Thread model: posix
gcc version 3.3.4 (Debian 1:3.3.4-6sarge1)
toyo@onlsbc1:~/public_html/Web$
toyo@onlsbc1:~/public_html/Web$ java -version
java version "1.4.2_04"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05)
Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode)
toyo@onlsbc1:~/public_html/Web$

	サーバ側で Apache2 を起動する。

onlsbc1:/home/toyo/public_html/Web# ps -ef
UID        PID  PPID  C STIME TTY          TIME CMD
root         1     0  0 Sep14 ?        00:00:00 init [2]
root         2     1  0 Sep14 ?        00:00:00 [keventd]
root         3     1  0 Sep14 ?        00:00:00 [ksoftirqd_CPU0]
root         4     1  0 Sep14 ?        00:00:00 [kswapd]
root         5     1  0 Sep14 ?        00:00:00 [bdflush]
root         6     1  0 Sep14 ?        00:00:00 [kupdated]
root       279     1  0 Sep14 ?        00:00:00 [khubd]
daemon     567     1  0 Sep14 ?        00:00:00 /sbin/portmap
root       636     1  0 Sep14 ?        00:00:00 /sbin/syslogd
root       639     1  0 Sep14 ?        00:00:00 /sbin/klogd
root       649     1  0 Sep14 ?        00:00:00 /usr/sbin/inetd
root       656     1  0 Sep14 ?        00:00:01 /usr/sbin/sshd
root       661     1  0 Sep14 ?        00:00:00 /sbin/rpc.statd
root       665     1  0 Sep14 ?        00:00:00 /usr/sbin/cron
root       673     1  0 Sep14 tty1     00:00:00 /sbin/getty 38400 tty1
root       674     1  0 Sep14 tty2     00:00:00 /sbin/getty 38400 tty2
root       675     1  0 Sep14 tty3     00:00:00 /sbin/getty 38400 tty3
root       676     1  0 Sep14 tty4     00:00:00 /sbin/getty 38400 tty4
root       677     1  0 Sep14 tty5     00:00:00 /sbin/getty 38400 tty5
root       678     1  0 Sep14 tty6     00:00:00 /sbin/getty 38400 tty6
root      1323   656  0 13:46 ?        00:00:00 sshd: toyo [priv]
toyo      1326  1323  0 13:46 ?        00:00:00 sshd: toyo@pts/0
toyo      1327  1326  0 13:46 pts/0    00:00:00 -bash
root      1442  1327  0 14:17 pts/0    00:00:00 bash
root      1445  1442  0 14:18 pts/0    00:00:00 ps -ef
onlsbc1:/home/toyo/public_html/Web#
onlsbc1:/home/toyo/public_html/Web# /usr/sbin/apache2ctl start
onlsbc1:/home/toyo/public_html/Web#
onlsbc1:/home/toyo/public_html/Web# ps -ef
UID        PID  PPID  C STIME TTY          TIME CMD
root         1     0  0 Sep14 ?        00:00:00 init [2]
root         2     1  0 Sep14 ?        00:00:00 [keventd]
root         3     1  0 Sep14 ?        00:00:00 [ksoftirqd_CPU0]
root         4     1  0 Sep14 ?        00:00:00 [kswapd]
root         5     1  0 Sep14 ?        00:00:00 [bdflush]
root         6     1  0 Sep14 ?        00:00:00 [kupdated]
root       279     1  0 Sep14 ?        00:00:00 [khubd]
daemon     567     1  0 Sep14 ?        00:00:00 /sbin/portmap
root       636     1  0 Sep14 ?        00:00:00 /sbin/syslogd
root       639     1  0 Sep14 ?        00:00:00 /sbin/klogd
root       649     1  0 Sep14 ?        00:00:00 /usr/sbin/inetd
root       656     1  0 Sep14 ?        00:00:01 /usr/sbin/sshd
root       661     1  0 Sep14 ?        00:00:00 /sbin/rpc.statd
root       665     1  0 Sep14 ?        00:00:00 /usr/sbin/cron
root       673     1  0 Sep14 tty1     00:00:00 /sbin/getty 38400 tty1
root       674     1  0 Sep14 tty2     00:00:00 /sbin/getty 38400 tty2
root       675     1  0 Sep14 tty3     00:00:00 /sbin/getty 38400 tty3
root       676     1  0 Sep14 tty4     00:00:00 /sbin/getty 38400 tty4
root       677     1  0 Sep14 tty5     00:00:00 /sbin/getty 38400 tty5
root       678     1  0 Sep14 tty6     00:00:00 /sbin/getty 38400 tty6
root      1323   656  0 13:46 ?        00:00:00 sshd: toyo [priv]
toyo      1326  1323  0 13:46 ?        00:00:00 sshd: toyo@pts/0
toyo      1327  1326  0 13:46 pts/0    00:00:00 -bash
root      1442  1327  0 14:17 pts/0    00:00:00 bash
root      1450     1 60 14:19 ?        00:00:01 /usr/sbin/apache2 -k start
www-data  1451  1450  2 14:19 ?        00:00:00 /usr/sbin/apache2 -k start
www-data  1452  1450  1 14:19 ?        00:00:00 /usr/sbin/apache2 -k start
www-data  1453  1450  2 14:19 ?        00:00:00 /usr/sbin/apache2 -k start
www-data  1454  1450  0 14:19 ?        00:00:00 /usr/sbin/apache2 -k start
www-data  1455  1450  1 14:19 ?        00:00:00 /usr/sbin/apache2 -k start
root      1456  1442  0 14:19 pts/0    00:00:00 ps -ef
onlsbc1:/home/toyo/public_html/Web#

	<<< サーバ側 >>>

	Web/web.sh スクリプトを起動して、rmiregistry および ServerImplプログラム
	を実行する。

toyo@onlsbc1:~/public_html/Web$ pwd
/home/toyo/public_html/Web
toyo@onlsbc1:~/public_html/Web$ ls
Client.class           Server.java            cam.java          web.sh
Client.java            ServerImpl.class       camac.c           web3-inoue.mem
ClientImpl.class       ServerImpl.java        camac.c-bak       web3.class
ClientImpl.java-bak    ServerImpl_Skel.class  camac.o           web3.html
ClientImpl_Skel.class  ServerImpl_Stub.class  libMyImpOfcam.so  web3.java
ClientImpl_Stub.class  cam.c                  pcc.h             web3.java-org
Makefile               cam.class              pcc.h-bak
Server.class           cam.h                  policy
toyo@onlsbc1:~/public_html/Web$
toyo@onlsbc1:~/public_html/Web$ ./web.sh
Wait.  In Process .............
bind done
 RMI: Server side:
   JNI, Java side: Received CAMAC command: array length = 1
      cmd[0] = 0xe0040010, dat[0] = 0xffffff
      cmd[1] = 0x0, dat[1] = 0x0

   JNI, Java side: before Native Call
      ServerImpl.r_cmd[0] = 0xe0040010, ServerImpl.r_dat[0] = 0xffffff
      ServerImpl.r_cmd[1] = 0x0, ServerImpl.r_dat[1] = 0x0

   JNI, C side: Received CAMAC command: array length = 1
example number = 14
      c_cmd[0] = 0xe0040010, c_dat[0] = 0xffffff
      c_cmd[1] = 0x0, c_dat[1] = 0x0

   JNI, Java side: after Native Call array length = 1
      ServerImpl.r_cmd[0] = 0xe0040010, ServerImpl.r_dat[0] = 0x13000000
      ServerImpl.r_cmd[1] = 0x0, ServerImpl.r_dat[1] = 0x0

 RMI: Server side:
   JNI, Java side: Received CAMAC command: array length = 1
      cmd[0] = 0xe0040000, dat[0] = 0xffffff
      cmd[1] = 0x0, dat[1] = 0x0

   JNI, Java side: before Native Call
      ServerImpl.r_cmd[0] = 0xe0040000, ServerImpl.r_dat[0] = 0xffffff
      ServerImpl.r_cmd[1] = 0x0, ServerImpl.r_dat[1] = 0x0
Q = 1 : X = 1 : data = 0
   JNI, C side: Received CAMAC command: array length = 1
example number = 14
      c_cmd[0] = 0xe0040000, c_dat[0] = 0xffffff
      c_cmd[1] = 0x0, c_dat[1] = 0x0

   JNI, Java side: after Native Call array length = 1
      ServerImpl.r_cmd[0] = 0xe0040000, ServerImpl.r_dat[0] = 0x13ffffff
      ServerImpl.r_cmd[1] = 0x0, ServerImpl.r_dat[1] = 0x0

 RMI: Server side:
   JNI, Java side: Received CAMAC command: array length = 1
      cmd[0] = 0xe0040000, dat[0] = 0xffffff
      cmd[1] = 0x0, dat[1] = 0x0

   JNI, Java side: before Native Call
      ServerImpl.r_cmd[0] = 0xe0040000, ServerImpl.r_dat[0] = 0xffffff
      ServerImpl.r_cmd[1] = 0x0, ServerImpl.r_dat[1] = 0x0
Q = 1 : X = 1 : data = ffffff
   JNI, C side: Received CAMAC command: array length = 1
example number = 14
      c_cmd[0] = 0xe0040000, c_dat[0] = 0xffffff
      c_cmd[1] = 0x0, c_dat[1] = 0x0

   JNI, Java side: after Native Call array length = 1
      ServerImpl.r_cmd[0] = 0xe0040000, ServerImpl.r_dat[0] = 0x13ffffff
      ServerImpl.r_cmd[1] = 0x0, ServerImpl.r_dat[1] = 0x0

 RMI: Server side:
   JNI, Java side: Received CAMAC command: array length = 1
      cmd[0] = 0xe0040010, dat[0] = 0x555555
      cmd[1] = 0x0, dat[1] = 0x0

   JNI, Java side: before Native Call
      ServerImpl.r_cmd[0] = 0xe0040010, ServerImpl.r_dat[0] = 0x555555
      ServerImpl.r_cmd[1] = 0x0, ServerImpl.r_dat[1] = 0x0
Q = 1 : X = 1 : data = ffffff
   JNI, C side: Received CAMAC command: array length = 1
example number = 14
      c_cmd[0] = 0xe0040010, c_dat[0] = 0x555555
      c_cmd[1] = 0x0, c_dat[1] = 0x0

   JNI, Java side: after Native Call array length = 1
      ServerImpl.r_cmd[0] = 0xe0040010, ServerImpl.r_dat[0] = 0x13000000
      ServerImpl.r_cmd[1] = 0x0, ServerImpl.r_dat[1] = 0x0

 RMI: Server side:
   JNI, Java side: Received CAMAC command: array length = 1
      cmd[0] = 0xe0040000, dat[0] = 0x555555
      cmd[1] = 0x0, dat[1] = 0x0

   JNI, Java side: before Native Call
      ServerImpl.r_cmd[0] = 0xe0040000, ServerImpl.r_dat[0] = 0x555555
      ServerImpl.r_cmd[1] = 0x0, ServerImpl.r_dat[1] = 0x0
Q = 1 : X = 1 : data = 0
   JNI, C side: Received CAMAC command: array length = 1
example number = 14
      c_cmd[0] = 0xe0040000, c_dat[0] = 0x555555
      c_cmd[1] = 0x0, c_dat[1] = 0x0

   JNI, Java side: after Native Call array length = 1
      ServerImpl.r_cmd[0] = 0xe0040000, ServerImpl.r_dat[0] = 0x13555555
      ServerImpl.r_cmd[1] = 0x0, ServerImpl.r_dat[1] = 0x0

					<--- cntl-C を押して web.sh を停止。
toyo@onlsbc1:~/public_html/Web$ Q = 1 : X = 1 : data = 555555
toyo@onlsbc1:~/public_html/Web$


	<<< クライアント側 >>>

	Webブラウザ、IE を使って onlsbc1 の web3.htmlファイルをアクセスする。




	ok.  正常に実行できた。

toyo@onlsbc1:~/public_html/Web$ ps -ef
UID        PID  PPID  C STIME TTY          TIME CMD
root         1     0  0 Sep14 ?        00:00:00 init [2]
root         2     1  0 Sep14 ?        00:00:00 [keventd]
root         3     1  0 Sep14 ?        00:00:00 [ksoftirqd_CPU0]
root         4     1  0 Sep14 ?        00:00:00 [kswapd]
root         5     1  0 Sep14 ?        00:00:00 [bdflush]
root         6     1  0 Sep14 ?        00:00:00 [kupdated]
root       279     1  0 Sep14 ?        00:00:00 [khubd]
daemon     567     1  0 Sep14 ?        00:00:00 /sbin/portmap
root       636     1  0 Sep14 ?        00:00:00 /sbin/syslogd
root       639     1  0 Sep14 ?        00:00:00 /sbin/klogd
root       649     1  0 Sep14 ?        00:00:00 /usr/sbin/inetd
root       656     1  0 Sep14 ?        00:00:01 /usr/sbin/sshd
root       661     1  0 Sep14 ?        00:00:00 /sbin/rpc.statd
root       665     1  0 Sep14 ?        00:00:00 /usr/sbin/cron
root       673     1  0 Sep14 tty1     00:00:00 /sbin/getty 38400 tty1
root       674     1  0 Sep14 tty2     00:00:00 /sbin/getty 38400 tty2
root       675     1  0 Sep14 tty3     00:00:00 /sbin/getty 38400 tty3
root       676     1  0 Sep14 tty4     00:00:00 /sbin/getty 38400 tty4
root       677     1  0 Sep14 tty5     00:00:00 /sbin/getty 38400 tty5
root       678     1  0 Sep14 tty6     00:00:00 /sbin/getty 38400 tty6
root      1323   656  0 13:46 ?        00:00:00 sshd: toyo [priv]
toyo      1326  1323  0 13:46 ?        00:00:00 sshd: toyo@pts/0
toyo      1327  1326  0 13:46 pts/0    00:00:00 -bash
root      1450     1  0 14:19 ?        00:00:01 /usr/sbin/apache2 -k start
www-data  1451  1450  0 14:19 ?        00:00:00 /usr/sbin/apache2 -k start
www-data  1452  1450  0 14:19 ?        00:00:00 /usr/sbin/apache2 -k start
www-data  1453  1450  0 14:19 ?        00:00:00 /usr/sbin/apache2 -k start
www-data  1454  1450  0 14:19 ?        00:00:00 /usr/sbin/apache2 -k start
www-data  1455  1450  0 14:19 ?        00:00:00 /usr/sbin/apache2 -k start
toyo      1459     1  0 14:20 pts/0    00:00:01 rmiregistry
toyo      1461  1459  0 14:20 pts/0    00:00:00 rmiregistry
toyo      1462  1461  0 14:20 pts/0    00:00:02 rmiregistry
toyo      1464  1461  0 14:20 pts/0    00:00:00 rmiregistry
toyo      1465  1461  0 14:20 pts/0    00:00:00 rmiregistry
toyo      1469  1461  0 14:20 pts/0    00:00:00 rmiregistry
toyo      1470  1461  0 14:20 pts/0    00:00:00 rmiregistry
toyo      1471  1461  0 14:20 pts/0    00:00:00 rmiregistry
toyo      1472  1461  0 14:20 pts/0    00:00:00 rmiregistry
toyo      1479  1461  0 14:21 pts/0    00:00:00 rmiregistry
toyo      1480  1461  0 14:21 pts/0    00:00:00 rmiregistry
toyo      1486  1461  0 14:21 pts/0    00:00:00 rmiregistry
toyo      1487  1461  0 14:21 pts/0    00:00:00 rmiregistry
www-data  1492  1450  0 14:22 ?        00:00:00 /usr/sbin/apache2 -k start
www-data  1493  1450  0 14:22 ?        00:00:00 /usr/sbin/apache2 -k start
www-data  1495  1450  0 14:22 ?        00:00:00 /usr/sbin/apache2 -k start
www-data  1496  1450  0 14:22 ?        00:00:00 /usr/sbin/apache2 -k start
www-data  1497  1450  0 14:22 ?        00:00:00 /usr/sbin/apache2 -k start
toyo      1514  1327  0 14:44 pts/0    00:00:00 ps -ef
toyo@onlsbc1:~/public_html/Web$
toyo@onlsbc1:~/public_html/Web$ kill -KILL 1459
toyo@onlsbc1:~/public_html/Web$

onlsbc1:/home/toyo/public_html/Web# /usr/sbin/apache2ctl stop
onlsbc1:/home/toyo/public_html/Web#
onlsbc1:/home/toyo/public_html/Web# ps -ef
UID        PID  PPID  C STIME TTY          TIME CMD
root         1     0  0 Sep14 ?        00:00:00 init [2]
root         2     1  0 Sep14 ?        00:00:00 [keventd]
root         3     1  0 Sep14 ?        00:00:00 [ksoftirqd_CPU0]
root         4     1  0 Sep14 ?        00:00:00 [kswapd]
root         5     1  0 Sep14 ?        00:00:00 [bdflush]
root         6     1  0 Sep14 ?        00:00:00 [kupdated]
root       279     1  0 Sep14 ?        00:00:00 [khubd]
daemon     567     1  0 Sep14 ?        00:00:00 /sbin/portmap
root       636     1  0 Sep14 ?        00:00:00 /sbin/syslogd
root       639     1  0 Sep14 ?        00:00:00 /sbin/klogd
root       649     1  0 Sep14 ?        00:00:00 /usr/sbin/inetd
root       656     1  0 Sep14 ?        00:00:02 /usr/sbin/sshd
root       661     1  0 Sep14 ?        00:00:00 /sbin/rpc.statd
root       665     1  0 Sep14 ?        00:00:00 /usr/sbin/cron
root       673     1  0 Sep14 tty1     00:00:00 /sbin/getty 38400 tty1
root       674     1  0 Sep14 tty2     00:00:00 /sbin/getty 38400 tty2
root       675     1  0 Sep14 tty3     00:00:00 /sbin/getty 38400 tty3
root       676     1  0 Sep14 tty4     00:00:00 /sbin/getty 38400 tty4
root       677     1  0 Sep14 tty5     00:00:00 /sbin/getty 38400 tty5
root       678     1  0 Sep14 tty6     00:00:00 /sbin/getty 38400 tty6
root      1323   656  0 13:46 ?        00:00:00 sshd: toyo [priv]
toyo      1326  1323  0 13:46 ?        00:00:00 sshd: toyo@pts/0
toyo      1327  1326  0 13:46 pts/0    00:00:00 -bash
root      1516  1327  0 14:46 pts/0    00:00:00 bash
root      1531  1516  0 14:47 pts/0    00:00:00 ps -ef
onlsbc1:/home/toyo/public_html/Web#

	参考.
	 ノン・コールバック版 web3 のキットは、w.c も含めてキットを作り直して
	  onlineグループのWebサーバにアップロードした。

toyo@onlsbc1:~$ pwd
/home/toyo
toyo@onlsbc1:~$ tar cf Web-Sep152004.tar public_html
toyo@onlsbc1:~$ gzip Web-Sep152004.tar
toyo@onlsbc1:~$ ls -l
total 48
-rw-r--r--  1 toyo toyo 43466 Sep 15 14:52 Web-Sep152004.tar.gz
drwxr-xr-x  2 toyo toyo  1024 Sep 13 16:29 camac
drwxr-xr-x  2 toyo toyo  1024 Aug 25  2003 check
drwxr-xr-x  3 toyo toyo  1024 Sep 15 14:04 public_html
drwxr-xr-x  2 toyo toyo  1024 Sep 13 16:41 remote-camac
toyo@onlsbc1:~$
toyo@onlsbc1:~$ scp Web-Sep152004.tar.gz inoue@onlgw:/home/inoue/public_html/Par
allel-CAMAC/kits
inoue@onlgw's password:
Web-Sep152004.tar.gz                          100%   42KB  42.5KB/s   00:00
toyo@onlsbc1:~$


 (5). USBストレージの動作チェック

	64MB の USBスティックメモリ、および 30GB の USBハードディスクをつないで
	みる。 これらのメディアは前もって、fdisk、mke2fs のコマンドを使って、
	パーティショニング、ファイルシステム作成がされているものを使用している。

onlsbc1:/home/toyo# fdisk /dev/sda

Command (m for help): p

Disk /dev/sda: 65 MB, 65536000 bytes
3 heads, 42 sectors/track, 1015 cylinders
Units = cylinders of 126 * 512 = 64512 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1        1015       63924   83  Linux

Command (m for help): q

onlsbc1:/home/toyo# 

        64MB の USBスティックメモリは、Disk /dev/sda として認識されている。
        マウントして利用することができるか試してみる。

        <<< 64MB の USBスティックメモリの使用 >>>

onlsbc1:/home/toyo# df -k
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/hdc1               938008    618213    269750  70% /
tmpfs                   152828         0    152828   0% /dev/shm
onlsbc1:/home/toyo# 
onlsbc1:/home/toyo# mount -t ext3 /dev/sda1 /mnt
onlsbc1:/home/toyo# df -k
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/hdc1               938008    618394    269569  70% /
tmpfs                   152828         0    152828   0% /dev/shm
/dev/sda1                61897      4127     54574   8% /mnt
onlsbc1:/home/toyo#
onlsbc1:/home/toyo# ls -l /mnt
total 12
drwx------  2 root root 12288 Sep 15 15:27 lost+found
onlsbc1:/home/toyo#
onlsbc1:/home/toyo# vi /mnt/testfile
testung
~
~
~
/mnt/testfile: new file: 1 lines, 8 characters
onlsbc1:/home/toyo#
onlsbc1:/home/toyo# ls -l /mnt
total 13
drwx------  2 root root 12288 Sep 15 15:27 lost+found
-rw-r--r--  1 root root     8 Sep 15 15:37 testfile
onlsbc1:/home/toyo#
onlsbc1:/home/toyo# cat /mnt/testfile
testung
onlsbc1:/home/toyo# rm -rf /mnt/testfile
onlsbc1:/home/toyo# ls -l /mnt
total 12
drwx------  2 root root 12288 Sep 15 15:27 lost+found
onlsbc1:/home/toyo# umount /mnt
onlsbc1:/home/toyo# df -k
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/hdc1               938008    618394    269569  70% /
tmpfs                   152828         0    152828   0% /dev/shm
onlsbc1:/home/toyo#

onlsbc1:/home/toyo# dmesg
Linux version 2.4.25-1-386 (herbert@gondolin) (gcc version 3.3.3 (Debian 2004040
1)) #2 Wed Apr 14 19:38:08 EST 2004
BIOS-provided physical RAM map:
		:
		:
SCSI subsystem driver Revision: 1.00
Initializing USB Mass Storage driver...
usb.c: registered new driver usb-storage
scsi0 : SCSI emulation for USB Mass Storage devices
  Vendor: USB       Model: Flash Memory:     Rev: PROL
  Type:   Direct-Access                      ANSI SCSI revision: 02
WARNING: USB Mass Storage data integrity not assured
USB Mass Storage device found at 4
USB Mass Storage support registered.
Attached scsi removable disk sda at scsi0, channel 0, id 0, lun 0
SCSI device sda: 128000 512-byte hdwr sectors (66 MB)
sda: Write Protect is off
 /dev/scsi/host0/bus0/target0/lun0: p1
Journalled Block Device driver loaded
kjournald starting.  Commit interval 5 seconds
EXT3 FS 2.4-0.9.19, 19 August 2002 on sd(8,1), internal journal
EXT3-fs: mounted filesystem with ordered data mode.
onlsbc1:/home/toyo# df -k

	ok.  64MB の USBスティックメモリへの読み書きは正常に実行できた。

	<<< 30GB の USBハードディスクの使用 >>>

onlsbc1:/home/toyo# dmesg
Linux version 2.4.25-1-386 (herbert@gondolin) (gcc version 3.3.3 (Debian 2004040
1)) #2 Wed Apr 14 19:38:08 EST 2004
BIOS-provided physical RAM map:
		:
		:
hub.c: new USB device 00:07.2-2, assigned address 5
usb-uhci.c: interrupt, status 2, frame# 256
usb_control/bulk_msg: timeout
scsi1 : SCSI emulation for USB Mass Storage devices
  Vendor: IC25N030  Model: ATCS04-0          Rev:  0 0
  Type:   Direct-Access                      ANSI SCSI revision: 02
Attached scsi disk sdb at scsi1, channel 0, id 0, lun 0
SCSI device sdb: 58605120 512-byte hdwr sectors (30006 MB)
 /dev/scsi/host1/bus0/target0/lun0: p1 p2 < p5 > p3 p4
WARNING: USB Mass Storage data integrity not assured
USB Mass Storage device found at 5
onlsbc1:/home/toyo#

onlsbc1:/home/toyo# fdisk /dev/sdb

The number of cylinders for this disk is set to 3648.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
   (e.g., DOS FDISK, OS/2 FDISK)

Command (m for help): p

Disk /dev/sdb: 30.0 GB, 30005821440 bytes
255 heads, 63 sectors/track, 3648 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1         638     5124703+  83  Linux
/dev/sdb2             639        1913    10241437+   f  W95 Ext'd (LBA)
/dev/sdb3            1914        3130     9775552+  83  Linux
/dev/sdb4            3131        3648     4160835   82  Linux swap
/dev/sdb5             639        1913    10241406    b  W95 FAT32

Command (m for help): q

onlsbc1:/home/toyo#

onlsbc1:/home/toyo# mount /dev/sdb1 /mnt
onlsbc1:/home/toyo# df -k
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/hdc1               938008    618404    269559  70% /
tmpfs                   152828         0    152828   0% /dev/shm
/dev/sdb1              5044156   4468532    319392  94% /mnt
onlsbc1:/home/toyo# ls -l /mnt
total 140464
-rwx--x--x  1 root root      1488 Jun  3  2003 1simple.custom.knx-cdcust.sh
-rwx--x--x  1 root root      1378 Jun  3  2003 3mini.custom.knx-cdcust.sh
-rwx--x--x  1 root root       877 Jun  3  2003 4opera.custom.knx-cdcust.sh
-rwx--x--x  1 root root       228 Jun  3  2003 auto.knx-cdcust.sh
-rw-r--r--  1 toyo toyo 143602724 Oct 17  2003 compact-debian-oct162003.tar.gz
-rwx--x--x  1 root root     23550 Jun  3  2003 custom.knx-cdcust.sh
drwxr-xr-x  4 root root      4096 Jun  3  2003 knx-cdcust
-rwxr--r--  1 root root     18496 Jun  2  2003 knx-cdcust.sh
drwx------  2 root root     16384 Jun  2  2003 lost+found
onlsbc1:/home/toyo#
onlsbc1:/home/toyo# vi /mnt/testfile
testing 2
~
~
~
/mnt/testfile: new file: 1 lines, 10 characters
onlsbc1:/home/toyo# ls -l /mnt
total 140468
-rwx--x--x  1 root root      1488 Jun  3  2003 1simple.custom.knx-cdcust.sh
-rwx--x--x  1 root root      1378 Jun  3  2003 3mini.custom.knx-cdcust.sh
-rwx--x--x  1 root root       877 Jun  3  2003 4opera.custom.knx-cdcust.sh
-rwx--x--x  1 root root       228 Jun  3  2003 auto.knx-cdcust.sh
-rw-r--r--  1 toyo toyo 143602724 Oct 17  2003 compact-debian-oct162003.tar.gz
-rwx--x--x  1 root root     23550 Jun  3  2003 custom.knx-cdcust.sh
drwxr-xr-x  4 root root      4096 Jun  3  2003 knx-cdcust
-rwxr--r--  1 root root     18496 Jun  2  2003 knx-cdcust.sh
drwx------  2 root root     16384 Jun  2  2003 lost+found
-rw-r--r--  1 root root        10 Sep 15 16:15 testfile
onlsbc1:/home/toyo#
onlsbc1:/home/toyo# cat /mnt/testfile
testing 2
onlsbc1:/home/toyo#
onlsbc1:/home/toyo# rm /mnt/testfile
onlsbc1:/home/toyo# ls -l /mnt
total 140464
-rwx--x--x  1 root root      1488 Jun  3  2003 1simple.custom.knx-cdcust.sh
-rwx--x--x  1 root root      1378 Jun  3  2003 3mini.custom.knx-cdcust.sh
-rwx--x--x  1 root root       877 Jun  3  2003 4opera.custom.knx-cdcust.sh
-rwx--x--x  1 root root       228 Jun  3  2003 auto.knx-cdcust.sh
-rw-r--r--  1 toyo toyo 143602724 Oct 17  2003 compact-debian-oct162003.tar.gz
-rwx--x--x  1 root root     23550 Jun  3  2003 custom.knx-cdcust.sh
drwxr-xr-x  4 root root      4096 Jun  3  2003 knx-cdcust
-rwxr--r--  1 root root     18496 Jun  2  2003 knx-cdcust.sh
drwx------  2 root root     16384 Jun  2  2003 lost+found
onlsbc1:/home/toyo#
onlsbc1:/home/toyo# umount /mnt
onlsbc1:/home/toyo# df -k
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/hdc1               938008    618404    269559  70% /
tmpfs                   152828         0    152828   0% /dev/shm
onlsbc1:/home/toyo#

	ok.  30GB の USBハードディスクへの読み書きは正常に実行できた。
	USBスティックメモリでも、USBハードディスクでも正常に使用できるのを確認
	できた。

注.
USBハードディスクの電源の供給は、CC/NET の USB コネクタから摂るの を予定すべきではない。 外部電源供給型のミニハブや外部電源供給型の USBハードディスクを使用すべきである。 そうしないと、CAMAC バック プレーンからCC/NET への許される電力供給限度を超えてしまう可能性が ある。
(6). RAMディスク化 RAMディスク化の処理をした後のルートファイルシステムの構成は、以下の図の ようにする。 リブートする。 onlsbc1:/# reboot Broadcast message from root (pts/0) (Fri Sep 17 15:58:21 2004): The system is going down for reboot NOW! : : onlsun4[38]% !! ssh toyo@onlsbc1 Password: Linux onlsbc1 2.4.25-1-386 #2 Wed Apr 14 19:38:08 EST 2004 i686 GNU/Linux The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Fri Sep 17 14:42:03 2004 from onlsun4.kek.jp toyo@onlsbc1:~$ toyo@onlsbc1:~$ ls -l / total 56 drwxr-xr-x 2 root root 2048 Sep 9 20:00 bin drwxr-xr-x 3 root root 1024 Sep 9 20:01 boot drwxr-xr-x 11 root root 21504 Sep 17 16:01 dev drwxr-xr-x 52 root root 3072 Sep 17 16:01 etc drwxrwsr-x 3 root staff 1024 Sep 9 13:52 home drwxr-xr-x 2 root root 1024 Sep 9 19:38 initrd lrwxrwxrwx 1 root root 28 Sep 9 19:56 initrd.img -> boot/initrd.img-2.4.2 5-1-386 drwxr-xr-x 9 root root 4096 Sep 10 09:19 lib drwxr-xr-x 2 root root 12288 Sep 9 19:34 lost+found drwxr-xr-x 3 root root 1024 Sep 9 19:35 media drwxr-xr-x 2 root root 1024 Jul 27 03:27 mnt drwxr-xr-x 2 root root 1024 Sep 9 19:38 opt dr-xr-xr-x 35 root root 0 Sep 18 2004 proc drwxr-xr-x 5 root root 1024 Sep 17 16:00 ramfs drwxr-xr-x 4 root root 1024 Sep 15 13:32 root drwxr-xr-x 2 root root 2048 Sep 10 09:47 sbin drwxr-xr-x 2 root root 1024 Sep 9 19:38 srv drwxr-xr-x 2 root root 1024 May 26 03:40 sys lrwxrwxrwx 1 root root 9 Sep 16 16:06 tmp -> ramfs/tmp drwxr-xr-x 12 root root 1024 Sep 15 13:36 usr lrwxrwxrwx 1 root root 9 Sep 16 16:06 var -> ramfs/var lrwxrwxrwx 1 root root 25 Sep 9 19:56 vmlinuz -> boot/vmlinuz-2.4.25-1-38 6 toyo@onlsbc1:~$ toyo@onlsbc1:~$ df -k Filesystem 1K-blocks Used Available Use% Mounted on /dev/hdc1 938008 568501 319462 65% / tmpfs 152828 0 152828 0% /dev/shm toyo@onlsbc1:~$ toyo@onlsbc1:~$ ls -l /ramfs total 14 drwx------ 2 root root 12288 Sep 17 16:00 lost+found drwxrwxrwt 2 root root 1024 Sep 17 16:01 tmp drwxr-xr-x 15 root root 1024 Sep 9 14:09 var toyo@onlsbc1:~$ toyo@onlsbc1:~$ date Fri Sep 17 16:04:28 JST 2004 toyo@onlsbc1:~$ toyo@onlsbc1:~$ ls -lL /var total 13 drwxr-xr-x 2 root root 1024 Sep 14 06:26 backups drwxr-xr-x 8 root root 1024 Sep 9 14:09 cache drwxr-xr-x 14 root root 1024 Sep 10 09:47 lib drwxrwsr-x 2 root staff 1024 Jul 27 03:27 local drwxrwxrwt 3 root root 1024 Sep 17 16:01 lock drwxr-xr-x 6 root root 1024 Sep 16 06:25 log drwxrwsr-x 2 root mail 1024 Sep 9 19:58 mail drwxr-xr-x 2 root root 1024 Sep 9 19:38 opt drwxr-xr-x 7 root root 1024 Sep 17 16:01 run drwxr-xr-x 4 root root 1024 Sep 9 19:53 spool drwxr-xr-x 3 root root 1024 Sep 9 19:59 state drwxrwxrwt 3 root root 1024 Sep 10 10:50 tmp drwxr-xr-x 3 root root 1024 Sep 13 13:20 www toyo@onlsbc1:~$ ok. シャットダウン時の /ramfs のアンマウントは正常に実行された。 さら に、ブートアップ時に/ramfs は新たに作り直されており、先ほど試しに作成し ておいた /ramfs/var/testファイルは残されていない。 GRUB のタイムアウト時間を変更 onlsbc1:/boot/grub# vi menu.lst : ## timeout sec # Set a timeout, in SEC seconds, before automatically booting the default entry # (normally the first entry defined). #timeout 5 timeout 0 : menu.lst: 106 lines, 3106 characters onlsbc1:/boot/grub# システムをリブートして動作を確認する。 onlsbc1:/boot/grub# reboot Broadcast message from root (pts/0) (Fri Sep 17 16:17:29 2004): The system is going down for reboot NOW! : : onlsun4[39]% !! ssh toyo@onlsbc1 Password: Linux onlsbc1 2.4.25-1-386 #2 Wed Apr 14 19:38:08 EST 2004 i686 GNU/Linux The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Fri Sep 17 14:42:03 2004 from onlsun4.kek.jp toyo@onlsbc1:~$ ok. 設定どうりにタイムアウト時間は 0 で起動できた。 これでコンパクトフラッシュ上でのRAMディスク化の作業は完了。 (7). コンパクトフラッシュの復旧 USB-コンパクトフラッシュアダプターに 1GBのコンパクトフラッシュメディアを セットして、Linuxが起動しているマシンのUSBポートに接続する。 ・ fdisk を実行。 ・ ext3 ファイルシステムを作成する。  onlsbc1:/# mount -t ext3 /dev/sda1 /mnt1 onlsbc1:/# onlsbc1:/# df -k Filesystem 1K-blocks Used Available Use% Mounted on /dev/hda1 918322 699493 169833 81% / tmpfs 152824 0 152824 0% /dev/shm /dev/hdc1 938008 568689 319274 65% /mnt onlpara:/home2/onlpara-wrk 22659864 6122376 15386432 29% /mnt2 /dev/sda1 985160 16428 918688 2% /mnt1 onlsbc1:/# onlsbc1:/# cd /mnt1 onlsbc1:/mnt1# ls -l total 16 drwx------ 2 root root 16384 Sep 21 16:16 lost+found onlsbc1:/mnt1# onlsbc1:/mnt1# ls -l /mnt2/root/com* : : -rw-r--r-- 1 nobody nogroup 196485325 Sep 21 10:50 /mnt2/root/compact-debi an-Sep212004.tar.gz : : onlsbc1:/mnt1# コンパクトフラッシュ上にファイルを展開し、さらにファイルシステムラベルを 変更。 onlsbc1:/mnt1# ls -l total 104 drwxr-xr-x 2 root root 4096 Sep 9 20:00 bin drwxr-xr-x 3 root root 4096 Sep 21 10:41 boot drwxr-xr-x 11 root root 24576 Sep 17 16:41 dev drwxr-xr-x 52 root root 4096 Sep 17 16:41 etc drwxrwsr-x 3 root staff 4096 Sep 9 13:52 home drwxr-xr-x 2 root root 4096 Sep 9 19:38 initrd lrwxrwxrwx 1 root root 28 Sep 21 16:45 initrd.img -> boot/initr d.img-2.4.25-1-386 drwxr-xr-x 9 root root 4096 Sep 10 09:19 lib drwxr-xr-x 2 root root 16384 Sep 9 19:34 lost+found drwxr-xr-x 3 root root 4096 Sep 9 19:35 media drwxr-xr-x 2 root root 4096 Jul 27 03:27 mnt drwxr-xr-x 2 root root 4096 Sep 9 19:38 opt drwxr-xr-x 2 root root 4096 Jul 27 03:27 proc drwxr-xr-x 4 root root 4096 Sep 16 16:05 ramfs drwxr-xr-x 4 root root 4096 Sep 15 13:32 root drwxr-xr-x 2 root root 4096 Sep 10 09:47 sbin drwxr-xr-x 2 root root 4096 Sep 9 19:38 srv drwxr-xr-x 2 root root 4096 May 26 03:40 sys lrwxrwxrwx 1 root root 9 Sep 21 16:24 tmp -> ramfs/tmp drwxr-xr-x 12 root root 4096 Sep 15 13:36 usr lrwxrwxrwx 1 root root 9 Sep 21 16:45 var -> ramfs/var lrwxrwxrwx 1 root root 25 Sep 21 16:45 vmlinuz -> boot/vmlinuz- 2.4.25-1-386 onlsbc1:/mnt1# コンパクトフラッシュのブートブロックにブートローダを設定。 onlsbc1:/mnt1# cd / onlsbc1:/# umount /mnt1 onlsbc1:/# これで 1GBコンパクトフラッシュ上に、CC/NET用のコンパクトフラッシュLinux システム、Debian GNU/Linux 3.1 (Sarge) を復旧できた。 (8). 復旧したコンパクトフラッシュの起動 復旧したコンパクトフラッシュをCC/NETに装着。 これまでのシステム構築の 補助に使用してきた2.5"IDEハードディスクははずしておく。 その後、電源を オンする。 GRUBはタイムアウト時間 0 で実行できた。 システムアップの処理は正常に 実行されてシステムは立ち上がった。 onlsun4[35]% ssh toyo@onlsbc1 Password: Linux onlsbc1 2.4.25-1-386 #2 Wed Apr 14 19:38:08 EST 2004 i686 GNU/Linux The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Fri Sep 17 14:42:03 2004 from onlsun4.kek.jp toyo@onlsbc1:~$ onlsbc1:/home/toyo# lsmod Module Size Used by Tainted: P usb-storage 58464 0 (unused) scsi_mod 85312 1 [usb-storage] pcc 7292 0 (unused) mousedev 3732 0 (unused) hid 18532 0 (unused) input 3040 0 [mousedev hid] e100 42056 1 usb-uhci 19632 0 (unused) usbcore 52908 1 [usb-storage hid usb-uhci] parport_pc 19400 0 parport 21736 0 [parport_pc] ide-cd 27936 0 cdrom 25056 0 [ide-cd] rtc 6280 0 (autoclean) ide-detect 288 0 (autoclean) (unused) via82cxxx 9416 1 (autoclean) ide-disk 12512 1 (autoclean) ide-core 94108 1 (autoclean) [usb-storage ide-cd ide-detect via 82cxxx ide-disk] unix 13260 6 (autoclean) onlsbc1:/home/toyo# camacドライバは正常にロードされている。 CC/NETのフロントパネルのLEDも 正常に点燈している。   "CPU" LED --- 点燈   "INH" LED --- 点燈 onlsbc1:/home/toyo# dmesg Linux version 2.4.25-1-386 (herbert@gondolin) (gcc version 3.3.3 (Debian 2004040 1)) #2 Wed Apr 14 19:38:08 EST 2004 BIOS-provided physical RAM map: : : PCI: Found IRQ 5 for device 00:09.0 init_module:IO_BASE = e800 init_module:irq number of PCC = 5 PCC has been installed. hub.c: new USB device 00:07.2-2, assigned address 3 usb.c: USB device 3 (vend/prod 0x411/0x36) is not claimed by any active driver. SCSI subsystem driver Revision: 1.00 Initializing USB Mass Storage driver... usb.c: registered new driver usb-storage scsi0 : SCSI emulation for USB Mass Storage devices usb-uhci.c: interrupt, status 3, frame# 1365 Vendor: BUFFALO Model: MCR-CF/U2 Rev: Type: Direct-Access ANSI SCSI revision: 02 WARNING: USB Mass Storage data integrity not assured USB Mass Storage device found at 3 USB Mass Storage support registered. usb.c: USB disconnect on device 00:07.2-2 address 3 onlsbc1:/home/toyo# USBデバイスを抜き差ししてみた。 ok. 正常に動作している。 ---xxxx