hns - 日記自動生成システム - Version 2.19.9

先月 2004年12月 来月
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31
Namazu for hns による簡易全文検索
詳しくは 詳細指定/ヘルプを参照して下さい
検索式:

2004年12月31日(金) 旧暦 [n年日記] [更新:"2005/01/02 15:26:21"]

#1 [無題] pear (php)

きょうはこんなところを見ている

pear remote-list; pear install:

ttyp4:makoto@st4200  13:02:22/041231(...www/pear-HTML_Select)> pear remote-list |grep Form
HTML_Form                 1.1.0    
HTML_QuickForm            3.2.4pl1 
HTML_QuickForm_Controller 1.0.4    
ttyp4:makoto@st4200  13:02:32/041231(...www/pear-HTML_Select)> sudo pear install HTML_Form
Password:
downloading HTML_Form-1.1.0.tar ...
Starting to download HTML_Form-1.1.0.tar (-1 bytes)
..............................done: 140,288 bytes
install ok: HTML_Form 1.1.0
ttyp4:makoto@st4200  13:02:56/041231(...www/pear-HTML_Select)> 
なかなか面白いしくみがあるものだ。 php-4.3.10 を入れているが、 ap-php4 の Makefile.php に mbstring の設定が追加されている。.. と思った のは勘違いで、自分で変更しただけか ? を見に行くと mbstring が必須とあるが、僕のところでは mbsting 無でも pukiwiki の日本語は表示されている(多分 1.4)。

#2 [NetBSD][X11] X11R6 を作り直したら、落ちなくなった

gnuplot を入替えたら色が:

もしかして、今までのは、一種の虫だったのだろうか。

Dec 31 22:12:07 st4200 /netbsd::

USB のついた電卓をつないだら
uhidev3: WELTREND USB KEYPAD CALCULATOR, rev 1.10/2.08, addr 5, iclass 3/1
ukbd1 at uhidev3: 8 modifier keys, 6 key codes
wskbd1 at ukbd1 (mux ignored)
こうなる。やはり mux は必要な気がする。Canon と書いてあるが中身は違う ?


2004年12月30日(木) 旧暦 [n年日記] [更新:"2004/12/30 22:49:45"]

#1 [機械] Note -> Desktop

いままで作っていた Note をお休みにして、desktop の方を使い始める (2.99.11 のはず)。

Note の方には 2.99.11 を入れる:

sysinst が終ったところで # が出て、文字が入力出来ない。 しかしこれは入力出来ないのではなく、入力した文字が表示されないだけ。 stty echo と入力すると、以後は表示されるようになる。

gimp が作れていなかった:

