|
|
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);
18: }
19: body {
20: background-color: var(--light-grey);
21: }
22: q {
23: color: var(--brown);
24: }
25: q:before {
26: content: "[";
27: }
28: q:after {
29: content: "]";
30: }
31: dt.dt-indent {
32: padding-left: 1ex;
33: }
34: .main {
35: margin-left: 1em;
36: }
37: .cons {
38: background-color: black;
39: color: white;
40: }
41: .file {
42: background-color: white;
43: color: black;
44: }
45: .strike {
46: color: var(--grey);
47: }
48: </style>
49: </head>
50: <body>
1.1.1.3 ! root 51: <h3>nono 0.1.1 (2020/10/06)</h3>
1.1 root 52:
53: nono は NetBSD とかで動作する OMRON LUNA-I とかのエミュレータです。
54: <q>nono is OMRON LUNA-I emulator runs on NetBSD and so on.</q>
55:
56: <hr>
57: <h4>ビルド方法 <q>How to build</q></h4>
58: <div class="main">
1.1.1.2 root 59: ビルドには以下が必要です。<q>The following are required for build.</q>
1.1 root 60: <ul>
1.1.1.2 root 61: <li>make (BSD make, not GNU make)
62: <li>C/C++ compiler which supports -std=c++14
63: <li>wxWidgets >= 3.0
64: <li>gettext
1.1 root 65: </ul>
1.1.1.2 root 66:
67: wxWidgets は NetBSD(pkgsrc) なら
68: pkgsrc/x11/wxGTK30 (OPTIONS:gtk2 推奨) です。
69: <q>If you use NetBSD(pkgsrc),
70: wxWidgets is pkgsrc/x11/wxGTK30 (OPTIONS:gtk2 is recommended).</q>
71: <p>
72: アーカイブを展開したら以下のようにビルドします。
73: configure には環境変数 CC、CXX でコンパイラを指定することが出来ます。
74: また wx-config が標準的な名前で提供されていないために見付けられない場合には
75: 環境変数 WX_CONFIG にパスを指定することが出来ます。
76: <q>Extract the archive and build as following.
77: You can specify C/C++ compiler using environment variable CC and CXX
78: if configure cannot find standard name suitable compiler.
79: Also, you can specify wx-config path using environment variable WX_CONFIG
80: if configure cannot find wx-config.</q>
1.1 root 81: <blockquote class="cons"><pre>
82: % ./configure
83: % make depend
84: % make
1.1.1.2 root 85: % su
86: # make install
1.1 root 87: </pre></blockquote>
1.1.1.2 root 88:
89:
90: <p>
91: 2つの実行ファイルがインストールされます。
92: <tt>nono</tt> が GUI 版実行ファイル、
93: <tt>nono-cli</tt> がコマンドライン版です。
94: <q>Two executables will be installed.
95: <tt>nono</tt> is GUI executable and <tt>nono-cli</tt> is
96: command line executable.</q>
1.1 root 97:
98: </div>
99:
100:
101: <h4>コマンドラインオプション <q>Command Line Option</q></h4>
102: <div class="main">
103: <dl>
104: <dt class=dt-indent><tt>-A <i>file</i></tt></dt>
105: <dd>ホストの <tt><i>file</i></tt> をロードして実行します。
106: ファイルが gzip 圧縮されていれば自動的に展開します。
107: (展開後の) ファイル形式は a.out (OMAGIC) か ELF で、
108: 実際にはブートローダとカーネル程度しか想定していません。
1.1.1.2 root 109: 設定ファイルの <tt>prom-image</tt> とともに指定されると
110: <tt>-A</tt> のほうが優先します。
111: <q>Loads and executes host's <tt><i>file</i></tt>.
112: If the file is gzip'd, it is automatically extracted.
113: The supported file format (after extracting) is a.out (OMAGIC) or ELF.
114: Actually, it only assumes bootloaders or kernels.
115: If this option is specified at the same time as
116: <tt>prom-image</tt> in configuration file,
117: this option preceeds.
118: </q></p></dd>
1.1 root 119: <dt class=dt-indent><tt>-c <i>vmdir</i></tt></dt>
1.1.1.2 root 120: <dd>VM ディレクトリを指定します。省略するとカレントディレクトリとします。
121: <q>Specifies the VM directory. If omitted, the current directory is used.</q></p></dd>
1.1 root 122: <dt class=dt-indent><tt>-f</tt></dt>
123: <dd>高速モードで起動します。
1.1.1.2 root 124: GUI なら起動後にもメニューから変更できますが、その初期値を変えるだけです。
125: <q>Boot as the fast mode.
126: You can change this mode on GUI menu after boot,
127: and the option only changes its initial state.
128: </q></p></dd>
1.1 root 129: <dt class=dt-indent><tt>--fontsize <i>height</i></tt></dt>
130: <dd>GUI 版のみ。
131: 全サブウインドウの起動時のフォントサイズを指定します。
1.1.1.2 root 132: <tt><i>height</i></tt> には 12, 16
133: のいずれかを指定します。デフォルトは <tt>12</tt> です。
1.1.1.3 ! root 134: 起動後にメニューから変更できます。
1.1.1.2 root 135: <q>
136: GUI Only.
137: Specifies the initial fontsize on all sub windows.
138: <tt><i>height</i></tt> is one of 12 or 16.
1.1.1.3 ! root 139: The default value is <tt>12</tt>.
! 140: You can change this value on GUI menu after boot.
1.1.1.2 root 141: </q></p></dd>
1.1 root 142: <dt class=dt-indent><tt>-s <i>scale</i></tt></dt>
143: <dt class=dt-indent><tt>--scale <i>scale</i></tt></dt>
144: <dd>GUI 版のみ。
145: メインウィンドウの起動時のスケールを実数で指定します。
146: 起動後にもメニューからプリセットされた倍率には変更可能ですが、
147: 任意倍率は起動時のみ指定可能です
148: <span class=strike>(そのうちなんとかしたい)</span>。
1.1.1.2 root 149: デフォルトは 1.0 です。
150: <q>
151: GUI Only.
152: Specifies the initial main window scale in real number.
153: You can change this scale on GUI menu after boot,
154: but unlike this option, there are only a few preset choices
155: <span class=strike>(Should be improved in someday)</span>.
156: The default value is 1.0</q></p></dd>
1.1 root 157: <dt class=dt-indent><tt>--show-config</tt></dt>
1.1.1.2 root 158: <dd>設定ファイルと <tt>-V</tt> オプションを読み込んだ結果を表示します。
159: <q>Shows the result of reading configuration file and
160: parsing <tt>-V</tt> options.</q></p></dd>
1.1 root 161: <dt class=dt-indent><tt>-v</tt></dt>
1.1.1.2 root 162: <dd>バージョンを表示します。
163: <q>Shows the version.</q></p></dd>
1.1 root 164: <dt class=dt-indent><tt>-V <i>name</i>=<i>value</i></tt></dt>
1.1.1.3 ! root 165: <dd>設定ファイルで指定した <tt><i>name</i>=<i>configvalue</i></tt> の代わりに
1.1.1.2 root 166: このオプションの <tt><i>name</i>=<i>value</i></tt> を適用します。
1.1.1.3 ! root 167: <q>Use this <i>name</i>=<i>value</i>
! 168: instead of <i>name</i>=<i>configvalue</i> specified in configuration file.
1.1.1.2 root 169: </q></p></dd>
1.1 root 170: </dl>
171:
1.1.1.2 root 172: 以下開発用。<q>For developers:</q>
1.1 root 173: <dl>
1.1.1.3 ! root 174: <dt class=dt-indent><tt>-b <i>hexaddr</i>[,<i>skipcount</i>]</tt></dt>
1.1 root 175: <dd>デバッガのブレークポイントを 16進数で指定します。</dd>
176: <dt class=dt-indent><tt>-C</tt></dt>
177: <dd>ログをコンソールにも出力します。
178: 通常はログウィンドウにだけ出力されます。</dd>
179: <dt class=dt-indent><tt>-d</tt></dt>
180: <dd>起動時にデバッガプロンプトで停止します。</dd>
181: <dt class=dt-indent><tt>-D</tt></dt>
182: <dd>コンソールをデバッガとして使用します。
183: -d を指定しなくても起動時にプロンプトで停止します
184: <span class=strike>(そのうちなんとかしたい)</span>。</dd>
185: <dt class=dt-indent><tt>-L <i>name1</i>=<i>level1</i>[,<i>name2</i>=<i>level2</i>,...]</tt></dt>
186: <dd>ログレベルを指定します。
187: カンマで区切って複数指定することも出来ます。
188: <tt>-Lhelp</tt> で name の一覧を表示します。</dd>
189: <dt class=dt-indent><tt>-M <i>name</i>[,<i>name2</i>,...]</tt></dt>
190: <dd>起動時に表示するモニタウィンドウを指定します。
1.1.1.3 ! root 191: カンマで区切って複数指定することも出来ます。
! 192: <tt>-Mhelp</tt> で name の一覧を表示します。</dd>
1.1 root 193: </dl>
194: </div>
195:
196: <h4>設定 <q>Configuration</q></h4>
197: <div class="main">
198: VM の設定ファイルはその VM ディレクトリ内の nono.cfg です。
199: 書式は <tt>key = value</tt> 形式で1行1項目ずつです。
200: <tt>key</tt> と <tt>value</tt> の前後の空白は取り除かれます。
201: また空行と "<tt>#</tt>" で始まる行は無視します。
202: 知らないキーの行も無視します。
1.1.1.2 root 203: <q>VM configuration file is nono.cfg in the VM directory.
204: Its syntax is <tt>key = value</tt> format, one per line.
205: White spaces before and after <tt>key</tt> and <tt>value</tt> are ignored.
206: And, blank lines, lines beginning with "<tt>#</tt>", and
207: lines with unrecognized key are also ignored.
208: </q>
1.1 root 209: <p>
210: 設定項目は次の通りです。
1.1.1.2 root 211: <q>The configuration items are:</q>
1.1 root 212: <dl>
213: <dt class=dt-indent><tt>vmtype = <i>string</i></tt></dt>
1.1.1.2 root 214: <dd>VM 種別を指定します。
215: 今の所 <tt><i>string</i></tt> に
216: 指定できるのは <tt>luna</tt> (LUNA-I) だけですが、省略不可です。
217: <q>Specifies the VM type.
218: For now, only <tt>luna</tt> (LUNA-I) can be specified for
219: <tt><i>string</i></tt>.
220: This field is mandatory.</q></p></dd>
1.1 root 221: <dt class=dt-indent><tt>debugger-port = <i>integer</i></tt></dt>
222: <dd>デバッガの TCP 待ち受けポート番号を指定します。
223: 0 なら待ち受けを行いません。
224: デフォルトは 9999 です(適当)。</p></dd>
225: <dt class=dt-indent><tt>ethernet-hostdriver = <i>string</i></tt></dt>
226: <dd>イーサネットデバイスのホスト側ドライバを指定します。
227: <tt>none</tt>、<tt>tap</tt>、<tt>bpf</tt> が指定できます。
228: <tt>none</tt> ならホスト側とは一切通信を行いません。
229: <tt>tap</tt> か <tt>bpf</tt> かはホスト OS によってビルド時に決定します。
230: NetBSD なら <tt>tap</tt> です。</p></dd>
231: <dt class=dt-indent><tt>ethernet-macaddr = <i>string</i></tt></dt>
232: <dd>イーサネットデバイスの仮想マシン側の MAC アドレスを指定します。
233: <tt><i>XX</i>:<i>XX</i>:<i>XX</i>:<i>XX</i>:<i>XX</i>:<i>XX</i></tt>
234: 形式で指定します。
235: <tt>auto</tt> なら自動的に決定します。
236: デフォルトは <tt>auto</tt> です。</p></dd>
237: <dt class=dt-indent><tt>luna-dipsw1 = <i>string</i></tt></dt>
238: <dd>本体前面 DIPSW#1-1..#1-8 の内容を指定します。
239: "<tt>0</tt>" を DOWN、"<tt>1</tt>" を UP として、
240: これを8つ並べた形式で、前から順に #1..#8 に対応します。
1.1.1.2 root 241: <q>Specifies status of the front panel DIPSW#1-1..#1-8.
242: "<tt>0</tt>" means DOWN and "<tt>1</tt>" means UP.
243: The first character corresponds to #1 and
1.1.1.3 ! root 244: the eighth character corresponds to #8.</q>
! 245: <p>
! 246: LUNA-I でのデフォルトは <tt>11110111</tt> です。
! 247: 各スイッチの内容は以下のリンクを参照してください。
! 248: <q>On LUNA-I, the default value is <tt>11110111</tt>.
! 249: See the following link about DIPSW.</q>
! 250: → <a href="https://wiki.netbsd.org/ports/luna68k/luna68k_info/"
! 251: >NetBSD/luna68k: Information</a>
1.1 root 252: <br>
1.1.1.3 ! root 253: LUNA88K でのデフォルトは <tt>00111111</tt> です。
! 254: <q>On LUNA88K, the default value is <tt>00111111</tt>.</q></p></dd>
1.1 root 255: <dt class=dt-indent><tt>luna-dipsw2 = <i>string</i></tt></dt>
256: <dd>本体前面 DIPSW#2-1..#2-8 の内容を指定します。
257: 書式は <tt>luna-dipsw1</tt> と同じです。
258: デフォルトは <tt>11111111</tt> です。
1.1.1.2 root 259: <q>Specifies status of the front panel DIPSW#2-1..#2-8.
260: The same syntax as <tt>luna-dipsw1</tt> is used.
261: The default value is <tt>11111111</tt>.</q>
1.1.1.3 ! root 262: <p>
! 263: LUNA-I では、すべて "<tt>1</tt>"(UP) なら
1.1 root 264: NetBSD/luna68k のブートローダは自動的にカーネルをロードして実行し、
265: どれかでも "<tt>0</tt>"(DOWN) にするとプロンプトで停止するようです。
1.1.1.2 root 266: <span class=strike>(本当は #8 だけで制御するつもりだったんじゃないかという気がします)</span>
1.1.1.3 ! root 267: <q>On LUNA-I, if the value is <tt>11111111</tt>,
1.1.1.2 root 268: NetBSD/luna68k bootloader will automatically load and execute the kernel.
269: Otherwise, the bootloader will enter interactive mode.
270: <span class=strike>(I doubt that they actually wanted to switch with only #8)
271: </span>
272: </q></p></dd>
1.1.1.3 ! root 273: <dt class=dt-indent><tt>monitor-rate = <i>integer</i></tt></dt>
! 274: <dd>テキスト系モニタウィンドウの更新頻度を Hz 単位で指定します。
! 275: 1 から 60 までの間で指定でき、デフォルトは 20Hz です。
! 276: 起動後にメニューからプリセットされた頻度には変更可能です。
! 277: <q>Specifies refresh rate of all text monitor windows in Hz.
! 278: It ranges from 1 to 60. The default is 20Hz.
! 279: You can change this value on GUI menu after boot,
! 280: but unlike this configuration value, there are only a few preset choices.
! 281: </q></p></dd>
1.1 root 282: <dt class=dt-indent><tt>mpu-clock = <i>value</i></tt></dt>
283: <dd>MPU のクロック数を MHz 単位で指定します。
1.1.1.2 root 284: デフォルトは 20MHz です。
285: <q>Specifies the MPU clock in MHz. The default value is 20MHz.</q></p></dd>
286: <dt class=dt-indent><tt>prom-image = <i>path</i></tt></dt>
1.1.1.3 ! root 287: <dd>LUNA-I の外部 ROM イメージファイルのパスを指定します。
1.1.1.2 root 288: <i>path</i> がファイル名のみなら VM ディレクトリとその親ディレクトリからこのファイル名を検索します。
289: <i>path</i> が相対パスなら VM ディレクトリからの相対パスになります (現在のディレクトリからではありません)。
290: 空にすると内蔵 ROM を使用します。
291: デフォルトは空です。
1.1.1.3 ! root 292: <q>Specifies the LUNA-I's external ROM image file path.
1.1.1.2 root 293: If the <i>path</i> does not have any path delimiters,
294: the VM directory and then its parent directory will be searched.
295: If the <i>path</i> is a relative path,
296: it will be path from the VM directory, not from the current
297: directory.
298: If the <i>path</i> is empty, internal emulated ROM will be used.
299: The default value is empty.</q>
1.1 root 300: <p>
1.1.1.2 root 301: 実機を持っていない場合はこの値を空に (= デフォルトのままに) しておくと、
1.1 root 302: nono 内蔵のなんちゃって下位互換 ROM で起動します。
1.1.1.2 root 303: <q>If you does not have the real LUNA machines,
304: you can boot with nono's internal downward compatible emulated ROM
305: if you set this field empty (or leave it as the default).</q>
1.1 root 306: <p>
1.1.1.2 root 307: 実機を持っている場合は ROM ファイルを指定することで実機 ROM で起動できます。
308: ROM ファイルは実機の 0x41000000-0x4101ffff (128KB) を保存したものです。
1.1.1.3 ! root 309: 今のところ ROM は V4.22 (Thu Jul 27 11:45:42 1989) のみサポートしています。
! 310: それ以外については何も分かりません。
1.1.1.2 root 311: <q>If you have the real LUNA machines,
312: you can boot with the real ROM spcifying the ROM file path.
313: The ROM file is extracted from 0x41000000-0x4101ffff (128KB) from
1.1.1.3 ! root 314: the real machine.
! 315: For now, only V4.22 (Thu Jul 27 11:45:42 1989) is supported.
! 316: I have no idea about other ROMs.
! 317: </q></p></dd>
! 318: <dt class=dt-indent><tt>ram-size = <i>integer</i></tt></dt>
1.1.1.2 root 319: <dd>搭載する RAM サイズを MB 単位で指定します。
320: デフォルトは 16MB です。
321: <q>Specifies the RAM size in MB. The default is 16MB.</q></p></dd>
1.1 root 322: <dt class=dt-indent><tt>spc0-id<i>N</i>-image = <i>devtype</i>,<i>path</i></tt></dt>
323: <dd>SCSI デバイスを指定します。<i>N</i> には 0 から 7 が入ります。
324: ID 7 は本体が使用しますので指定しないでください。
325: 値はデバイス種別 <i>devtype</i> とイメージパス <i>path</i>
326: を "<tt>,</tt>"(カンマ) で区切って並べた形式で、
327: 今の所デバイス種別 <i>devtype</i> には "<tt>hd</tt>"(ハードディスク) のみ指定可能です。
328: ディスクイメージパスが相対パスなら VM ディレクトリからの相対パスになります。
1.1.1.2 root 329: <q>
330: Specifies SCSI device. <i>N</i> is 0 to 7.
331: But don't specify ID 7 because the host uses it.
332: The value is in a form of device type <i>devtype</i> and
333: the image path <i>path</i> separated by "<tt>,</tt>"(comma).
334: For now, only "<tt>hd</tt>" (hard disk) can be specified for <i>devtype</i>.
335: If the <i>path</i> is relative path, it is from the VM directory.
336: </q>
337:
1.1 root 338: <p>
339: 例えば、nono.cfg と同じディレクトリに置いたディスクイメージ luna.img
340: を使う場合、
341: LUNA では通常 ID 6 をプライマリ HDD に割り当てるのでこんな感じになります。
1.1.1.2 root 342: <q>For example, if you use disk image luna.img placed in the same
343: directory as nono.cfg,
344: since LUNA usually assigns ID 6 to the primary HDD,
345: write as following:</q>
1.1 root 346: <blockquote><pre>
347: spc0-id6-image = hd,luna.img
348: </pre></blockquote></p></dd>
349: <dt class=dt-indent><tt>spc0-id<i>N</i>-writeprotect = <i>integer</i></tt></dt>
350: <dd>指定の SCSI デバイスへの書き込みを無視するかどうか指定します。
351: <tt>0</tt> なら通常動作(書き込みを行う)です。
352: <tt>1</tt> なら書き込みコマンドは成功したように振る舞いますが実際には
353: ディスクイメージに一切書き戻しません。
354: fsck を気にせずカーネルのデバッグとかを行いたい場合にはどうぞ。
355: 何が起きるか意味が分からない人は指定しないでください。
1.1.1.2 root 356: デフォルトは <tt>0</tt> です。
357: <q>Specifies whether nono ignores writing to SCSI devices.
358: <tt>0</tt> means normal operation (writes to the devices).
359: If <tt>1</tt> is specified,
360: nono will not actually write back to the disk image
361: even though the write command is succeeded.
362: nono's SCSI devices acts as
363: write command is successfully done but it never writes back
364: to the actual disk image.
365: This is useful for kernel debugging because it does not require fsck
366: after the kernel hangs.
367: But don't use this flag if you don't understand this paragraph.
368: The default value is <tt>0</tt>.
369: </q></p></dd>
1.1 root 370: </dl>
371: </div>
372:
373:
374: <h4>実行してみる <q>Try it</q></h4>
375: <div class="main">
1.1.1.2 root 376: つついさんが NetBSD/luna68k 9.0 の liveimage を用意してくださっています
377: (いつもありがとうございます)。
378: <q>Tsutsui-san has provided NetBSD/luna68k 9.0 liveimage for this
379: (Thanks as always).</q>
380: <br>
381: <ol>
382: <li>どこかに nono 用のディレクトリを用意し(例えば ~/nono/)、
1.1 root 383: その中に VM ディレクトリを用意します (例えば ~/nono/luna/)。
1.1.1.3 ! root 384: <q>Create a directory somewhere for nono (for example ~/nono/),
1.1.1.2 root 385: and create subdirectory for individual VMs in it (for example ~/nono/luna).</q>
1.1 root 386:
1.1.1.3 ! root 387: <li>以下のリンクからイメージファイルをダウンロードして展開し、
1.1.1.2 root 388: VM ディレクトリ ~/nono/luna/ に置きます。
1.1.1.3 ! root 389: <q>Download imagefile from the following link,
1.1.1.2 root 390: extract it and place it in the VM directory, ~/nono/luna.</q>
1.1.1.3 ! root 391: <blockquote>
! 392: <a href="http://teokurebsd.org/netbsd/liveimage/20200518-luna68k/"
! 393: >http://teokurebsd.org/netbsd/liveimage/20200518-luna68k/</a>
! 394: </blockquote>
1.1.1.2 root 395:
396: <li>同じく VM ディレクトリに設定ファイル nono.cfg を以下の内容で用意します。
397: <q>Create a configuration file nono.cfg in the same VM directory, ~/nono/luna,
398: with following contents:</q>
399: <blockquote class="file"><pre>
400: vmtype = luna
401: spc0-id6-image = hd,liveimage-luna68k-raw-20200518.img
402: </pre></blockquote>
403: <li><tt>nono -c ~/nono/luna</tt> で起動します
404: (VM ディレクトリに自動的に NVRAM.DAT が作られます)。
405: <q>Run as <tt>nono -c ~/nono/luna</tt>.
406: (It creates NVRAM.DAT automatically in the VM directory)</q>
407: <li>Emulated ROM Monitor が起動するので、
408: 初回は以下のように入力すると NetBSD が起動します。
409: <q>The emulated ROM Monitor will be executed.
410: Then, only for the first time,
411: entering the following can boot NetBSD.</q>
412: <blockquote class="file"><pre>
413: k
414: [Enter]
415: [Enter]
416: d
417: boot
418: g
419: x
420: </pre></blockquote>
421: この内容は NVRAM.DAT に記録されているので次回以降は直接 NetBSD が起動します。
422: <q>The information you have just entered is recorded in NVRAM,
423: so next time it boots NetBSD automatically.</q>
424: </ol>
425: <p>
426: <a href="https://twitter.com/tsutsuii/status/1262429647364427783"
427: >元ツイートはこちら<q>Original tweet</q></a>。
1.1 root 428: </div>
429:
430:
431: <h4>ネットワーク設定 <q>Setup network</q></h4>
432: <div class=main>
1.1.1.2 root 433: 設定ファイル nono.cfg に以下の行を追加します。
434: <q>Add the following line to configuration file, nono.cfg.</q>
1.1 root 435: <blockquote class="file"><pre>
436: ethernet-hostdriver = tap
437: </pre></blockquote>
1.1.1.2 root 438: 次に VM ディレクトリかその親ディレクトリに nono-ifup、nono-ifdown
439: というスクリプトを用意します。
1.1 root 440: nono は tap(4) をオープンし、
441: そのデバイス名を引数にこれらのスクリプトを呼びます。
1.1.1.2 root 442: <q>Then, prepare two scripts named nono-ifup and nono-ifdown
443: in the VM directory or its parent directory.
444: nono will open tap(4) and
445: invoke these scripts with the name of the device as an argument.</q>
1.1 root 446: <p>
447: 最もシンプルなケースだとおそらく
1.1.1.2 root 448: <q>For example, in the simplest case, probably,</q>
1.1 root 449: <blockquote class="cons"><pre>
450: # brconfig bridge0 create
451: # brconfig bridge0 add wm0
452: </pre></blockquote>
453: のようにして用意しておいた bridge0 に対して、
454: (sudo の設定は別途行ってから)
455: 次のような nono-ifup、nono-ifdown を用意すれば
456: wm0 の物理セグメントとブリッジできると思います。
1.1.1.2 root 457: <q>If you setup bridge0 as above (and setup sudo) and
458: prepare the following nono-ifup, nono-ifdown scripts,
459: you can bridge between the guest network and host's wm0.
460: </q>
1.1 root 461: <blockquote>
462: nono-ifup
463: <pre class=file>
464: #!/bin/sh
465: sudo ifconfig $1 up
466: sudo brconfig bridge0 add $1
467: </pre></blockquote>
468:
469: <blockquote>
470: nono-ifup
471: <pre class=file>
472: #!/bin/sh
473: sudo brconfig bridge0 delete $1
474: sudo ifconfig $1 down
475: </pre></blockquote>
476:
477: </div>
478:
479:
1.1.1.2 root 480: <h4>既知の問題 <q>Known problems</q></h4>
481: <div class="main">
482: <ul>
483: <li>メモリおよびデバイスのアクセスウェイトは未実装です。
484: <q>Any access wait cycles for memories and devices are not implemented yet</q>
485: <li>メインウィンドウの中心にサブウィンドウが表示されていると
486: マウスモードが効きません。(ver 0.0.2 以降)
487: <q>Mouse mode can not work when some sub windows are displayed
488: on the center of the main window. (since ver 0.0.2)</q>
489: </ul>
490:
491: </ul>
492: </div>
493:
494:
495: <h4>変更履歴 <q>Changes</q></h4>
496: <div class="main">
497: See <a href="changes.html">changes.html</a>.
498: </div>
499:
500:
501: <h4>ライセンス <q>License</q></h4>
502: <div class="main">
503: See <a href="nono-license.txt">nono-license.txt</a>.
504: </div>
505:
506:
507: <h4>パッチの提供について <q>About contributes</q></h4>
508: <div class="main">
509: パッチを提供してくださる場合は以下に同意したものとします。
510: <q>If you provide a patch to nono, you must agree to the following conditions:
511: </q>
512: <ul>
513: <li>成果物が nono のライセンスに従って運用あるいは配布されること。
514: <q>All your work are operated or distributed under the nono license.</q>
515: <li>ライセンスが将来変わる可能性があること。
516: <q>The license may be changed in the future.</q>
517: <li>著作部分に関して著作者人格権を行使しないこと。
518: <q>Do not exercise your author's rights.</q>
519: </ul>
520: <ul>
521: </div>
522:
523:
524: <h4>Acknowledgements</h4>
525: <div class="main">
526: nono は以下の広告条項を含むソースコードを利用しています。
527: <q>nono uses source code with the following advertising clause.</q>
528: <blockquote>
529: This product includes software developed by Gordon Ross<br>
530: This product includes software developed by the University of California, Lawrence Berkeley Laboratory.<br>
531: </blockquote>
532: </div>
533:
1.1 root 534:
535: <hr>
1.1.1.2 root 536: nono project
1.1 root 537: </body>
538: </html>
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.