The following are required for build.+ビルドには以下が必要です。 +NetBSD(pkgsrc) なら wxWidgets は pkgsrc/x11/wxGTK30 (OPTIONS:gtk2 推奨) です。 +
The followings are required for build. +If you use NetBSD(pkgsrc), +wxWidgets is pkgsrc/x11/wxGTK30 (OPTIONS:gtk2 is recommended).+
- make (BSD make, not GNU make)
- C/C++ compiler which supports -std=c++14. @@ -66,10 +71,24 @@ For clang, 7.0 and 8.0 works at least.)
- gettext
If you use NetBSD(pkgsrc), -wxWidgets is pkgsrc/x11/wxGTK30 (OPTIONS:gtk2 is recommended).+
+(NetBSD 以外でのビルドはサポートしていませんが)
+Ubuntu 18.04 ではたぶん以下のパッケージが必要です。
+You may need the following packages on Ubuntu 18.04
+(though we won't support non-NetBSD platform).
+
-
+
- +bmake +build-essential +gettext +libbsd-dev +libedit-dev +libkqueue-dev +libwxgtk3.0-dev +zlib1g-dev +
アーカイブを展開したら以下のようにビルドします。 configure には環境変数 CC、CXX でコンパイラを指定することが出来ます。 @@ -88,10 +107,6 @@ if configure cannot find wx-config. # make install - -
2つの実行ファイルがインストールされます。
nono が GUI 版実行ファイル、
@@ -394,8 +409,9 @@ _EOM_
config_item("mpu-clock = value", <<<_EOM_
MPU のクロック数を MHz 単位で指定します。
-デフォルトは 20MHz です。
-Specifies the MPU clock in MHz. The default value is 20MHz.
+デフォルトは LUNA-I なら 20MHz、LUNA88K なら 25MHz です。
+Specifies the MPU clock in MHz.
+The default value is 20MHz on LUNA-I, or 25MHz on LUNA88K.
_EOM_
);
@@ -450,8 +466,11 @@ _EOM_
config_item("ram-size = integer", <<<_EOM_
搭載する RAM サイズを MB 単位で指定します。
-デフォルトは 16MB です。
-Specifies the RAM size in MB. The default is 16MB.
+デフォルトは LUNA-I は 16MB、LUNA88K は 64MB です。
+まだたぶん変更できません。
+Specifies the RAM size in MB.
+The default is 16MB on LUNA-I or 64MB on LUNA88K.
+Not supported yet.
_EOM_
);
@@ -474,10 +493,10 @@ If the path is relative path, it
例えば、nono.cfg と同じディレクトリに置いたディスクイメージ luna.img
を使う場合、
-LUNA では通常 ID 6 をプライマリ HDD に割り当てるのでこんな感じになります。
+LUNA-I では通常 ID 6 をプライマリ HDD に割り当てるのでこんな感じになります。
For example, if you use disk image luna.img placed in the same
directory as nono.cfg,
-since LUNA usually assigns ID 6 to the primary HDD,
+since LUNA-I usually assigns ID 6 to the primary HDD,
write as following:
spc0-id6-image = hd,luna.img @@ -602,36 +621,78 @@ in the VM directory or its parent direct nono will open tap(4) and invoke these scripts with the name of the device as an argument.-最もシンプルなケースだとおそらく -
For example, in the simplest case, probably,+例えば、NetBSD ホストで、ホストの wm0 セグメントに nono のゲスト OS を接続する場合、 +For example, if you want to connect guest OS to host's wm0 segment +on NetBSD,++
+- デフォルトでは /dev/tap は一般ユーザからアクセスできないので、 +chmod で適当にパーミッションを与えます。 +番号の付いていないほうの /dev/tap だけでいいです。 +
By default, /dev/tap is only accessible to privileged user. +You need to chmod /dev/tap (without unit number) appropriately.+sysinst 等で OS をアップグレードするとパーミッションが 600 +に戻るのがハマりポイントです。 + +- bridge(4) インタフェースを作成し、 +ホストの外側のインタフェースをブリッジに追加しておきます。 +
Create a bridge(4) interface, and +add your physical interface to the bridge.-のようにして用意しておいた bridge0 に対して、 -(sudo の設定は別途行ってから) -次のような nono-ifup、nono-ifdown を用意すれば -wm0 の物理セグメントとブリッジできると思います。 --# brconfig bridge0 create +# ifconfig bridge0 create # brconfig bridge0 add wm0If you setup bridge0 as above (and setup sudo) and -prepare the following nono-ifup, nono-ifdown scripts, -you can bridge between the guest network and host's wm0. -+常用するなら設定ファイルに書いておきましょう。 +If you want to use this all the time, +you can put configuration file into /etc.++/etc/ifconfig.bridge0 ++ ++create +up +!/sbin/brconfig $int add wm0 +++# /etc/rc.d/network restart ++- +一般ユーザに戻って、 +VM ディレクトリかその親ディレクトリに +次のような 2つのスクリプトを用意します。 +sudo の設定は別途行ってください。 +
Return to non-privileged user, and +create following two scripts in the VM directory or its parent directory. +In addition, you need to set up sudo separately.nono-ifup#!/bin/sh -sudo ifconfig $1 up -sudo brconfig bridge0 add $1 +sudo /sbin/ifconfig $1 up +sudo /sbin/brconfig bridge0 add $1-nono-ifup +nono-ifdown+ +#!/bin/sh -sudo brconfig bridge0 delete $1 -sudo ifconfig $1 down +sudo /sbin/brconfig bridge0 delete $1 +sudo /sbin/ifconfig $1 down +++% chmod +x nono-ifup nono-ifdown- nono を起動し、 +メニューの「モニタ > ホスト > ホストネットワーク」を開いて +NetDriver が None 以外 (この場合 BSD tap) になっていれば動いてるはずです。 +
Run nono, +and open "Monitor > Host > Host Network" window from menu. +It's OK if you can see "NetDriver: BSD tap" (in this case).+ +