以下の部分は、問題があって、それを直した更に先:
gnome-program.c: In function `gnome_program_init_paramv':
gnome-program.c:1932: error: conversion to non-scalar type requested
gmake[3]: *** [gnome-program.lo] Error 1

gs の日本語が表示されない:

X の操作中に:

突然反応がなくなる。他の機械から見ると、X が落ちている。 もしかしてと思って、startx と入力すると X の画面が開いた。

また落ちる:

Mozilla から、 emacs の cvs server の案内の画面 を開こうとすると落ちる。

#2 [NetBSD] クロスコンパイラを作る

きょうは NetBSD/macppc や NetBSD/i386 の上で、Windows 用のクロスコンパイラを 作っていた。 12/25 に書いたものを見て、もう一度作り直し。 Web にもその情報 をまとめておいた。


2004年12月28日(火) 旧暦 [n年日記] [更新:"2004/12/28 23:22:04"]

#1 [仕事] 動いた

2.14 では動いていたが、2.15 でも動くようになった。 二日かかったことになる。これでやっと正月が迎えられる。


2004年12月26日() 旧暦 [n年日記] [更新:"2004/12/26 18:29:04"]

#1 [toolchain] 動いた (FTP の bin モード)

実は google で "This program cannot be run in DOS mode." を探すと、最初に ftp で binary していないのでは ? という情報が見つかる。

しかし、まさかと見過していた。Unix 同士の場合、必要になること はないので、最近は使ったことがない。しかし Win の場合は違う。

試しに、では短いプログラムでは ? と、 Hello world をクロスコンパイルして、ftp する時に、それを少し 思い出して、転送したら、動く。で、問題があったと思っていた元の長いプログラムの 方も bin で転送したら、動いた。何ていうことだ。しかも、機械 A では bin の指定無でも問題がなかったから、ある意味気が付くのが 遅れた。でも両方 bin が必要で、両方とも動かなかったら、もっと気が付くのが 遅くなっていたかも知れない。

これって、今年の 5 月からの課題だった。

これを使って Namazu もコンパイル出来るかな ? (configure がきっと動かない)



2004年12月25日() 旧暦 [n年日記] [更新:"2004/12/25 22:37:39"]

#1 [toolchain] mingw-cross-howto.txt

6/02 の日記 を見て、そこから接続している mingw-cross-howto.txt を見て、作って見る。 MSVCRT と CRTDLL の違いが良く分っていないが msvcrt で行って見る。 材料
  • bin-msvcrt-2000-03-27.zip
  • binutils-2.15
  • gcc-3.3.4

library and includes:

mkdir /usr/local/cross-tools
cd    /usr/local/cross-tools
unzip $HOGE/bin-msvcrt-2000-03-27.zip

binutils:

cd src
tar zxf binutils-2.15.tar.bz2
cd binutils-2.15
mkdir obj
cd obj
../configure --prefix=/usr/local/cross-tools --target=i386-mingw32msvc -v 
make
sudo make install

gcc:

cd src
tar zxf gcc-3.3.4.tar.gz2
cd gcc-3.3.4
mkdir obj
cd obj
../configure --prefix=/usr/local/cross-tools --target=i386-mingw32msvc -v  \
 --enable-languages=c,c++
make
/usr/local/cross-tools/i386-mingw32msvc/bin/ld: cannot find -lmingwex
? mingw-runtime-2.0-2 大昔に似たようなことをしている人がいる ? 今だと mingw-runtime-3.5 ?

#2 [toolchain] 初めからやり直し

#1 にあることをもう一度
stuff for install:
mingw-runtime-3.5.tar.gz
w32api-3.1.tar.gz
binutils-2.15.tar.bz2
gcc-3.4.2.tar.bz2

w32api, mingw-runtime:

cd /usr/local/cross-tools/
sudo mkdir i386-mingw32
cd i386-mingw32
sudo tar zxf /e/u/j/distfiles/mingw-runtime-3.5.tar.gz
sudo tar zxf /e/u/j/distfiles/w32api-3.1.tar.gz

binutils-2.15:

tar zxf /e/u/j/distfiles/binutils-2.15.tar.bz2
mkdir binutils-2.15/obj
cd /export/local-src/binutils-2.15/obj/
make
sudo make install

gcc-3.4.2:

set path = ( $path /usr/local/cross-tools/i386-mingw32/bin )
set path = ( $path /usr/local/cross-tools/bin )

tar zxf /e/u/j/distfiles/gcc-3.4.2.tar.bz2
mkdir gcc-3.4.2/obj
cd gcc-3.4.2/obj
../configure --prefix=/usr/local/cross-tools --target=i386-mingw32 -v --enable-language=c,c++
time gmake
sudo gmake install
/usr/local/cross-tools/i386-mingw32/bin/gcc --version

make install (gcc):

cross compile:

Use this gcc to create cross-assembler on Win/2k, which is for embedded processor.
../bfd/.libs/libbfd.a: could not read symbols: Archive has no index; run ranlib to add one
i386-mingw32-ranlib bfd/.libs/libbfd.a
will fix this problem. I don't know why we need this manual intervention.
file hoge
hoge: MS Windows PE 32-bit Intel 80386 console executable not relocatable

test run on machine without cygwin:

In DOS CMD prompt window, I've got: "This program cannot be run in DOS mode."

test run on machine with cygwin:

Runs OK, in DOS cmd prompt window.

#3 [toolchain] cygwin のない Win/2k 用の実行形式を作る

#2 に書いたように i386-mingw32 のクロス環境を用意した。 確かに gcc でコンパイル出来る。
これでコンパイルしたものを DOS 窓で動かして見る。対象機械は二つ。一つは cygwin 無。一つは cygwin 有。
cygwin 有 DOS 窓  ○
cygwin 窓         ○
cygwin 無 DOS 窓  × (1)
cygwin 無 GUI     × 一瞬 DOS 窓が開くが、すぐ閉じてしまう。
(1) 表示は "This program cannot be run in DOS mode."
しかし i386-mingw32-objdump -d hoge |grep cygwin して見ると、 cygwin への参照はない。 ちなみに、cygwin でコンパイルしたものは cygwin への参照がある。
これは cygwin は関係なくて、mingw が入っている機械と、入っていない機械の違い のような気がする。
ldd とかないのかな。
mingw-runtime-3.5.tar.gz に入っている、次のものを入れればいいのかな。
408964 Sep  5 23:23 bin/mingwm10.dll
だったら cygwin でも同じ ?
PATH 変数に入っていると思われる C:\WINNT\ に置いて見たが、状況は変らず。 (要再動 ?) 再起動しても同じだった。 vector より Hexdump -C して見ると、最初の方にそういう文字がある。
Windows 環境の時には実行されないが、DOS 環境の時には実行されて、その文字 が表示されるらしい。 ○と×の機械で、 set と入力して表示される環境変数を見ると、かなり違いがある。 明日確めて見よう(きょうは寝る)。 関数で言うと、次のどれかかなぁ。っていうよりは、開始番地が違うのかな。
00401000 t __gnu_exception_handler@4
00401100 t ___mingw_CRTStartup
00401220 T _mainCRTStartup
00401240 T _WinMainCRTStartup
00401240 T _WinMainCRTStartup から始めてくれればいい訳だ。


2004年12月24日(金) 旧暦 [n年日記] [更新:"2004/12/25 00:33:39"]

#1 [NetBSD][ofppc] ACARD,6880M をつないだら、見えるので

0 > boot /pci/ACARD,6880M/sd Can't open disk label package
ラべルが違うと言っている ? つまり物理的には見えるけれど、内容がラべルの形を していない ?

RAM disk kernel を作って直接読ませて見る:

 0 > boot net 
 LOAD: Waiting 60 seconds for Spanning Tree
 BOOTP R = 1 BOOTP S = 1  
 FILE: /tftpboot/boot
 Load Addr=0x200000 Max Size=0xa00000 
 FINAL Packet Count = 13779   Final File Size = 7054684 bytes.
 
 Unexpected Firmware Error:
 DEFAULT CATCH!, code=fff00300 at   %SRR0: 00c1b030   %SRR1: 00003030 
  ok
 0 > go [ Kernel symbol table invalid! ]
 Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004
     The NetBSD Foundation, Inc.  All rights reserved.
 Copyright (c) 1982, 1986, 1989, 1991, 1993
     The Regents of the University of California.  All rights reserved.
 
 NetBSD 2.99.11 (GENERIC_MD) #0: Sun Dec 19 02:26:10 JST 2004
         root@st4200:/export/ofppc/src/sys/arch/macppc/compile/obj/GENERIC_MD
 total memory = 256 MB
 avail memory = 236 MB
 mainbus0 (root)
 cpu0 at mainbus0: 604e (Revision 1.2), ID 0 (primary)
 cpu0: HID0 c001c086<EMCP,DBP,NHR,ICE,DCE,SGE,BHT,NOPDST>
 cpu0: 375.00 MHz
 md0: internal 2048 KB image area
 boot dev/export/ofppc/src/sys/netinet6/frag6.c:715: ip6q already locked
 panic: ip6q_lock
 Stopped in pid 0.1 (swapper) at 0x3abb18:       lwz     r0, r1, 0x14
 db> 
netboot の時と表示が違うなぁ。良く見ると、macppc のカーネルを使っている。


2004年12月23日(木) 旧暦 [n年日記] [更新:"2004/12/23 11:24:08"]

#1 [Web][abuse] bsearchtech.com

ttyp1:makoto@serv  8:11:08/041223(/var/log)> grep gw4.bsearchtech.com httpd/access_log | wc
     830    8300   67947
ttyp1:makoto@serv  8:11:13/041223(/var/log)> grep gw4.bsearchtech.com httpd/access_log | head -1
gw4.bsearchtech.com - - [09/Dec/2004:07:25:26 +0900] "GET /e/ HTTP/1.0" 200 10756
ttyp1:makoto@serv  8:11:19/041223(/var/log)> grep gw4.bsearchtech.com httpd/access_log | tail -1
gw4.bsearchtech.com - - [23/Dec/2004:06:58:39 +0900] "GET /j/ HTTP/1.0" 200 10880
ttyp1:makoto@serv  8:11:23/041223(/var/log)> 
27 分の間に 830 回。二秒に一回。何のつもりかなぁ。 いまの瞬間逆引が出来ないけれど、記録によれば ip address は 222.151.213.124。
+    Order allow,deny
+    Allow from all
+    Deny from 222.151.213.124

#2 [NetBSD][ofppc] RS/6000 B50 と NetBSD の現状

netboot で起動:

 0 > boot net 
 LOAD: Waiting 60 seconds for Spanning Tree
 BOOTP R = 1 BOOTP S = 1  
 FILE: /tftpboot/ofwboot
 Load Addr=0x200000 Max Size=0xa00000 
 FINAL Packet Count = 114   Final File Size = 57868 bytes.
 
 Unexpected Firmware Error:
 DEFAULT CATCH!, code=fff00300 at   %SRR0: 00c1b030   %SRR1: 00003030 
  ok
 0 > 

ofwboot.elf を読んだところで止ってしまうので go と入力:

0 > go 
>> NetBSD/ofppc OpenFirmware Boot, Revision 1.5
>> (root@st4200, Mon Dec 20 00:43:53 JST 2004)
net_mountroot
net_open: client addr: 192.168.111.208
(以下略)
..

NFS server には -noresvport -norresvmnt が必要 ?:

multiuser まで動く:

がちょっと(かなり)遅い。 RTC が読めない

console が見つからないので、root で login 出来ない:

 Thu Jan  1 00:14:00 UTC 1970
 Jan  1 00:14:10 birthday getty[394]: /dev/ttyZ0: Device not configured
 Jan  1 00:14:10 birthday getty[399]: /dev/ttyE0: Device not configured

disklabel を読もうとすると panic:

# disklabel -i /dev/rwd0c
disklabel: /dev/rwd0c: Device not configured
# disklabel -i /dev/rofdisk0c 
panic: todo(0) <= 0; minphys broken
Stopped in pid 15.1 (disklabel) at      netbsd:cpu_Debugger+0x10:       lwz     r
0, r1, 0x14
db> bt
0xd61fbc90: at panic+0x19c
0xd61fbd20: at physio+0x4a4
0xd61fbd70: at ofdisk_read+0x2c
0xd61fbd80: at spec_read+0xec
0xd61fbdd0: at nfsspec_read+0x58
0xd61fbde0: at VOP_READ+0x44
0xd61fbe10: at vn_read+0xcc
0xd61fbe40: at dofileread+0xbc
0xd61fbea0: at sys_pread+0x150
0xd61fbed0: at syscall_plain+0xe0
0xd61fbf40: user SC trap #198 by 0x41921480: srr1=0xf032
            r1=0xffffd830 cr=0x40000024 xer=0 ctr=0x41921478
db> c
syncing disks... 

not configured は 26 点:

ttyp1:makoto@st4200  10:03:55/041223(~/prep)> grep 'not configured' dmesg 
epow-events at ofbus0 not configured
memory-controller@fec00000 at mainbus0 not configured
boot-rom@fff00000 at ofbus1 not configured
rtas at mainbus0 not configured
reserved@i92 at ofbus3 not configured
IBM,tablet-port@i898 at ofbus3 not configured
nvram@i74 at ofbus3 not configured
IBM,eeprom@i78 at ofbus3 not configured
parallel@i378 at ofbus3 not configured
serial@i2f8 at ofbus3 not configured
sound@i534 at ofbus3 not configured
8042@i60 at ofbus3 not configured
IBM,op-panel@i808 at ofbus3 not configured
IBM,pwr-mgmt@i82a at ofbus3 not configured
timer@i40 at ofbus3 not configured
interrupt-controller@i20 at ofbus3 not configured
dma-controller@i0 at ofbus3 not configured
interrupt-controller@d at ofbus2 not configured
st@0 at ofbus5 not configured
st@1 at ofbus5 not configured
st@2 at ofbus5 not configured
st@3 at ofbus5 not configured
st@4 at ofbus5 not configured
st@5 at ofbus5 not configured
st@6 at ofbus5 not configured
display@16 at ofbus2 not configured
ttyp1:makoto@st4200  10:04:04/041223(~/prep)> 

#3 [機械] 別の disk をつなぐと Mac OS X になるはずと

見ているが、どうも変。disklabel と pdisk が一致していない

disklabel wd0:

16 partitions:
#        size    offset     fstype [fsize bsize cpg/sgs]
 a:   1024000     67080     4.2BSD   1024  8192 46552  # (Cyl.     66*-   1082*)
 b:   2048000   1091080       swap                     # (Cyl.   1082*-   3114*)
 c: 156301488         0     unused      0     0        # (Cyl.      0 - 155060)
 d:     65536      1544        HFS                     # (Cyl.      1*-     66*)
 e:  81920000   7235080     4.2BSD      0     0     0  # (Cyl.   7177*-  88447*)
 f:  67145728  89155080        HFS                     # (Cyl.  88447*- 155060*)
 g:   4096000   3139080     4.2BSD   2048 16384 27560  # (Cyl.   3114*-   7177*)
 h:       680 156300808    unknown                     # (Cyl. 155060*- 155060)
# 

# pdisk /dev/wd0c:

Edit /dev/wd0c -
Command (? for help): p

Partition map (with 512 byte blocks) on '/dev/wd0c'
 #:                type name               length   base      ( size )
 1: Apple_partition_map Apple                  63 @ 1        
 2:      Apple_Driver43*Macintosh              54 @ 64       
 3:      Apple_Driver43*Macintosh              74 @ 118      
 4:    Apple_Driver_ATA*Macintosh              54 @ 192      
 5:    Apple_Driver_ATA*Macintosh              74 @ 246      
 6:      Apple_FWDriver Macintosh             200 @ 320      
 7:  Apple_Driver_IOKit Macintosh             512 @ 520      
 8:       Apple_Patches Patch Partition       512 @ 1032     
 9:           Apple_HFS  @ 3139080   (  2.0G) s3   FS   
13:     Apple_UNIX_SVR2 Unreserved 1     81920000 @ 7235080   ( 39.1G) s3   FS   
14:           Apple_HFS   21 @ 192, type=0x701
4:  34 @ 246, type=0xf8ff

Command (? for help): 


2004年12月21日(火) 旧暦 [n年日記] [更新:"2004/12/21 23:34:23"]

#1 [Emacs] Wanderlust と Multi-part

次のようなメールをもらったが、wl でうまく見えない。 作る方が悪いのか、読む方が悪いのか ?

egrep -i 'Mime|nextpart' ../../ml/hoge/14735:

MIME-Version: 1.0
        boundary="----=_NextPart_000_00E9_01C4E693.2A997EA0"
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441
This is a multi-part message in MIME format.
------=_NextPart_000_00E9_01C4E693.2A997EA0
        boundary="----=_NextPart_001_00EA_01C4E693.2A997EA0"
------=_NextPart_001_00EA_01C4E693.2A997EA0
------=_NextPart_001_00EA_01C4E693.2A997EA0
------=_NextPart_001_00EA_01C4E693.2A997EA0--
------=_NextPart_000_00E9_01C4E693.2A997EA0
------=_NextPart_000_00E9_01C4E693.2A997EA0
------=_NextPart_000_00E9_01C4E693.2A997EA0
------=_NextPart_000_00E9_01C4E693.2A997EA0
------=_NextPart_000_00E9_01C4E693.2A997EA0
------=_NextPart_000_00E9_01C4E693.2A997EA0
------=_NextPart_000_00E9_01C4E693.2A997EA0
------=_NextPart_000_00E9_01C4E693.2A997EA0
------=_NextPart_000_00E9_01C4E693.2A997EA0
------=_NextPart_000_00E9_01C4E693.2A997EA0--
ttyp6:makoto@harry  19:03:22/041221(~...from/myself)> 

egrep -i 'Content-Type|Mime|nextpart' ../../ml/hoge/14735:

MIME-Version: 1.0
Content-Type: multipart/related;
        boundary="----=_NextPart_000_00E9_01C4E693.2A997EA0"
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441
This is a multi-part message in MIME format.
------=_NextPart_000_00E9_01C4E693.2A997EA0
Content-Type: multipart/alternative;
        boundary="----=_NextPart_001_00EA_01C4E693.2A997EA0"
------=_NextPart_001_00EA_01C4E693.2A997EA0
Content-Type: text/plain;
------=_NextPart_001_00EA_01C4E693.2A997EA0
Content-Type: text/html;
<META http-equiv=3DContent-Type content=3D"text/html; =
------=_NextPart_001_00EA_01C4E693.2A997EA0--
------=_NextPart_000_00E9_01C4E693.2A997EA0
Content-Type: image/jpeg;
------=_NextPart_000_00E9_01C4E693.2A997EA0
Content-Type: image/jpeg;
------=_NextPart_000_00E9_01C4E693.2A997EA0
Content-Type: image/jpeg;
------=_NextPart_000_00E9_01C4E693.2A997EA0
Content-Type: image/jpeg;
------=_NextPart_000_00E9_01C4E693.2A997EA0
Content-Type: image/jpeg;
------=_NextPart_000_00E9_01C4E693.2A997EA0
Content-Type: image/jpeg;
------=_NextPart_000_00E9_01C4E693.2A997EA0
Content-Type: image/jpeg;
------=_NextPart_000_00E9_01C4E693.2A997EA0
Content-Type: image/jpeg;
------=_NextPart_000_00E9_01C4E693.2A997EA0
Content-Type: image/jpeg;
------=_NextPart_000_00E9_01C4E693.2A997EA0--
ttyp6:makoto@harry  18:59:43/041221(~...from/myself)> 
HTML の中で図を参照している形式になっている ? 僕としては、図だけ保存したかったのだけれど。 正確には「読めない」ではなくて「個別に保存出来ない」 というべきかも知れない。

#2 [NetBSD][ofppc] panic: todo(0) <= 0; minphys broken

/etc/rc.conf is not configured.  Multiuser boot aborted.
Enter pathname of shell or RETURN for /bin/sh: 
Terminal type? [unknown] xterm
Terminal type is xterm.                                                 
We recommend creating a non-root account and using su(1) for root access.
# disklabel ofdisk0
panic: todo(0) <= 0; minphys broken
Stopped in pid 12.1 (disklabel) at      netbsd:cpu_Debugger+0x10:       lwz     r
0, r1, 0x14
db> bt
0xd61fbc90: at panic+0x19c
0xd61fbd20: at physio+0x4a4
0xd61fbd70: at ofdisk_read+0x2c
0xd61fbd80: at spec_read+0xec
0xd61fbdd0: at nfsspec_read+0x58
0xd61fbde0: at VOP_READ+0x44
0xd61fbe10: at vn_read+0xcc
0xd61fbe40: at dofileread+0xbc
0xd61fbea0: at sys_pread+0x150
0xd61fbed0: at syscall_plain+0xe0
0xd61fbf40: user SC trap #198 by 0x41921480: srr1=0xf032
            r1=0xffffd830 cr=0x40000024 xer=0 ctr=0x41921478
db> 
まさか swap がないとこうなる ?


2004年12月20日(月) 旧暦 [n年日記] [更新:"2004/12/20 23:47:52"]

#1 [NetBSD][ofppc] build.sh

G4/AGP 1.2GHz (NetBSD/macppc) took 2:47
===> build.sh command: ./build.sh -m ofppc release
===> build.sh started: Mon Dec 20 00:11:03 JST 2004
===> No nonexistent/bin/nbmake, needs building.
...
...
make release started at:  Mon Dec 20 00:11:19 JST 2004
make release finished at: Mon Dec 20 02:58:27 JST 2004
===> Successful make release
===> build.sh started: Mon Dec 20 00:11:03 JST 2004
===> build.sh ended:   Mon Dec 20 02:58:27 JST 2004
===> Summary of results:
         build.sh command: ./build.sh -m ofppc release
         build.sh started: Mon Dec 20 00:11:03 JST 2004
         No nonexistent/bin/nbmake, needs building.
         Bootstrapping nbmake
         MACHINE:          ofppc
         MACHINE_ARCH:     powerpc
         TOOLDIR path:     /export/ofppc/src/obj/tooldir.NetBSD-2.99.11-powerpc
         DESTDIR path:     /export/ofppc/src/obj/destdir.ofppc
         RELEASEDIR path:  /export/ofppc/src/obj/releasedir
         Created /export/ofppc/src/obj/tooldir.NetBSD-2.99.11-powerpc/bin/nbmake
         makewrapper:      /export/ofppc/src/obj/tooldir.NetBSD-2.99.11-powerpc/bin/nbmake-of
ppc
         Updated /export/ofppc/src/obj/tooldir.NetBSD-2.99.11-powerpc/bin/nbmake-ofppc
         Successful make release
         build.sh started: Mon Dec 20 00:11:03 JST 2004
         build.sh ended:   Mon Dec 20 02:58:27 JST 2004
===> .
しかし本体の方は diskless root の nfs mount に殆んど失敗していて、 なかなか動かない。
 0 > boot net 
 LOAD: Waiting 60 seconds for Spanning Tree
 BOOTP R = 1 BOOTP S = 1  
 FILE: /tftpboot/ofwboot
 Load Addr=0x200000 Max Size=0xa00000 
 FINAL Packet Count = 114   Final File Size = 57868 bytes.
 
 Unexpected Firmware Error:
 DEFAULT CATCH!, code=fff00300 at   %SRR0: 00c1b030   %SRR1: 00003030 
  ok
 0 > go  
 >> NetBSD/ofppc OpenFirmware Boot, Revision 1.5
 >> (root@st4200, Mon Dec 20 00:43:53 JST 2004)
 net_mountroot
 net_open: client addr: 192.168.110.208
 net_open: subnet mask: 255.255.255.0
 net_open: net gateway: 192.168.110.1
 net_open: server addr: 192.168.110.223
 net_open: server path: /export
 net_open: file name: /tftpboot/ofwboot
 Using IP address: 192.168.110.208
 myip:  (192.168.110.208), gateip: 192.168.110.1, netmask: 255.255.255.0
 root addr=192.168.110.223 path=/export
 ** going nfs_mount.
 
 Unexpected Firmware Error:
 DEFAULT CATCH!, code=fff00700 at   %SRR0: 00000014   %SRR1: 00083000 
  ok
 0 > 
ofwboot は #define DEBUG して printf を一行追加

#2 [Emacs] Windows で Emacs 風のキー配列

12/11 の関東合同の時に(calpis の)後藤さんに教わった xkeymacs を使ってみる。

実は(心の)切換え機能が働いていて C-z で undo とかしてしまう。 そこで、C-z は外す。C-x C-s が効かない気がするが、これは何故か分らない。 以前は C-x C-s とすると、多分 C-x が無視されて「保存」になっていたが、 今は C-s をすると検索になる。これは多分慣れれば、ずうっとうれしい ということになるだろう。

(心の)切換え機能:

海辺を走っている。家人が、「景色がハワイみたい」というと、 無意識に右側を走る必要を感じる。

白人を見て、例え相手が日本語を良く理解すると分っていても、 日本語をしゃべるのはちょっと違和感がある。

(今はもう出来ないと思うが)和文と英文のモールスを無意識に切換えて読取れる。

iBook の Open Firmware の画面になると JIS/ASCII 配列でなく IBM101 配列 のキーが打てる。

文脈切換(context switch)というのかな。多分脳の中の活性部分が移動する のだろう。



2004年12月19日() 旧暦 [n年日記] [更新:"2004/12/22 16:54:37"]

#1 [NetBSD][ofppc] build.sh

何か間違えた模様
===> Summary of results:
    build.sh command: ./build.sh release
    build.sh started: Sat Dec 18 23:11:08 JST 2004
    No nonexistent/bin/nbmake, needs building.
    Bootstrapping nbmake
    MACHINE:          macppc
    MACHINE_ARCH:     powerpc
    TOOLDIR path:     /export/ofppc/src/tooldir.NetBSD-2.99.11-powerpc
    DESTDIR path:     /export/ofppc/src/destdir.macppc
    RELEASEDIR path:  /export/ofppc/src/releasedir
    Created /export/ofppc/src/tooldir.NetBSD-2.99.11-powerpc/bin/nbmake
    makewrapper:      /export/ofppc/src/tooldir.NetBSD-2.99.11-powerpc/bin/nbmake-macppc
    Updated /export/ofppc/src/tooldir.NetBSD-2.99.11-powerpc/bin/nbmake-macppc
    Successful make release
    build.sh started: Sat Dec 18 23:11:08 JST 2004
    build.sh ended:   Sun Dec 19 02:31:26 JST 2004
===> .
   123  22:50   cd /export/ofppc/src
   128  22:51   ( cvs update -dP -C > & err ) > log
   137  23:11   ( sudo ./build.sh release > & build.sh.err ) > build.sh.log
arch の指定が要るのか。

( sudo ./build.sh -m ofppc release > & build.sh-ofppc.err ) > build.sh-ofppc.log かな ?


#2 [無題] 館山方面の電池

2003/03 に交換した電池が、また無くなったらしいが、1 年半でなくなるかな ? 一年九か月か。


2004年12月18日() 旧暦 [n年日記] [更新:"2004/12/18 22:49:12"]

#1 [NetBSD][2.99.11] 二台目を 2.99.11 にした

僕の作った iso 形式 には X は入っていない。 そこで X は unselect する必要がある。そうしたはずだが、次の ように言われた。
 I cannot save /usr/X11R6/bin/X as /usr/X11R6/bin/X.old, because the target
 disk already has an /usr/X11R6/bin/X.old.  Please fix this before continuing.
    
 One way is to start a shell from the Utilities menu, examine the target
 /usr/X11R6/bin/X and /usr/X11R6/bin/X.old.  If /usr/X11R6/bin/X.old is from a
 completed upgrade, you can rm -f /usr/X11R6/bin/X.old and restart.  Or if
 /usr/X11R6/bin/X.old is from a recent, incomplete upgrade, you can rm -f
 /usr/X11R6/bin/X and mv /usr/X11R6/bin/X.old to /usr/X11R6/bin/X.
 

 Aborting upgrade.         +-----------------------+
                           |>Hit enter to continue |
                           +-----------------------+
そこで次のようにする。
               +-----------------------------------------------+
               | NetBSD-2.99.11 Install System                 |
               |                                               |
               | a: Install NetBSD to hard disk                |
               | b: Upgrade NetBSD on a hard disk              |
               | c: Re-install sets or install additional sets |
               | d: Reboot the computer                        |
               | e: Utility menu                               |
               |>x: Exit Install System                        |
               +-----------------------------------------------+
# df
Filesystem  512-blocks     Used     Avail Capacity  Mounted on
/dev/md0a         3959     3528       431    89%    /
# mount /dev/wd0a /mnt
# mount /dev/wd0g /mnt/usr
# cd /mnt/usr/  
# rm -f /mnt/usr/X11R6/bin/X.old
# umount /mnt/usr
umount: /mnt/usr: Device busy
# cd /
# umount /mnt/usr
# umount /mnt
# sysinst

upgrade だと /etc とか自動的に面倒見てくれる ?:

画面を使おうとしたが:

ttyflags: TIOCSFLAGS: on /dev/ttyE0: Device not configured
と出て鍵盤から文字が入らない

三台目 (iBook/366):

日付を合わせる
(I)nstall, (S)hell or (H)alt ? s
# mount /dev/cd0c /mnt
# /mnt/bin/date
Fri Jan  1 00:01:40 GMT 1904
# /mnt/bin/date 200412180817
date: bind Can't assign requested address
Sat Dec 18 08:17:00 GMT 2004
# umount /mnt
# 

pdisk:

OS 10.3 が入っていた 20G
# pdisk /dev/wd0c
Edit /dev/wd0c -
Command (? for help): P
Partition map (with 512 blocks) on '/dev/wd0c'
   #:                 type name                 length   base     ( size )
   1:  Apple_partition_map Apple                      63 @ 1       
   2:       Apple_Driver43*Macintosh                  56 @ 64      
   3:       Apple_Driver43*Macintosh                  56 @ 120
   4:     Apple_Driver_ATA*Macintosh                  56 @ 176
   5:     Apple_Driver_ATA*Macintosh                  56 @ 232     
   6:       Apple_FWDriver Macintosh                 512 @ 288
   7:   Apple_Driver_IOKit Macintosh                 512 @ 800
   8:        Apple_Patches Patch Partition           512 @ 1312
   9:           Apple_Free                        262144 @ 1824     (128.0M)
  10:            Apple_HFS Apple_HFS_Untitled_2 38806096 @ 263968   (18.5G)
  11:           Apple_Free                            16 @ 39070064

Device block ...
      (omiitted)

 d 10
 C 1824 65536 ofwboot Apple_HFS 
9 not HFS
9 not HFS
   1:  Apple_partition_map Apple                      63 @ 1       
   2:       Apple_Driver43*Macintosh                  56 @ 64      
   3:       Apple_Driver43*Macintosh                  56 @ 120
   4:     Apple_Driver_ATA*Macintosh                  56 @ 176
   5:     Apple_Driver_ATA*Macintosh                  56 @ 232     
   6:       Apple_FWDriver Macintosh                 512 @ 288
   7:   Apple_Driver_IOKit Macintosh                 512 @ 800
   8:        Apple_Patches Patch Partition           512 @ 1312
   9:            Apple_HFS ofwboot		   65536 @ 1824     (32.0M) 
  10:                 root A/UX                  1048576 @ 67360   (512.0M) UFS K0
  11:                 swap swap                  1048576 @ 1115936 (512.0M) 
  12:      Apple_UNIX_SVR2 /usr                  1048576 @ 2164512   (1.0G) UFS K0 /usr
  13:      Apple_UNIX_SVR2 /export              34808416 @ 4261664  (16.6G) UFS K0 /usr
 W
 q
disklabel で確認 ??
boot cd:,ofwboot.elf hd:14/netbsd
4272160read text
 start=0x0

 DEFAULT CATCH!, code=900 at %SRR0: 00000000 %SRR1: 00083030
上の pdisk は少し変だったので、もう一度 この辺 を見てやり直したが、DEFAULT CATCH! は同じ。ofwboot.elf は CDROM に入っている もの。 MacOS 9.2.2 の disk で初期しておいて、もう一度。
 C  9p 65536   Apple_HFS HFS
 c 10p 1048576 'A/UX Root' a
 c 11p 1048576 Swap        b
 c 12p 2097152 'Usr File system' g
 c 13p 30807415 /export g

#2 [Namazu] 2.0.14

2.0.14 を作って、そのうちの namazu.cgi だけを /usr/pkg/libexec/cgi-bin/namazu.cgi に写した。

#3 [ofppc] Debian GNU/Linux の CD

debia powerpc iso files これを使って このようにすれば よい ?

なんだ netboot するではないか:

 0 > boot net 
 LOAD: Waiting 60 seconds for Spanning Tree
 BOOTP R = 1 BOOTP S = 1  
 FILE: /tftpboot/boot
 Load Addr=0x4000 Max Size=0xbfc000 
 FINAL Packet Count = 107   Final File Size = 54468 bytes.
                     
 Unexpected Firmware Error:
 DEFAULT CATCH!, code=fff00300 at   %SRR0: 00c1b030   %SRR1: 00003030 
  ok
 0 > go 
 >> NetBSD/ofppc OpenFirmware Boot, Revision 1.5
 >> (makoto@st4200, Fri Dec 17 08:21:28 JST 2004)
 net_open: client addr: 192.168.111.208
 net_open: subnet mask: 255.255.255.0
 net_open: net gateway: 192.168.111.1
 net_open: server addr: 192.168.111.223
 net_open: server path: /tftpboot
 net_open: file name: /tftpboot/boot
 Using IP address: 192.168.111.208
 root addr=192.168.111.223 path=/tftpboot
 open /netbsd.ofppc: Permission denied
 net_open: client addr: 192.168.111.208
 net_open: subnet mask: 255.255.255.0
 net_open: net gateway: 192.168.111.1
 net_open: server addr: 192.168.111.223
 net_open: server path: /tftpboot
 net_open: file name: /tftpboot/boot
 Using IP address: 192.168.111.208
 root addr=192.168.111.223 path=/tftpboot
                     
 Unexpected Firmware Error:
 DEFAULT CATCH!, code=fff00200 at   %SRR0: 6f667768   %SRR1: 00083000 
  ok
 0 > 

root path を設定してやったら、:

>> NetBSD/ofppc OpenFirmware Boot, Revision 1.5
>> (makoto@st4200, Fri Dec 17 08:21:28 JST 2004)
net_open: client addr: 192.168.111.208
net_open: subnet mask: 255.255.255.0
net_open: net gateway: 192.168.111.1
net_open: server addr: 192.168.111.223
net_open: server path: /tftpboot
net_open: file name: /tftpboot/boot
Using IP address: 192.168.111.208
root addr=192.168.111.223 path=/tftpboot
2317224+308464 [127888+116469]=0x2bce74
 start=0x100000
NetBSD does not yet support the "IBM,7046-B50".
Using generic OpenFirmware driver support.
Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004
    The NetBSD Foundation, Inc.  All rights reserved.
Copyright (c) 1982, 1986, 1989, 1991, 1993
    The Regents of the University of California.  All rights reserved.

NetBSD 2.99.11 (GENERIC) #0: Fri Dec 17 08:17:01 JST 2004
        makoto@st4200:/export/ofppc/src/sys/arch/ofppc/compile/GENERIC
total memory = 256 MB
avail memory = 240 MB
bootpath /pci@80000000/ethernet@c/netbsd.ofppc
cbootpath /pci@80000000/ethernet@c
mainbus0 (root): IBM,7046-B50
cpu0 at mainbus0 (PowerPC,604e@0): 604e (Revision 1.2), ID 0 (primary)
cpu0: HID0 c001c086<EMCP,DBP,NHR,ICE,DCE,SGE,BHT,NOPDST>
cpu0: 56.25 MHz
ofbus0 at mainbus0 (event-sources)
epow-events at ofbus0 not configured
memory-controller@fec00000 at mainbus0 not configured
ofbus1 at mainbus0 (rom@ff000000)
boot-rom@fff00000 at ofbus1 not configured
rtas at mainbus0 not configured
ofbus2 at mainbus0 (pci@80000000)
ofbus3 at ofbus2 (isa@b)
reserved@i92 at ofbus3 not configured
IBM,tablet-port@i898 at ofbus3 not configured
nvram@i74 at ofbus3 not configured
ofrtc0 at ofbus3 (rtc@i70): rtc
IBM,eeprom@i78 at ofbus3 not configured
parallel@i378 at ofbus3 not configured
ofcons0 at ofbus3 (serial@i3f8)
serial@i2f8 at ofbus3 not configured
sound@i534 at ofbus3 not configured
8042@i60 at ofbus3 not configured
ofbus4 at ofbus3 (fdc@i3f0)
ofdisk0 at ofbus4 (disk@0)
IBM,op-panel@i808 at ofbus3 not configured
IBM,pwr-mgmt@i82a at ofbus3 not configured
timer@i40 at ofbus3 not configured
interrupt-controller@i20 at ofbus3 not configured
dma-controller@i0 at ofbus3 not configured
ofnet0 at ofbus2 (ethernet@c): address 00:04:ac:17:xx:yy
interrupt-controller@d at ofbus2 not configured
ofbus5 at ofbus2 (scsi@10)
ofdisk1 at ofbus5 (sd@0)
ofdisk2 at ofbus5 (sd@1)
ofdisk3 at ofbus5 (sd@2)
ofdisk4 at ofbus5 (sd@3)
ofdisk5 at ofbus5 (sd@4)
ofdisk6 at ofbus5 (sd@5)
ofdisk7 at ofbus5 (sd@6)
st@0 at ofbus5 not configured
st@1 at ofbus5 not configured
st@2 at ofbus5 not configured
st@3 at ofbus5 not configured
st@4 at ofbus5 not configured
st@5 at ofbus5 not configured
st@6 at ofbus5 not configured
display@16 at ofbus2 not configured
boot device: <unknown>


2004年12月17日(金) 旧暦 [n年日記] [更新:"2004/12/17 09:45:31"]

#1 [NetBSD][ofppc] network boot の問題かどうか

見るために DOS 形式の FD に ofwboot を書いて起動してみる:
 0 > boot floppy:,ofwboot /
 Unexpected Firmware Error:
 DEFAULT CATCH!, code=fff00300 at   %SRR0: 00c1b030   %SRR1: 00003030 
  ok
 0 > 
netboot と全く同じ。 一応念為:
0 > printenv load-base 
-------------- Partition: common -------- Signature: 0x70 ---------------
load-base                200000              4000 
 ok
0 > 200000 100 dump 
00200000: 7f 45 4c 46 01 02 01 00 00 00 00 00 00 00 00 00 :.ELF............:
00200010: 00 02 00 14 00 00 00 01 00 02 00 00 00 00 00 34 :...............4:
00200020: 00 00 d3 0c 00 00 00 00 00 34 00 20 00 01 00 28 :.........4. ...(:
00200030: 00 0b 00 0a 00 00 00 01 00 00 00 80 00 02 00 00 :................:
00200040: 00 02 00 00 00 00 c8 1c 00 00 ed c8 00 00 00 07 :................:
00200050: 00 00 00 10 00 00 00 00 00 00 00 00 00 00 00 00 :................:
00200060: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 :................:
00200070: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 :................:
00200080: 39 00 00 00 39 20 01 00 7d 29 03 a6 7c 00 40 ac :9...9 ..})..|.@.:
00200090: 7c 00 47 ac 39 08 00 20 42 00 ff f4 7c 00 04 ac :|.G.9.. B...|...:
002000a0: 4c 00 01 2c 3c 20 00 03 38 21 c8 90 38 21 20 00 :L..,< ..8!..8! .:
002000b0: 48 00 00 40 94 21 ff f0 7c 08 02 a6 90 01 00 14 :H..@.!..|.......:
002000c0: 7c 00 04 ac 4c 00 01 2c 3d 20 00 03 81 29 c8 1c :|...L..,= ...)..:
002000d0: 7d 29 03 a6 4e 80 04 21 7c 00 04 ac 4c 00 01 2c :})..N..!|...L..,:
002000e0: 80 01 00 14 38 21 00 10 7c 08 03 a6 4e 80 00 20 :....8!..|...N.. :
002000f0: 3c 60 00 03 3d 20 00 03 94 21 ff e0 38 63 c8 1c :<`..= ...!..8c..: ok
0 > 20000 100 dump 
00020000: 39 00 00 00 39 20 01 00 7d 29 03 a6 7c 00 40 ac :9...9 ..})..|.@.:
00020010: 7c 00 47 ac 39 08 00 20 42 00 ff f4 7c 00 04 ac :|.G.9.. B...|...:
00020020: 4c 00 01 2c 3c 20 00 03 38 21 c8 90 38 21 20 00 :L..,< ..8!..8! .:
00020030: 48 00 00 40 94 21 ff f0 7c 08 02 a6 90 01 00 14 :H..@.!..|.......:
00020040: 7c 00 04 ac 4c 00 01 2c 3d 20 00 03 81 29 c8 1c :|...L..,= ...)..:
00020050: 7d 29 03 a6 4e 80 04 21 7c 00 04 ac 4c 00 01 2c :})..N..!|...L..,:
00020060: 80 01 00 14 38 21 00 10 7c 08 03 a6 4e 80 00 20 :....8!..|...N.. :
00020070: 3c 60 00 03 3d 20 00 03 94 21 ff e0 38 63 c8 1c :<`..= ...!..8c..:
00020080: 39 29 ed c8 7c 08 02 a6 7d 23 48 50 38 80 00 00 :9)..|...}#HP8...:
00020090: bf a1 00 14 90 01 00 24 7c bd 2b 78 7d 25 4b 78 :.......$|.+x}%Kx:
000200a0: 48 00 65 5d 3d 20 00 03 93 a9 c8 1c 48 00 03 b1 :H.e]= ......H...:
000200b0: 48 00 08 d1 48 00 00 05 94 21 ff f0 3c 60 00 03 :H...H....!..<`..:
000200c0: 7c 08 02 a6 38 63 c5 bc 90 01 00 14 4b ff ff 69 :|...8c......K..i:
000200d0: 48 00 00 00 94 21 ff f0 7c 08 02 a6 3d 20 00 03 :H....!..|...= ..:
000200e0: 90 01 00 14 39 29 c5 c8 7c 60 1b 78 7d 23 4b 78 :....9)..|`.x}#Kx:
000200f0: 90 09 00 0c 4b ff ff 41 48 00 00 00 94 21 ff e0 :....K..AH....!..: ok
0 > 
load-base 200 000 に譜の内容がそのまま置いてあり、それを解釈した内容が ofwboot を作る時に指定した 20 000 に置いてある。
0 > .registers 
Client's Fix Pt Regs:
 00 00000000 00efffe0 00000000 00000000 00000000 00c1a078 00000000 00000000
 08 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
 10 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
 18 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
Special Regs:
    %IV: 00000000   %SRR0: 00020000   %SRR1: 00003000 
    %CR: 00000000     %LR: 00000000    %CTR: 00000000    %XER: 00000000 
   %DAR: 00000000  %DSISR: 00000000   %SDR1: 00fe0000 
 ok
0 > 
%SRR0 は ofwboot の開始の 20 000 になっている。


2004年12月15日(水) 旧暦 [n年日記] [更新:"2004/12/16 13:05:50"]

#1 [NetBSD][build.sh] snapshot 20041211ts

NetBSD/macppc 2.99.11 の snapshot を作る。
CDROM も作ったので、 OF 1.0.5 の機械で新たに入れて見る。(Pulsar S900, tsunami) 12/11 に湘南通商で (1,050 円)で 買って来た Apple 印の Wester Digital Caliver 6.0G に入れる。ATA/33。 一部読めないセクタがある。その辺に空の区画を作って避けるようにすると、 問題ない。


2004年12月14日(火) 旧暦 [n年日記] [更新:"2004/12/14 12:12:41"]

#1 [印刷] トナー交換

印刷枚数:

総印刷枚数:
	5653

トレイ1印刷枚数:
	3355

MPトレイ印刷枚数:
	133
シアン印刷枚数:	1431
マゼンタ印刷枚数:	1431
イエロー印刷枚数:	1431
ブラック印刷枚数:	5638

ベルトユニット:
	6330 イメージ

定着器:
	5652 プリント
この状態で交換


2004年12月13日(月) 旧暦 [n年日記] [更新:"2004/12/13 23:17:48"]

#1 [NetBSD][buil.sh] 20041211ts

# compile libiberty/./cp-demangle.o
/export/20041211/checkout/src/tooldir.NetBSD-2.0H-powerpc/bin/powerpc--netbsd-gcc -O2 -fno-strict-aliasing -Werror -DHAVE_CONFIG_H -I/export/20041211/checkout/src/gnu/lib/libiberty -I/export/20041211/checkout/src/gnu/dist/binutils/include -nostdinc -isystem /export/20041211/checkout/src/destdir.macppc/usr/include -c /export/20041211/checkout/src/gnu/dist/binutils/libiberty/cp-demangle.c -o ./cp-demangle.o.tmp
/export/20041211/checkout/src/gnu/dist/binutils/libiberty/cp-demangle.c: In function `d_print_resize':
/export/20041211/checkout/src/gnu/dist/binutils/libiberty/cp-demangle.c:2656: warning: assignment makes pointer from integer without a cast
/export/20041211/checkout/src/gnu/dist/binutils/libiberty/cp-demangle.c: In function `cplus_demangle_print':
/export/20041211/checkout/src/gnu/dist/binutils/libiberty/cp-demangle.c:2743: warning: assignment makes pointer from integer without a cast
/export/20041211/checkout/src/gnu/dist/binutils/libiberty/cp-demangle.c: In function `d_demangle':
/export/20041211/checkout/src/gnu/dist/binutils/libiberty/cp-demangle.c:3807: warning: assignment makes pointer from integer without a cast

