オリジナルカーネルのビルド

昨日に続きhttp://www.komoto.org/netbsd/build-sh.htmlにしたがってビルドのお稽古。
sshdは提供されたバイナリには含まれており、/etc/rc.confで

sshd=YES

とやって/etc/rc.d/sshd start で起動できる。

手順に従ってビルドを行い、usr/src/releasedir/landisk/binary/setsに

serv0: {13} pwd
/usr/src-landisk/usr/src/releasedir/landisk/binary/sets
serv0: {14} ls -la
total 150652
drwxr-xr-x  2 root  wheel       512 Feb 13 11:54 .
drwxr-xr-x  4 root  wheel       512 Feb 13 11:53 ..
-rw-r--r--  1 root  wheel       167 Feb 13 11:54 BSDSUM
-rw-r--r--  1 root  wheel       230 Feb 13 11:54 CKSUM
-rw-r--r--  1 root  wheel       407 Feb 13 11:54 MD5
-rw-r--r--  1 root  wheel      1199 Feb 13 11:54 SHA512
-rw-r--r--  1 root  wheel       169 Feb 13 11:54 SYSVSUM
-rw-r--r--  1 root  wheel  26724267 Feb 13 11:53 base.tgz
-rw-r--r--  1 root  wheel  27860096 Feb 13 11:54 comp.tgz
-rw-r--r--  1 root  wheel    146969 Feb 13 11:54 etc.tgz
-rw-r--r--  1 root  wheel   3175313 Feb 13 11:54 games.tgz
-rw-r--r--  1 root  wheel   1770075 Feb 13 11:53 kern-GENERIC.tgz
-rw-r--r--  1 root  wheel  10919138 Feb 13 11:54 man.tgz
-rw-r--r--  1 root  wheel   3260040 Feb 13 11:54 misc.tgz
-rw-r--r--  1 root  wheel   3093363 Feb 13 11:54 text.tgz
serv0: {15} 

できた。これをscpでUSL-5Pに転送して展開して再起動。

ひとつハマったのが、ビルドしたらEthernetがなぜかrtk0になったので、/etc/ifconfig.re0に設定を書くと再起動後にifconfigされない。cp ifconfig.re0 ifconfig.rtk0とやって解決。