Sep 6, 2004
onlsbc1, Debian Sarge のインストール
--- Sarge インストール #1
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
(http://www-online.kek.jp/~inoue/para-CAMAC/
Work/SBC-Linux42.html)
高エネルギー加速器研究機構
素粒子原子核研究所
物理、オンライングループ
井上 栄二
目的
現在のところ利用できる、CC/NET用コンパクトフラッシュLinuxシステムは
Debian GNU/Linux 3.0 の stableパッケージ(Woody)のF2.4フレーバーのみ
である。 このパッケージは安定性を最重視したために、全体的に古いバー
ジョンのソフトウェアでシステムが構築されている。 ここでは、新しい
バージョンのソフトウェアが取り込まれている Testingパッケージ(Sarge)
を、2.5"IDEハードディスク上に構築する。 これをベースして、次の
ステップで行う予定の、CC/NET用コンパクトフラッシュLinuxシステム構築
の足がかりにする。
項目
(1). Sarge のインストール
(2). カーネルソース、Apache、Java のインストール
(3). CC/NETソフトウェアのインストール
(4). CC/NETソフトウェアの実行
(5). USBストレージの動作チェック
(6). RAMディスク化
--------------------------------------------------------------------
(1). Sarge のインストール
onlsbc1:/home/inoue# 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.53 Add and remove users and groups
ii apt 0.5.25 Advanced front-end for dpkg
ii apt-utils 0.5.25 APT utility programs
ii aptitude 0.2.14-3 curses-based apt frontend
ii at 3.1.8-11 Delayed job execution and batch processing
ii base-config 2.25 Debian base system configurator
ii base-files 3.0.15 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 bc 1.06-15 The GNU bc arbitrary precision calculator la
ii bin86 0.16.14-1 16-bit assembler and loader
ii bind9-host 9.2.3+9.2.4-rc Version of 'host' bundled with BIND 9.X
ii binutils 2.14.90.0.7-8 The GNU assembler, linker and binary utiliti
ii bison 1.875a-1.1 A parser generator that is compatible with Y
ii bsdmainutils 6.0.14 collection of more utilities from FreeBSD
ii bsdutils 2.12-3 Basic utilities from 4.4BSD-Lite
ii console-common 0.7.43 Basic infrastructure for text console config
ii console-data 2002.12.04dbs- Keymaps, fonts, charset maps, fallback table
ii console-tools 0.2.3dbs-52 Linux console and font utilities
ii coreutils 5.0.91-2 The GNU core utilities
ii cpio 2.5-1.1 GNU cpio -- a program to manage archives of
ii cpp 3.3.3-2 The GNU C preprocessor (cpp)
ii cpp-3.3 3.3.3-9 The GNU C preprocessor
ii cramfsprogs 1.1-5 Tools for CramFs (Compressed ROM File System
ii cron 3.0pl1-83 management of regular background processing
ii dash 0.4.26 The Debian Almquist Shell
ii dc 1.06-15 The GNU dc arbitrary precision reverse-polis
ii debconf 1.4.25 Debian configuration management system
ii debconf-i18n 1.4.25 full internationalization support for debcon
ii debianutils 2.8.2 Miscellaneous utilities specific to Debian
ii dhcp-client 2.0pl5-19 DHCP Client
ii dictionaries-c 0.22.24 Common utilities for spelling dictionary too
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-3 Data lists for Discover hardware detection s
rc discover1 1.5-9 hardware identification system
ii dnsutils 9.2.3+9.2.4-rc Clients provided with BIND
ii doc-debian 3.0.2 Debian Project documentation, Debian FAQ and
ii doc-linux-text 2004.04-1 Linux HOWTOs and FAQs in ASCII format
ii dpkg 1.10.21 Package maintenance system for Debian
ii dpkg-dev 1.10.21 Package building tools for Debian
ii dselect 1.10.21 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
ii exim4 4.32-2 An MTA (Mail Transport Agent)
ii exim4-base 4.32-2 EXperimental Internal Mailer -- a Mail Trans
ii exim4-config 4.32-2 Debian configuration for exim4
ii exim4-daemon-l 4.32-2 Lightweight version of the Exim (v4) MTA
ii fdutils 5.4-20030718-3 Linux floppy utilities
ii file 4.07-2 Determines file type using "magic" numbers
ii findutils 4.1.20-3 utilities for finding files--find, xargs, an
ii finger 0.17-6 User information lookup program.
ii flex 2.5.31-24 A fast lexical analyzer generator.
ii ftp 0.17-12 The FTP client.
ii g++ 3.3.3-2 The GNU C++ compiler
ii g++-3.3 3.3.3-9 The GNU C++ compiler
ii gcc 3.3.3-2 The GNU C compiler
ii gcc-3.3 3.3.3-9 The GNU C compiler
ii gcc-3.3-base 3.3.3-9 The GNU Compiler Collection (base package)
ii gdb 6.1-2 The GNU Debugger
ii gettext-base 0.14.1-2 GNU Internationalization utilities for the b
ii gnu-efi 3.0a-4 Library for developing EFI applications
ii gnupg 1.2.4-4 GNU privacy guard - a free PGP replacement
ii grep 2.5.1.ds1-2 GNU grep, egrep and fgrep
ii groff-base 1.18.1-15 GNU troff text-formatting system (base syste
ii grub 0.94+cvs200405 GRand Unified Bootloader
ii gzip 1.3.5-8 The GNU compression utility
ii hostname 2.13 A utility to set/show the host name or domai
ii hotplug 0.0.20040329-8 Linux Hotplug Scripts
ii iamerican 3.1.20.0-4 An American English dictionary for ispell
ii ibritish 3.1.20.0-4 A British English dictionary for ispell
ii ifupdown 0.6.4-4.8 High level tools to configure network interf
ii info 4.6-1 Standalone GNU Info documentation browser
ii initrd-tools 0.1.69 tools to create initrd image for prepackaged
ii initscripts 2.85-15 Standard scripts needed for booting and shut
ii ipchains 1.3.10-15 Network firewalling for Linux 2.2.x
ii ipmasqadm 0.4.2-2 Utility for configuring extra masquerading f
ii iptables 1.2.9-9 Linux kernel 2.4+ iptables administration to
ii iputils-ping 20020927-2 Tools to test the reachability of network ho
ii ispell 3.1.20.0-4 International Ispell (an interactive spellin
ii kernel-image-2 2.4.26-2 Linux kernel image for version 2.4 on 386.
ii kernel-image-2 2.4.26-2 Linux kernel image for version 2.4.26 on 386
ii klogd 1.4.1-10 Kernel Logging Daemon
ii less 381-3 Pager program similar to more
ii libacl1 2.2.23-1 Access control list shared library
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-12 GNU C Library: Shared libraries and Timezone
ii libc6-dev 2.3.2.ds1-12 GNU C Library: Development Libraries and Hea
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-52 Shared libraries for Linux console and font
ii libcurl2 7.11.2-1 Multi-protocol file transfer library, now wi
ii libdb1-compat 2.1.3-7 The Berkeley database routines [glibc 2.0/2.
ii libdb2 2.7.7.0-8.1 The Berkeley database routines (run-time fil
ii libdb3 3.2.9-20 Berkeley v3 Database Libraries [runtime]
ii libdb4.0 4.0.14-1.4 Berkeley v4.0 Database Libraries [runtime]
ii libdb4.1 4.1.25-17 Berkeley v4.1 Database Libraries [runtime]
ii libdb4.2 4.2.52-16 Berkeley v4.2 Database Libraries [runtime]
ii libdiscover1 1.5-9 hardware identification library
ii libdiscover2 2.0.4-5 hardware identification library
ii libdns11 9.2.3+9.2.4-rc DNS Shared Library used by BIND
ii libdns5 9.2.1-2.woody. DNS Shared Library used by BIND
ii libexpat1 1.95.6-8 XML parsing C library - runtime library
ii libgc1 6.2+6.3alpha4- Conservative garbage collector for C and C++
ii libgcc1 3.3.3-9 GCC support library
ii libgcrypt1 1.1.12-4 LGPL Crypto library - runtime library
ii libgcrypt7 1.1.90-1.1 LGPL Crypto library - runtime library
ii libgdbm3 1.8.3-2 GNU dbm database routines (runtime version)
ii libgnutls10 1.0.4-3 GNU TLS library - runtime library
ii libgnutls5 0.8.8-2 GNU TLS library - runtime library
ii libgnutls7 0.8.12-5 GNU TLS library - runtime library
ii libgpg-error0 0.7-1 library for common error values and messages
ii libgpmg1 1.19.6-12.1 General Purpose Mouse Library [libc6]
ii libident 0.22-2.2 simple RFC1413 client library - runtime
ii libidn11 0.4.1-1 GNU libidn library, implementation of IETF I
ii libisc4 9.2.1-2.woody. ISC Shared Library used by BIND
ii libisc7 9.2.3+9.2.4-rc ISC Shared Library used by BIND
ii libldap2 2.1.23-1 OpenLDAP libraries
ii liblocale-gett 1.01-17 Using libc functions for internationalizatio
ii liblockfile1 1.05 NFS-safe locking library, includes dotlockfi
ii liblwres1 9.2.3+9.2.4-rc Lightweight Resolver Library used by BIND
ii liblzo1 1.08-1 A real-time data compression library
ii libmagic1 4.07-2 File type determination library using "magic
ii libmysqlclient 3.23.56-2 LGPL-licensed client library for MySQL datab
ii libncurses5 5.4-3 Shared libraries for terminal handling
ii libncursesw5 5.4-3 Shared libraries for terminal handling (wide
ii libnewt0.51 0.51.6-3 Not Erik's Windowing Toolkit - text mode win
ii libnss-db 2.2-6.2 DB Name Service Module
ii libopencdk4 0.4.2-3 Open Crypto Development Kit (OpenCDK) (runti
ii libopencdk8 0.5.3-1 Open Crypto Development Kit (OpenCDK) (runti
ii libpam-modules 0.76-21 Pluggable Authentication Modules for PAM
ii libpam-runtime 0.76-21 Runtime support for the PAM library
ii libpam0g 0.76-21 Pluggable Authentication Modules library
ii libpcap0.7 0.7.2-5 System interface for user-level packet captu
ii libpcre3 4.5-1.1 Perl 5 Compatible Regular Expression Library
ii libperl5.6 5.6.1-8.7 Shared Perl library.
ii libpopt0 1.7-4 lib for parsing cmdline parameters
ii libreadline4 4.3-10 GNU readline and history libraries, run-time
ii libsasl2 2.1.15-6 Authentication abstraction library
ii libsasl2-modul 2.1.15-6 Pluggable Authentication Modules for SASL
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-3 SSL shared libraries
ii libstdc++5 3.3.3-9 The GNU Standard C++ Library v3
ii libstdc++5-3.3 3.3.3-9 The GNU Standard C++ Library v3 (development
ii libtasn1-0 0.1.2-2 Manage ASN.1 structures (runtime)
ii libtasn1-2 0.2.7-2 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 libuuid1 1.35-6 Universally unique id library
ii libwrap0 7.6.dbs-4 Wietse Venema's TCP wrappers library
ii linux-kernel-h 2.5.999-test7- Linux Kernel Headers for development
ii locales 2.3.2.ds1-12 GNU C Library: National Language (locale) da
ii login 4.0.3-28.3 System login tools
ii logrotate 3.6.5-2 Log rotation utility
ii lpr 2000.05.07-6 BSD lpr/lpd line printer spooling system
ii lsof 4.71-1 List open files.
ii m4 1.4-17 a macro processing language
ii mailx 8.1.2-0.200405 A simple mail user agent
ii make 3.80-7 The GNU version of the "make" utility.
ii makedev 2.3.1-70 Creates device files in /dev
ii man-db 2.4.2-16 The on-line manual pager
ii manpages 1.67-1 Manual pages about using a GNU/Linux system
ii manpages-dev 1.67-1 Manual pages about using GNU/Linux for devel
ii mawk 1.3.3-11 a pattern scanning and text processing langu
ii mime-support 3.26-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 mpack 1.6-1 tools for encoding/decoding MIME messages
ii mtools 3.9.9-2 Tools for manipulating MSDOS files
ii mtr-tiny 0.54-1 Full screen ncurses traceroute tool
ii mutt 1.5.5.1-200401 Text-based mailreader supporting MIME, GPG,
ii mysql-common 4.0.18-5 mysql database common files (e.g. /etc/mysql
ii nano 1.2.3-1 free Pico clone with some new features
ii ncurses-base 5.4-3 Descriptions of common terminal types
ii ncurses-bin 5.4-3 Terminal-related programs and man pages
ii ncurses-term 5.4-3 Additional terminal type definitions
ii net-tools 1.60-10 The NET-3 networking toolkit
ii netbase 4.17 Basic TCP/IP networking system
ii netkit-inetd 0.10-9 The Internet Superserver
ii nfs-common 1.0.6-3 NFS support files common to client and serve
ii nvi 1.79-21 4.4BSD re-implementation of vi
ii passwd 4.0.3-28.3 Change and administer password and group dat
ii patch 2.5.9-1 Apply a diff file to an original
ii pciutils 2.1.11-8 Linux PCI Utilities (for 2.*.* kernels)
ii perl 5.8.3-3 Larry Wall's Practical Extraction and Report
ii perl-base 5.8.3-3 The Pathologically Eclectic Rubbish Lister.
ii perl-modules 5.8.3-3 Core Perl modules.
ii pidentd 3.0.16-5 TCP/IP IDENT protocol server with DES suppor
ii popularity-con 1.20 Vote for your favourite packages automatical
ii portmap 5-3 The RPC portmapper
ii ppp 2.4.2+20040202 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.1 configures PPPoE/ADSL connections
ii procmail 3.22-9 Versatile e-mail processor
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.3-7 An interactive high-level object-oriented la
ii python-newt 0.51.6-3 A NEWT module for Python
ii python2.3 2.3.4-1 An interactive high-level object-oriented la
ii rcs 5.7-13.1 The GNU Revision Control System
ii reportbug 2.60 Reports bugs in the Debian distribution
ii sed 4.0.9-3 The GNU sed stream editor
ii setserial 2.17-36 Controls configuration of serial ports
ii sharutils 4.2.1-10 shar, unshar, uuencode, uudecode
ii slang1 1.4.9-2 The S-Lang programming library - runtime ver
ii slang1a-utf8 1.4.9-2 The S-Lang programming library with utf8 sup
ii ssh 3.8p1-3 Secure rlogin/rsh/rcp replacement (OpenSSH)
ii strace 4.5.3-1 A system call tracer
ii sysklogd 1.4.1-10 System Logging Daemon
ii sysv-rc 2.85-15 Standard boot mechanism using symlinks in /e
ii sysvinit 2.85-15 System-V like init
ii tar 1.13.93-4 GNU tar
ii tasksel 1.52 Tool for selecting tasks for installation on
ii tcpd 7.6.dbs-4 Wietse Venema's TCP wrapper utilities
ii tcsh 6.13.00-1 TENEX C Shell, an enhanced version of Berkel
ii telnet 0.17-24 The telnet client.
ii texinfo 4.6-1 Documentation system for on-line information
ii time 1.7-19 The GNU time program for measuring cpu resou
ii traceroute 1.4a12-15 Traces the route taken by packets over a TCP
ii util-linux 2.12-3 Miscellaneous system utilities
ii vacation 3.3.0 email autoresponder
ii w3m 0.5.1-1 WWW browsable pager with excellent tables/fr
ii wamerican 5-4 American English dictionary words for /usr/s
ii wget 1.9.1-4 retrieves files from the web
ii whiptail 0.51.6-3 Displays user-friendly dialog boxes from she
ii whois 4.6.15 The GNU whois client
ii zlib1g 1.2.1.1-3 compression library - runtime
onlsbc1:/home/inoue#
onlsbc1:/home/inoue# df -k
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/hda1 918322 311296 558030 36% /
tmpfs 152824 0 152824 0% /dev/shm
onlsbc1:/home/inoue#
onlsbc1:/home/inoue# cat /etc/mtab
/dev/hda1 / ext3 rw,errors=remount-ro 0 0
proc /proc proc rw 0 0
devpts /dev/pts devpts rw,gid=5,mode=620 0 0
tmpfs /dev/shm tmpfs rw 0 0
usbfs /proc/bus/usb usbfs rw 0 0
onlsbc1:/home/inoue#
onlsbc1:/home/inoue# uname -a
Linux onlsbc1 2.4.26-1-386 #2 Sat May 1 16:31:24 EST 2004 i686 GNU/Linux
onlsbc1:/home/inoue#
(2). カーネルソース、Apache、Java のインストール
onlsbc1:/usr/src# pwd
/usr/src
onlsbc1:/usr/src# ls -l
total 3
drwxr-xr-x 3 root root 1024 Jun 9 15:05 kernel-headers-2.4.26-1
drwxr-xr-x 2 root root 1024 Jun 9 15:35 kernel-headers-2.4.26-1-
386
drwxr-xr-x 15 root root 1024 Jun 9 15:35 kernel-source-2.4.26
lrwxrwxrwx 1 root src 20 Jun 9 14:59 linux -> kernel-source-2
.4.26
onlsbc1:/usr/src# ls -l kernel-source-2.4.26
total 845
-rw-r--r-- 1 root root 18691 Aug 3 2002 COPYING
-rw-r--r-- 1 root root 82315 Apr 14 22:05 CREDITS
-rw-r--r-- 1 root root 581653 Apr 17 16:41 ChangeLog
-rw-r--r-- 1 root root 46898 May 1 11:16 Debian.src.changelog
drwxr-xr-x 33 root root 3072 May 1 15:46 Documentation
-rw-r--r-- 1 root root 48295 Apr 17 13:23 MAINTAINERS
-rw-r--r-- 1 root root 19158 Apr 17 13:23 Makefile
-rw-r--r-- 1 root root 14287 Aug 30 2003 README
-rw-r--r-- 1 root root 9104 May 1 11:16 README.Debian
-rw-r--r-- 1 root root 2818 Jun 1 2003 REPORTING-BUGS
-rw-r--r-- 1 root root 9325 Feb 21 12:46 Rules.make
drwxr-xr-x 20 root root 1024 May 1 11:17 arch
drwxr-xr-x 2 root root 1024 May 1 11:17 crypto
drwxr-xr-x 40 root root 1024 May 1 11:19 drivers
drwxr-xr-x 48 root root 2048 May 1 11:19 fs
drwxr-xr-x 4 root root 1024 Jun 9 15:05 include
drwxr-xr-x 2 root root 1024 May 1 11:20 init
drwxr-xr-x 2 root root 1024 May 1 11:20 ipc
drwxr-xr-x 2 root root 1024 May 1 11:20 kernel
drwxr-xr-x 4 root root 1024 May 1 11:20 lib
drwxr-xr-x 2 root root 1024 May 1 11:20 mm
drwxr-xr-x 31 root root 1024 May 1 11:20 net
drwxr-xr-x 4 root root 1024 May 1 15:54 scripts
-rw-r--r-- 1 root root 9 May 1 15:46 version.Debian
onlsbc1:/usr/src#
onlsbc1:/usr# pwd
/usr
onlsbc1:/usr# ls -l sbin/ap*
-rwxr-xr-x 1 root root 282764 Mar 11 03:15 sbin/apache
lrwxrwxrwx 1 root root 14 Jun 9 15:52 sbin/apacheconfig -> mod
ules-config
-rwxr-xr-x 1 root root 7081 Mar 11 03:14 sbin/apachectl
-rwxr-xr-x 1 root root 18402 May 30 14:02 sbin/apt-setup
onlsbc1:/usr#
onlsbc1:/usr/src# ps -ef
UID PID PPID C STIME TTY TIME CMD
root 1 0 0 10:11 ? 00:00:00 init [2]
root 2 1 0 10:11 ? 00:00:00 [keventd]
root 3 1 0 10:11 ? 00:00:00 [ksoftirqd_CPU0]
root 4 1 0 10:11 ? 00:00:00 [kswapd]
root 5 1 0 10:11 ? 00:00:00 [bdflush]
root 6 1 0 10:11 ? 00:00:00 [kupdated]
root 105 1 0 10:11 ? 00:00:03 [kjournald]
root 274 1 0 10:11 ? 00:00:00 [khubd]
daemon 397 1 0 10:11 ? 00:00:00 /sbin/portmap
root 510 1 0 10:12 ? 00:00:00 /sbin/syslogd
root 513 1 0 10:12 ? 00:00:00 /sbin/klogd
root 636 1 0 10:12 ? 00:00:00 /usr/sbin/inetd
root 640 1 0 10:12 ? 00:00:00 /usr/sbin/lpd
root 647 1 0 10:12 ? 00:00:00 /usr/sbin/sshd
root 652 1 0 10:12 ? 00:00:00 /sbin/rpc.statd
daemon 655 1 0 10:12 ? 00:00:00 /usr/sbin/atd
root 658 1 0 10:12 ? 00:00:00 /usr/sbin/cron
inoue 664 1 0 10:12 tty1 00:00:00 -bash
root 665 1 0 10:12 tty2 00:00:00 /sbin/getty 38400 tty2
root 666 1 0 10:12 tty3 00:00:00 /sbin/getty 38400 tty3
root 667 1 0 10:12 tty4 00:00:00 /sbin/getty 38400 tty4
root 668 1 0 10:12 tty5 00:00:00 /sbin/getty 38400 tty5
root 669 1 0 10:12 tty6 00:00:00 /sbin/getty 38400 tty6
root 673 647 0 10:13 ? 00:00:00 sshd: inoue [priv]
inoue 676 673 0 10:13 ? 00:00:07 sshd: inoue@pts/0
inoue 677 676 0 10:13 pts/0 00:00:00 -bash
root 738 677 0 14:42 pts/0 00:00:00 bash
root 2052 1 0 15:52 ? 00:00:00 /usr/sbin/apache
www-data 2053 2052 0 15:52 ? 00:00:00 /usr/sbin/apache
www-data 2054 2052 0 15:52 ? 00:00:00 /usr/sbin/apache
www-data 2055 2052 0 15:52 ? 00:00:00 /usr/sbin/apache
www-data 2056 2052 0 15:52 ? 00:00:00 /usr/sbin/apache
www-data 2057 2052 0 15:52 ? 00:00:00 /usr/sbin/apache
root 2060 738 45 15:58 pts/0 00:00:00 ps -ef
onlsbc1:/usr/src#
onlsbc1:/home/inoue# /usr/sbin/apachectl stop
/usr/sbin/apachectl stop: httpd stopped
onlsbc1:/home/inoue# ps -ef
UID PID PPID C STIME TTY TIME CMD
root 1 0 0 Jun09 ? 00:00:00 init [2]
root 2 1 0 Jun09 ? 00:00:00 [keventd]
root 3 1 0 Jun09 ? 00:00:00 [ksoftirqd_CPU0]
root 4 1 0 Jun09 ? 00:00:00 [kswapd]
root 5 1 0 Jun09 ? 00:00:00 [bdflush]
root 6 1 0 Jun09 ? 00:00:00 [kupdated]
root 105 1 0 Jun09 ? 00:00:03 [kjournald]
root 274 1 0 Jun09 ? 00:00:00 [khubd]
daemon 397 1 0 Jun09 ? 00:00:00 /sbin/portmap
root 510 1 0 Jun09 ? 00:00:00 /sbin/syslogd
root 513 1 0 Jun09 ? 00:00:00 /sbin/klogd
root 636 1 0 Jun09 ? 00:00:00 /usr/sbin/inetd
root 640 1 0 Jun09 ? 00:00:00 /usr/sbin/lpd
root 647 1 0 Jun09 ? 00:00:00 /usr/sbin/sshd
root 652 1 0 Jun09 ? 00:00:00 /sbin/rpc.statd
daemon 655 1 0 Jun09 ? 00:00:00 /usr/sbin/atd
root 658 1 0 Jun09 ? 00:00:00 /usr/sbin/cron
inoue 664 1 0 Jun09 tty1 00:00:00 -bash
root 665 1 0 Jun09 tty2 00:00:00 /sbin/getty 38400 tty2
root 666 1 0 Jun09 tty3 00:00:00 /sbin/getty 38400 tty3
root 667 1 0 Jun09 tty4 00:00:00 /sbin/getty 38400 tty4
root 668 1 0 Jun09 tty5 00:00:00 /sbin/getty 38400 tty5
root 669 1 0 Jun09 tty6 00:00:00 /sbin/getty 38400 tty6
root 2285 647 0 10:01 ? 00:00:00 sshd: inoue [priv]
inoue 2288 2285 0 10:01 ? 00:00:00 sshd: inoue@pts/0
inoue 2289 2288 0 10:01 pts/0 00:00:00 -bash
root 2295 2289 0 10:03 pts/0 00:00:00 bash
root 2302 2295 0 10:19 pts/0 00:00:00 ps -ef
onlsbc1:/home/inoue#
onlsbc1:/usr# pwd
/usr
onlsbc1:/usr#
onlsbc1:/usr# ls -l
total 28
drwxr-xr-x 2 root root 9216 Jun 9 15:52 bin
drwxr-xr-x 2 root root 1024 Jun 9 14:47 doc
drwxr-xr-x 2 root root 1024 Jun 7 19:55 games
drwxr-xr-x 26 root root 3072 Jun 8 15:45 include
lrwxrwxrwx 1 root root 10 Jun 7 19:53 info -> share/info
drwxrwxr-x 9 root root 1024 Jun 10 14:25 j2sdk1.4.2_04
lrwxrwxrwx 1 root root 13 Jun 10 14:27 java -> j2sdk1.4.2_04
drwxr-xr-x 33 root root 6144 Jun 9 15:52 lib
drwxrwsr-x 9 root staff 1024 Jun 7 19:53 local
drwxr-xr-x 2 root root 3072 Jun 9 15:52 sbin
drwxr-xr-x 65 root root 2048 Jun 9 15:52 share
drwxrwsr-x 5 root src 1024 Jun 9 15:05 src
onlsbc1:/usr#
onlsbc1:/usr# df -k
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/hda1 918322 634288 235038 73% /
tmpfs 152824 0 152824 0% /dev/shm
onlsbc1:/usr#
(2). カーネルソース、Apache、Java のインストール
以下の2つのパッケージ、kernel ソースおよび kernel ヘッダをインストール
した。
kernel-headers-2.4.26-1-386 - Linux kernel headers 2.4.26 on 386
kernel-source-2.4.26 - Linux kernel source for version 2.4.26 with Debian patche
s
onlsbc1:/usr/src# ls -l
total 30098
drwxr-xr-x 15 root root 1024 May 1 15:54 kernel-source-2.4.26
-rw-r--r-- 1 root root 30697156 May 1 16:00 kernel-source-2.4.26.tar
.bz2
onlsbc1:/usr/src#
Apache のインストール
onlsbc1:/usr/src# ps -ef
UID PID PPID C STIME TTY TIME CMD
root 1 0 0 10:11 ? 00:00:00 init [2]
root 2 1 0 10:11 ? 00:00:00 [keventd]
root 3 1 0 10:11 ? 00:00:00 [ksoftirqd_CPU0]
root 4 1 0 10:11 ? 00:00:00 [kswapd]
root 5 1 0 10:11 ? 00:00:00 [bdflush]
root 6 1 0 10:11 ? 00:00:00 [kupdated]
root 105 1 0 10:11 ? 00:00:03 [kjournald]
root 274 1 0 10:11 ? 00:00:00 [khubd]
daemon 397 1 0 10:11 ? 00:00:00 /sbin/portmap
root 510 1 0 10:12 ? 00:00:00 /sbin/syslogd
root 513 1 0 10:12 ? 00:00:00 /sbin/klogd
root 636 1 0 10:12 ? 00:00:00 /usr/sbin/inetd
root 640 1 0 10:12 ? 00:00:00 /usr/sbin/lpd
root 647 1 0 10:12 ? 00:00:00 /usr/sbin/sshd
root 652 1 0 10:12 ? 00:00:00 /sbin/rpc.statd
daemon 655 1 0 10:12 ? 00:00:00 /usr/sbin/atd
root 658 1 0 10:12 ? 00:00:00 /usr/sbin/cron
inoue 664 1 0 10:12 tty1 00:00:00 -bash
root 665 1 0 10:12 tty2 00:00:00 /sbin/getty 38400 tty2
root 666 1 0 10:12 tty3 00:00:00 /sbin/getty 38400 tty3
root 667 1 0 10:12 tty4 00:00:00 /sbin/getty 38400 tty4
root 668 1 0 10:12 tty5 00:00:00 /sbin/getty 38400 tty5
root 669 1 0 10:12 tty6 00:00:00 /sbin/getty 38400 tty6
root 673 647 0 10:13 ? 00:00:00 sshd: inoue [priv]
inoue 676 673 0 10:13 ? 00:00:07 sshd: inoue@pts/0
inoue 677 676 0 10:13 pts/0 00:00:00 -bash
root 738 677 0 14:42 pts/0 00:00:00 bash
root 2052 1 0 15:52 ? 00:00:00 /usr/sbin/apache
www-data 2053 2052 0 15:52 ? 00:00:00 /usr/sbin/apache
www-data 2054 2052 0 15:52 ? 00:00:00 /usr/sbin/apache
www-data 2055 2052 0 15:52 ? 00:00:00 /usr/sbin/apache
www-data 2056 2052 0 15:52 ? 00:00:00 /usr/sbin/apache
www-data 2057 2052 0 15:52 ? 00:00:00 /usr/sbin/apache
root 2060 738 45 15:58 pts/0 00:00:00 ps -ef
onlsbc1:/usr/src#
WebブラウザIE6で、http://onlsbc1.kek.jp/ にアクセスしてみた。
ok. アクセスできた。
WebブラウザIE6で、http://onlsbc1.kek.jp/~inoue/index.html にアクセスして
みた。
ok. アクセスできた。
Java のインストール
onlsbc1:/usr# ls -l
total 28
drwxr-xr-x 2 root root 9216 Jun 9 15:52 bin
drwxr-xr-x 2 root root 1024 Jun 9 14:47 doc
drwxr-xr-x 2 root root 1024 Jun 7 19:55 games
drwxr-xr-x 26 root root 3072 Jun 8 15:45 include
lrwxrwxrwx 1 root root 10 Jun 7 19:53 info -> share/info
drwxrwxr-x 9 root root 1024 Jun 10 14:25 j2sdk1.4.2_04
lrwxrwxrwx 1 root root 13 Jun 10 14:27 java -> j2sdk1.4.2_04
drwxr-xr-x 33 root root 6144 Jun 9 15:52 lib
drwxrwsr-x 9 root staff 1024 Jun 7 19:53 local
drwxr-xr-x 2 root root 3072 Jun 9 15:52 sbin
drwxr-xr-x 65 root root 2048 Jun 9 15:52 share
drwxrwsr-x 5 root src 1024 Jun 9 15:05 src
onlsbc1:/usr#
onlsbc1:/usr# umount /mnt
onlsbc1:/usr#
ok. Java は正常にインストールされた。
(3). CC/NETソフトウェアのインストール
toyo@onlsbc1:~$ ls -l
total 4
drwxr-xr-x 2 toyo toyo 1024 Dec 19 16:40 camac
drwxr-xr-x 2 toyo toyo 1024 Aug 25 2003 check
drwxr-xr-x 3 toyo toyo 1024 Nov 19 2003 public_html
drwxr-xr-x 2 toyo toyo 1024 Jan 13 10:36 remote-camac
toyo@onlsbc1:~$
(4). CC/NETソフトウェアの実行
toyo@onlsbc1:~$ ls -l
total 4
drwxr-xr-x 2 toyo toyo 1024 Jun 23 16:02 camac
drwxr-xr-x 2 toyo toyo 1024 Aug 25 2003 check
drwxr-xr-x 3 toyo toyo 1024 Jun 17 14:57 public_html
drwxr-xr-x 2 toyo toyo 1024 Jun 17 14:49 remote-camac
toyo@onlsbc1:~$
toyo@onlsbc1:~$ gcc -v
Reading specs from /usr/lib/gcc-lib/i486-linux/3.3.3/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.3 (Debian 20040422)
toyo@onlsbc1:~$
toyo@onlsbc1:~$ /sbin/lsmod
Module Size Used by Tainted: P
pcc 7292 0 (unused)
mousedev 3732 0 (unused)
hid 18884 0 (unused)
usb-storage 58528 0
usbmouse 1848 0 (unused)
scsi_mod 85380 1 [usb-storage]
input 3040 0 [mousedev hid usbmouse]
e100 42056 1
usb-uhci 19632 0 (unused)
usbcore 52908 1 [hid usb-storage usbmouse usb-uhci]
parport_pc 19400 0
parport 21736 0 [parport_pc]
ide-cd 27936 0
cdrom 25056 0 [ide-cd]
rtc 6280 0 (autoclean)
ext3 66600 1 (autoclean)
jbd 35076 1 (autoclean) [ext3]
ide-detect 288 0 (autoclean) (unused)
via82cxxx 9416 1 (autoclean)
ide-disk 12512 1 (autoclean)
ide-core 93948 1 (autoclean) [usb-storage ide-cd ide-detect via8
2cxxx ide-disk]
unix 13260 8 (autoclean)
toyo@onlsbc1:~$
(14-1 ). rst_camコマンドの実行
toyo@onlsbc1:~/camac$ pwd
/home/toyo/camac
toyo@onlsbc1:~/camac$ ls
Makefile camlib.c dec_cam exam2 gen_cam pcc.o
Makefile-bak camlib.h dec_cam.c exam2.c gen_cam.c put_cam
Makefile-org 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
toyo@onlsbc1:~/camac$
toyo@onlsbc1:~/camac$ ./rst_cam
toyo@onlsbc1:~/camac$
正常終了した。
(14-2 ). clr_fifoコマンドの実行
toyo@onlsbc1:~/camac$ ./clr_fifo
toyo@onlsbc1:~/camac$
正常終了した。
(14-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$
正常終了した。
(14-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$
正常終了した。
(14-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$
正常終了した。
(14-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$
正常終了した。
(14-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$
正常終了した。
(14-8 ). get_camコマンドの実行
toyo@onlsbc1:~/camac$ ./get_cam
data = 0x7000000 : reply = 0xc0040010
toyo@onlsbc1:~/camac$
正常終了した。
(14-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) = 0 rply(80190118) = 80190118
( 6) enable interrupt : data(10ffffff) = 10000000 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$
正常終了した。
(14-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$ ./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$
(14-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$
正常終了した。
(14-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$
正常終了した。
(14-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$
正常終了した。
(19). ノン・コールバック版のweb3
現在のコールバック版 web3 の修正版を作成する。
(19-3). ノン・コールバック版: 実行
サーバ側で Apache を起動する。
onlsbc1:/home/toyo/public_html/Web# /usr/sbin/apachectl start
/usr/sbin/apachectl start: httpd started
onlsbc1:/home/toyo/public_html/Web# ps -ef
UID PID PPID C STIME TTY TIME CMD
root 1 0 0 Aug17 ? 00:00:01 init [2]
root 2 1 0 Aug17 ? 00:00:00 [keventd]
root 3 1 0 Aug17 ? 00:00:00 [ksoftirqd_CPU0]
root 4 1 0 Aug17 ? 00:00:00 [kswapd]
root 5 1 0 Aug17 ? 00:00:00 [bdflush]
root 6 1 0 Aug17 ? 00:00:00 [kupdated]
root 105 1 0 Aug17 ? 00:00:01 [kjournald]
root 277 1 0 Aug17 ? 00:00:00 [khubd]
daemon 400 1 0 Aug17 ? 00:00:00 /sbin/portmap
root 517 1 0 Aug17 ? 00:00:00 /sbin/syslogd
root 520 1 0 Aug17 ? 00:00:00 /sbin/klogd
root 528 1 0 Aug17 ? 00:00:00 /usr/sbin/inetd
root 539 1 0 Aug17 ? 00:00:00 /usr/sbin/sshd
root 544 1 0 Aug17 ? 00:00:00 /sbin/rpc.statd
root 547 1 0 Aug17 ? 00:00:00 /usr/sbin/cron
root 555 1 0 Aug17 tty1 00:00:00 /sbin/getty 38400 tty1
root 556 1 0 Aug17 tty2 00:00:00 /sbin/getty 38400 tty2
root 557 1 0 Aug17 tty3 00:00:00 /sbin/getty 38400 tty3
root 558 1 0 Aug17 tty4 00:00:00 /sbin/getty 38400 tty4
root 559 1 0 Aug17 tty5 00:00:00 /sbin/getty 38400 tty5
root 560 1 0 Aug17 tty6 00:00:00 /sbin/getty 38400 tty6
root 3639 1 0 Aug22 ? 00:00:00 /usr/sbin/lpd
root 3959 539 0 09:10 ? 00:00:00 sshd: toyo [priv]
toyo 3963 3959 0 09:10 ? 00:00:03 sshd: toyo@pts/1
toyo 3964 3963 0 09:10 pts/1 00:00:01 -bash
root 4857 3964 1 13:50 pts/1 00:00:00 bash
root 4864 1 9 13:51 ? 00:00:00 /usr/sbin/apache
www-data 4865 4864 0 13:51 ? 00:00:00 /usr/sbin/apache
www-data 4866 4864 0 13:51 ? 00:00:00 /usr/sbin/apache
www-data 4867 4864 0 13:51 ? 00:00:00 /usr/sbin/apache
www-data 4868 4864 0 13:51 ? 00:00:00 /usr/sbin/apache
www-data 4869 4864 0 13:51 ? 00:00:00 /usr/sbin/apache
root 4870 4857 0 13:51 pts/1 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] = 0x7000000
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] = 0x7ffffff
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] = 0x7000000
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] = 0x7555555
ServerImpl.r_cmd[1] = 0x0, ServerImpl.r_dat[1] = 0x0
<--- cntl-C を押して web.sh を停止。
Q = 1 : X = 1 : data = 555555toyo@onlsbc1:~/public_html/Web$
toyo@onlsbc1:~/public_html/Web$
<<< クライアント側 >>>
Webブラウザ、IE を使って onlsbc1 の web3.htmlファイルをアクセスする。
ok. 正常に実行できた。 異常に待たされることは無くなった。
(5). USBストレージの動作チェック
onlsbc1:/home/toyo# dmesg
Linux version 2.4.26-1-386 (herbert@gondolin) (gcc version 3.3.3 (Debian 2004040
1)) #2 Sat May 1 16:31:24 EST 2004
BIOS-provided physical RAM map:
:
:
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
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.
usb.c: USB disconnect on device 00:07.2-2 address 3
usb.c: USB disconnect on device 00:07.2-2.1 address 4
onlsbc1:/home/toyo#
ok. 64MB の USBスティックメモリへの読み書きは正常に実行できた。
onlsbc1:/home/toyo# dmesg
Linux version 2.4.26-1-386 (herbert@gondolin) (gcc version 3.3.3 (Debian 2004040
1)) #2 Sat May 1 16:31:24 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# 445
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#
ok. 30GB の USBハードディスクへの読み書きは正常に実行できた。
USBスティックメモリでも、USBハードディスクでも正常に使用できるのを確認
できた。
(6). RAMディスク化
onlsbc1:/# reboot
Broadcast message from root (pts/0) (Mon Sep 6 10:42:21 2004):
The system is going down for reboot NOW!
:
:
onlsun4[35]% !!
ssh toyo@onlsbc1
Password:
Linux onlsbc1 2.4.26-1-386 #2 Sat May 1 16:31:24 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: Mon Sep 6 09:29:12 2004 from onlsun4.kek.jp
toyo@onlsbc1:~$
toyo@onlsbc1:~$ ls -l /
total 57
drwxr-xr-x 2 root root 2048 Jun 8 15:47 bin
drwxr-xr-x 3 root root 1024 Jun 7 20:07 boot
drwxr-xr-x 11 root root 21504 Sep 6 10:44 dev
drwxr-xr-x 50 root root 3072 Sep 6 10:44 etc
drwxrwsr-x 4 root staff 1024 Jun 14 14:34 home
drwxr-xr-x 2 root root 1024 Jun 7 19:53 initrd
lrwxrwxrwx 1 root root 28 Jun 7 19:57 initrd.img -> boot/initr
d.img-2.4.26-1-386
drwxr-xr-x 8 root root 4096 Jun 8 15:46 lib
drwxr-xr-x 2 root root 12288 Jun 7 19:49 lost+found
drwxr-xr-x 3 root root 1024 Jun 7 19:49 media
drwxr-xr-x 2 root root 1024 Apr 27 02:45 mnt
drwxr-xr-x 2 root root 1024 Jun 7 19:53 opt
dr-xr-xr-x 37 root root 0 Sep 6 2004 proc
drwxr-xr-x 5 root root 1024 Sep 6 10:43 ramfs
drwxr-xr-x 3 root root 1024 Jun 14 14:37 root
drwxr-xr-x 2 root root 3072 Jun 8 15:46 sbin
drwxr-xr-x 2 root root 1024 Jun 7 19:52 srv
drwxr-xr-x 2 root root 1024 Apr 22 03:58 sys
lrwxrwxrwx 1 root root 9 Sep 3 15:11 tmp -> ramfs/tmp
drwxr-xr-x 11 root root 1024 Jul 12 16:13 usr
lrwxrwxrwx 1 root root 9 Sep 3 15:11 var -> ramfs/var
lrwxrwxrwx 1 root root 25 Jun 7 19:57 vmlinuz -> boot/vmlinuz-
2.4.26-1-386
toyo@onlsbc1:~$
toyo@onlsbc1:~$ df -k
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/hda1 918322 606042 263284 70% /
tmpfs 152824 0 152824 0% /dev/shm
toyo@onlsbc1:~$
toyo@onlsbc1:~$ ls -l /ramfs
total 14
drwx------ 2 root root 12288 Sep 6 10:43 lost+found
drwxrwxrwt 2 root root 1024 Sep 6 10:44 tmp
drwxr-xr-x 15 root root 1024 Jun 9 15:52 var
toyo@onlsbc1:~$
toyo@onlsbc1:~$ date
Mon Sep 6 10:46:28 JST 2004
toyo@onlsbc1:~$
toyo@onlsbc1:~$ ls -lL /var
total 14
drwxr-xr-x 2 root root 1024 Jul 3 06:25 backups
drwxr-xr-x 8 root root 1024 Jun 9 15:52 cache
drwxr-xr-x 14 root root 1024 Jul 2 16:46 lib
drwxrwsr-x 2 root staff 1024 Apr 27 02:45 local
drwxrwxrwt 2 root root 1024 Sep 6 10:44 lock
drwxr-xr-x 6 root root 2048 Sep 6 06:25 log
drwxrwsr-x 2 root mail 1024 Jun 8 15:45 mail
drwxr-xr-x 2 root root 1024 Jun 7 19:53 opt
drwxr-xr-x 6 root root 1024 Sep 6 10:44 run
drwxr-xr-x 4 root root 1024 Jul 2 16:44 spool
drwxr-xr-x 3 root root 1024 Jun 7 19:58 state
drwxrwxrwt 3 root root 1024 Jun 9 10:08 tmp
drwxr-xr-x 2 root root 1024 Jul 12 16:42 www
toyo@onlsbc1:~$
ok. シャットダウン時の /ramfs のアンマウントは正常に実行された。 さら
に、ブートアップ時に/ramfs は新たに作り直されており、先ほど試しに作成し
ておいた /ramfs/var/testファイルは残されていない。
これで2.5"IDEハードディスク上でのRAMディスク化の作業を終わる。
---xxxx