玄箱HG Update (3)
まずは母艦側の下準備。
/etc/inetd.confを編集してtftpとbootpを有効にする。
(ちなみにはじめてのネットワークブートだったこともありbootpでたいぶハマった)
--- /etc/inetd.conf.orig 2013-06-23 21:38:37.000000000 +0900 +++ /etc/inetd.conf 2013-06-23 21:38:46.000000000 +0900 @@ -20,7 +20,7 @@ #finger stream tcp6 nowait nobody /usr/libexec/fingerd fingerd -lsmu #ident stream tcp nowait nobody /usr/libexec/identd identd -l -o OTHER -e -N #ident stream tcp6 nowait nobody /usr/libexec/identd identd -l -o OTHER -e -N -#tftp dgram udp wait root /usr/libexec/tftpd tftpd -l -s /tftpboot +tftp dgram udp wait root /usr/libexec/tftpd tftpd -l -s /tftpboot #tftp dgram udp6 wait root /usr/libexec/tftpd tftpd -l -s /tftpboot #comsat dgram udp wait root /usr/libexec/comsat comsat #comsat dgram udp6 wait root /usr/libexec/comsat comsat #ntalk dgram udp wait nobody:tty /usr/libexec/ntalkd ntalkd -#bootps dgram udp wait root /usr/sbin/bootpd bootpd +bootps dgram udp wait root /usr/sbin/bootpd bootpd # # Games #
続いてbootp用の設定を/etc/bootptabに設定。
kurobox:ht=ethernet:ha=000d0bxxxxxx:ip=192.168.0.254:sa=192.168.0.25:
/tftpbootディレクトリに「altboot.bin」と「netbsd-INSTALL_KURO」を用意し、inetdを再起動。
# /etc/rc.d/inetd restart Stopping inetd. Waiting for PIDS: 443. Starting inetd.
玄箱HGに戻ってきて、まずは自身とTFTPサーバのIPアドレスを設定する。
=> setenv ipaddr 192.168.0.254 => setenv serverip 192.168.0.25 => saveenv Saving Environment to Flash... Un-Protected 1 sectors Erasing Flash... Flash erase: first = 54 @ 0xfff60000 last = 54 @ 0xfff60000 Flash erase: Done Erased 1 sectors Writing to Flash... done Protected 1 sectors
altboot.binを0x01000000へ読み込む。
=> tftpboot 01000000 altboot.bin Using RTL8169#0 device TFTP from server 192.168.0.25; our IP address is 192.168.0.254 Filename 'altboot.bin'. Load address: 0x1000000 Loading: ############### done Bytes transferred = 75924 (12894 hex)
Go。
=> go 1000000 tftp:netbsd-INSTALL_KURO ## Starting application at 0x01000000 ... >> NetBSD/sandpoint altboot, revision 1.9 >> KuroBox, cpu 262 MHz, bus 131 MHz, 128MB SDRAM channel 0 present wd0: <Hitachi HTS545050B9A300> DMA LBA LBA48 476940 MB wd0: no disklabel MAC address 00:0d:0b:xx:xx:xx 10Mbps Hit any key to enter interactive mode: 0 loading "netbsd-INSTALL_KURO" 5370872+134200=0x5404b8 entry=0x90000, ssym=0x5d0030, esym=0x5d04b8 Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 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 6.1 (INSTALL_KURO) Model: kurobox total memory = 128 MB avail memory = 118 MB ... snip ...
なんか聞いてきたので答える。
Terminal type? [vt100] Erase is backspace. (I)nstall, (S)hell or (H)alt ? i
いつものインストール画面に到達。