|
|
1.1.1.2 root 1: <!--
2: nono
3: Copyright (C) 2020 nono project
4: Licensed under nono-license.txt
5: -->
1.1 root 6: <html><head>
7: <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
8: <title>nono document</title>
9: <style type="text/css">
10: /* https://jfly.uni-koeln.de/colorset/ */
11:
12: :root {
13: --blue: rgb( 0, 90, 255);
14: --brown: rgb(128, 64, 0);
15: --green: rgb( 3, 175, 122);
16: --grey: rgb(132, 145, 158);
17: --light-grey: rgb(200, 200, 203);
1.1.1.4 root 18:
19: --bg-grey: rgb(220, 220, 223);
1.1 root 20: }
21: body {
1.1.1.4 root 22: background-color: var(--bg-grey);
1.1 root 23: }
24: q {
25: color: var(--brown);
26: }
27: q:before {
28: content: "[";
29: }
30: q:after {
31: content: "]";
32: }
33: dt.dt-indent {
34: padding-left: 1ex;
35: }
36: .main {
37: margin-left: 1em;
38: }
39: .cons {
40: background-color: black;
41: color: white;
42: }
43: .file {
44: background-color: white;
45: color: black;
46: }
47: .strike {
48: color: var(--grey);
49: }
1.1.1.5 root 50: .strike > q {
51: color: var(--grey);
52: }
1.1 root 53: </style>
54: </head>
55: <body>
1.1.1.7 ! root 56: <h3>nono 0.1.5 (2020/12/05)</h3>
1.1 root 57:
58: nono は NetBSD とかで動作する OMRON LUNA-I とかのエミュレータです。
1.1.1.4 root 59: <q>nono is OMRON LUNA-I emulator runs on NetBSD and etc.</q>
1.1 root 60: <hr>
1.1.1.4 root 61:
62: <h4>はじめに <q>Introduction</q></h4>
63: <div class="main">
64: nono は NetBSD とかで動作する OMRON LUNA-I とかのエミュレータです。
1.1.1.7 ! root 65: LUNA88K は実験的サポートです。
1.1.1.4 root 66: <q>
67: nono is OMRON LUNA-I emulator runs on NetBSD and etc.
1.1.1.7 ! root 68: LUNA88K is still experimental support.
1.1.1.4 root 69: </q>
70: </div>
71:
1.1 root 72: <h4>ビルド方法 <q>How to build</q></h4>
73: <div class="main">
1.1.1.5 root 74: ビルドには以下が必要です。
1.1.1.7 ! root 75: NetBSD(pkgsrc) なら wxWidgets は pkgsrc/x11/wxGTK30 です
! 76: (OPTIONS:gtk2 で動作確認しています)。
1.1.1.5 root 77: <q>The followings are required for build.
78: If you use NetBSD(pkgsrc),
1.1.1.7 ! root 79: wxWidgets is pkgsrc/x11/wxGTK30 (Only OPTIONS:gtk2 is tested).</q>
1.1.1.5 root 80:
1.1 root 81: <ul>
1.1.1.2 root 82: <li>make (BSD make, not GNU make)
1.1.1.4 root 83: <li>C/C++ compiler which supports -std=c++14.
84: <br>
85: (For gcc, 7.4 works but 5.5 doesn't work, at least.
86: For clang, 7.0 and 8.0 works at least.)
1.1.1.2 root 87: <li>wxWidgets >= 3.0
88: <li>gettext
1.1 root 89: </ul>
1.1.1.2 root 90:
1.1.1.5 root 91: <p>
92: (NetBSD 以外でのビルドはサポートしていませんが)
93: Ubuntu 18.04 ではたぶん以下のパッケージが必要です。
94: <q>You may need the following packages on Ubuntu 18.04
95: (though we won't support non-NetBSD platform).</q>
96: </p>
97: <dl>
98: <dd>
99: bmake
100: build-essential
101: gettext
102: libbsd-dev
103: libedit-dev
104: libkqueue-dev
105: libwxgtk3.0-dev
106: zlib1g-dev
107: </dl>
108:
1.1.1.2 root 109: <p>
110: アーカイブを展開したら以下のようにビルドします。
111: configure には環境変数 CC、CXX でコンパイラを指定することが出来ます。
112: また wx-config が標準的な名前で提供されていないために見付けられない場合には
113: 環境変数 WX_CONFIG にパスを指定することが出来ます。
114: <q>Extract the archive and build as following.
115: You can specify C/C++ compiler using environment variable CC and CXX
116: if configure cannot find standard name suitable compiler.
117: Also, you can specify wx-config path using environment variable WX_CONFIG
118: if configure cannot find wx-config.</q>
1.1 root 119: <blockquote class="cons"><pre>
120: % ./configure
121: % make depend
122: % make
1.1.1.2 root 123: % su
124: # make install
1.1 root 125: </pre></blockquote>
1.1.1.2 root 126:
127: <p>
128: 2つの実行ファイルがインストールされます。
129: <tt>nono</tt> が GUI 版実行ファイル、
130: <tt>nono-cli</tt> がコマンドライン版です。
131: <q>Two executables will be installed.
132: <tt>nono</tt> is GUI executable and <tt>nono-cli</tt> is
133: command line executable.</q>
1.1 root 134:
135: </div>
136:
137:
138: <h4>コマンドラインオプション <q>Command Line Option</q></h4>
139: <div class="main">
140: <dl>
141: <dt class=dt-indent><tt>-A <i>file</i></tt></dt>
142: <dd>ホストの <tt><i>file</i></tt> をロードして実行します。
1.1.1.4 root 143: <tt><i>file</i></tt> が相対パスの場合カレントディレクトリからのパスになります。
1.1 root 144: ファイルが gzip 圧縮されていれば自動的に展開します。
145: (展開後の) ファイル形式は a.out (OMAGIC) か ELF で、
146: 実際にはブートローダとカーネル程度しか想定していません。
1.1.1.2 root 147: 設定ファイルの <tt>prom-image</tt> とともに指定されると
148: <tt>-A</tt> のほうが優先します。
149: <q>Loads and executes host's <tt><i>file</i></tt>.
1.1.1.4 root 150: If <tt><i>file</i></tt> is relative path,
151: it is path from the current directory.
1.1.1.2 root 152: If the file is gzip'd, it is automatically extracted.
153: The supported file format (after extracting) is a.out (OMAGIC) or ELF.
154: Actually, it only assumes bootloaders or kernels.
155: If this option is specified at the same time as
156: <tt>prom-image</tt> in configuration file,
157: this option preceeds.
158: </q></p></dd>
1.1.1.7 ! root 159: <dt class=dt-indent><tt>-c <i>vmpath</i></tt></dt>
! 160: <dd>VM ディレクトリ/設定ファイルを指定します。
! 161: <i>vmpath</i> がディレクトリならそのディレクトリの中の nono.cfg
! 162: を設定ファイルとします。
! 163: <i>vmpath</i> がファイルならそれを設定ファイルとします。
! 164: そしていずれの場合も
! 165: 設定ファイルがあるディレクトリを VM ディレクトリとします。
! 166: -c オプションを省略すると <i>vmpath</i> をカレントディレクトリとします。
! 167: <q>Specifies the VM directory/configuration file.
! 168: If <i>vmpath</i> is a directory,
! 169: make nono.cfg in that directory a configuration file.
! 170: Or if <i>vmpath</i> is a file,
! 171: make the specified file a configuration file.
! 172: And in both cases,
! 173: make the directory where that file is located a VM directory.
! 174: If <tt>-c</tt> option is omitted,
! 175: <i>vmpath</i> is considered as the current directory.
! 176: </q></p></dd>
1.1 root 177: <dt class=dt-indent><tt>-f</tt></dt>
178: <dd>高速モードで起動します。
1.1.1.2 root 179: GUI なら起動後にもメニューから変更できますが、その初期値を変えるだけです。
180: <q>Boot as the fast mode.
181: You can change this mode on GUI menu after boot,
182: and the option only changes its initial state.
183: </q></p></dd>
1.1 root 184: <dt class=dt-indent><tt>--fontsize <i>height</i></tt></dt>
185: <dd>GUI 版のみ。
186: 全サブウインドウの起動時のフォントサイズを指定します。
1.1.1.2 root 187: <tt><i>height</i></tt> には 12, 16
188: のいずれかを指定します。デフォルトは <tt>12</tt> です。
1.1.1.3 root 189: 起動後にメニューから変更できます。
1.1.1.2 root 190: <q>
191: GUI Only.
192: Specifies the initial fontsize on all sub windows.
193: <tt><i>height</i></tt> is one of 12 or 16.
1.1.1.3 root 194: The default value is <tt>12</tt>.
195: You can change this value on GUI menu after boot.
1.1.1.2 root 196: </q></p></dd>
1.1 root 197: <dt class=dt-indent><tt>-s <i>scale</i></tt></dt>
198: <dt class=dt-indent><tt>--scale <i>scale</i></tt></dt>
199: <dd>GUI 版のみ。
200: メインウィンドウの起動時のスケールを実数で指定します。
201: 起動後にもメニューからプリセットされた倍率には変更可能ですが、
202: 任意倍率は起動時のみ指定可能です
203: <span class=strike>(そのうちなんとかしたい)</span>。
1.1.1.2 root 204: デフォルトは 1.0 です。
205: <q>
206: GUI Only.
207: Specifies the initial main window scale in real number.
208: You can change this scale on GUI menu after boot,
209: but unlike this option, there are only a few preset choices
210: <span class=strike>(Should be improved in someday)</span>.
211: The default value is 1.0</q></p></dd>
1.1 root 212: <dt class=dt-indent><tt>--show-config</tt></dt>
1.1.1.2 root 213: <dd>設定ファイルと <tt>-V</tt> オプションを読み込んだ結果を表示します。
214: <q>Shows the result of reading configuration file and
215: parsing <tt>-V</tt> options.</q></p></dd>
1.1 root 216: <dt class=dt-indent><tt>-v</tt></dt>
1.1.1.2 root 217: <dd>バージョンを表示します。
218: <q>Shows the version.</q></p></dd>
1.1 root 219: <dt class=dt-indent><tt>-V <i>name</i>=<i>value</i></tt></dt>
1.1.1.3 root 220: <dd>設定ファイルで指定した <tt><i>name</i>=<i>configvalue</i></tt> の代わりに
1.1.1.2 root 221: このオプションの <tt><i>name</i>=<i>value</i></tt> を適用します。
1.1.1.3 root 222: <q>Use this <i>name</i>=<i>value</i>
223: instead of <i>name</i>=<i>configvalue</i> specified in configuration file.
1.1.1.2 root 224: </q></p></dd>
1.1 root 225: </dl>
226:
1.1.1.2 root 227: 以下開発用。<q>For developers:</q>
1.1 root 228: <dl>
1.1.1.3 root 229: <dt class=dt-indent><tt>-b <i>hexaddr</i>[,<i>skipcount</i>]</tt></dt>
1.1 root 230: <dd>デバッガのブレークポイントを 16進数で指定します。</dd>
231: <dt class=dt-indent><tt>-C</tt></dt>
232: <dd>ログをコンソールにも出力します。
233: 通常はログウィンドウにだけ出力されます。</dd>
234: <dt class=dt-indent><tt>-d</tt></dt>
235: <dd>起動時にデバッガプロンプトで停止します。</dd>
236: <dt class=dt-indent><tt>-D</tt></dt>
237: <dd>コンソールをデバッガとして使用します。
238: -d を指定しなくても起動時にプロンプトで停止します
239: <span class=strike>(そのうちなんとかしたい)</span>。</dd>
240: <dt class=dt-indent><tt>-L <i>name1</i>=<i>level1</i>[,<i>name2</i>=<i>level2</i>,...]</tt></dt>
241: <dd>ログレベルを指定します。
242: カンマで区切って複数指定することも出来ます。
243: <tt>-Lhelp</tt> で name の一覧を表示します。</dd>
244: <dt class=dt-indent><tt>-M <i>name</i>[,<i>name2</i>,...]</tt></dt>
245: <dd>起動時に表示するモニタウィンドウを指定します。
1.1.1.3 root 246: カンマで区切って複数指定することも出来ます。
247: <tt>-Mhelp</tt> で name の一覧を表示します。</dd>
1.1 root 248: </dl>
249: </div>
250:
251: <h4>設定 <q>Configuration</q></h4>
252: <div class="main">
1.1.1.7 ! root 253: VM の設定ファイルはその VM ディレクトリ内の nono.cfg
! 254: (または -c で指定したファイル) です。
1.1 root 255: 書式は <tt>key = value</tt> 形式で1行1項目ずつです。
256: <tt>key</tt> と <tt>value</tt> の前後の空白は取り除かれます。
257: また空行と "<tt>#</tt>" で始まる行は無視します。
258: 知らないキーの行も無視します。
1.1.1.7 ! root 259: <q>VM configuration file is nono.cfg
! 260: (or the file specified by -c option) in the VM directory.
1.1.1.2 root 261: Its syntax is <tt>key = value</tt> format, one per line.
262: White spaces before and after <tt>key</tt> and <tt>value</tt> are ignored.
263: And, blank lines, lines beginning with "<tt>#</tt>", and
264: lines with unrecognized key are also ignored.
265: </q>
1.1 root 266: <p>
267: 設定項目は次の通りです。
1.1.1.2 root 268: <q>The configuration items are:</q>
1.1 root 269: <dl>
270: <dt class=dt-indent><tt>vmtype = <i>string</i></tt></dt>
1.1.1.4 root 271: <dd>VM 種別を以下のいずれかから指定します。
272: 省略不可です。
273: <q>Specifies the VM type from the following.
274: This field is mandatory.
275: </q>
276: <table cellspacing=0 cellpadding=0>
277: <tr><td> <td><tt>luna</tt> <td>… LUNA-I
278: <tr><td><td><tt>luna88k</tt> <td>… LUNA88K (experimental)
279: </table></p></dd>
1.1 root 280: <dt class=dt-indent><tt>debugger-port = <i>integer</i></tt></dt>
281: <dd>デバッガの TCP 待ち受けポート番号を指定します。
282: 0 なら待ち受けを行いません。
1.1.1.4 root 283: デフォルトは 0 です。
284: <q>Specifies the TCP port number that debugger listens.
285: If 0, it will not listen.
286: The default is 0.</q></p></dd>
1.1 root 287: <dt class=dt-indent><tt>ethernet-hostdriver = <i>string</i></tt></dt>
288: <dd>イーサネットデバイスのホスト側ドライバを指定します。
289: <tt>none</tt>、<tt>tap</tt>、<tt>bpf</tt> が指定できます。
290: <tt>none</tt> ならホスト側とは一切通信を行いません。
291: <tt>tap</tt> か <tt>bpf</tt> かはホスト OS によってビルド時に決定します。
1.1.1.7 ! root 292: NetBSD、OpenBSD、FreeBSD、Linux なら <tt>tap</tt> です。
! 293: <q>Specifies the host driver of ethernet device.
! 294: <tt>none</tt>, <tt>tap</tt> and <tt>bpf</tt> can be specified.
! 295: If <tt>none</tt>, it doesn't make any communication with the host.
! 296: <tt>tap</tt> or <tt>bpf</tt> is determined at build time for the host OS.
! 297: If the host is NetBSD, OpenBSD, FreeBSD, or Linux, it's <tt>tap</tt>.</q></p></dd>
! 298: <dt class=dt-indent><tt>ethernet-hostdevice = <i>string</i></tt></dt>
! 299: <dd>イーサネットデバイスのホスト側のデバイス名を指定します。
! 300: <tt>ethernet-hostdriver</tt> が <tt>tap</tt> の場合ここには
! 301: tap デバイスを(フルパスで)指定します。
! 302: <q>Specifies the host device name of ethernet device.
! 303: If <tt>ethernet-hostdriver</tt> is <tt>tap</tt>,
! 304: this field specifies the full path to the tap device.</q>
! 305: <p>
! 306: デフォルトは <tt>auto</tt> で、この場合の動作はホスト OS ごとに異なります。
! 307: Linux なら "<tt>/dev/net/tun</tt>" を指定したのと同じです。
! 308: OpenBSD なら <tt>/dev/tap0</tt> から <tt>/dev/tap9</tt> まで
! 309: 順番にオープンできるまで試します。
! 310: NetBSD (と FreeBSD) ならまず <tt>/dev/tap</tt> でクローニングを試み、
! 311: それが失敗すれば <tt>/dev/tap0</tt> から <tt>/dev/tap9</tt> までを
! 312: 順番にオープンできるまで試します。
! 313: <q>The default is <tt>auto</tt>.
! 314: The behavior in this case depends on the host OS.
! 315: On Linux, it's the same as <tt>/dev/net/tun</tt>.
! 316: On OpenBSD, it will try from <tt>/dev/tap0</tt> to <tt>/dev/tap9</tt>
! 317: until successful.
! 318: On NetBSD (and FreeBSD), it will try cloning by <tt>/dev/tap</tt> first.
! 319: If that fails, then try from <tt>/dev/tap0</tt> to <tt>/dev/tap9</tt>
! 320: until successful.
! 321: </q></p></dd>
1.1 root 322: <dt class=dt-indent><tt>ethernet-macaddr = <i>string</i></tt></dt>
323: <dd>イーサネットデバイスの仮想マシン側の MAC アドレスを指定します。
324: <tt><i>XX</i>:<i>XX</i>:<i>XX</i>:<i>XX</i>:<i>XX</i>:<i>XX</i></tt>
325: 形式で指定します。
326: <tt>auto</tt> なら自動的に決定します。
327: デフォルトは <tt>auto</tt> です。</p></dd>
328: <dt class=dt-indent><tt>luna-dipsw1 = <i>string</i></tt></dt>
329: <dd>本体前面 DIPSW#1-1..#1-8 の内容を指定します。
330: "<tt>0</tt>" を DOWN、"<tt>1</tt>" を UP として、
331: これを8つ並べた形式で、前から順に #1..#8 に対応します。
1.1.1.4 root 332: <q>Specifies status of the front panel DIPSW#1-1..#1-8 using 8 digit.
1.1.1.2 root 333: "<tt>0</tt>" means DOWN and "<tt>1</tt>" means UP.
334: The first character corresponds to #1 and
1.1.1.3 root 335: the eighth character corresponds to #8.</q>
336: <p>
337: LUNA-I でのデフォルトは <tt>11110111</tt> です。
338: 各スイッチの内容は以下のリンクを参照してください。
339: <q>On LUNA-I, the default value is <tt>11110111</tt>.
1.1.1.4 root 340: See the following link about DIPSW.</q><br>
1.1.1.3 root 341: → <a href="https://wiki.netbsd.org/ports/luna68k/luna68k_info/"
342: >NetBSD/luna68k: Information</a>
1.1 root 343: <br>
1.1.1.4 root 344: LUNA88K でのデフォルトは <tt>11111111</tt> です。
345: 各スイッチの内容は以下のリンクを参照してください。
346: <q>On LUNA88K, the default value is <tt>11111111</tt>.
347: See the following link about DIPSW.</q><br>
348: → <a href="http://man.openbsd.org/boot_luna88k.8"
349: >OpenBSD manual pages: boot_luna88k(8)</a></p></dd>
1.1 root 350: <dt class=dt-indent><tt>luna-dipsw2 = <i>string</i></tt></dt>
351: <dd>本体前面 DIPSW#2-1..#2-8 の内容を指定します。
352: 書式は <tt>luna-dipsw1</tt> と同じです。
353: デフォルトは <tt>11111111</tt> です。
1.1.1.2 root 354: <q>Specifies status of the front panel DIPSW#2-1..#2-8.
355: The same syntax as <tt>luna-dipsw1</tt> is used.
356: The default value is <tt>11111111</tt>.</q>
1.1.1.3 root 357: <p>
1.1.1.4 root 358: NetBSD/luna68k のブートローダは、
359: DIPSW#2 が "<tt>11111111</tt>" なら自動的にカーネルをロードして実行し、
360: どれかでも "<tt>0</tt>" にするとプロンプトで停止するようです。
1.1.1.2 root 361: <span class=strike>(本当は #8 だけで制御するつもりだったんじゃないかという気がします)</span>
1.1.1.4 root 362: <q>NetBSD/luna68k bootloader will automatically load and execute the kernel,
363: if the DIPSW#2 is "<tt>11111111</tt>".
1.1.1.2 root 364: Otherwise, the bootloader will enter interactive mode.
365: <span class=strike>(I doubt that they actually wanted to switch with only #8)
366: </span>
367: </q></p></dd>
1.1.1.3 root 368: <dt class=dt-indent><tt>monitor-rate = <i>integer</i></tt></dt>
369: <dd>テキスト系モニタウィンドウの更新頻度を Hz 単位で指定します。
370: 1 から 60 までの間で指定でき、デフォルトは 20Hz です。
371: 起動後にメニューからプリセットされた頻度には変更可能です。
372: <q>Specifies refresh rate of all text monitor windows in Hz.
373: It ranges from 1 to 60. The default is 20Hz.
374: You can change this value on GUI menu after boot,
375: but unlike this configuration value, there are only a few preset choices.
376: </q></p></dd>
1.1 root 377: <dt class=dt-indent><tt>mpu-clock = <i>value</i></tt></dt>
378: <dd>MPU のクロック数を MHz 単位で指定します。
1.1.1.5 root 379: デフォルトは LUNA-I なら 20MHz、LUNA88K なら 25MHz です。
380: <q>Specifies the MPU clock in MHz.
381: The default value is 20MHz on LUNA-I, or 25MHz on LUNA88K.</q></p></dd>
1.1.1.2 root 382: <dt class=dt-indent><tt>prom-image = <i>path</i></tt></dt>
1.1.1.4 root 383: <dd>LUNA-I/LUNA88K の外部 ROM イメージファイルのパスを指定します。
1.1.1.2 root 384: <i>path</i> がファイル名のみなら VM ディレクトリとその親ディレクトリからこのファイル名を検索します。
385: <i>path</i> が相対パスなら VM ディレクトリからの相対パスになります (現在のディレクトリからではありません)。
386: 空にすると内蔵 ROM を使用します。
387: デフォルトは空です。
1.1.1.4 root 388: <q>Specifies the LUNA-I/LUNA88K's external ROM image file path.
1.1.1.2 root 389: If the <i>path</i> does not have any path delimiters,
390: the VM directory and then its parent directory will be searched.
391: If the <i>path</i> is a relative path,
392: it will be path from the VM directory, not from the current
393: directory.
394: If the <i>path</i> is empty, internal emulated ROM will be used.
395: The default value is empty.</q>
1.1 root 396: <p>
1.1.1.2 root 397: 実機を持っていない場合はこの値を空に (= デフォルトのままに) しておくと、
1.1.1.4 root 398: nono 内蔵のなんちゃって下位互換 ROM で起動します(現状 LUNA-I のみ)。
1.1.1.2 root 399: <q>If you does not have the real LUNA machines,
400: you can boot with nono's internal downward compatible emulated ROM
1.1.1.4 root 401: if you set this field empty (or leave it as the default).
402: For now, it's only for LUNA-I.
403: </q>
1.1 root 404: <p>
1.1.1.4 root 405: LUNA-I 実機を持っている場合は
406: ROM ファイルを指定することで実機 ROM で起動できます。
1.1.1.2 root 407: ROM ファイルは実機の 0x41000000-0x4101ffff (128KB) を保存したものです。
1.1.1.3 root 408: 今のところ ROM は V4.22 (Thu Jul 27 11:45:42 1989) のみサポートしています。
409: それ以外については何も分かりません。
1.1.1.4 root 410: <q>If you have the real LUNA-I machine,
1.1.1.2 root 411: you can boot with the real ROM spcifying the ROM file path.
1.1.1.4 root 412: The ROM file is extracted from 0x41000000-0x4101ffff (128KB) of
413: the real LUNA-I machine.
1.1.1.3 root 414: For now, only V4.22 (Thu Jul 27 11:45:42 1989) is supported.
415: I have no idea about other ROMs.
1.1.1.4 root 416: </q>
417: <p>
418: LUNA88K 実機の場合は 0x41000000-0x4103ffff (256KB) を保存したものです。
419: ただし現状サポートしていません。
420: <q>
421: For LUNA88K,
422: the ROM file is extracted from 0x41000000-0x4103ffff (256KB).
423: However, it's not supported yet.
1.1.1.3 root 424: </q></p></dd>
425: <dt class=dt-indent><tt>ram-size = <i>integer</i></tt></dt>
1.1.1.2 root 426: <dd>搭載する RAM サイズを MB 単位で指定します。
1.1.1.7 ! root 427: LUNA-I のデフォルトは 16MB です。
! 428: 16MB 未満は 4MB 単位で、
! 429: 16MB 以上は 255MB まで 1MB 単位で指定できます
! 430: (ちなみに NetBSD/luna68k の起動には最低でも 8MB 必要です)。
! 431: LUNA88K のデフォルトは 64MB です。
! 432: 64MB 未満は 16MB 単位で、
! 433: 64MB 以上は暫定で 255MB まで 1MB 単位で指定できます。
1.1.1.5 root 434: <q>Specifies the RAM size in MB.
1.1.1.7 ! root 435: On LUNA-I, the default is 16MB.
! 436: If the size is less than 16MB, you can specify in 4MB unit.
! 437: If larger, you can specify up to 255MB in 1MB unit.
! 438: By the way, NetBSD/luna68k needs at least 8MB to boot.
! 439: On LUNA88K, the default is 64MB.
! 440: If the size is less than 64MB, you can specify in 16MB unit.
! 441: If larger, you can specify up to tentative 255MB in 1MB unit.
! 442: </q></p></dd>
1.1 root 443: <dt class=dt-indent><tt>spc0-id<i>N</i>-image = <i>devtype</i>,<i>path</i></tt></dt>
444: <dd>SCSI デバイスを指定します。<i>N</i> には 0 から 7 が入ります。
445: ID 7 は本体が使用しますので指定しないでください。
446: 値はデバイス種別 <i>devtype</i> とイメージパス <i>path</i>
447: を "<tt>,</tt>"(カンマ) で区切って並べた形式で、
448: 今の所デバイス種別 <i>devtype</i> には "<tt>hd</tt>"(ハードディスク) のみ指定可能です。
449: ディスクイメージパスが相対パスなら VM ディレクトリからの相対パスになります。
1.1.1.2 root 450: <q>
451: Specifies SCSI device. <i>N</i> is 0 to 7.
452: But don't specify ID 7 because the host uses it.
453: The value is in a form of device type <i>devtype</i> and
454: the image path <i>path</i> separated by "<tt>,</tt>"(comma).
455: For now, only "<tt>hd</tt>" (hard disk) can be specified for <i>devtype</i>.
456: If the <i>path</i> is relative path, it is from the VM directory.
457: </q>
458:
1.1 root 459: <p>
460: 例えば、nono.cfg と同じディレクトリに置いたディスクイメージ luna.img
461: を使う場合、
1.1.1.7 ! root 462: LUNA では通常 ID 6 をプライマリ HDD に割り当てるのでこんな感じになります。
1.1.1.2 root 463: <q>For example, if you use disk image luna.img placed in the same
464: directory as nono.cfg,
1.1.1.7 ! root 465: since LUNA usually assigns ID 6 to the primary HDD,
1.1.1.2 root 466: write as following:</q>
1.1 root 467: <blockquote><pre>
468: spc0-id6-image = hd,luna.img
469: </pre></blockquote></p></dd>
1.1.1.4 root 470: <dt class=dt-indent><tt>spc0-id<i>N</i>-seektime = <i>integer</i></tt></dt>
471: <dd>指定の SCSI HDD の平均シークタイムを msec 単位で指定します。
472: 現在のデフォルトは <tt>0</tt> です (S・S・D!! S・S・D!!)。
473: 16 程度を指定すると幾分往時に思いを馳せることが出来るかもしれませんが、
474: 今の所あまり安定していません。
475: <q>Specifies the average seek time of specified SCSI HDD in msec.
476: Currently, the default value is <tt>0</tt>
477: (This may be something like SSD :-).
478: If you specify about 16 or so, you can feel nostalgic,
479: but this feature is still unstable.
480: </q></p></dd>
1.1 root 481: <dt class=dt-indent><tt>spc0-id<i>N</i>-writeprotect = <i>integer</i></tt></dt>
482: <dd>指定の SCSI デバイスへの書き込みを無視するかどうか指定します。
483: <tt>0</tt> なら通常動作(書き込みを行う)です。
484: <tt>1</tt> なら書き込みコマンドは成功したように振る舞いますが実際には
485: ディスクイメージに一切書き戻しません。
486: fsck を気にせずカーネルのデバッグとかを行いたい場合にはどうぞ。
487: 何が起きるか意味が分からない人は指定しないでください。
1.1.1.2 root 488: デフォルトは <tt>0</tt> です。
489: <q>Specifies whether nono ignores writing to SCSI devices.
490: <tt>0</tt> means normal operation (writes to the devices).
1.1.1.7 ! root 491: If <tt>1</tt> is specified,
1.1.1.2 root 492: nono will not actually write back to the disk image
493: even though the write command is succeeded.
494: nono's SCSI devices acts as
495: write command is successfully done but it never writes back
496: to the actual disk image.
497: This is useful for kernel debugging because it does not require fsck
498: after the kernel hangs.
499: But don't use this flag if you don't understand this paragraph.
500: The default value is <tt>0</tt>.
501: </q></p></dd>
1.1 root 502: </dl>
503: </div>
504:
505:
506: <h4>実行してみる <q>Try it</q></h4>
507: <div class="main">
1.1.1.2 root 508: つついさんが NetBSD/luna68k 9.0 の liveimage を用意してくださっています
509: (いつもありがとうございます)。
510: <q>Tsutsui-san has provided NetBSD/luna68k 9.0 liveimage for this
511: (Thanks as always).</q>
512: <br>
513: <ol>
514: <li>どこかに nono 用のディレクトリを用意し(例えば ~/nono/)、
1.1 root 515: その中に VM ディレクトリを用意します (例えば ~/nono/luna/)。
1.1.1.3 root 516: <q>Create a directory somewhere for nono (for example ~/nono/),
1.1.1.2 root 517: and create subdirectory for individual VMs in it (for example ~/nono/luna).</q>
1.1 root 518:
1.1.1.3 root 519: <li>以下のリンクからイメージファイルをダウンロードして展開し、
1.1.1.2 root 520: VM ディレクトリ ~/nono/luna/ に置きます。
1.1.1.3 root 521: <q>Download imagefile from the following link,
1.1.1.2 root 522: extract it and place it in the VM directory, ~/nono/luna.</q>
1.1.1.3 root 523: <blockquote>
524: <a href="http://teokurebsd.org/netbsd/liveimage/20200518-luna68k/"
525: >http://teokurebsd.org/netbsd/liveimage/20200518-luna68k/</a>
526: </blockquote>
1.1.1.2 root 527:
528: <li>同じく VM ディレクトリに設定ファイル nono.cfg を以下の内容で用意します。
529: <q>Create a configuration file nono.cfg in the same VM directory, ~/nono/luna,
530: with following contents:</q>
531: <blockquote class="file"><pre>
532: vmtype = luna
533: spc0-id6-image = hd,liveimage-luna68k-raw-20200518.img
534: </pre></blockquote>
535: <li><tt>nono -c ~/nono/luna</tt> で起動します
536: (VM ディレクトリに自動的に NVRAM.DAT が作られます)。
537: <q>Run as <tt>nono -c ~/nono/luna</tt>.
1.1.1.4 root 538: (NVRAM.DAT will be created automatically in the VM directory)</q>
1.1.1.2 root 539: <li>Emulated ROM Monitor が起動するので、
540: 初回は以下のように入力すると NetBSD が起動します。
541: <q>The emulated ROM Monitor will be executed.
542: Then, only for the first time,
543: entering the following can boot NetBSD.</q>
544: <blockquote class="file"><pre>
545: k
546: [Enter]
547: [Enter]
548: d
549: boot
550: g
551: x
552: </pre></blockquote>
553: この内容は NVRAM.DAT に記録されているので次回以降は直接 NetBSD が起動します。
554: <q>The information you have just entered is recorded in NVRAM,
555: so next time it boots NetBSD automatically.</q>
556: </ol>
557: <p>
558: <a href="https://twitter.com/tsutsuii/status/1262429647364427783"
559: >元ツイートはこちら<q>Original tweet</q></a>。
1.1 root 560: </div>
561:
562:
563: <h4>ネットワーク設定 <q>Setup network</q></h4>
564: <div class=main>
1.1.1.2 root 565: 設定ファイル nono.cfg に以下の行を追加します。
566: <q>Add the following line to configuration file, nono.cfg.</q>
1.1 root 567: <blockquote class="file"><pre>
568: ethernet-hostdriver = tap
569: </pre></blockquote>
1.1.1.2 root 570: 次に VM ディレクトリかその親ディレクトリに nono-ifup、nono-ifdown
571: というスクリプトを用意します。
1.1 root 572: nono は tap(4) をオープンし、
573: そのデバイス名を引数にこれらのスクリプトを呼びます。
1.1.1.2 root 574: <q>Then, prepare two scripts named nono-ifup and nono-ifdown
575: in the VM directory or its parent directory.
576: nono will open tap(4) and
577: invoke these scripts with the name of the device as an argument.</q>
1.1 root 578: <p>
1.1.1.5 root 579: 例えば、NetBSD ホストで、ホストの wm0 セグメントに nono のゲスト OS を接続する場合、
580: <q>For example, if you want to connect guest OS to host's wm0 segment
581: on NetBSD,</q>
582: <ol>
583: <li>デフォルトでは /dev/tap は一般ユーザからアクセスできないので、
584: chmod で適当にパーミッションを与えます。
585: 番号の付いていないほうの /dev/tap だけでいいです。
586: <q>By default, /dev/tap is only accessible to privileged user.
587: You need to chmod /dev/tap (without unit number) appropriately.</q>
588: sysinst 等で OS をアップグレードするとパーミッションが 600
589: に戻るのがハマりポイントです。
590:
591: <li>bridge(4) インタフェースを作成し、
592: ホストの外側のインタフェースをブリッジに追加しておきます。
593: <q>Create a bridge(4) interface, and
594: add your physical interface to the bridge.</q>
1.1 root 595: <blockquote class="cons"><pre>
1.1.1.5 root 596: # ifconfig bridge0 create
1.1 root 597: # brconfig bridge0 add wm0
598: </pre></blockquote>
1.1.1.5 root 599: 常用するなら設定ファイルに書いておきましょう。
600: <q>If you want to use this all the time,
601: you can put configuration file into /etc.</q>
602: <blockquote>
603: /etc/ifconfig.bridge0
604: <pre class=file>
605: create
606: up
607: !/sbin/brconfig $int add wm0
608: </pre>
609: <pre class=cons>
610: # /etc/rc.d/network restart
611: </pre>
612: </blockquote>
613:
614: <li>
615: 一般ユーザに戻って、
616: VM ディレクトリかその親ディレクトリに
617: 次のような 2つのスクリプトを用意します。
618: sudo の設定は別途行ってください。
619: <q>Return to non-privileged user, and
620: create following two scripts in the VM directory or its parent directory.
621: In addition, you need to set up sudo separately.</q>
1.1 root 622: <blockquote>
623: nono-ifup
624: <pre class=file>
625: #!/bin/sh
1.1.1.5 root 626: sudo /sbin/ifconfig $1 up
627: sudo /sbin/brconfig bridge0 add $1
1.1 root 628: </pre></blockquote>
629:
630: <blockquote>
1.1.1.5 root 631: nono-ifdown
1.1 root 632: <pre class=file>
633: #!/bin/sh
1.1.1.5 root 634: sudo /sbin/brconfig bridge0 delete $1
635: sudo /sbin/ifconfig $1 down
636: </pre></blockquote>
637:
638: <blockquote class="cons"><pre>
639: % chmod +x nono-ifup nono-ifdown
1.1 root 640: </pre></blockquote>
641:
1.1.1.5 root 642: <li>nono を起動し、
643: メニューの「モニタ > ホスト > ホストネットワーク」を開いて
644: NetDriver が None 以外 (この場合 BSD tap) になっていれば動いてるはずです。
645: <q>Run nono,
646: and open "Monitor > Host > Host Network" window from menu.
647: It's OK if you can see "NetDriver: BSD tap" (in this case).</q>
648:
649: </ol>
650:
1.1 root 651: </div>
652:
653:
1.1.1.2 root 654: <h4>変更履歴 <q>Changes</q></h4>
655: <div class="main">
656: See <a href="changes.html">changes.html</a>.
657: </div>
658:
659:
660: <h4>ライセンス <q>License</q></h4>
661: <div class="main">
662: See <a href="nono-license.txt">nono-license.txt</a>.
663: </div>
664:
665:
1.1.1.4 root 666: <h4>連絡先 <q>Contact us</q></h4>
667: <div class="main">
668: バグ報告などは以下にお願いします。日本語でおk。
669: <q>If you find any problems, please let me know.
670: You may write in English.</q><br>
671: <a href="https://github.com/isaki68k/nono-issue/issues"
672: >https://github.com/isaki68k/nono-issue/issues</a>
673: </div>
674:
675:
1.1.1.2 root 676: <h4>パッチの提供について <q>About contributes</q></h4>
677: <div class="main">
678: パッチを提供してくださる場合は以下に同意したものとします。
679: <q>If you provide a patch to nono, you must agree to the following conditions:
680: </q>
681: <ul>
682: <li>成果物が nono のライセンスに従って運用あるいは配布されること。
683: <q>All your work are operated or distributed under the nono license.</q>
684: <li>ライセンスが将来変わる可能性があること。
685: <q>The license may be changed in the future.</q>
686: <li>著作部分に関して著作者人格権を行使しないこと。
687: <q>Do not exercise your author's rights.</q>
688: </ul>
689: <ul>
690: </div>
691:
692:
693: <h4>Acknowledgements</h4>
694: <div class="main">
695: nono は以下の広告条項を含むソースコードを利用しています。
696: <q>nono uses source code with the following advertising clause.</q>
697: <blockquote>
698: This product includes software developed by Gordon Ross<br>
699: This product includes software developed by the University of California, Lawrence Berkeley Laboratory.<br>
700: </blockquote>
701: </div>
702:
1.1 root 703:
704: <hr>
1.1.1.2 root 705: nono project
1.1 root 706: </body>
707: </html>
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.