*** Failed target: ./cp-demangle.o
*** Failed command: /export/20041211/checkout/src/tooldir.NetBSD-2.0H-powerpc/bin/powerpc--netbsd-gcc -O2 -fno-strict-aliasing -Werror -DHAVE_CONFIG_H -I/export/20041211/checkout/src/gnu/lib/libiberty -I/export/20041211/checkout/src/gnu/dist/binutils/include -nostdinc -isystem /export/20041211/checkout/src/destdir.macppc/usr/include -c /export/20041211/checkout/src/gnu/dist/binutils/libiberty/cp-demangle.c -o ./cp-demangle.o.tmp
*** Error code 1
src/gnu/dist/binutils/libiberty/cp-demangle.c

一部分だけ実行:

ttyp1:makoto@st4200 9:32:44/041213(...lib/libiberty)> pwd /export/20041211/checkout/src/gnu/lib/libiberty
ttyp1:makoto@st4200 9:32:55/041213(...lib/libiberty)> sudo env TOOLDIR=/export/20041211/checkout/src/tooldir.NetBSD-2.0H-powerpc make dependall

#2 [ofppc] memory を調べる

ofwboot を 200,000 に load した(つもりの)時
0 > %SRR0 20000 dis 
00020000: 60000000
00020004: 4bfffffc
00020008: 39000000
0002000c: 39200100
00020010: 7d2903a6
00020014: 7c0040ac
00020018: 7c0047ac
0002001c: 39080020
一つ桁がずれているなぁ。いや、

