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

先月 2004年04月 来月
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
Namazu for hns による簡易全文検索
詳しくは 詳細指定/ヘルプを参照して下さい
検索式:

2004年04月30日(金) 旧暦 [n年日記]

#1 [NetBSD][macppc] snapshot 置場を整理

古いもの、次の大きさを見えないところに移動
782368  ftp-hide
代りに 1.6ZI macppccd.iso を置く。 source 付なので 400M 越。bin/date (static)付。 OF 3 の機械で起動することは確認。
> boot cd:,ofwboot.elf
ただし、新しい機械だと、OF は 56.7k なのに console は 38.4k なので、 console に切替った時に速度も変更する必がある。
source 無も作った方がいい気がするが、まあ、使う人はいないでしょう。多分。
0 > boot ata/atapi-disk@0:0 DEFAULT CATCH!, code=FFF00700 at %SRR0: 00004000 %SRR1: 00083070 ok
がーん。0x1a0 の半分は 0xb0 でなくて 0xd0 だ。
と思ったが、これを直しても同じ。考えると、上の 00004000 は、 bootxx さえも読んでいないということのような。 古い CD-ROM (その場合 0x1b400 -> 0xdc となっている) だと起動するから、どういう間違いかなぁ。 良品 gcc 2.95.3
00002000  39 00 40 00 39 20 00 20  7d 29 03 a6 7c 00 40 ac  |9.@.9 . })..|.@.|
00002010  7c 00 47 ac 39 08 00 20  42 00 ff f4 7c 00 04 ac  ||.G.9.. B...|...|
00002020  38 00 00 00 7c 1e 83 a6  7c 16 83 a6 4c 00 01 2c  |8...|...|...L..,|
不良品 gcc 3.3.4
00002000  7f 45 4c 46 01 02 01 00  00 00 00 00 00 00 00 00  |.ELF............|
00002010  00 02 00 14 00 00 00 01  00 00 40 00 00 00 00 34  |..........@....4|
00002020  00 00 04 bc 00 00 00 00  00 34 00 20 00 01 00 28  |.........4. ...(|
00002030  00 0c 00 09 00 00 00 01  00 00 00 74 00 00 40 00  |...........t..@.|
bootxx の内容が違う ? gcc 3.3.4 の時には、elf でなくて生ね、と言う必要がある ? 実は bootcd/Makefile を(何故か)変更していて、それが良くなかった。 直して
0 > boot ata/atapi-disk@0:0 DEFAULT CATCH!, code=FFF00700 at %SRR0: 00000000 %SRR1: 00083070
bootxx の中の、次の行は、普通なら installboot が上書きするが、 (本当 ??)
void (*entry_point)(int, int, void *) = (void *)0;
CDROM の場合には、これではだめだよな。これで 0000 0000 に飛んでいる。 少し前のだと、次のようにしている。ここに ofwboot を置く。
void (*entry_point)(int, int, void *) = (void *)0x600000;
0 > boot ata/atapi-disk@0:0 DEFAULT CATCH!, code=FFF00300 at %SRR0: 0000400C %SRR1: 00003070
のろわれている感じ。

#2 作った CD-ROM から起動した。

前に起動しなかった時は、たまたま読めなかっただけなのかも知れない。
0 > setenv boot-device ata/atapi-disk@0:0  ok
0 > reset-all 
Open Firmware, 2.0.2
To continue booting the MacOS type:
BYE<return>
To continue booting from the default boot device type:
BOOT<return>
 ok
0 > boot 
>> NetBSD/macppc OpenFirmware Boot, Revision 1.5
>> (root@quick.ki.nu, Wed Feb 11 19:02:27 JST 2004)
open /netbsd: Device not configured
open /netbsd.gz: Device not configured
6206584+270420=0x62d758
 start=0x800000
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.

boot-device に設定しなくても起動:

0 > boot ata/atapi-disk@0:0  
>> NetBSD/macppc OpenFirmware Boot, Revision 1.5
>> (root@quick.ki.nu, Wed Feb 11 19:02:27 JST 2004)
open /netbsd: Device not configured
open /netbsd.gz: Device not configured
6206584+270420=0x62d758

sysinst partition:

ちょっと違った画面
 We now have your BSD-disklabel partitions as:
 This is your last chance to change them.
    
    Start  MB   End  MB  Size  MB FS type    Newfs Mount Mount point
    --------- --------- --------- ---------- ----- ----- -----------
 a:         0       159       160 FFSv1            Yes   /
 b:       160       287       128 swap
 c:         0     76318     76319 Whole disk
 d:       288      1288      1000 FFSv1            Yes   /usr
 e:      1289      1388       100 FFSv1            Yes   /var
 f:      1389     76318     74929 FFSv1            Yes   /export
 g:         0         0         0 unused
 h: Show all unused partitions
 i: Change input units (sectors/cylinders/MB)
>x: Partition sizes ok
disklabel: Invalid signature in mbr record 0

ぎゃはっ:

1081 KB 1.05 MB/s panic: pool_get(buf1k): free list modified: magic=0; page 0xe4d10000; item addr 0xe4d12008

Stopped in pid 80.1 (tar) at 0xa47820: addi 1,1,16
db>
いろいろ難関あり:
     Status: Running
    Command: /sbin/newfs -O 1 -b 8192 -f 1024  /dev/rwd0e
...
/: write failed, file system is full
[1]   Illegal instruction     /sysinst
# 
手で fsck したら正常終了。



最近の日記
2024年03月10日
停電 (瞬電)
2024年03月03日
the second try on bare-metal
useradd
2024年02月29日
opendkim and senmail
2024年01月24日
chat/iam 0.0.8
2024年01月21日
uselocale vs setlocale (textproc/R-readxl)
以上、1 日分です。
タイトル一覧
カテゴリ分類
Powered by hns-2.19.9, HyperNikkiSystem Project

Count.cgi (since 2000/02/05)