Last Update: "2007/11/10 10:14:22 makoto"
netboot
- NetBoot at ki.nu
-
http://www.ki.nu/software/netboot/index.html
- Netbooting IBM pSeries & RS/6000
-
(実は、これは多分全然役に立たない)
http://penguinppc.org/~hollisb/linux/rs6k-netboot.shtml
- (bootps)
bootps を使って MAC address -> から IP Address 等の設定を得る
- (tftp)
ofwboot という名前の Open FirmWare boot 用プログラム (ELF 形式)を tftp で転送する
- (ofwboot)
前項で転送した ofwboot が起動し、
rp で指定された Path を NFS mount して netbsd.ofppc を読む
- (kernel)
その読んだ
netbsd.ofppc という名前の kernel が起動し もう一度 root path を mount する
- (mount fs)
/etc/fstab を読み 必要な filesystem を mount する
- /sbin/init を起動する
server
20060807/sys/arch/ofppc/stand/ofwboot/obj/ofwboot
を使う。/tftpboot に写しておく。
/etc/bootptab
birthday:\
:ht=ethernet:\
:ha=0004ac17xxyy:\
:ip=192.168.1.215:\
:tc=.allhost:\
:bf=ofwboot:\
:rp=/tftpboot/chroot:\
/etc/exports
/tftpboot -maproot=0 -network 192.168.1.0 -mask 255.255.255.0 -alldirs
/etc/rc.conf
nfsd=YES
mountd=YES
/etc/inetd.conf
tftpboot と bootps の行を生かしておく
ここまでの段階で、tftp と nfs が利用出来るか調べておく。
client
0 > boot net
1 = SMS Menu 5 = Default Boot List
8 = Open Firmware Prompt 6 = Stored Boot List
memory keyboard network scsi speaker
ok
0 > boot net
LOAD: Waiting 60 seconds for Spanning Tree
BOOTP R = 1 BOOTP S = 1
FILE: /ofwboot
Load Addr=0x4000 Max Size=0xbfc000
FINAL Packet Count = 112 Final File Size = 56908 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 Aug 7 23:16:26 JST 2006)
net_open: client addr: 192.168.1.215
net_open: subnet mask: 255.255.255.0
net_open: server addr: 192.168.1.1
net_open: server path: /tftpboot/chroot
net_open: file name: /ofwboot
Using IP address: 192.168.1.1
root addr=192.168.1.205 path=/tftpboot/chroot
Unexpected Firmware Error:
DEFAULT CATCH!, code=fff00700 at %SRR0: 00000014 %SRR1: 00083000
ok
0 >
何かな。
#tftpboot -maproot=0 -network 192.168.1.0 -mask 255.255.255.0 -alldirs
/tftpboot -maproot=0 -noresvport -network 192.168.1.0 -mask 255.255.255.0 -alldirs
st@5 at ofbus5 not configured
st@6 at ofbus5 not configured
display@16 at ofbus2 not configured
boot device: <unknown>
root device:
root device: ofnet0
dump device: ofnet0
file system (default generic):
root on ofnet0 dumps on ofnet0p
nfs_boot: trying DHCP/BOOTP
nfs_boot: BOOTP next-server: 192.168.1.1
nfs_boot: my_addr=192.168.1.215
nfs_boot: my_mask=255.255.255.0
root on st4200:/tftpboot/chroot
root file system type: nfs
init path (default /sbin/init):
init: trying /sbin/init
/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.
#
|