0 > %SRR0 200000 dis:

00200000: 7f454c46
00200004: 01020100
00200008: 00000000
0020000c: 00000000
00200010: 00020014
00200014: 00000001
00200018: 00020000
0020001c: 00000034
00200020: 0000d23c
....
....
00208007c: 00000000
00200080: 60000000
00200084: 4bfffffc
00200088: 39000000
0020008c: 39200100
00200090: 7d2903a6
00200094: 7c0040ac
00200098: 7c0047ac
何だか elf の形式をそのまま memory に置いている ? macppc の生の ofwboot を置いたら、
 BOOTP S = 1 
 FILE: /tftpboot/boot
 Load Addr=0x200000 Max Size=0xa00000 
 FINAL Packet Count = 98 
 FINAL File Size = 50076 bytes.
 unrecognized Client Program formatstate not valid
  ok

きょう分ったこと:

  1. ELF 形式を読ませると、一度その中身を load-base の指定の番地に 置く
  2. その内容を見て、 ELF の番地、例えば ofwboot で言えば Makefile の RELOC= で指定しているところに置き直す (通常 20 000)。
  3. その辺の様子は %SRR0 番地 dis と入力すると分る
  4. 失敗した後に、続けて boot net などとすると次のようになる
     0 > boot net 
     BOOTP S = 1 
     FILE: /tftpboot/boot
     Load Addr=0x100000 Max Size=0xb00000 
     FINAL Packet Count = 106 
     FINAL File Size = 54240 bytes.
     CLAIM failed        
      ok
     0 > 
    
    これは 20 000 などはもう使っているから、同じところは使えないよ と言っている(らしい) ...失敗した後で RELOC を変更して作って そのまま boot net すると、CLAIM failed とは言われない

