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

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

2013年04月11日(木) 旧暦 [n年日記] [更新:"2013/04/21 21:49:35"]

#1 [NetBSD][macppc] NetBSD/macppc network boot

僕は Network Boot を大変重宝して使っている。もし新規に機械を買う時には、 Netboot 出来ない機械は選ばないようにしている。 i386 や amd64 では、何げなく使えている。
さて、最近故あって、NetBSD/macppc 復縁を迫っている。きのうは 以前に使っていた TsubaiBSD の 4.99.25 が入っている(はず)の Mac mini (PowerPC G4) を何とかしようとした。これ自体は、disk が時々変になることを除けば、 一応動いている機械ではある。 しかし、これで最近の pkgsrc を package しようとしても、多分役立たないので、 新しいものに入替えようとした。 i386 や amd64 と同様に network boot の環境を用意して見る。
  1. ofwboot.elf を tftp で読める
  2. netbsd-INSTALL.gz を NFS で読める
ような設定を dhcpd.conf に用意する。設定内容としては、次のようになる。
host  ml-mini {
       hardware ethernet 00:14:51:0d:da:20;
       fixed-address 192.168.1.56;
       next-server 192.168.1.198;
       filename "macppc/ofwboot.elf";
       option root-path "/export/tftpboot/macppc";
}
dhcp サーバと、tftp/nfs サーバは、都合上 別の機械 になっているが、それは特に意味はない。 Mac mini に電源を入れ、cmd + option + O + F を押していると boot の入力待になる。 ここで
boot enet:0,ofwboot.elf enet:0/netbsd
と入力すると、無事 netboot する。 さて、実は ofwboot.elf の版と、カーネルの選択で、動いたり動かなかったりする(と思う) そもそも ofwboot.elf 1.12 では netboot がうまく動かないが、1.6 では動く、という気がする。 ofwboot.elf 1.6 の場合:
kernelresultreference
netbsd-GENERIC_MD.gz×1
netbsd-INSTALL.gz2
netbsd-GENERIC×
result for above 1:
NetBSD 6.1_RC (GENERIC_MD)
total memory = 1024 MB
oea_startup: failed to allocatte DEAD ZONE: error=12
avail memory = 981 MB
userconf: configure system autoconfiguration:
uc> boot netbsd
Unknown command, try help
uc> help
command	   args		description
base       8|10|16	base on  large numbers
...
results for above 2: dmesg with ofwboot.elf (1.6) + netbsd-INSTALL.gz (6.1_RC2)

sysinst completed::

それで、何と、ofwboot 1.6 と、netbsd-INSTALL.gz (6.1_RC2) の組合せで sysinst を無事完了した。 が、次の段階にまだ進めていない。ofwboot.elf 1.6 では、 新しいカーネルを起動出来ないようである。
disklabel /dev/wd0a
# /dev/wd0a:
type: unknown
disk: IC25N060ATMR04-
label: 
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 16
sectors/cylinder: 1008
cylinders: 116280
total sectors: 117210240
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0           # microseconds
track-to-track seek: 0  # microseconds
drivedata: 0 

16 partitions:
#        size    offset     fstype [fsize bsize cpg/sgs]
 a: 116947152         0     4.2BSD   2048 16384     0  # (Cyl.      0 - 116018)
 b:    263088 116947152       swap                     # (Cyl. 116019 - 116279)
 c: 117210240         0     unused      0     0        # (Cyl.      0 - 116279)
pdisk /dev/wd0a
Command (? for help): 
Partition map (with 512 byte blocks) on '/dev/wd0a'
 #:                type name       length   base       ( size )
 1: Apple_partition_map Apple           2 @ 1         
 2:       NetBSD/macppc NetBSD 2147483647 @ 4          (1024.0G)

Device block size=512, Number of Blocks=116947168 (55.8G)
DeviceType=0x0, DeviceId=0x0

Command (? for help): Q
しかし、この install 済の kernel からは、まだ起動出来ていない。



最近の日記
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
以上、1 日分です。
タイトル一覧
カテゴリ分類
Powered by hns-2.19.9, HyperNikkiSystem Project

Count.cgi (since 2000/02/05)