0 > boot net:

 BOOTP S = 4 
 FILE: /tftpboot/boot
 Load Addr=0x200000 Max Size=0xa00000 
 FINAL Packet Count = 106 
 FINAL File Size = 54240 bytes.
                     
 Unexpected Firmware Error:
 DEFAULT CATCH!, code=fff00300 at   %SRR0: 00c1b030   %SRR1: 00003030 
  ok

0 > .registers dev /memory .properties:

 Client's Fix Pt Regs:
  00 00000000 00efffe0 00000000 00000000 00000000 00c1a078 00000000 00000000
  08 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
  10 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
  18 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
 Special Regs:
     %IV: 00000000   %SRR0: 00080000   %SRR1: 00003000 
     %CR: 00000000     %LR: 00000000    %CTR: 00000000    %XER: 00000000 
    %DAR: 00000000  %DSISR: 00000000   %SDR1: 00fe0000 
 
 name                    memory
 device_type             memory
 reg                     00000000  10000000 
 available               00012cf8 00bed308 01000000 0f000000 
 #address-cells          00000001 
 #size-cells             00000000 
 
  ok
 0 > 
PC は RELOC= で指定した 80000 を指している .. Firmware の版を上げる必要があるのかな。 Microcode downloads
  1. dos で FD を作って
  2. 6 Update System Firmware を選ぶが、 何故かうまく行かない
    .----------------------------------------------------------------------.
    | The firmware update file could not be located on the current drive.  |
    | Firmware update cancelled.                                           |
    `----------------------------------------------------------------------'
    
  3. S120 System Firmware Update を見ると、必ずしもなくてもいいかなと思ったり
さらに良く見ると、AIX から update する時と、SMS から update する時では、 floppy の作り方が違う。ただの DOS FD で良かった。 という訳で、OF に入る時の表示が変った。これは以前にはなかった。
1 = SMS Menu                5 = Default Boot List
8 = Open Firmware Prompt    6 = Stored Boot List
もし 1 を選ぶと
RS/6000 Firmware
Version TCP04195

boot net は同じ:

 0 > boot net 
 LOAD: Waiting 60 seconds for Spanning Tree
 BOOTP R = 1 BOOTP S = 1  
 FILE: /tftpboot/boot
 Load Addr=0x200000 Max Size=0xa00000 
 FINAL Packet Count = 106   Final File Size = 54240 bytes.
                     
 Unexpected Firmware Error:
 DEFAULT CATCH!, code=fff00300 at   %SRR0: 00c1b030   %SRR1: 00003030 
  ok
 0 > 


2004年12月12日() 旧暦 [n年日記] [更新:"2004/12/12 17:33:39"]

#1 [Meadow] xkeymacs

きのう教わったものの一つ。Win2k のキー割当を変更する。 特に Emacs のように変更するのに便利。

#2 [機械] NFS server を入替

1.6Q (G4/400) から 2.99.10 (G3/350) に入替。やはり mount しっ放しの client は再起動が必要 だった(気がする)


2004年12月10日(金) 旧暦 [n年日記] [更新:"2004/12/11 01:26:48"]

#1 [ofppc] printenv

RS/6000 B50 自分で誕生日の贈り物 :-)
 D      W      H
 63cm x 48cm x 9cm
debian info
0 > printenv 
-------------- Partition: of-config -------- Signature: 0x50 ---------------
ibm,fw-keyswitch         normal              normal
ibm,fw-dc-select         7ff                 0
ibm,fw-mouse-device      nomouse             nomouse
ibm,fw-default-mac-address? false            false
ibm,fw-hrp-memmap?       true                true
ibm,fw-xoff-enable?      true                true
ibm,fw-pnp-isa?          true                true
ibm,fw-obe-audio?        true                true
ibm,fw-full-memory-test? true                true
ibm,fw-forced-boot                           
ibm,fw-n-bc              255.255.255.255     255.255.255.255
ibm,fw-n-bretry          00                  00
ibm,fw-n-tretry          00                  00
ibm,fw-n-dbfp            00000000            00000000
ibm,fw-n-dafp            00000000            00000000
ibm,fw-n-rc              A                   A
ibm,fw-n-ru              Y                   Y
ibm,fw-clientipaddr      000.000.000.000     000.000.000.000
ibm,fw-serveripaddr      000.000.000.000     000.000.000.000
ibm,fw-gatewayipaddr     000.000.000.000     000.000.000.000
ibm,fw-netmask           255.255.255.000     255.255.255.000
-------------- Partition: common -------- Signature: 0x70 ---------------
little-endian?           false               false
real-mode?               true                true
auto-boot?               true                true
diag-switch?             false               false
fcode-debug?             false               false
oem-banner?              false               false
oem-logo?                false               false
use-nvramrc?             false               false
ibm,fw-tty-language      1                   1 
real-base                c00000              c00000 
real-size                400000              400000 
virt-base                -1                  -1 
virt-size                400000              400000 
load-base                4000                4000 
screen-#columns          64                  64 
screen-#rows             28                  28 
selftest-#megs           0                   0 
boot-device              /pci@80000000/scsi@10/sd@2:2 
boot-file *                                  
diag-device              /pci@80000000/scsi@10/sd@2:2 
diag-file *              diag                diag
input-device             com1                /pci/isa/serial
output-device            com1                /pci/isa/serial
oem-banner                                   
oem-logo                                     
nvramrc                                      
boot-command             boot                boot
reboot-command                               
security-#badlogins      0                   0 
security-mode            none                none
security-password                            
menu?                    false               false
ibm,dasd-spin-interval   2                   2 
ibm,fw-pci-hint,00b010   0520102b fe000000
ibm,fw-pci-hint,00b014   0520102b ff800000
bootinfo-aix             /pci@80000000/scsi@10/sd@2:3
ibm,os-auto-restart      0
 ok
0 > 

dev / ; ls:

0 > ls 
00c4e638: /cpus
00c4e878:   /PowerPC,604e@0
00c4ed38:     /l2-cache
00c4f668: /event-sources
00c4f6d0:   /epow-events
00c4f768: /chosen
00c4f8b8: /memory@0
00c52198:   /IBM,memory-module@3
00c52598: /memory-controller@fec00000
00c526e0: /openprom
00c57b08: /rom@ff000000
00c58008:   /boot-rom@fff00000
00c58168: /options
00c58c18: /aliases
00c5a710: /packages
00c5a798:   /deblocker
00c5b278:   /disk-label
00c5e3c8:   /tape-label
00c5e648:   /obp-tftp
00c66c20:   /prep-boot
00c671d8:   /fat-files
00c68c10:   /utilities
00c72658:   /net
00c73e30:   /iso-9660-files
00c74d40:   /elf-loader
00c76ca0:   /pe-loader
00c774c0:   /chrp-loader
00c77650:   /boot-mgr
00c8b840:   /terminal-emulator
00cc8fa0:   /gui
00d52d78:   /post
00c8b8d8: /rtas
00c989a8: /pci@80000000
00c9c828:   /isa@b
00c9e438:     /reserved@i92
00c9e518:     /IBM,tablet-port@i898
00c9e6c8:     /nvram@i74
00c9edf0:     /rtc@i70
00ca0408:     /IBM,eeprom@i78
00ca21f8:     /parallel@i378
00ca2800:     /serial@i3f8
00ca3688:     /serial@i2f8
00ca4510:     /sound@i534
00cad028:     /8042@i60
00cae948:     /fdc@i3f0
00cb2008:       /disk@0
00cb2790:     /IBM,op-panel@i808
00cb28d8:     /IBM,pwr-mgmt@i82a
00cb2ca0:     /timer@i40
00cb31e8:     /interrupt-controller@i20
00cb3420:     /dma-controller@i0
00cb39f8:   /ethernet@c
00cbc708:   /interrupt-controller@d
00cbcd18:   /scsi@10
00cc2490:     /sd
00cc33f0:     /st
00cc4730:   /display@16
 ok
0 > 
実はどうやると入力待の ok を出せるのかは分っていない。上は偶然出て来た時のもの。
     memory      keyboard     network      scsi      
speaker      
        21a00001

RS/6000 RS/6000 RS/6000       STARTING SOFTWARE         RS/6000 RS/6000 RS/6000
RS/6000 RS/6000 RS/6000         PLEASE WAIT...          RS/6000 RS/6000 RS/6000
この speaker 21a00001 の時に 8 を押すとそうなる ?

sys/arch/ofppc:

powerpc/param.h:88:1: this is the location of the previous definition
/tmp/15519.c: In function `f47':
/tmp/15519.c:57: error: structure has no member named `tf_xtra'
/tmp/15519.c:57: error: `TF_VRSAVE' undeclared (first use in this function)
(自分の力を考えると)まずは素の方でやるべきなのかな ?

0 > devalias:

scsi                /pci@80000000/scsi@10
disk                /pci@80000000/scsi@10/sd@2,0
cdrom               /pci@80000000/scsi@10/sd@3,0
com1                /pci@80000000/isa@b/serial@i3f8
serial              /pci@80000000/isa@b/serial@i3f8
com2                /pci@80000000/isa@b/serial@i2f8
floppy              /pci@80000000/isa@b/fdc@i3f0/disk@0
net                 /pci@80000000/ethernet@c
network             /pci@80000000/ethernet@c
rtc                 /pci@80000000/isa@b/rtc@i70
nvram               /pci@80000000/isa@b/nvram@i74
sound               /pci@80000000/isa@b/sound@i534
parallel            /pci@80000000/isa@b/parallel@i378
screen              /pci@80000000/isa@b/serial@i3f8
 ok
0 > 

boot net:

boot net とすると、bootp で探しに行くようだ。MAC address は
dev net
.properties
と入力すると、次のように表示される。
local-mac-address       0004ac17 xxxx
mac-address             0004ac17 xxxx
一応伏字。

kernel を直接 load して見る:

load-base を 100000 に変更しておく。
 0 > boot net 
 BOOTP S = 4 
 FILE: /tftpboot/netbsd
 Load Addr=0x100000 Max Size=0xb00000 
 FINAL Packet Count = 5091 
 FINAL File Size = 2606086 bytes.
                     
 Unexpected Firmware Error:
 DEFAULT CATCH!, code=fff00300 at   %SRR0: 00c1b030   %SRR1: 00003030 
  ok
 0 > 
ちょっと乱暴すぎ ? 一度失敗した後は、次のように言われてだめ。
0 > setenv load-base 20000  ok
0 > boot net Unable to use memory at load-base
 ok
0 > 
ofwboot にして見る
 0 > boot net 
 BOOTP S = 4 
 FILE: /tftpboot/ofwboot
 Load Addr=0x20000 Max Size=0xbe0000 
 FINAL Packet Count = 107 
 FINAL File Size = 54468 bytes.
                     
 Unexpected Firmware Error:
 DEFAULT CATCH!, code=fff00300 at   %SRR0: 00c1b030   %SRR1: 00003030 
  ok
 0 > 
c1b030 って何 ? real-base c00000 の近くだなぁ。

ofwboot の Makefile の RELOC を c00000 にして見たら、様子が変った。 以下は起動直後に boot net としている。

 0 > boot net 
 BOOTP S = 4 
 FILE: /tftpboot/ofwboot
 Load Addr=0x4000 Max Size=0xbfc000 
 FINAL Packet Count = 107 
 FINAL File Size = 54468 bytes.
 CLAIM failed        
  ok
 0 > 
これは 「OF に対して何か要求したのだけれど、それがうまく行かなかった」 という意味だと以前教わったことがある。

しかし Locore.c の最初に nop/loop を入れても、同じなので、

  c1b03c:       60 00 00 00     nop
  c1b040:       4b ff ff fc     b       0xc1b03c
上の話は今回にはあてはまらない。

CLAIM failed は、「その場所に load 出来ない」という意味だろう。

初めから load-base 0 にすると、:

0 > setenv load-base 0  ok
0 > boot net Unable to use memory at load-base

dev memory:

0 > dev memory  ok
0 > ls 
00c52198: /IBM,memory-module@3
 ok
0 > .properties 
...
available               00012cf8 00bed308 01000000 0f000000 
..
0001 2cf8 
00be d308 
0100 0000     64k x 256      = 16M
0f00 0000     64k x 256 x 15 =240M 
ISO 9660 なら boot する ?

これはもしかしたら、iso 形式なら Prep mode で boot するという意味か ?

netbsd だけ入った iso 9660 を作って見たら、次のように言う:

 0 > boot net 
 BOOTP S = 1 
 FILE: /tftpboot/CDimage
 Load Addr=0x200000 Max Size=0xa00000 
 FINAL Packet Count = 1857 
 FINAL File Size = 950272 bytes.
 PReP-BOOT: Could not open deblocker
                     
 Unexpected Firmware Error:
 DEFAULT CATCH!, code=fff00300 at   %SRR0: 00c1b030   %SRR1: 0000b030 
  ok
 0 > 
この場合 deblocker って cat でいいのかな。 cat を deblocker という名前で置いたら、それは言わなくなった。
 0 > boot net 
 BOOTP S = 1 
 FILE: /tftpboot/CDimage
 Load Addr=0x200000 Max Size=0xa00000 
 FINAL Packet Count = 1857 
 FINAL File Size = 950272 bytes.
                     
 Unexpected Firmware Error:
 DEFAULT CATCH!, code=fff00300 at   %SRR0: 00c1b030   %SRR1: 00003030 
  ok
 0 > 
ofwbootd というのを使うのかな。


2004年12月09日(木) 旧暦 [n年日記] [更新:"2004/12/10 09:16:31"]

#1 [Emacs] Wanderlust

I have followin line in Summary mode,
12907 N 12/07(火)02:59 ] "" <calisun at exci] Can't Boot BSD AFTER installtion
I've got "Wrong type argument: arrayp, nil" The mail has following From: header
From: "" <calisun at excite dot com>

#2 [RS/6000] GNU/Linux Debian Potato (2.2) under RS/6000 B50 and 43p-150

何だか簡単そうに動くように書いてある。

良く見ると、手続(操作)が大変そう。



2004年12月07日(火) 旧暦 [n年日記] [更新:"2004/12/07 23:45:41"]

#1 [Emacs] MozEx (firefox からエディタを利用する方法)

あおきにっきつっこみつき から。

showoldext.xpi が Install script not found になってしまう。

MozEx の方は入る .. ?

あ、要らないのかも知れない。

でも、Tools -> Extentions は出て来ないな。 代りに
Preference -> Advanced -> mozex 
の画面で
Directory for tmporary files: /tmp
Commands -> Textareas: "/usr/local/bin/emacsclient %t"
を指定(後で間違いと分る)。 Emacs の方で M-x server-start しておく。

Mozilla を再起動して、text area で右クリック。mozex -> Edit Textarea NS_ERROR_FILE_UNRECOGNIZED_PATH なんて言われる。 どうも二重引用符を付けたせいらしい。/tmp のには付けていなかったのに。

Directory for tmporary files: /tmp
Commands -> Textareas: /usr/local/bin/emacsclient %t
これで大丈夫。 そうそう、UTF-8 にしておく必要がある。 いままでは、~/.emacs に次のようにしていた。
(add-hook 'w3m-form-input-textarea-mode-hook
	  (lambda ()
	    (set (make-local-variable 'outline-regexp)
		 "^[=!:]+")
	    (outline-minor-mode t)
	    ))
(setq outline-minor-mode-prefix "\C-c\C-m");
これを次のように変更。
(add-hook 'w3m-form-input-textarea-mode-hook
	  (lambda ()
	    (set (make-local-variable 'outline-regexp)
		 "^[=!:]+")
	    (outline-minor-mode t)
	    (if (string-match "mozex.textarea." buffer-file-name)
            (set-buffer-file-coding-system 'utf-8 ))))
(setq outline-minor-mode-prefix "\C-c\C-m");
しかし 何故か上の方法では utf-8 になってくれない。 (追記: これは emacs-w3m の hook だから emacsclient から起動した ものが通る訳がない ... 何故そんな簡単なこと .. 気が付かなかったのかな)

次のように書いておくと大丈夫。

(add-hook 'find-file-hooks
	  (function (lambda ()
		      (if (string-match "mozex\\.textarea" buffer-file-name)
			  (set-buffer-file-coding-system 'utf-8))
)))
C-x C-s で保存する。textarea を一回クリックすると、 編集中の文字が表示される。 ちなみに
  • Emacs = CVS 版
  • Mozilla 1.7 (pkgsrc 版)
  • OS NetBSD/macppc

実は emacs-w3m と bitchannel の組合せ:

で、何回か編集内容を失ったことがある。 複数の人が同時に書込む時には、当然のように そうなる。しかも textarea の編集なので、 backup も失なわれてしまう。

複数人で編集していなくても、何かの操作の間違い で、失ってしまったことも多かった。 例えば続けて何回か更新する場合、 一つ前の世代のキャッシュが残っているのに気が付かず、 そこから編集を始めてしまうと、その直前の変更内容 が失われてしまう。

原因とか対策とか考えようと思っているうちに、この mozex に出会う。操作も一段階少ないので、多分常用 することになるのかな。



2004年12月06日(月) 旧暦 [n年日記] [更新:"2004/12/06 09:29:37"]

#1 [Emacs] Wanderlust wl-draft-config-alist の書き方

(setq wl-draft-config-alist
	(t
	 ("From" . "藤原 誠/ Makoto Fujiwara <makoto at ki dot nu>"))
         ...
	((string-match  "port-macppc" wl-draft-parent-folder)
	 ("From" .  "Makoto Fujiwara <makoto at ki dot nu>")))
指定がなかった時の設定を最初に書いておく必要がある (t で始まる S 式がその部分)。


2004年12月04日() 旧暦 [n年日記] [更新:"2004/12/04 22:18:48"]

#1 [NetBSD/macppc] 2.99.10

何回かうまく動いていた後に、こうなる。
trap type 200 at 1cd8c4
Stopped in pid 0.1 (swapper) at netbsd:tlp_srom_size+0x1b0:     eieio
db> tr
at tlp_read_srom+44
at tlp_pci_attach+784
at config_attach_loc+2d4
at config_found_sm_loc+64
at pci_probe_device+2b4
at pci_enumerate_bus+204
at pcirescan+58
at pciattach+194
at config_attach_loc+2d4
at config_found_sm_loc+64
at bandit_attach+1ac
at config_attach_loc+2d4
at config_found_sm_loc+64
at mainbus_attach+1a8
at config_attach_loc+2d4
at config_rootfound+48
at cpu_configure+84
at configure+50
at main+324
at 0x100090
db> 
あれ、動いた。Cuda reset の後。 UMAX S900, OF 1.0.5


2004年12月03日(金) 旧暦 [n年日記] [更新:"2004/12/03 11:06:34"]

#1 [Perl] IM:Config

ずうっと昔に書いた perl が動かないと思ったら
Can't locate IM/Config.pm in @INC (@INC contains: 
で、次のものが何を必要とするのか良く思い出せない。
  $rcsid =  q$Id: index2.cgi,v 1.5 1998/11/10 14:05:22 makoto Exp makoto $;
....
use IM::Config;
use IM::EncDec;
しばらくして im-141.tar.gz を使っていたことが分る。



最近の日記
2024年05月08日
comparison on ./buildsh tools
2024年05月06日
py-setuptools (python 3.11.9)
make release took 1 hours and 10 min
qemu invocation for 10.99.10
2024年05月05日
Windows 10 version
serial connection
bc bench
2024年05月04日
Trial on 10.99.10
another version (later trial) to succeed
2024年04月29日
dkim
以上、22 日分です。
タイトル一覧
カテゴリ分類
Powered by hns-2.19.9, HyperNikkiSystem Project

Count.cgi (since 2000/02/05)