Annotation of nono/doc/index.php, revision 1.1.1.20

1.1.1.2   root        1: <!--
                      2:  nono
                      3:  Copyright (C) 2020 nono project
                      4:  Licensed under nono-license.txt
                      5: -->
                      6: <?php require_once "common.php"; ?>
1.1.1.17  root        7: <html>
                      8: <head>
                      9: <?php
                     10:        get_version();
                     11:        print_head_common();
                     12: ?>
                     13: <title>nono document (<?php print $nono_ver; ?>)</title>
                     14: </head>
1.1.1.14  root       15: <?php
                     16: function H4($name, $title)
                     17: {
                     18:        global $h4number;
                     19:        global $h5number;
                     20:        $h4number++;
                     21:        $h5number = 0;
                     22:        print <<<_EOM_
                     23: <a name="{$name}"></a>
                     24: <details open style="padding-top: 1em">
                     25: <summary><span class=h4>{$h4number}. {$title}</span></summary>
                     26: _EOM_;
                     27: }
                     28: function H4end()
                     29: {
                     30:        print "</details>\n";
                     31: }
                     32: 
                     33: function H5($name, $title)
                     34: {
                     35:        global $h4number;
                     36:        global $h5number;
                     37:        $h5number++;
                     38:        print <<<_EOM_
                     39: <a name="{$name}"></a>
                     40: <details open style="padding-top: 1em">
                     41: <summary><span class=h5>{$h4number}.{$h5number}. {$title}</span></summary>
                     42: _EOM_;
                     43: }
                     44: function H5end()
                     45: {
                     46:        print "</details>\n";
                     47: }
                     48: ?>
1.1       root       49: <body>
1.1.1.11  root       50: <h3>nono <?=$nono_ver?> (<?=$nono_date?>)</h3>
1.1       root       51: 
1.1.1.16  root       52: nono は NetBSD とかで動作する OMRON LUNA-I/LUNA-88K のエミュレータです。
1.1.1.17  root       53: 何故か SHARP X68030 と virt-m68k も動いたりするかも知れません。
1.1.1.16  root       54: <q>nono is OMRON LUNA-I/LUNA-88K emulator runs on NetBSD and etc.
1.1.1.17  root       55: It can also emulate SHARP X68030 and virt-m68k.</q>
1.1.1.8   root       56: 
                     57: <hr>
                     58: 
                     59: <h4>Index of this page:</h4>
1.1.1.7   root       60: <div class="main">
1.1.1.10  root       61: <a href="#build">1. ビルド方法 <q>How to build</q></a><br>
1.1.1.13  root       62: <a href="#execute">2. 実行方法 <q>How to execute</q></a><br>
1.1.1.10  root       63: <a href="#configuration">3. 設定 <q>Configuration</q></a><br>
                     64: <a href="#aboutvm">4. VM について <q>About VM</q></a><br>
                     65: <a href="#tryit">5. 実行してみる <q>Try it</q></a><br>
1.1.1.13  root       66: <a href="#network">6. ホストネットワーク設定例 <q>Example of host network setup</q></a><br>
1.1.1.12  root       67: <a href="#knownissues">7. 既知の問題 <q>Known Issues</q></a><br>
                     68: <a href="#migrate">8. 過去のバージョンからの移行方法
1.1.1.9   root       69: <q>How to migrate from old versions</q></a><br>
1.1.1.12  root       70: <a href="#changes">9. 変更履歴 <q>Changes</q></a><br>
                     71: <a href="#license">10. 連絡先、ライセンス等 <q>Contact, License, etc</q></a><br>
                     72: </div>
                     73: <p>
                     74: <div class="main">
                     75: <span class="new">緑背景</span>は新規または目立った更新のあった箇所です。
                     76: <q><span class="new">Green Background</span> is new or updated paragraph.</q>
                     77: </div>
                     78: 
                     79: 
1.1.1.14  root       80: <?php H4("build", "ビルド方法 <q>How to build</q>"); ?>
1.1       root       81: <div class="main">
1.1.1.5   root       82: ビルドには以下が必要です。
1.1.1.13  root       83: <q>The followings are required for build.</q>
1.1.1.5   root       84: 
1.1       root       85: <ul>
1.1.1.2   root       86: <li>make (BSD make, not GNU make)
1.1.1.4   root       87: <li>C/C++ compiler which supports -std=c++14.
                     88: <br>
1.1.1.17  root       89: (For gcc, at least 7.4 or later.
                     90: For clang, at least 7.0 or later.)
                     91: <li>wxWidgets 3.2.x "stable" branch.
1.1.1.19  root       92:  (3.0.x "old stable" branch would also work.)
1.1.1.2   root       93: <li>gettext
1.1.1.20! root       94: <li>libslirp (4.7.0 or later is comfirmed, 4.8.0 or later is preferred.)
1.1       root       95: </ul>
1.1.1.2   root       96: 
1.1.1.5   root       97: <p>
1.1.1.19  root       98: NetBSD(pkgsrc) なら必要なパッケージは
1.1.1.20! root       99: x11/wxGTK32 と net/libslirp です。
1.1.1.19  root      100: wxGTK32 の代わりに wxGTK30 でも動くはずです。
1.1.1.13  root      101: <q>If you use NetBSD(pkgsrc),
1.1.1.20! root      102: x11/wxGTK32 and net/libslirp are needed.
        !           103: wxGTK30 would also work.</q>
1.1.1.13  root      104: 
                    105: <p>
1.1.1.5   root      106: (NetBSD 以外でのビルドはサポートしていませんが)
1.1.1.19  root      107: Ubuntu 24.04 ではたぶん以下のパッケージが必要です。
                    108: <q>You may need the following packages on Ubuntu 24.04
1.1.1.5   root      109: (though we won't support non-NetBSD platform).</q>
                    110: </p>
1.1.1.19  root      111: <dl>
                    112: <dd>
1.1.1.17  root      113: bmake,
                    114: build-essential,
                    115: gettext,
                    116: libbsd-dev,
                    117: libkqueue-dev,
1.1.1.20! root      118: libslirp-dev,
1.1.1.17  root      119: libwxgtk3.2-dev,
1.1.1.5   root      120: zlib1g-dev
1.1.1.19  root      121: </dl>
1.1.1.5   root      122: 
1.1.1.2   root      123: <p>
1.1.1.8   root      124: nono のソースアーカイブを展開したら以下のようにビルドします。
1.1.1.16  root      125: <q>Extract the nono's source archive and build as following.</q>
                    126: </p>
1.1.1.12  root      127: 
1.1       root      128: <blockquote class="cons"><pre>
1.1.1.16  root      129: % ./configure [&lt;options&gt;]
                    130: % make -DRELEASE depend
                    131: % make -DRELEASE
1.1.1.2   root      132: % su
                    133: # make install
1.1       root      134: </pre></blockquote>
1.1.1.2   root      135: 
                    136: <p>
1.1.1.16  root      137: configure には環境変数 CC、CXX でコンパイラを指定することが出来ます。
                    138: wx-config が標準的な名前で提供されていないために見付けられない場合には
                    139: 環境変数 WX_CONFIG にパスを指定することが出来ます。
                    140: また configure のオプションとして以下が指定できます。
                    141: <q>You can specify C/C++ compiler using environment variable CC and CXX
                    142: if configure cannot find standard name suitable compiler.
                    143: You can specify wx-config path using environment variable WX_CONFIG
                    144: if configure cannot find wx-config.
                    145: Also, you can specify the following option for <tt>configure</tt>.
                    146: </q>
                    147: <p>
                    148: <ul>
1.1.1.17  root      149: <li><tt>--disable-avx2</tt> …
1.1.1.16  root      150: amd64(x86_64) で AVX2 対応コードを無効にします。
                    151: デフォルトでは、コンパイラが AVX2 に対応していることを
                    152: configure が検出できれば AVX2 対応コードを生成します。
                    153: <q>Disable AVX2 support on amd64(x86_64).
                    154: By the default, it will generate AVX2 supported binary
1.1.1.17  root      155: only if configure detects that compiler supports AVX2.</q>
                    156: <li><tt>--disable-neon</tt> …
                    157: aarch64 で NEON 対応コードを無効にします。
                    158: デフォルトでは、コンパイラが NEON に対応していることを
                    159: configure が検出できれば NEON 対応コードを生成します。
                    160: <q>Disable NEON support on aarch64.
                    161: By the default, it will generate NEON supported binary
                    162: only if configure detects that compiler supports NEON.</q>
1.1.1.16  root      163: </ul>
                    164: <p>
                    165: <tt>make install</tt> により2つの実行ファイルがインストールされます。
1.1.1.2   root      166: <tt>nono</tt> が GUI 版実行ファイル、
                    167: <tt>nono-cli</tt> がコマンドライン版です。
1.1.1.16  root      168: <q><tt>make install</tt> will install two executables.
1.1.1.7   root      169: <tt>nono</tt> is the GUI executable and <tt>nono-cli</tt> is
                    170: the command line executable.</q>
1.1.1.16  root      171: </p>
1.1       root      172: </div>
1.1.1.14  root      173: <?php H4end(); ?>
1.1       root      174: 
                    175: 
1.1.1.14  root      176: <?php H4("execute", "実行方法 <q>How to execute</q>"); ?>
1.1.1.13  root      177: <div class="main">
1.1.1.14  root      178: nono は複数機種に対応しているため設定なしでは起動できません。
                    179: 設定は設定ファイルかコマンドラインオプションで指定します。
                    180: 詳細は以下の<a name="#configuration">設定</a>の章を参照してください。
                    181: <q>nono supports multiple architectures so that
                    182: it needs configuration.
                    183: See the following <a name="#configuration">Configuration</a> section for
                    184: details.</q>
1.1.1.13  root      185: </div>
                    186: 
1.1.1.14  root      187: <?php H5("commandline", "コマンドラインオプション <q>Command Line Option</q>");
                    188: ?>
1.1       root      189: <div class="main">
                    190: <dl>
                    191: <?php
                    192: function item($name, $desc)
                    193: {
                    194:        if (!is_array($name)) {
                    195:                $name = array($name);
                    196:        }
                    197:        foreach ($name as $n) {
                    198:                print "<dt class=dt-indent><tt>{$n}</tt></dt>\n";
                    199:        }
                    200:        print "<dd>{$desc}</p></dd>\n";
                    201: }
                    202: function option_item($name, $desc)
                    203: {
                    204:        item($name, $desc);
                    205: }
                    206: 
1.1.1.6   root      207: option_item("-c <i>vmpath</i>", <<<_EOM_
                    208: VM ディレクトリ/設定ファイルを指定します。
                    209: <i>vmpath</i> がディレクトリならそのディレクトリの中の nono.cfg
                    210: を設定ファイルとします。
                    211: <i>vmpath</i> がファイルならそれを設定ファイルとします。
                    212: そしていずれの場合も
                    213: 設定ファイルがあるディレクトリを VM ディレクトリとします。
                    214: -c オプションを省略すると <i>vmpath</i> をカレントディレクトリとします。
                    215: <q>Specifies the VM directory/configuration file.
                    216: If <i>vmpath</i> is a directory,
                    217: make nono.cfg in that directory a configuration file.
                    218: Or if <i>vmpath</i> is a file,
                    219: make the specified file a configuration file.
                    220: And in both cases,
                    221: make the directory where that file is located a VM directory.
                    222: If <tt>-c</tt> option is omitted,
1.1.1.11  root      223: <i>vmpath</i> is considered as the current directory.</q>
1.1       root      224: _EOM_
                    225: );
                    226: 
1.1.1.15  root      227: option_item("--create-sram", <<<_EOM_
1.1.1.14  root      228: (X68030 Only)
                    229: VM ディレクトリに X68030 用の SRAM.DAT がなければ初期状態で作成して終了します。
                    230: <q>
                    231: nono will create the initial SRAM.DAT for X68030 and exit,
                    232: if there is no SRAM.DAT in the VM directory.</q>
                    233: _EOM_
                    234: );
                    235: 
1.1       root      236: option_item("-f", <<<_EOM_
                    237: 高速モードで起動します。
                    238: GUI なら起動後にもメニューから変更できますが、その初期値を変えるだけです。
1.1.1.15  root      239: 設定の <tt>fast-mode=1</tt> と等価です。
1.1.1.2   root      240: <q>Boot as the fast mode.
                    241: You can change this mode on GUI menu after boot,
1.1.1.14  root      242: and the option only changes its initial state.
1.1.1.15  root      243: This option is equivalent to <tt>fast-mode=1</tt> in configuration.</q>
1.1       root      244: _EOM_
                    245: );
                    246: 
1.1.1.20! root      247: option_item("<span class='new'>--fd0 <i>file</i><br>--fd1 <i>file</i></span>", <<<_EOM_
        !           248: <span class="new">
        !           249: (X68030 Only) フロッピーイメージを指定します。
        !           250: <i>file</i> が相対パスの場合カレントディレクトリからのパスになります。
        !           251: 設定の <tt>fd0-image</tt>、<tt>fd1-image</tt>
        !           252: とは相対パスの起点の違いを除いて同一です。
        !           253: <q>Specifies the floppy image.
        !           254: If <tt><i>file</i></tt> is relative path,
        !           255: it is path from the current directory.
        !           256: This option is equivalent to <tt>fd0-image</tt>, <tt>fd1-image</tt>
        !           257: in configuration except for base directory of the relative path.</q>
        !           258: </span>
        !           259: _EOM_
        !           260: );
        !           261: 
1.1       root      262: option_item("--fontsize <i>height</i>", <<<_EOM_
                    263: GUI 版のみ。
                    264: 全サブウインドウの起動時のフォントサイズを指定します。
1.1.1.3   root      265: 起動後にメニューから変更できます。
1.1.1.15  root      266: 設定の <tt>monitor-fontsize</tt> と等価です。
1.1.1.14  root      267: <q>GUI Only.
                    268: Specifies the initial fontsize of all sub windows.
                    269: You can change this value on GUI menu after boot.
1.1.1.15  root      270: This option is equivalent to <tt>monitor-fontsize</tt> in configuration.</q>
1.1       root      271: _EOM_
                    272: );
                    273: 
1.1.1.17  root      274: option_item("--initrd <i>file</i>", <<<_EOM_
1.1.1.20! root      275: (virt-m68k Only)
1.1.1.16  root      276: カーネルに渡す初期 RAM ディスクのパスを指定します。
                    277: <i>file</i> が相対パスの場合カレントディレクトリからのパスになります。
                    278: 設定の <tt>exec-initrd</tt> とは相対パスの起点の違いを除いて同一です。
1.1.1.17  root      279: <q>Specifies the initial ramdisk image passed to the kernel.
1.1.1.16  root      280: If <tt><i>file</i></tt> is relative path,
                    281: it is path from the current directory.
                    282: This option is equivalent to <tt>exec-initrd</tt> in configuration
                    283: except for base directory of the relative path.</q>
                    284: _EOM_
                    285: );
                    286: 
1.1.1.14  root      287: option_item("-s <i>scale</i>", <<<_EOM_
1.1       root      288: GUI 版のみ。
                    289: メインウィンドウの起動時のスケールを実数で指定します。
1.1.1.14  root      290: 設定の <tt>mainview-scale</tt> と等価です。
                    291: 起動後はメニューからプリセットされた倍率と
1.1.1.15  root      292: <tt>mainview-scale</tt> で指定された倍率には変更可能です。
1.1.1.14  root      293: <q>GUI Only.
1.1.1.2   root      294: Specifies the initial main window scale in real number.
1.1.1.15  root      295: This is equivalent to <tt>mainview-scale</tt> in configuration.
1.1.1.14  root      296: You can change this scale on GUI menu after boot.</q>
1.1       root      297: _EOM_
                    298: );
                    299: 
                    300: option_item("--show-config", <<<_EOM_
                    301: 設定ファイルと <tt>-V</tt> オプションを読み込んだ結果を表示します。
1.1.1.2   root      302: <q>Shows the result of reading configuration file and
                    303: parsing <tt>-V</tt> options.</q>
1.1       root      304: _EOM_
                    305: );
                    306: 
                    307: option_item("-v", <<<_EOM_
                    308: バージョンを表示します。
1.1.1.2   root      309: <q>Shows the version.</q>
1.1       root      310: _EOM_
                    311: );
                    312: 
                    313: option_item("-V <i>name</i>=<i>value</i>", <<<_EOM_
1.1.1.3   root      314: 設定ファイルで指定した <tt><i>name</i>=<i>configvalue</i></tt> の代わりに
1.1.1.2   root      315: このオプションの <tt><i>name</i>=<i>value</i></tt> を適用します。
1.1.1.12  root      316: <tt><i>name</i></tt> が正しくない場合はエラー終了します。
1.1.1.3   root      317: <q>Use this <i>name</i>=<i>value</i>
1.1.1.12  root      318: instead of <i>name</i>=<i>configvalue</i> specified in configuration file.
                    319: If <tt><i>name</i></tt> is not correct, it will exit on error.</q>
1.1       root      320: _EOM_
                    321: );
1.1.1.9   root      322: 
                    323: option_item("-X <i>file</i>", <<<_EOM_
                    324: ホストの <tt><i>file</i></tt> をロードして実行します。
                    325: <tt><i>file</i></tt> が相対パスの場合カレントディレクトリからのパスになります。
1.1.1.17  root      326: 設定の <tt>exec-file</tt> とは相対パスの起点の違いを除いて同一です。
1.1.1.9   root      327: ファイルが gzip 圧縮されていれば自動的に展開します。
1.1.1.14  root      328: (展開後の) ファイル形式は以下の通りですが、
1.1.1.9   root      329: 実際にはブートローダとカーネル程度しか想定していません。
1.1.1.14  root      330: また、いずれも起動元デバイスが取得できないなどの問題はあるかも知れません。
1.1.1.9   root      331: <q>Loads and executes host's <tt><i>file</i></tt>.
                    332: If <tt><i>file</i></tt> is relative path,
                    333: it is path from the current directory.
1.1.1.17  root      334: This option is equivalent to <tt>exec-file</tt> in configuration
                    335: except for base directory of the relative path.
1.1.1.9   root      336: If the file is gzip'd, it is automatically extracted.
1.1.1.14  root      337: The supported file format (after extracting) is the following.
1.1.1.9   root      338: Actually, it only assumes bootloaders or kernels.
1.1.1.14  root      339: And note that it may not obtain some information that where did I boot from,
                    340: for example.</q>
                    341: <ul>
                    342: <li>a.out (OMAGIC) 実行ファイル (おそらくブートローダのみサポート)
                    343: <q>a.out (OMAGIC) executable (It probably supports bootloaders only)</q>
                    344: <li>ELF 実行ファイル
                    345: (おそらくカーネルのみサポート。
                    346: NetBSD の実行ファイルのようであれば、
                    347: カーネルだと思ってシンボルテーブルも読み込みます)
                    348: <q>ELF executable
                    349: (It probably supports the kernel only.
                    350: If the file is assumed to be NetBSD executable,
                    351: it will also load symbol tables as the bootloader does to the kernel.)</q>
                    352: <li>ELF object (Experimental)
                    353: </ul>
1.1.1.16  root      354: LUNA では設定の <tt>prom-image</tt> (後述) によらず内蔵の互換 ROM で起動します。
                    355: <tt>luna-dipsw1</tt> の DIPSW 設定が
                    356: <tt>dipsw-autoboot=yes</tt> 相当の状態ならそのまま直ちにホストファイルを実行し、
                    357: そうでなければ互換 ROM のプロンプトで停止します。
                    358: 後者の場合でも LUNA-I なら "g" コマンド、LUNA-88K なら "b" コマンドによる
                    359: ロードはここで指定したホストファイルをロードします。
1.1.1.14  root      360: X68030 では、IPLROM 起動の後の起動デバイスに細工がしてあり、
                    361: そこからホストファイルを実行します。
1.1.1.17  root      362: virt-m68k (と NEWS) はこの方法でしか起動できませんので、
                    363: 実行ファイルの指定は必須になります。
                    364: <q>On LUNA,
1.1.1.16  root      365: regardless of <tt>prom-image</tt> configuration (see below),
                    366: it boots the internal emulated PROM.
                    367: If <tt>luna-dipsw1</tt> configuration meets <tt>dipsw-autoboot=yes</tt>,
                    368: it will immediately load and execute the host file.
                    369: Otherwise, it will wait in prompt.
                    370: Even in this case, "g" command (in LUNA-I) or "b" command (in LUNA-88K)
                    371: will load the host file that is specified by this option.
1.1.1.14  root      372: On X68030,
                    373: nono hacks the boot device after normal boot from IPLROM,
1.1.1.16  root      374: and loads and executes the host file.
1.1.1.17  root      375: On virt-m68k (and NEWS), this is the only way to boot.</q>
1.1.1.9   root      376: _EOM_
                    377: );
1.1       root      378: ?>
                    379: </dl>
                    380: 
1.1.1.2   root      381: 以下開発用。<q>For developers:</q>
1.1       root      382: <dl>
                    383: <?php
                    384: // 項目間を空けない
                    385: function option_dev($name, $desc)
                    386: {
                    387:        print "<dt class=dt-indent><tt>{$name}</tt></dt>\n";
                    388:        print "<dd>{$desc}</dd>\n";
                    389: }
                    390: 
1.1.1.3   root      391: option_dev("-b <i>hexaddr</i>[,<i>skipcount</i>]", <<<_EOM_
1.1       root      392: デバッガのブレークポイントを 16進数で指定します。
                    393: _EOM_
                    394: );
                    395: 
                    396: option_dev("-C", <<<_EOM_
                    397: ログをコンソールにも出力します。
                    398: 通常はログウィンドウにだけ出力されます。
                    399: _EOM_
                    400: );
                    401: 
                    402: option_dev("-d", <<<_EOM_
                    403: 起動時にデバッガプロンプトで停止します。
                    404: _EOM_
                    405: );
                    406: 
                    407: option_dev("-D", <<<_EOM_
                    408: コンソールをデバッガとして使用します。
1.1.1.12  root      409: 過去との互換性のために存在していますが、
                    410: <tt>-V debugger-driver=stdio</tt> と等価です。
1.1       root      411: _EOM_
                    412: );
                    413: 
1.1.1.17  root      414: $hlink = linkto_str("human", "human.html");
                    415: option_dev("-H", "Human68k モードです。→ {$hlink}");
                    416: 
1.1       root      417: option_dev("-L <i>name1</i>=<i>level1</i>[,<i>name2</i>=<i>level2</i>,...]",
                    418: <<<_EOM_
                    419: ログレベルを指定します。
                    420: カンマで区切って複数指定することも出来ます。
                    421: <tt>-Lhelp</tt> で name の一覧を表示します。
                    422: _EOM_
                    423: );
                    424: 
                    425: option_dev("-M <i>name</i>[,<i>name2</i>,...]", <<<_EOM_
                    426: 起動時に表示するモニタウィンドウを指定します。
                    427: カンマで区切って複数指定することも出来ます。
1.1.1.3   root      428: <tt>-Mhelp</tt> で name の一覧を表示します。
1.1       root      429: _EOM_
                    430: );
                    431: 
                    432: 
                    433: ?>
                    434: </dl>
                    435: </div>
1.1.1.14  root      436: <?php H5end(); ?>
                    437: <?php H4end(); ?>
1.1       root      438: 
1.1.1.7   root      439: 
1.1.1.14  root      440: <?php H4("configuration", "設定 <q>Configuration</q>"); ?>
1.1       root      441: <div class="main">
1.1.1.14  root      442: nono の設定はいずれも以下の順序で適用されます。
                    443: <q>nono's configurations are always applied in the following order.</q>
1.1.1.15  root      444: <ol>
1.1.1.14  root      445: <li>デフォルト値 <q>Default value</q>
                    446: <li>~/.nono.cfg があればその内容
                    447: <q>Contents of ~/.nono.cfg if exists</q>
                    448: <li>VM ディレクトリ内の nono.cfg (または -c で指定したファイル)
                    449: があればその内容
                    450: <q>Contents of nono.cfg in the VM directory (or the file specified by -c option) if exists</q>
                    451: <li>コマンドラインオプション <q>Command line option</q>
                    452: </ol>
                    453: ファイルの書式はどちらも <tt>key = value</tt> 形式で1行1項目ずつです。
1.1       root      454: <tt>key</tt> と <tt>value</tt> の前後の空白は取り除かれます。
                    455: また空行と "<tt>#</tt>" で始まる行は無視します。
1.1.1.12  root      456: 知らないキーは警告を出した上で無視します。
1.1.1.14  root      457: 同じキーが複数回現れた場合、
                    458: 上に列挙した順に後から書いたほうで上書きし、
                    459: 同じファイル内でも同様に後に書いたほうで上書きします。
                    460: コマンドラインオプション <tt>-V</tt> 等はこれをさらに上書きします。
                    461: コマンドラインオプションで同じキーが複数回現れた場合も後に書いたほうが上書きします。
                    462: <q>
                    463: The syntax of both files is <tt>key = value</tt> format, one per line.
1.1.1.2   root      464: White spaces before and after <tt>key</tt> and <tt>value</tt> are ignored.
1.1.1.12  root      465: Blank lines, lines beginning with "<tt>#</tt>" are also ignored.
1.1.1.14  root      466: The lines with unrecognized key are ignored with a warning.
                    467: 
                    468: If the same key appears more than once,
                    469: the latter overwrites the former in the above order.
                    470: If the same key appears in a file,
                    471: the latter overwrites the former in the same manner.
1.1.1.16  root      472: Then, command line option <tt>-V</tt> etc. overwrites them.
1.1.1.14  root      473: If the same key appears more than once in the command line option,
                    474: do in the same manner.</q>
                    475: <p>
                    476: <tt>vmtype</tt> を除くすべての設定項目はそれぞれデフォルト値を持っています。
                    477: つまり少なくとも <tt>vmtype</tt> だけは設定ファイルかコマンドラインオプションで指定する必要があります。
                    478: <q>All configuration items except <tt>vmtype</tt> have default value.
1.1.1.17  root      479: It means, you need to specify at least only <tt>vmtype</tt>
1.1.1.14  root      480: by configuration file or commandline option.</q>
1.1       root      481: <p>
                    482: 設定項目は次の通りです。
1.1.1.2   root      483: <q>The configuration items are:</q>
1.1       root      484: <dl>
                    485: <?php
                    486: function config_item($name, $desc)
                    487: {
                    488:        item($name, $desc);
                    489: }
                    490: 
                    491: config_item("vmtype = <i>string</i>", <<<_EOM_
1.1.1.4   root      492: VM 種別を以下のいずれかから指定します。
                    493: 省略不可です。
                    494: <q>Specifies the VM type from the following.
1.1.1.11  root      495: This field is mandatory.</q>
1.1.1.4   root      496: <table cellspacing=0 cellpadding=0>
1.1.1.17  root      497: <tr><td>&nbsp;<td><tt>luna</tt>        <td>&nbsp;… LUNA-I
                    498: <tr><td><td><tt>luna88k</tt>   <td>&nbsp;… LUNA-88K
                    499: <tr><td><td><tt>x68030</tt>            <td>&nbsp;… X68030
                    500: <tr><td><td><tt>news</tt>              <td>&nbsp;… NWS-1750 (Just a joke)
                    501: <tr><td><td><tt>virt-m68k</tt> (or <tt>virt68k</tt>) <td>&nbsp;… virt-m68k
1.1.1.4   root      502: </table>
1.1       root      503: _EOM_
                    504: );
                    505: 
1.1.1.14  root      506: config_item("cgrom-image = <i>path</i>", <<<_EOM_
1.1.1.13  root      507: (X68030 Only)
                    508: X68030 の外部 CGROM イメージファイルのパスを指定します。
                    509: CGROM は 768KB です。
                    510: <i>path</i> がファイル名のみなら VM ディレクトリとその親ディレクトリからこのファイル名を検索します。
                    511: <i>path</i> が相対パスなら VM ディレクトリからの相対パスになります (現在のディレクトリからではありません)。
                    512: 空にすると nono 内蔵の互換 CGROM を使用します。
                    513: デフォルトは空です。
                    514: <q>Specifies the X68030's external CGROM image file path.
                    515: This CGROM is 768KB.
                    516: If the <i>path</i> does not have any path delimiters,
                    517: the VM directory and then its parent directory will be searched.
                    518: If the <i>path</i> is a relative path,
                    519: it will be path from the VM directory, not from the current directory.
                    520: If the <i>path</i> is empty, nono's builtin compatible CGROM will be used.
1.1.1.14  root      521: The default value is empty.</q>
1.1.1.13  root      522: _EOM_
                    523: );
                    524: 
1.1.1.8   root      525: config_item("clock-sync = <i>value</i>", <<<_EOM_
                    526: 仮想マシン内の時刻の同期方法を指定します。
                    527: <tt>real</tt> なら実時間に同期、<tt>virtual</tt> なら仮想時間に同期します。
1.1.1.20! root      528: <q>Specifies how to synchronize the time in the virtual machine.
1.1.1.8   root      529: If <tt>real</tt>, synchronize with the real time;
1.1.1.20! root      530: if <tt>virtual</tt>, synchronize with the virtual time.</q>
        !           531: <ul>
        !           532: <li>LUNA-I では 60Hz のシステムクロック割り込みと RTC(MK48T02) が対象で、
        !           533: デフォルトは <tt>real</tt> です。
        !           534: <q>On LUNA-I, 60Hz system clock interrupt and RTC(MK48T02) are the target.
        !           535: The default is <tt>real</tt>.</q>
        !           536: <li>LUNA-88K では 100Hz のシステムクロック割り込みと RTC(MK48T02) が対象で、
        !           537: デフォルトは <tt>real</tt> です。
        !           538: <q>On LUNA-88K, 100Hz system clock interrupt and RTC(MK48T02) are the target.
        !           539: The default is <tt>real</tt>.</q>
        !           540: <li>NWS-1750 ではシステムクロック割り込みと RTC(MK48T02) が対象で、
        !           541: デフォルトは <tt>real</tt> です。
        !           542: <q>On NWS-1750, system clock interrupt and RTC(MK48T02) are the target.
        !           543: The default is <tt>real</tt>.</q>
        !           544: <li>virt-m68k では Goldfish Timer の割り込みと Goldfish RTC が対象で、
        !           545: デフォルトは <tt>real</tt> です。
        !           546: <q>On virt-m68k, Goldfish Timer interrupt and Goldfish RTC are the target.
        !           547: The default is <tt>real</tt>.</q>
        !           548: <li><span class="new">X68030 では MFP のタイマー割り込みと RTC(RP5C15) が対象で、
        !           549: デフォルトは <tt>virtual</tt> です。
        !           550: MFP の TxDR レジスタの読み出しは、
        !           551: この指定に関わらず常に <tt>virtual</tt> 相当の動作しか出来ません。
        !           552: <a href="#netbsd-x68k-timesync">NetBSD/x68k での時間同期</a> の項も参照してください。
        !           553: <q>On X68030, MFP timer interrupts and RTC(RP5C15) are the target.
        !           554: The default is <tt>virtual</tt>.
        !           555: Note that reading from MFP TxDR register only works as <tt>virtual</tt>,
        !           556: regardless of this setting.
        !           557: See also <a href="#netbsd-x68k-timesync">Time Synchronization on NetBSD/x68k</a>.</q>
        !           558: </span>
        !           559: </ul>
1.1.1.8   root      560: _EOM_
                    561: );
                    562: 
1.1.1.13  root      563: config_item("debugger-driver = <i>string</i>", <<<_EOM_
1.1.1.12  root      564: デバッガのコンソールドライバを指定します。
                    565: <tt>stdio</tt>、<tt>tcp</tt>、<tt>none</tt> が選択可能です。
                    566: <tt>stdio</tt> は標準入出力を使用します。
                    567: <tt>tcp</tt> は TCP ポートで TELNET プロトコルで待ち受けます。
                    568: <tt>none</tt> ならホスト側とは一切通信を行いません。
                    569: デフォルトは <tt>none</tt> です。
                    570: <q>Specifies console driver of the debugger.
                    571: <tt>stdio</tt>, <tt>tcp</tt>, and <tt>none</tt> can be specified.
                    572: <tt>stdio</tt> uses the standard input/output.
                    573: <tt>tcp</tt> listens on TCP port using TELNET protocol.
                    574: <tt>none</tt> doesn't make any communication with the host.
                    575: The default is <tt>none</tt>.</q>
                    576: _EOM_
                    577: );
                    578: 
1.1.1.13  root      579: config_item("debugger-tcp-port = <i>integer</i>",
1.1.1.12  root      580: <<<_EOM_
                    581: デバッガのコンソールドライバが tcp の時の TCP 待ち受けポート番号を指定します。
1.1.1.14  root      582: <q>Specifies the TCP port number that debugger console driver listens.</q>
                    583: _EOM_
                    584: );
                    585: 
                    586: ?><a name="config-dipsw-autoboot"></a><?php
                    587: config_item("dipsw-autoboot = <i>yesno</i>", <<<_EOM_
                    588: (LUNA and NEWS Only)
                    589: 機種に依存せず DIPSW を自動起動に設定するかどうか指定します。
                    590: "<tt>yes</tt>" なら自動起動するように、
                    591: "<tt>no</tt>" なら自動起動しないように DIPSW 設定を上書きします。
                    592: "" (空) なら何もしません。デフォルトは "" です。
                    593: このオプションは <tt>luna-dipsw1</tt> や <tt>news-dipsw</tt>
                    594: の状態が設定ファイルやコマンドラインオプションによって確定した後に
                    595: 該当のスイッチだけを変更します。
                    596: <q>Specifies whether to configure DIPSW to boot automatically,
                    597: regardless of the models.
                    598: "<tt>yes</tt>" overwrites DIPSW, to boot automatically.
                    599: "<tt>no</tt>" overwrites DIPSW, not to boot automatically.
                    600: "" (Empty) does nothing.
                    601: The default value is "".
                    602: This option only changes the appropriate switch(es)
                    603: after the <tt>luna-dipsw1</tt> or <tt>news-dipsw</tt> configuration
                    604: is determined by the configuration file or command line options.</q>
                    605: _EOM_
                    606: );
                    607: 
                    608: config_item("dipsw-serial = <i>yesno</i>", <<<_EOM_
                    609: (LUNA and NEWS Only)
                    610: 機種に依存せず DIPSW をシリアルコンソールを使うかどうか指定します。
                    611: "<tt>yes</tt>" ならシリアルコンソールを使うように、
                    612: "<tt>no</tt>" ならシリアルコンソールを使わないように DIPSW 設定を上書きします。
                    613: "" (空) なら何もしません。デフォルトは "" です。
                    614: <tt>luna-dipsw1</tt> もしくは <tt>news-dipsw</tt> (機種による)
                    615: の状態が設定ファイルやコマンドラインオプションによって確定した後に
                    616: このオプションによって該当のスイッチだけを変更します。
                    617: NEWS でシリアルコンソールを使わないを選択した場合、
                    618: SW1,2,3 は OFF, OFF, ON にセットされ、
                    619: NWB-512 モノクロコンソール(未実装) が選択されます。
                    620: <q>Specifies whether to configure DIPSW to use serial console,
                    621: regardless of the models.
                    622: "<tt>yes</tt>" overwrites DIPSW, to use serial console.
                    623: "<tt>no</tt>" overwrites DIPSW, not to use serial console.
                    624: "" (Empty) does nothing.
                    625: The default value is "".
                    626: This option only changes the appropriate switch(es)
                    627: after the <tt>luna-dipsw1</tt> or <tt>news-dipsw</tt> configuration
                    628: is determined by the configuration file or command line options.
                    629: If you choose not to use serial console on NEWS,
                    630: SW1,2,3 will be set OFF, OFF, ON respectively,
                    631: and NWB-512 monochrome console (not implemented) will be chosen.</q>
1.1       root      632: _EOM_
                    633: );
                    634: 
1.1.1.15  root      635: config_item(
                    636:        "ethernet-macaddr = <i>string</i><br>" .
1.1.1.16  root      637:        "ethernet<i>N</i>-macaddr = <i>string</i><br>",
1.1.1.15  root      638: <<<_EOM_
1.1.1.16  root      639: <i>N</i>
                    640: 番目のイーサネットデバイスの仮想マシン側の MAC アドレスを指定します。
1.1.1.8   root      641: <tt><i>XX</i>:<i>XX</i>:<i>XX</i>:<i>XX</i>:<i>XX</i>:<i>XX</i></tt>
                    642: 形式で指定します。
                    643: <tt>auto</tt> なら自動的に決定します。
                    644: デフォルトは <tt>auto</tt> です。
1.1.1.16  root      645: <tt>ethernet-macaddr</tt> は <tt>ethernet0-macaddr</tt> の別名です。
                    646: _EOM_
                    647: );
                    648: 
1.1.1.17  root      649: config_item("exec-file = <i>path</i>", <<<_EOM_
1.1.1.16  root      650: 起動時にロードするホストの実行ファイルを指定します。
                    651: -X オプションとほぼ同等ですが、相対パスは VM ディレクトリを起点にします。
                    652: <q>Specifiies the host file that will be loaded at startup.
                    653: This is mostly the same as -X option.
                    654: The only one difference is that relative path originates the VM directory.</q>
                    655: _EOM_
                    656: );
                    657: 
1.1.1.19  root      658: config_item("exec-bootparam = <i>string</i>", <<<_EOM_
1.1.1.18  root      659: (virt-m68k Only)
                    660: カーネルに渡すブートパラメータを指定します。
                    661: 内容はたぶん OS ごとに異なりますが、
                    662: NetBSD/virt68k では "<tt>root=ld0</tt>" (クォートを除く)
                    663: のようにしてカーネルにルートデバイスを指示します。
                    664: <q>Specifies the boot parameter that is passed to the kernel.
                    665: The syntax may differ depending on the OS, but in NetBSD/virt68k,
                    666: you can specify the root device to the kernel, like as
                    667: "<tt>root=ld0</tt>" (excluding quotes).</q>
                    668: _EOM_
                    669: );
                    670: 
1.1.1.17  root      671: config_item("exec-initrd = <i>path</i>", <<<_EOM_
                    672: (virt-m68k Only)
1.1.1.16  root      673: カーネルに渡す初期 RAM ディスクイメージのパスを指定します。
                    674: --initrd オプションとほぼ同等ですが、相対パスは VM ディレクトリを起点にします。
                    675: <q>Specifies the initial ramdisk image passed to the kernel.
                    676: This is mostly the same as --initrd option.
                    677: The only one difference is that relative path originates the VM directory.</q>
1.1.1.8   root      678: _EOM_
                    679: );
                    680: 
1.1.1.15  root      681: config_item("extram-size = <i>integer</i>", <<<_EOM_
1.1.1.14  root      682: (X68030 Only)
                    683: 拡張メモリのサイズを MB 単位で指定します。
                    684: 今の所以下だけが指定できます。
                    685: <q>Specifies the extended RAM size in MB.
                    686: For now, only the following can be specified.</q>
1.1.1.15  root      687: <ul>
1.1.1.14  root      688: <li><tt>0</tt> … 拡張メモリを使用しません。デフォルトです。
                    689: <q>No extended memory.  It's default.</q>
                    690: <li><tt>16</tt> … TS-6BE16 互換モードで、
1.1.1.16  root      691: アドレス $0100'0000 からの 16MB です。
1.1.1.14  root      692: <q>TS-6BE16 compatible mode.
1.1.1.16  root      693: Its address is from $0100'0000 and the size is 16MB.</q>
                    694: <li><tt>128/256/512</tt> … 060turbo 互換モードで、
                    695: アドレス $1000'0000 からです。
                    696: <q>060turbo compatible mode.  Its address is from $1000'0000.</q>
1.1.1.15  root      697: </ul>
1.1.1.14  root      698: _EOM_
                    699: );
                    700: 
1.1.1.15  root      701: config_item("fast-mode = <i>integer</i>", <<<_EOM_
1.1.1.14  root      702: 起動時の動作モードを指定します。0 なら通常モード、1 なら高速モードです。
                    703: デフォルトは 0 です。
                    704: コマンドラインオプション <tt>-f</tt> でも高速モードへのみ指定可能です。
                    705: _EOM_
                    706: );
                    707: 
                    708: config_item("fd-drive = <i>integer</i>", <<<_EOM_
                    709: (X68030 Only)
1.1.1.13  root      710: フロッピードライブの数を 0 から 4 で指定します。
                    711: デフォルトは 2 です。
1.1.1.14  root      712: <q>Specifies the number of floppy drives from <tt>0</tt> to <tt>4</tt>.
1.1.1.13  root      713: The default is <tt>2</tt>.</q>
                    714: _EOM_
                    715: );
                    716: 
1.1.1.14  root      717: config_item("fd<i>N</i>-image = <i>path</i>", <<<_EOM_
                    718: (X68030 Only)
1.1.1.13  root      719: フロッピードライブ <i>N</i> に起動時に挿入するディスクイメージを指定します。
                    720: イメージパスが相対パスなら VM ディレクトリからの相対パスになります。
                    721: 起動後はメニューから操作できます。
                    722: デフォルトは空です。
1.1.1.14  root      723: <q>Specifies a diskimage to be inserted to floppy drive <i>N</i> at startup.
1.1.1.13  root      724: If the <i>path</i> is relative path, it is from the VM directory.
                    725: You can also operate them from menu after startup.
                    726: The default is empty.</q>
                    727: _EOM_
                    728: );
                    729: 
1.1.1.14  root      730: config_item("fpu-type = <i>value</i>", <<<_EOM_
1.1.1.19  root      731: (X68030 and virt-m68k Only)
1.1.1.18  root      732: 68030 に FPU コプロセッサを装着するかどうか指定しています。
1.1.1.19  root      733: この設定は <tt>mpu-type</tt> が <tt>68030</tt> の時のみ有効です。
1.1.1.18  root      734: <tt>none</tt> なら FPU コプロセッサを装着しません。
                    735: <tt>68881</tt> なら FPU コプロセッサとして 68881 を装着します。
1.1.1.13  root      736: 現状 68882 はサポートしていません。
                    737: また <tt>none</tt> の代わりに <tt>0</tt>、
                    738: <tt>68881</tt> の代わりに <tt>1</tt> と書くこともできます。
                    739: デフォルトは <tt>68881</tt> です。
1.1.1.18  root      740: LUNA-I はたぶん 68881 搭載モデルのみのため変更できません。
                    741: <q>Specifies whether to install FPU co-processor or not.
1.1.1.19  root      742: This item is meaningful only if <tt>mpu-type</tt> is <tt>68030</tt>.
1.1.1.18  root      743: If <tt>none</tt>, FPU co-processor is not installed.
                    744: If <tt>68881</tt>, 68881 FPU co-processor is installed.
1.1.1.13  root      745: 68882 is not supported yet.
                    746: And, <tt>none</tt> can also be written as <tt>0</tt>,
                    747: <tt>68881</tt> can also be written as <tt>1</tt>.
                    748: The default is <tt>68881</tt>.
                    749: This item cannot be specified on LUNA-I
1.1.1.18  root      750: because (probably) all LUNA-I has 68881.</q>
1.1.1.16  root      751: _EOM_
                    752: );
                    753: 
1.1.1.17  root      754: config_item("host-avx2 = <i>string</i>", <<<_EOM_
                    755: ホストが amd64(x86_64) の場合にレンダリングに AVX2
                    756: アクセラレーションを使うかどうかを指定します。
1.1.1.16  root      757: <tt>auto</tt> なら起動時にホスト CPU が AVX2 をサポートしているか確認し、
                    758: サポートしていれば使用します。
                    759: <tt>no</tt> なら AVX2 コードを実行しません。
                    760: デフォルトは <tt>auto</tt> です。
                    761: amd64(x86_64) 以外のホストではこの設定は無視されます。
1.1.1.17  root      762: <q>Specifies whether to use AVX2 acceleration for rendering
                    763: on amd64(x86_64) host.
1.1.1.16  root      764: If <tt>auto</tt>, nono checks whether the host CPU supports AVX2
                    765: on startup and use it if it does.
                    766: If <tt>no</tt>, nono will not execute AVX2 instructions.
                    767: The default is <tt>auto</tt>.
                    768: Note that this item is ignored if the host is not amd64(x86_64).</q>
1.1.1.17  root      769: _EOM_
                    770: );
                    771: 
                    772: config_item("host-neon = <i>string</i>", <<<_EOM_
                    773: ホストが aarch64 の場合にレンダリングに NEON
                    774: アクセラレーションを使うかどうかを指定します。
                    775: <tt>auto</tt> なら使用し、
                    776: <tt>no</tt> なら使用しません。
                    777: デフォルトは <tt>auto</tt> です。
                    778: aarch64 以外のホストではこの設定は無視されます。
                    779: <q>Specifies whether to use NEON acceleration for rendering
                    780: on aarch64 host.
                    781: If <tt>auto</tt>, nono uses NEON code.
                    782: If <tt>no</tt>, nono don't use NEON code.
                    783: The default is <tt>auto</tt>.
                    784: Note that this item is ignored if the host is not aarch64.</q>
1.1.1.13  root      785: _EOM_
                    786: );
                    787: 
1.1.1.12  root      788: config_item("hostcom-driver = <i>string</i>", <<<_EOM_
                    789: シリアルポートのホスト側ドライバを指定します。
1.1.1.18  root      790: <tt>stdio</tt> なら標準入出力を使用します。
                    791: <tt>tcp</tt> なら TCP ポートで TELNET プロトコルで待ち受けます。
1.1.1.19  root      792: <tt>cons</tt> ならメイン画面で端末エミュレーションを行います。
1.1.1.12  root      793: <tt>none</tt> ならホスト側とは一切通信を行いません。
1.1.1.18  root      794: ゲスト機種によって対応しているホスト側ドライバの種類とデフォルト値が変わります。
                    795: LUNA-I、LUNA-88K、X68030 では <tt>stdio</tt>、<tt>tcp</tt>、<tt>none</tt>
                    796: が選択可能でデフォルトは <tt>none</tt> です。
                    797: virt-m68k、NEWS では <tt>stdio</tt>、<tt>tcp</tt>、<tt>cons</tt>、<tt>none</tt>
1.1.1.19  root      798: すべてが選択可能でデフォルトは <tt>cons</tt> です。
1.1.1.12  root      799: <q>Specifies the host driver of serial port.
                    800: <tt>stdio</tt> uses the standard input/output.
                    801: <tt>tcp</tt> listens on TCP port using TELNET protocol.
1.1.1.19  root      802: <tt>cons</tt> does a terminal emulation in main panel.
1.1.1.12  root      803: <tt>none</tt> doesn't make any communication with the host.
1.1.1.18  root      804: The choices and default value vary depending on the guest type.
                    805: On LUNA-I, LUNA-88K and X68030, you can choose <tt>stdio</tt>, <tt>tcp</tt>
                    806: or <tt>none</tt>, and the default is <tt>none</tt>.
                    807: On virt-m68k and NEWS, you can choose all of <tt>stdio</tt>, <tt>tcp</tt>,
1.1.1.19  root      808: <tt>cons</tt> or <tt>none</tt>, and the default is <tt>cons</tt>.</q>
1.1.1.12  root      809: _EOM_
                    810: );
                    811: 
                    812: config_item("hostcom-tcp-port = <i>integer</i>", <<<_EOM_
                    813: ホストドライバが tcp の時の TCP 待ち受けポート番号を指定します。
1.1.1.14  root      814: <q>Specifies the TCP port number that host driver listens.</q>
1.1.1.12  root      815: _EOM_
                    816: );
                    817: 
                    818: config_item("hostcom-fallback = <i>integer</i>", <<<_EOM_
                    819: <tt>hostcom-driver</tt> で指定したドライバが使用可能でなかった時、
                    820: 0 ならプロセスを終了します。1 なら <tt>none</tt> を選択して実行を継続します。
                    821: デフォルトは 0 です。
1.1.1.14  root      822: <q>Specifies the behavior when the driver which is selected by
1.1.1.12  root      823: <tt>hostcom-driver</tt> is unusable;
                    824: terminate the process if 0,
                    825: or continue to run using the <tt>none</tt> driver if 1.
                    826: The default is 0.</q>
                    827: _EOM_
                    828: );
                    829: 
1.1.1.10  root      830: config_item("hostkbd-input = <i>string</i>", <<<_EOM_
1.1.1.20! root      831: (LUNA and X68030 Only)
1.1.1.10  root      832: ホストキーボードの入力モードを指定します。
                    833: <tt>char</tt> ならキャラクタ入力モード、
                    834: <tt>jp</tt> なら日本語キーボードモードです。
                    835: デフォルトは <tt>char</tt> です。
                    836: 詳細は <a href="#aboutvm">VM について</a> の章を参照してください。
                    837: <q>Specifies the input mode of the host keyboard.
                    838: <tt>char</tt> means the character mode,
                    839: <tt>jp</tt> means the Japanese keyboard mode.
                    840: The defualt is <tt>char</tt>.
                    841: See <a href="#aboutvm">About VM</a> for details.</q>
                    842: _EOM_
                    843: );
                    844: 
1.1.1.16  root      845: config_item(
                    846:        "hostnet-driver = <i>string</i><br>" .
                    847:        "hostnet-afpacket-ifname = <i>ifname</i><br>" .
                    848:        "hostnet-bpf-ifname = <i>ifname</i><br>" .
                    849:        "hostnet-tap-devpath = <i>path</i><br>" .
1.1.1.20! root      850:        "hostnet-usermode-hostfwd = <i>string</i><br>" .
        !           851:        "hostnet-usermode-net = <i>string</i><br>" .
        !           852:        "hostnet-usermode-net6 = <i>string</i><br>" .
1.1.1.16  root      853:        "hostnet-fallback = <i>integer</i><br>", <<<_EOM_
                    854: それぞれ <tt>hostnet0-*</tt> の別名です。
                    855: _EOM_
                    856: );
                    857: 
                    858: config_item("hostnet<i>N</i>-driver = <i>string</i>", <<<_EOM_
                    859: <i>N</i>
                    860: 番目のイーサネットデバイスのホスト側ドライバを指定します。
1.1.1.20! root      861: <tt>afpacket</tt>、<tt>bpf</tt>、<tt>tap</tt>、<tt>usermode</tt> のうち
1.1.1.19  root      862: configure で検出したものと <tt>auto</tt>、<tt>none</tt> が選択可能です。
1.1.1.16  root      863: <q>Specifies the host driver of <i>N</i>-th
1.1.1.15  root      864: ethernet device.
1.1.1.20! root      865: <tt>afpacket</tt>, <tt>bpf</tt>, <tt>tap</tt> and <tt>usermode</tt> can be specified
1.1.1.19  root      866: only if the configure detects them.
                    867: <tt>auto</tt> and <tt>none</tt> can always be specified.</q>
                    868: <ul>
                    869: <li><tt>afpacket</tt> は Linux の AF_PACKET ソケットを使用します。
                    870: ホスト自身とは通信できません。
                    871: <q><tt>afpacket</tt> uses Linux's AF_PACKET socket.
                    872: It cannot communicate with the host itself.</q>
                    873: <li><tt>bpf</tt> は bpf(4) デバイスを使用します。
                    874: ホスト自身とは通信できません。
                    875: <q><tt>bpf</tt> uses bpf(4) device.
                    876: It cannot communicate with the host itself.</q>
                    877: <li><tt>tap</tt> は tap(4) デバイスを使用します。
                    878: <q><tt>tap</tt> uses tap(4) device.</q>
1.1.1.20! root      879: <li><tt>usermode</tt> は libslirp を使用したユーザモードです。
1.1.1.19  root      880: nono 自身が NAT ルータ、DHCP サーバ、DNS サーバの機能を持ちます。
                    881: <q><tt>usermode</tt> is an usermode network using libslirp.
                    882: nono also acts as NAT router, DHCP server and DNS server.</q>
                    883: <li><tt>none</tt> ならホスト側とは一切通信を行いません。
                    884: <q><tt>none</tt> doesn't make any communication with the host.</q>
                    885: </ul>
                    886: <tt>auto</tt> は <tt>usermode</tt> と同義ですが、
1.1.1.20! root      887: configure で libslirp が無効になっている場合は <tt>none</tt> と同義になります。
1.1.1.19  root      888: <tt>hostnet0-driver</tt> のデフォルトは <tt>auto</tt>、
                    889: <tt>hostnet1-driver</tt> のデフォルトは <tt>none</tt> です。
1.1.1.20! root      890: <q><tt>auto</tt> is a synonym for <tt>usermode</tt>, but
        !           891: when libslirp is disabled on configure, it is a synonym for <tt>none</tt>.
1.1.1.16  root      892: The default of <tt>hostnet0-driver</tt> is <tt>auto</tt>,
1.1.1.15  root      893: the default of <tt>hostnet1-driver</tt> is <tt>none</tt>.</q>
1.1.1.6   root      894: _EOM_
                    895: );
                    896: 
1.1.1.16  root      897: config_item("hostnet<i>N</i>-afpacket-ifname = <i>ifname</i>", <<<_EOM_
1.1.1.8   root      898: ホストドライバが afpacket の時にバインドするインタフェースを1つ指定します。
                    899: <i>ifname</i> が <tt>auto</tt>
                    900: なら使用可能なインタフェースを1つ自動的に選択します。
                    901: デフォルトは <tt>auto</tt> です。
                    902: なお、このホストドライバではローカルホストとの通信は出来ません。
1.1.1.14  root      903: <q>Specifies an interface name to bind to, when the host driver is afpacket.
1.1.1.8   root      904: If <tt>auto</tt> is specified as <i>ifname</i>,
                    905: it selects an usable interface automatically.
                    906: The default is <tt>auto</tt>.
                    907: Note that this host driver cannot communicate with the localhost.</q>
                    908: _EOM_
                    909: );
                    910: 
1.1.1.16  root      911: config_item("hostnet<i>N</i>-bpf-ifname = <i>ifname</i>", <<<_EOM_
1.1.1.8   root      912: ホストドライバが bpf の時にバインドするインタフェースを1つ指定します。
                    913: <i>ifname</i> が <tt>auto</tt>
                    914: なら使用可能なインタフェースを1つ自動的に選択します。
                    915: デフォルトは <tt>auto</tt> です。
                    916: なお、このホストドライバではローカルホストとの通信は出来ません。
1.1.1.14  root      917: <q>Specifies an interface name to bind to, when the host driver is bpf.
1.1.1.8   root      918: If <tt>auto</tt> is specified as <i>ifname</i>,
                    919: it selects an usable interface automatically.
                    920: The default is <tt>auto</tt>.
                    921: Note that this host driver cannot communicate with the localhost.</q>
                    922: _EOM_
                    923: );
                    924: 
1.1.1.16  root      925: config_item("hostnet<i>N</i>-tap-devpath = <i>path</i>", <<<_EOM_
1.1.1.8   root      926: ホストドライバが tap の時に使用するデバイスを1つフルパスで指定します。
                    927: デフォルトは <tt>auto</tt> で、この場合は自動的にデバイスを選択します。
                    928: この時の探し方はホスト OS によって異なります。
                    929: Linux なら <tt>/dev/net/tun</tt> を指定したのと同じです。
1.1.1.6   root      930: OpenBSD なら <tt>/dev/tap0</tt> から <tt>/dev/tap9</tt> まで
                    931: 順番にオープンできるまで試します。
                    932: NetBSD (と FreeBSD) ならまず <tt>/dev/tap</tt> でクローニングを試み、
                    933: それが失敗すれば <tt>/dev/tap0</tt> から <tt>/dev/tap9</tt> までを
                    934: 順番にオープンできるまで試します。
1.1.1.8   root      935: いずれの場合も VM ディレクトリかその親ディレクトリに
                    936: <tt>nono-ifup</tt>, <tt>nono-ifdown</tt> という名前のシェルスクリプトが必要です。
                    937: 何もすることがない場合でも正常終了する空のシェルスクリプトを用意してください。
                    938: <q>
1.1.1.14  root      939: Specifies a device pathname, when the host driver is tap.
1.1.1.8   root      940: The default is <tt>auto</tt>.
1.1.1.6   root      941: The behavior in this case depends on the host OS.
                    942: On Linux, it's the same as <tt>/dev/net/tun</tt>.
                    943: On OpenBSD, it will try from <tt>/dev/tap0</tt> to <tt>/dev/tap9</tt>
                    944: until successful.
                    945: On NetBSD (and FreeBSD), it will try cloning by <tt>/dev/tap</tt> first.
                    946: If that fails, then try from <tt>/dev/tap0</tt> to <tt>/dev/tap9</tt>
                    947: until successful.
1.1.1.8   root      948: In all cases, you need to prepare two shell script files which names are
                    949: <tt>nono-ifup</tt> and <tt>nono-ifdown</tt> in the VM directory or
                    950: its parent directory.
                    951: Even if you don't have anything to do in these scripts,
1.1.1.11  root      952: you need to prepare empty scripts that will terminate successfully.</q>
1.1       root      953: _EOM_
                    954: );
                    955: 
1.1.1.20! root      956: config_item("hostnet<i>N</i>-usermode-net = <i>network</i>/<i>netmask</i>", <<<_EOM_
1.1.1.19  root      957: ホストドライバが usermode の時の、内部 IPv4 ネットワークのアドレスを指定します。
                    958: ネットワークアドレスは
                    959: <tt>192.0.2.0/255.255.255.0</tt> のようにネットマスクで指定するか
                    960: <tt>192.0.2.0/24</tt> のようにネットマスク長で指定することも出来ます。
                    961: デフォルトは <tt>10.8.0.0/24</tt> です。
                    962: _EOM_
                    963: );
                    964: 
1.1.1.20! root      965: config_item("hostnet<i>N</i>-usermode-net6 = <i>network</i>/<i>prefixlen</i>", <<<_EOM_
1.1.1.19  root      966: ホストドライバが usermode の時の、内部 IPv6 ネットワークのアドレスを指定します。
                    967: ネットワークアドレスは <tt>2001:db8::/64</tt>
                    968: のようにアドレスとプレフィックス長で指定します。
                    969: デフォルトは <tt>fd08::/64</tt> です。
                    970: _EOM_
                    971: );
                    972: 
1.1.1.20! root      973: config_item("hostnet<i>N</i>-usermode-hostfwd = <i>entry</i>[<i>;entry</i>[<i>;…</i>]]", <<<_EOM_
1.1.1.19  root      974: ホストドライバが usermode の時の、外部から内部へのポートフォワーディングの設定を行います。
                    975: 1つの <i>entry</i> は
                    976: <dl>
                    977: <dd>
                    978: <tt><i>protocol</i>,[<i>hostaddr</i>:]<i>hostport</i>,[<i>guestaddr</i>:]<i>guestport</i></tt>
                    979: </dd>
                    980: のように '<tt>,</tt>'(カンマ) 3つで区切って表します。
                    981: <i>protocol</i> は <tt>tcp</tt> か <tt>udp</tt> です。
                    982: <i>hostaddr</i> はホストのバインドアドレスで省略すると 0.0.0.0 です。
                    983: <i>guestaddr</i> はゲストのアドレスで、
                    984: 省略すると DHCP でクライアントに配布したアドレスになります
                    985: (通常は省略します)。
                    986: 例えば、ホストの 10022/tcp へのコネクションをゲストの 22/tcp に転送したい場合は
                    987: <tt>tcp,10022,22</tt> となります。
                    988: 複数指定する場合は '<tt>;</tt>'(セミコロン) で区切って1行に並べます。
                    989: <p>
                    990: IPv6 には対応していません。
                    991: _EOM_
                    992: );
                    993: 
1.1.1.16  root      994: config_item("hostnet<i>N</i>-fallback = <i>integer</i>", <<<_EOM_
1.1.1.15  root      995: <tt>hostnet<i>N</i>-driver</tt> で指定したドライバが使用可能でなかった時、
1.1.1.8   root      996: 0 ならプロセスを終了します。
                    997: 1 なら none を選択して実行を継続します。
                    998: デフォルトは 0 です。
1.1.1.14  root      999: <q>Specifies the behavior when the driver which is selected by
1.1.1.15  root     1000: <tt>hostnet<i>N</i>-driver</tt> is unusable;
1.1.1.8   root     1001: terminate the process if 0,
                   1002: or continue to run using the <tt>none</tt> driver if 1.
                   1003: The default is 0.</q>
1.1       root     1004: _EOM_
                   1005: );
                   1006: 
1.1.1.14  root     1007: config_item("iplrom1-image = <i>path</i>", <<<_EOM_
1.1.1.13  root     1008: (X68030 Only)
                   1009: X68030 の外部 IPLROM イメージファイルのパスを指定します。
                   1010: こちらは 0xfe0000..0xffffff の 128KB の部分で、IPLROM30 と呼ばれているほうです。
                   1011: <i>path</i> がファイル名のみなら VM ディレクトリとその親ディレクトリからこのファイル名を検索します。
                   1012: <i>path</i> が相対パスなら VM ディレクトリからの相対パスになります (現在のディレクトリからではありません)。
                   1013: 空にすると無償配布されている IPLROM30 を使用します。
                   1014: デフォルトは空です。
                   1015: <q>Specifies the X68030's external IPLROM image file path.
                   1016: This one contains 128KB at 0xfe0000..0xffffff and is known as IPLROM30.
                   1017: If the <i>path</i> does not have any path delimiters,
                   1018: the VM directory and then its parent directory will be searched.
                   1019: If the <i>path</i> is a relative path,
                   1020: it will be path from the VM directory, not from the current directory.
                   1021: If the <i>path</i> is empty, the public released IPLROM30 will be used.
1.1.1.14  root     1022: The default value is empty.</q>
1.1.1.13  root     1023: _EOM_
                   1024: );
                   1025: 
1.1.1.14  root     1026: config_item("iplrom2-image = <i>path</i>", <<<_EOM_
1.1.1.13  root     1027: (X68030 Only)
                   1028: X68030 の外部 IPLROM イメージファイルのパスを指定します。
                   1029: こちらは 0xfc0000..0xfdffff の 128KB の部分で、ROM30 と呼ばれているほうです。
                   1030: <i>path</i> がファイル名のみなら VM ディレクトリとその親ディレクトリからこのファイル名を検索します。
                   1031: <i>path</i> が相対パスなら VM ディレクトリからの相対パスになります (現在のディレクトリからではありません)。
                   1032: 空にすると内蔵 ROM を使用します。
                   1033: 内蔵 ROM は NetBSD/x68k が起動する程度の SCSI IOCS のみサポートしています。
                   1034: デフォルトは空です。
                   1035: <q>Specifies the X68030's external IPLROM image file path.
                   1036: This one contains 128KB at 0xfc0000..0xfdffff and is known as ROM30.
                   1037: If the <i>path</i> does not have any path delimiters,
                   1038: the VM directory and then its parent directory will be searched.
                   1039: If the <i>path</i> is a relative path,
                   1040: it will be path from the VM directory, not from the current directory.
                   1041: If the <i>path</i> is empty, internal emulated ROM will be used.
                   1042: The ROM supports only enough SCSI IOCS to boot NetBSD/x68k.
1.1.1.14  root     1043: The default value is empty.</q>
1.1.1.13  root     1044: _EOM_
                   1045: );
                   1046: 
1.1.1.12  root     1047: config_item("keyboard-connect = <i>integer</i>", <<<_EOM_
1.1.1.14  root     1048: (LUNA and X68030 Only)
1.1.1.12  root     1049: 起動時にキーボードを本体に接続するかどうかを指定します。
                   1050: 1 なら接続し、0 なら接続しません。デフォルトは 1 です。
                   1051: 起動後はメニューから変更可能です。
1.1.1.14  root     1052: <q>Specifies whether to connect keyboard on boot.
1.1.1.12  root     1053: If 1, it is connected; if 0, it isn't connected.  The default is 1.
                   1054: You can change it on GUI menu after boot.</q>
                   1055: _EOM_
                   1056: );
                   1057: 
1.1.1.9   root     1058: config_item("luna-adjust-misused-epoch = <i>integer</i>", <<<_EOM_
1.1.1.13  root     1059: (LUNA Only)
1.1.1.9   root     1060: LUNA で誤った RTC epoch を採用している OS 向けに RTC
                   1061: エミュレーションを補正するかどうかを
                   1062: 指定します。0 なら補正をしません(実機と同じ動作)、
                   1063: 1 なら補正します(現実世界と同じ動作)。
                   1064: デフォルトは 1 で、通常 1 のままで使用して問題ありません。
                   1065: <q>
                   1066: Specifies whether nono corrects RTC emulation for OSes
                   1067: that adopts wrong RTC epoch on LUNA.
                   1068: 0 means making no correction
                   1069: (this is the same behavior as the actual machine).
                   1070: 1 means making correction
                   1071: (this is the same behavior as the real world).
                   1072: The default is 1.  Normally, leave it 1.</q>
                   1073: <p>
                   1074: LUNA で採用している RTC (MK48T02) は2桁で保持している年の値が
                   1075: 4 で割り切れる年をうるう年とする仕様です。
1.1.1.12  root     1076: ところが NetBSD/luna68k、OpenBSD/luna88k などはこの
                   1077: RTC の年の値を 1970年からの経過年として使用しています。
1.1.1.9   root     1078: 例えば1970年はうるう年ではないため 2月28日の翌日は 3月1日ですが、
                   1079: MK48T02 的には 00年であるためうるう年と認識し 2月28日の翌日が2月29日になります。
1.1.1.12  root     1080: このように、これらの OS を使っている場合実機の
                   1081: RTC は4年のうち約2年間、1日ずれた日付を指しているようです。
1.1.1.9   root     1082: しかしながら、RTC の時刻は OS 起動時に一度読んだ後は基本的に参照しない上、
                   1083: 今時必要なら NTP で時間を合わせるため、
                   1084: 実機でも問題が顕在化することはまずないと思います。
                   1085: nono の場合は実機と異なり、アプリケーション実行中しか RTC が進まないため、
                   1086: 補正がない場合の動作が問題になるのは
                   1087: nono を起動したまま偶数年の2月末日から日付をまたいで、
                   1088: かつ nono を起動したまま OS を再起動して NTP などで時刻修正を行わなかった時
                   1089: だけだと思います。
                   1090: このオプションはほぼ開発者向けの動作確認用です。
                   1091: _EOM_
                   1092: );
                   1093: 
1.1       root     1094: config_item("luna-dipsw1 = <i>string</i>", <<<_EOM_
1.1.1.13  root     1095: (LUNA Only)
1.1       root     1096: 本体前面 DIPSW#1-1..#1-8 の内容を指定します。
                   1097: "<tt>0</tt>" を DOWN、"<tt>1</tt>" を UP として、
                   1098: これを8つ並べた形式で、前から順に #1..#8 に対応します。
1.1.1.14  root     1099: <q>Specifies status of the front panel DIPSW#1-1..#1-8 using 8 digits.
1.1.1.2   root     1100: "<tt>0</tt>" means DOWN and "<tt>1</tt>" means UP.
                   1101: The first character corresponds to #1 and
1.1.1.3   root     1102: the eighth character corresponds to #8.</q>
                   1103: <p>
                   1104: LUNA-I でのデフォルトは <tt>11110111</tt> です。
                   1105: 各スイッチの内容は以下のリンクを参照してください。
                   1106: <q>On LUNA-I, the default value is <tt>11110111</tt>.
1.1.1.4   root     1107: See the following link about DIPSW.</q><br>
1.1.1.3   root     1108: → <a href="https://wiki.netbsd.org/ports/luna68k/luna68k_info/"
                   1109: >NetBSD/luna68k: Information</a>
1.1       root     1110: <br>
1.1.1.12  root     1111: LUNA-88K でのデフォルトは <tt>11111111</tt> です。
1.1.1.4   root     1112: 各スイッチの内容は以下のリンクを参照してください。
1.1.1.12  root     1113: <q>On LUNA-88K, the default value is <tt>11111111</tt>.
1.1.1.4   root     1114: See the following link about DIPSW.</q><br>
                   1115: → <a href="http://man.openbsd.org/boot_luna88k.8"
                   1116: >OpenBSD manual pages: boot_luna88k(8)</a>
1.1.1.14  root     1117: <p>
                   1118: 自動起動するかどうかとシリアルコンソールを使うかどうかを指定したい場合は
                   1119: こちらではなく
                   1120: <a href="#config-dipsw-autoboot">dipsw-autoboot、dipsw-serial</a>
                   1121: 設定を使うほうが便利です。
                   1122: <q>If you only want to specify whether to autoboot and/or
                   1123: to use serial console,
                   1124: <a href="#config-dipsw-autoboot">dipsw-autoboot, dipsw-serial</a>
                   1125: configurations are useful.</q>
1.1       root     1126: _EOM_
                   1127: );
                   1128: 
                   1129: config_item("luna-dipsw2 = <i>string</i>", <<<_EOM_
1.1.1.13  root     1130: (LUNA Only)
1.1       root     1131: 本体前面 DIPSW#2-1..#2-8 の内容を指定します。
                   1132: 書式は <tt>luna-dipsw1</tt> と同じです。
                   1133: デフォルトは <tt>11111111</tt> です。
1.1.1.2   root     1134: <q>Specifies status of the front panel DIPSW#2-1..#2-8.
                   1135: The same syntax as <tt>luna-dipsw1</tt> is used.
                   1136: The default value is <tt>11111111</tt>.</q>
1.1.1.3   root     1137: <p>
1.1.1.4   root     1138: NetBSD/luna68k のブートローダは、
                   1139: DIPSW#2 が "<tt>11111111</tt>" なら自動的にカーネルをロードして実行し、
                   1140: どれかでも "<tt>0</tt>" にするとプロンプトで停止するようです。
1.1       root     1141: <span class=strike>(本当は #8 だけで制御するつもりだったんじゃないかという気がします)</span>
1.1.1.4   root     1142: <q>NetBSD/luna68k bootloader will automatically load and execute the kernel,
                   1143: if the DIPSW#2 is "<tt>11111111</tt>".
1.1.1.2   root     1144: Otherwise, the bootloader will enter interactive mode.
                   1145: <span class=strike>(I doubt that they actually wanted to switch with only #8)
1.1.1.11  root     1146: </span></q>
1.1       root     1147: _EOM_
                   1148: );
                   1149: 
1.1.1.12  root     1150: config_item("luna-video-plane = <i>integer</i>", <<<_EOM_
1.1.1.13  root     1151: (LUNA Only)
1.1.1.14  root     1152: LUNA のビデオボードのプレーン数を 1、4、8 から指定します。
1.1.1.12  root     1153: 1 ならモノクロビデオボード、
1.1.1.14  root     1154: 4 なら16色 (4bpp) ビデオボード、
                   1155: 8 なら 256色 (8bpp) ビデオボードです。
1.1.1.15  root     1156: デフォルトは 4 です。
1.1.1.14  root     1157: <q>Specifies number of planes on LUNA video board.
                   1158: The valid values are 1, 4 or 8.
1.1.1.12  root     1159: 1 means a monochrome video board,
1.1.1.14  root     1160: 4 means 16-color (4bpp) video board,
                   1161: 8 means 256-color (8bpp) video board.
1.1.1.15  root     1162: The default value is 4.</q>
1.1.1.14  root     1163: _EOM_
                   1164: );
                   1165: 
1.1.1.17  root     1166: config_item(
                   1167:        "m88100-version = <i>integer</i><br>" .
                   1168:        "m88200-version = <i>integer</i>", <<<_EOM_
                   1169: (LUNA-88K Only)
                   1170: MPU と CMMU のマスクバージョンを設定します。
                   1171: 今の所これによるエミュレータの動作の違いはありません。
                   1172: どちらかというとこれを参照しているゲスト OS の動作確認用です。
                   1173: デフォルトは <tt>m88100-version</tt> が 11、<tt>m88200-version</tt> が 9 です。
                   1174: <q>Specifies MPU and CMMU mask version.
                   1175: This item doesn't affect any MPU/CMMU emulations for now.
                   1176: But it may be useful for verifying the guest OS behaviors.
                   1177: The default value is 11 for <tt>m88100-version</tt>,
                   1178: 9 for <tt>m88200-version</tt>.</q>
                   1179: _EOM_
                   1180: );
                   1181: 
1.1.1.15  root     1182: config_item("mainview-scale = <i>double</i>", <<<_EOM_
1.1.1.14  root     1183: メインウィンドウの起動時のスケールを実数で指定します。
                   1184: コマンドラインオプション <tt>-s</tt> で上書き可能です。
                   1185: 起動後はメニューから、
                   1186: プリセットされた倍率とここで指定した倍率には変更可能です。
1.1.1.15  root     1187: デフォルトは 1.0 です。
1.1.1.14  root     1188: _EOM_
                   1189: );
                   1190: 
1.1.1.15  root     1191: config_item("monitor-fontsize = <i>integer</i>",
1.1.1.14  root     1192: <<<_EOM_
                   1193: テキスト系モニタとステータスパネルのフォントサイズを
                   1194: 12, 16, 24 から指定します。
                   1195: コマンドラインオプション <tt>--fontsize</tt> で上書き可能です。
                   1196: 起動後はメニューから変更することができます。
                   1197: デフォルトは 12 です。
1.1.1.12  root     1198: _EOM_
                   1199: );
                   1200: 
1.1.1.3   root     1201: config_item("monitor-rate = <i>integer</i>", <<<_EOM_
                   1202: テキスト系モニタウィンドウの更新頻度を Hz 単位で指定します。
                   1203: 1 から 60 までの間で指定でき、デフォルトは 20Hz です。
1.1.1.15  root     1204: 起動後にメニューから、
                   1205: プリセットされた頻度とここで指定した頻度には変更可能です。
1.1.1.3   root     1206: <q>Specifies refresh rate of all text monitor windows in Hz.
                   1207: It ranges from 1 to 60.  The default is 20Hz.
1.1.1.14  root     1208: You can choose this value on GUI menu after boot,
1.1.1.15  root     1209: from preset rate or rate specified here.</q>
1.1.1.3   root     1210: _EOM_
                   1211: );
                   1212: 
1.1       root     1213: config_item("mpu-clock = <i>value</i>", <<<_EOM_
                   1214: MPU のクロック数を MHz 単位で指定します。
1.1.1.14  root     1215: デフォルトは LUNA-I なら 20MHz、LUNA-88K と X68030 なら 25MHz です。
1.1.1.17  root     1216: virt-m68k ではあまり意味はありませんが 25MHz です。
1.1.1.5   root     1217: <q>Specifies the MPU clock in MHz.
1.1.1.16  root     1218: The default value is 20MHz on LUNA-I, or 25MHz on LUNA-88K and X68030.
1.1.1.17  root     1219: On virt-m68k, it's less meaningful but 25MHz.</q>
1.1       root     1220: _EOM_
                   1221: );
                   1222: 
1.1.1.19  root     1223: config_item("mpu-type = <i>value</i>", <<<_EOM_
1.1.1.18  root     1224: (X68030, virt-m68k Only)
1.1.1.20! root     1225: MPU 種別を <tt>68030</tt> か <tt>68040</tt> で指定します。
        !          1226: デフォルトは <tt>68030</tt> です。
1.1.1.18  root     1227: <q>Specifies the MPU type, <tt>68030</tt> or <tt>68040</tt>.
                   1228: The default is <tt>68030</tt>.</q>
                   1229: _EOM_
                   1230: );
                   1231: 
1.1.1.8   root     1232: config_item("mpu-pseudo-stop = <i>integer</i>", <<<_EOM_
1.1.1.13  root     1233: (LUNA-88K Only)
1.1.1.8   root     1234: m88100 にて疑似 STOP 状態を有効にするかどうかを指定します。
                   1235: 0 なら無効(実機と同じ動作)、1 なら有効で、デフォルトは 1 です。
                   1236: m88100 には、m68k の STOP 命令 (割り込みが上がるまで何もせず待つ)
                   1237: に相当する命令がなく、
                   1238: 大抵ビジーウェイトループで割り込みが上がるのを待つことになります。
                   1239: これは実機では (消費電力を減らす手段がないという些細な問題以外には)
                   1240: 何のデメリットもないのですが、
                   1241: エミュレータで特に高速動作させている時には割り込みが上がるまで
                   1242: (例えば人間がキーを入力するまで) ホスト CPU パワーを使い潰してビジーウェイトループを実行し続けることになり、ホスト CPU があっつあつになります。
                   1243: それを防ぐための機能です。
                   1244: 特徴的な命令列を検出して実現しているので、すべての状況で動作するわけではありません。
                   1245: _EOM_
                   1246: );
                   1247: 
1.1.1.16  root     1248: config_item(
1.1.1.15  root     1249:        "nereid0-enable = <i>integer</i><br>" .
1.1.1.16  root     1250:        "nereid1-enable = <i>integer</i><br>", <<<_EOM_
1.1.1.15  root     1251: (X68030 Only)
                   1252: Nereid 拡張ボードを装着するかどうかを指定します。
                   1253: Nereid は同時に2枚まで使用することができます。
                   1254: 値は <tt>0</tt> なら装着せず、<tt>1</tt> なら装着します。
                   1255: デフォルトは <tt>0</tt> (装着しない) です。
1.1.1.16  root     1256: 詳細は <a href="#nereid">4.6 Nereid の章</a>を参照してください。
1.1.1.15  root     1257: <q>Specifies whether install Nereid expansion board or not.
                   1258: Up to two board can be operated at the same time.
                   1259: If <tt>0</tt>, the board is not installed.
                   1260: If <tt>1</tt>, the board is installed.
                   1261: The default value is <tt>0</tt>.
1.1.1.16  root     1262: See also <a href="#nereid">Section 4.6 Nereid</a> below for details.</q>
1.1.1.15  root     1263: _EOM_
                   1264: );
                   1265: 
1.1.1.16  root     1266: config_item(
1.1.1.15  root     1267:        "nereid0-net = <i>integer</i><br>" .
1.1.1.16  root     1268:        "nereid1-net = <i>integer</i><br>", <<<_EOM_
1.1.1.15  root     1269: (X68030 Only)
                   1270: Nereid ボードの NIC (RTL8019AS) のみを無効にすることが出来ます
                   1271: (実機では通常そのようなことは出来ません)。
                   1272: <tt>0</tt> なら無効、<tt>1</tt> なら有効です。デフォルトは <tt>1</tt> です。
                   1273: 通常は <tt>1</tt> のまま使用してください。
                   1274: この設定は対応する <tt>nereid<i>N</i>-enable</tt> が <tt>0</tt>
                   1275: (ボードを装着しない) の場合は意味を持ちません。
                   1276: <q>This can disable only NIC (RTL8019AS) of Nereid expansion board
                   1277: (although it's not possible normally in the real world).
                   1278: It's disabled if <tt>0</tt>, or enabled if <tt>1</tt>.
                   1279: The default is <tt>1</tt>.  Normally, leave it <tt>1</tt>.
                   1280: This item will be ignored if the corresponding <tt>nereid<i>N</i>-enable</tt>
                   1281: is <tt>0</tt>.</q>
                   1282: _EOM_
                   1283: );
                   1284: 
1.1.1.16  root     1285: config_item(
1.1.1.15  root     1286:        "nereid0-ram-size = <i>integer</i><br>" .
1.1.1.16  root     1287:        "nereid1-ram-size = <i>integer</i><br>", <<<_EOM_
1.1.1.15  root     1288: (X68030 Only)
                   1289: Nereid ボードのバンクメモリのサイズを MB 単位で指定します。
                   1290: 指定できるのは <tt>0</tt>, <tt>4</tt>, <tt>16</tt> です。
                   1291: <tt>0</tt> を指定するとバンクメモリを無効にします。
                   1292: デフォルトは <tt>16</tt> です。
                   1293: この設定は対応する <tt>nereid<i>N</i>-enable</tt> が <tt>0</tt>
                   1294: (ボードを装着しない) の場合は意味を持ちません。
                   1295: <q>Specifies bank memory size in MB of Nereid expansion board.
                   1296: The valid values are <tt>0</tt>, <tt>4</tt> or <tt>16</tt>.
                   1297: If <tt>0</tt>, disable the bank memory.
                   1298: The default is <tt>16</tt>.
                   1299: This item will be ignored if the corresponding <tt>nereid<i>N</i>-enable</tt>
                   1300: is <tt>0</tt>.</q>
                   1301: <br><br>
                   1302: また通常は必要ありませんが -4 または -16 を指定すると、
                   1303: バンクメモリは無効にした上で Nereid 制御ポートのビット6の読み出し値
                   1304: (バンクメモリの容量) を再現することが出来ます。
                   1305: -4 ならビット6は 0 (4MB)、0 か -16 なら 1(16MB) が読み出せます。
                   1306: _EOM_
                   1307: );
                   1308: 
1.1.1.14  root     1309: config_item("news-dipsw = <i>string</i>", <<<_EOM_
                   1310: (NEWS Only)
                   1311: DIPSW の内容を指定します。
                   1312: "<tt>0</tt>" を OFF、"<tt>1</tt>" を ON として、
                   1313: これを8つ並べた形式で、前から順に SW1..SW8 に対応します。
                   1314: デフォルトは <tt>00001000</tt> です。
                   1315: <q>Specifies status of the DIPSW using 8 digits.
                   1316: "<tt>0</tt>" means OFF and "<tt>1</tt>" is ON.
                   1317: The first character corresponds to SW1 and
                   1318: the eighth character corresponds to SW8.
                   1319: The default valus is <tt>00001000</tt>.</q>
                   1320: <br><br>
                   1321: 各スイッチの内容は以下のリンクを参照してください。
                   1322: <q>See the following link about DIPSW.</q><br>
                   1323: → <a href="https://www.netbsd.org/ports/news68k/faq.html#dip_sw"
                   1324: >NetBSD/news68k Frequently Asked Questions</a>
                   1325: <p>
                   1326: 自動起動するかどうかとシリアルコンソールを使うかどうかを指定したい場合は
                   1327: こちらではなく
                   1328: <a href="#config-dipsw-autoboot">dipsw-autoboot、dipsw-serial</a>
                   1329: 設定を使うほうが便利です。
                   1330: <q>If you only want to specify whether to autoboot and/or
                   1331: to use serial console,
                   1332: <a href="#config-dipsw-autoboot">dipsw-autoboot, dipsw-serial</a>
                   1333: configurations are useful.</q>
                   1334: _EOM_
                   1335: );
                   1336: 
1.1.1.2   root     1337: config_item("prom-image = <i>path</i>", <<<_EOM_
1.1.1.13  root     1338: (LUNA Only)
1.1.1.12  root     1339: LUNA-I/LUNA-88K の外部 ROM イメージファイルのパスを指定します。
1.1.1.2   root     1340: <i>path</i> がファイル名のみなら VM ディレクトリとその親ディレクトリからこのファイル名を検索します。
                   1341: <i>path</i> が相対パスなら VM ディレクトリからの相対パスになります (現在のディレクトリからではありません)。
                   1342: 空にすると内蔵 ROM を使用します。
                   1343: デフォルトは空です。
1.1.1.12  root     1344: <q>Specifies the LUNA-I/LUNA-88K's external ROM image file path.
1.1.1.2   root     1345: If the <i>path</i> does not have any path delimiters,
                   1346: the VM directory and then its parent directory will be searched.
                   1347: If the <i>path</i> is a relative path,
1.1.1.13  root     1348: it will be path from the VM directory, not from the current directory.
1.1.1.2   root     1349: If the <i>path</i> is empty, internal emulated ROM will be used.
                   1350: The default value is empty.</q>
1.1       root     1351: <p>
1.1.1.2   root     1352: 実機を持っていない場合はこの値を空に (= デフォルトのままに) しておくと、
1.1.1.8   root     1353: nono 内蔵のなんちゃって下位互換 ROM で起動します。
1.1.1.2   root     1354: <q>If you does not have the real LUNA machines,
                   1355: you can boot with nono's internal downward compatible emulated ROM
1.1.1.11  root     1356: if you set this field empty (or leave it as the default).</q>
1.1       root     1357: <p>
1.1.1.4   root     1358: LUNA-I 実機を持っている場合は
                   1359: ROM ファイルを指定することで実機 ROM で起動できます。
1.1.1.2   root     1360: ROM ファイルは実機の 0x41000000-0x4101ffff (128KB) を保存したものです。
1.1.1.3   root     1361: 今のところ ROM は V4.22 (Thu Jul 27 11:45:42 1989) のみサポートしています。
                   1362: それ以外については何も分かりません。
1.1.1.4   root     1363: <q>If you have the real LUNA-I machine,
1.1.1.2   root     1364: you can boot with the real ROM spcifying the ROM file path.
1.1.1.4   root     1365: The ROM file is extracted from 0x41000000-0x4101ffff (128KB) of
                   1366: the real LUNA-I machine.
1.1.1.3   root     1367: For now, only V4.22 (Thu Jul 27 11:45:42 1989) is supported.
1.1.1.11  root     1368: I have no idea about other ROMs.</q>
1.1.1.4   root     1369: <p>
1.1.1.12  root     1370: LUNA-88K 実機の場合は 0x41000000-0x4103ffff (256KB) を保存したものです。
1.1.1.8   root     1371: 今のところ ROM は version 1.20 のみサポートしています。
1.1.1.4   root     1372: <q>
1.1.1.12  root     1373: For LUNA-88K,
1.1.1.4   root     1374: the ROM file is extracted from 0x41000000-0x4103ffff (256KB).
1.1.1.11  root     1375: For now, only version 1.20 is supported.</q>
1.1.1.2   root     1376: _EOM_
                   1377: );
                   1378: 
1.1.1.3   root     1379: config_item("ram-size = <i>integer</i>", <<<_EOM_
1.1.1.13  root     1380: 搭載する RAM サイズを MB 単位で指定します。<q>Specifies the RAM size in MB.</q>
                   1381: <ul>
                   1382: <li>LUNA-I のデフォルトは 16MB です。
1.1.1.6   root     1383: 16MB 未満は 4MB 単位で、
1.1.1.16  root     1384: 16MB 以上は 512MB まで 1MB 単位で指定できます。
                   1385: ただし <tt>prom-image</tt> で実機イメージを指定した場合は 255MB が上限になります。
                   1386: ちなみに NetBSD/luna68k の起動には最低でも 8MB 必要です。
1.1.1.13  root     1387: <q>On LUNA-I, the default is 16MB.
1.1.1.6   root     1388: If the size is less than 16MB, you can specify in 4MB unit.
1.1.1.16  root     1389: If larger, you can specify up to 512MB in 1MB unit.
                   1390: However, if you have <tt>prom-image</tt> with the real image,
                   1391: the maximum is limited to 255MB.
1.1.1.13  root     1392: By the way, NetBSD/luna68k needs at least 8MB to boot.</q>
                   1393: <li>LUNA-88K のデフォルトは 64MB です。
                   1394: 64MB 未満は 16MB 単位で、
1.1.1.16  root     1395: 64MB 以上は暫定で 512MB まで 1MB 単位で指定できます。
                   1396: ただし <tt>prom-image</tt> で実機イメージを指定した場合は
                   1397: 240MB が上限になります。
1.1.1.13  root     1398: <q>On LUNA-88K, the default is 64MB.
1.1.1.6   root     1399: If the size is less than 64MB, you can specify in 16MB unit.
1.1.1.16  root     1400: If larger, you can specify up to tentative 512MB in 1MB unit.
                   1401: However, if you have <tt>prom-image</tt> with the real image,
1.1.1.20! root     1402: the maximum is limited to 240MB.</q>
1.1.1.14  root     1403: <li>X68030 ではメイン RAM 容量を示し、デフォルトは 12MB です。
1.1.1.13  root     1404: 4MB から 12MB まで 1MB 単位で指定できます。
1.1.1.15  root     1405: 拡張メモリについては extram-size を参照してください。
1.1.1.14  root     1406: <q>On X68030, the default is 12MB.
                   1407: You can specify it in 1MB unit from 4MB to 12MB.
1.1.1.15  root     1408: See extram-size for extended memory.</q>
1.1.1.14  root     1409: <li>NWS-1750 では現状 16MB で変更できません。
                   1410: <q>On NWS-1750, This is 16MB fixed for now.</q>
1.1.1.17  root     1411: <li>virt-m68k のデフォルトは 128MB です。
1.1.1.20! root     1412: 16MB から 4080MB まで指定可能です。
1.1.1.16  root     1413: 指定された値が 16MB で割り切れない場合は 16MB 単位に切り上げになります。
1.1.1.17  root     1414: <q>On virt-m68k, the default is 128MB and
1.1.1.16  root     1415: the range is 16MB to 4080MB.
                   1416: If the specified size is not divisible by 16MB,
1.1.1.17  root     1417: it will be rounded up to 16MB.</q>
1.1.1.13  root     1418: </ul>
1.1       root     1419: _EOM_
                   1420: );
                   1421: 
1.1.1.12  root     1422: config_item("rtc-epoch-year = <i>integer</i>", <<<_EOM_
1.1.1.13  root     1423: (LUNA Only)
                   1424: RTC (MK48T02) の基準年を指定します。
1.1.1.12  root     1425: デフォルトは 1970年です。
                   1426: NetBSD/luna68k、OpenBSD/luna88k はいずれも基準年を 1970年としていますので、
                   1427: デフォルトのままで構いません。
                   1428: ゲスト OS に 4.4BSD を使用する際は 1900 を指定します。
1.1.1.14  root     1429: NEWS では今の所 1900 固定で変更出来ません。
1.1.1.13  root     1430: <q>Specifies the RTC (MK48T02) epoch year.
1.1.1.12  root     1431: The default is 1970.
                   1432: Since both NetBSD/luna68k and OpenBSD/luna88k use 1970 as epoch year,
                   1433: there is no need to touch this value.
1.1.1.14  root     1434: If you boot 4.4BSD on LUNA-I as the guest OS, specify 1900.
                   1435: On NEWS, it is fixed at 1900.</q>
1.1.1.12  root     1436: _EOM_
                   1437: );
                   1438: 
1.1.1.7   root     1439: config_item("show-statuspanel = <i>integer</i>", <<<_EOM_
                   1440: ステータスパネルを表示するかどうかを指定します。
                   1441: 0 なら非表示、1 なら表示です。
1.1.1.14  root     1442: デフォルトは 1(表示) です。
1.1.1.7   root     1443: 起動後はメニューから変更可能です。
                   1444: <q>Specifies whether to display the status panel or not.
                   1445: If 0, it is hidden; if 1, it is shown.
1.1.1.14  root     1446: The default is 1 (show).
1.1.1.11  root     1447: You can change it on GUI menu after boot.</q>
1.1.1.7   root     1448: _EOM_
                   1449: );
                   1450: 
1.1.1.9   root     1451: config_item("spc0-id<i>N</i>-image = <i>devtype</i>[,<i>path</i>]", <<<_EOM_
1.1.1.14  root     1452: (LUNA and X68030 Only)
1.1.1.9   root     1453: SCSI デバイスとイメージを指定します。キーの <i>N</i> には 0 から 7 が入ります。
                   1454: ただし ID 7 は本体が使用しますので指定しないでください。
                   1455: 値はデバイス種別 <i>devtype</i> とディスクイメージパス <i>path</i>
                   1456: を "<tt>,</tt>"(カンマ) で区切って並べた形式です。
                   1457: デバイス種別 <i>devtype</i> は以下のいずれかです。
1.1.1.20! root     1458: <q>Specifies SCSI device and image.  <i>N</i> in the key is 0 to 7.
1.1.1.2   root     1459: But don't specify ID 7 because the host uses it.
                   1460: The value is in a form of device type <i>devtype</i> and
1.1.1.9   root     1461: the disk image path <i>path</i> separated by "<tt>,</tt>"(comma).
1.1.1.11  root     1462: <i>devtype</i> can be one of the following:</q>
1.1.1.9   root     1463: <ul>
                   1464: <li><tt>hd</tt> … HD drive
                   1465: <li><tt>cd</tt> … CD-ROM drive
                   1466: <li><tt>mo</tt> … MO drive
                   1467: </ul>
                   1468: 
                   1469: <p>
                   1470: <i>devtype</i> が <tt>hd</tt> なら <i>path</i> は省略できません。
                   1471: <i>devtype</i> が <tt>cd</tt> か <tt>mo</tt> なら <i>path</i> は省略可能です。
                   1472: イメージパスが相対パスなら VM ディレクトリからの相対パスになります。
1.1.1.20! root     1473: <q>If <i>devtype</i> is <tt>hd</tt>, <i>path</i> cannot be ommitted.
1.1.1.9   root     1474: If <i>devtype</i> is <tt>cd</tt> or <tt>mo</tt>, <i>path</i> can be ommitted.
1.1.1.11  root     1475: If the <i>path</i> is relative path, it is from the VM directory.</q>
1.1.1.2   root     1476: 
1.1       root     1477: <p>
1.1.1.9   root     1478: 例えば、nono.cfg と同じディレクトリに置いた sd0.img を
                   1479: 起動 HDD ディスクイメージとして使い
                   1480: (LUNA では通常 ID 6 をプライマリ HDD に割り当てます)、
                   1481: ID 5 に同じディレクトリの install.iso をセットした CD ドライブを、
                   1482: ID 4 に起動時メディアなしの MO ドライブを接続する場合は次のようになります。
                   1483: <q>For example, if you use a harddisk image sd0.img placed in the same
                   1484: directory as nono.cfg
                   1485: (LUNA usually assigns ID 6 to the primary HDD),
                   1486: ID 5 for CD-ROM drive that loads install.iso in the same directory,
                   1487: and ID 4 for MO drive without media on boot,
1.1.1.2   root     1488: write as following:</q>
1.1       root     1489: <blockquote><pre>
1.1.1.9   root     1490: spc0-id6-image = hd,sd0.img
                   1491: spc0-id5-image = cd,install.iso
                   1492: spc0-id4-image = mo
1.1       root     1493: </pre></blockquote>
                   1494: _EOM_
                   1495: );
                   1496: 
1.1.1.4   root     1497: config_item("spc0-id<i>N</i>-seektime = <i>integer</i>", <<<_EOM_
1.1.1.14  root     1498: (LUNA and X68030 Only)
1.1.1.4   root     1499: 指定の SCSI HDD の平均シークタイムを msec 単位で指定します。
                   1500: 現在のデフォルトは <tt>0</tt> です (S・S・D!! S・S・D!!)。
                   1501: 16 程度を指定すると幾分往時に思いを馳せることが出来るかもしれませんが、
                   1502: 今の所あまり安定していません。
                   1503: <q>Specifies the average seek time of specified SCSI HDD in msec.
                   1504: Currently, the default value is <tt>0</tt>
                   1505: (This may be something like SSD :-).
                   1506: If you specify about 16 or so, you can feel nostalgic,
1.1.1.11  root     1507: but this feature is still unstable.</q>
1.1.1.4   root     1508: _EOM_
                   1509: );
                   1510: 
1.1.1.9   root     1511: config_item("spc0-id<i>N</i>-writeignore = <i>integer</i>", <<<_EOM_
1.1.1.14  root     1512: (LUNA and X68030 Only)
                   1513: 指定の SCSI HD デバイスへの書き込みをイメージに書き戻すかどうか指定します。
1.1       root     1514: <tt>0</tt> なら通常動作(書き込みを行う)です。
1.1.1.14  root     1515: <tt>1</tt> ならディスクイメージに一切書き戻しません。
                   1516: デバイスへ書き込んだはずのデータは Copy-On-Write の要領で、
                   1517: VM ディレクトリ内の一時ファイルに書き込みます。
                   1518: この一時ファイルはアプリケーション終了時に削除します。
1.1       root     1519: fsck を気にせずカーネルのデバッグとかを行いたい場合にはどうぞ。
                   1520: 何が起きるか意味が分からない人は指定しないでください。
                   1521: デフォルトは <tt>0</tt> です。
1.1.1.14  root     1522: <q>Specifies whether nono writes a writing to SCSI HD devices back
                   1523: to the diskimage.
                   1524: <tt>0</tt> means normal operation (writes to the diskimage).
                   1525: <tt>1</tt> means that nono will not write to the diskimage back.
                   1526: Data that the guest wrote to the device will be written to a temporary file
                   1527: in the VM directory,
                   1528: like Copy-On-Write.
                   1529: The temporary file will be removed when the application exits.
1.1.1.2   root     1530: This is useful for kernel debugging because it does not require fsck
1.1.1.14  root     1531: after the kernel hangs or reboots.
                   1532: Don't use this flag if you don't understand this paragraph.
1.1.1.9   root     1533: The default value is <tt>0</tt>.</q>
                   1534: <p>
                   1535: ちなみに、メディアを書き込み禁止にしたい場合はこれではなく、
                   1536: イメージファイルの書き込み権を落としてください。
                   1537: <q>By the way, if you want to make the media write-protected,
                   1538: clear the write permission from the image file
                   1539: (instead of this setting).</q>
                   1540: _EOM_
                   1541: );
                   1542: 
1.1.1.14  root     1543: config_item("sram-sync-ramsize = <i>integer</i>", <<<_EOM_
1.1.1.13  root     1544: (X68030 Only)
                   1545: SRAM の RAM 容量欄を実際の RAM サイズに合わせるかどうかを指定します。
                   1546: <tt>0</tt> なら何もしません (実機と同じ)。
                   1547: <tt>1</tt> なら、アプリケーション起動時に
                   1548: SRAM の \$ed0008.L (RAM 容量) を ram-size の設定値で更新します。
                   1549: この更新は、
                   1550: アプリケーション起動時に SRAM マジックが正しく書かれている場合のみ行われます。
                   1551: デフォルトは <tt>1</tt> です。
1.1.1.14  root     1552: <q>Specifies whether to synchronize a RAM size field in SRAM
1.1.1.13  root     1553: with real RAM size or not.
                   1554: If <tt>0</tt>, the application will do nothing (as same as the real).
                   1555: If <tt>1</tt>, the application updates(synchronizes)
                   1556: \$ed0008.L (RAM size) in SRAM with configuration value of ram-size.
                   1557: This update is performed once only if
                   1558: the SRAM magic string is correct at the application startup.
                   1559: The default is <tt>1</tt>.</q>
                   1560: _EOM_
                   1561: );
1.1.1.14  root     1562: 
1.1.1.17  root     1563: config_item("virtio-block<i>N</i>-image = <i>path</i>", <<<_EOM_
1.1.1.20! root     1564: (virt-m68k Only)
        !          1565: VirtIO ブロックデバイスのイメージを指定します。
        !          1566: キーの <i>N</i> は現状 0 から 7 が指定可能です。
1.1.1.16  root     1567: イメージパスが相対パスなら VM ディレクトリからの相対パスになります。
1.1.1.20! root     1568: <q>Specifies VirtIO block device's image.
        !          1569: <i>N</i> in the key is 0 through 7 for now.
1.1.1.16  root     1570: If the path is relative path, it is from the VM directory.</q>
                   1571: _EOM_
                   1572: );
                   1573: 
1.1.1.17  root     1574: config_item("virtio-block<i>N</i>-writeignore = <i>integer</i>", <<<_EOM_
1.1.1.20! root     1575: (virt-m68k Only)
        !          1576: 指定の VirtIO ブロックデバイスへの書き込みをイメージに書き戻すかどうか指定します。
        !          1577: 詳細は <tt>spc0-id<i>N</i>-writeignore</tt> を参照してください。
        !          1578: <q>Specifies whether nono writes a writing to VirtIO block devices back
1.1.1.16  root     1579: to the diskimage.
1.1.1.20! root     1580: See <tt>spc0-id<i>N</i>-writeignore</tt> for details.</q>
        !          1581: _EOM_
        !          1582: );
        !          1583: 
        !          1584: config_item("<span class='new'>virtio-scsi-id<i>N</i>-image = <i>devtype</i>[,<i>path</i>]</span>", <<<_EOM_
        !          1585: <span class="new">
        !          1586: (virt-m68k Only)
        !          1587: VirtIO SCSI デバイスとイメージを指定します。
        !          1588: イニシエータ ID が不要なため、
        !          1589: キーの <i>N</i> には 0 から 7 が指定できます。
        !          1590: 詳細は <tt>spc0-id<i>N</i>-image</tt> を参照してください。
        !          1591: <q>Specifies VirtIO SCSI device and image.
        !          1592: You can specify all of 0 thorugh 7 for the key <i>N</i>,
        !          1593: because there is no initiator.
        !          1594: See <tt>spc0-id<i>N</i>-image</tt> for more details.</q>
        !          1595: </span>
        !          1596: _EOM_
        !          1597: );
        !          1598: 
        !          1599: config_item("<span class='new'>virtio-scsi-id<i>N</i>-writeignore = <i>integer</i></span>", <<<_EOM_
        !          1600: <span class="new">
        !          1601: (virt-m68k Only)
        !          1602: 指定の VirtIO SCSI デバイスへの書き込みをイメージに書き戻すかどうか指定します。
        !          1603: 詳細は <tt>spc0-id<i>N</i>-writeignore</tt> を参照してください。
        !          1604: <q>Specifies whether nono writes a writing to VirtIO SCSI devices back
        !          1605: to the diskimage.
        !          1606: See <tt>spc0-id<i>N</i>-writeignore</tt> for details.</q>
        !          1607: </span>
1.1.1.16  root     1608: _EOM_
                   1609: );
                   1610: 
                   1611: config_item("windrv-path = <i>path</i>", <<<_EOM_
                   1612: (X68030 Only)
                   1613: Windrv でゲスト側に見せるホストディレクトリを指定します。
                   1614: 今の所指定できるディレクトリは1つだけです。
                   1615: 空なら Windrv デバイスが存在しないように振る舞います。
                   1616: デフォルトは空です。
                   1617: _EOM_
                   1618: );
                   1619: 
                   1620: config_item("x68k-cut-fc2 = <i>integer</i>", <<<_EOM_
                   1621: (X68030 Only)
                   1622: MPU (68030) の FC2 ピンを切断するかどうかを指定します。
                   1623: <tt>0</tt> なら切断しません (標準の状態)。
                   1624: <tt>1</tt> なら切断します。
                   1625: デフォルトは <tt>1</tt> です。
                   1626: NetBSD/x68k で X サーバを起動する場合のみ <tt>1</tt> にする必要があります。
                   1627: <q>Specifies whether to cut MPU(68030) FC2 pin.
                   1628: If <tt>0</tt>, the FC2 pin is connected as usual.
                   1629: If <tt>1</tt>, it is disconnected.
                   1630: The default is <tt>1</tt>.
                   1631: Only if you run the X server on NetBSD/x68k, it needs to be <tt>1</tt>.</q>
1.1.1.14  root     1632: _EOM_
                   1633: );
                   1634: 
1.1.1.19  root     1635: config_item("xp-clock = <i>value</i>", <<<_EOM_
1.1.1.18  root     1636: (LUNA Only)
                   1637: XP プロセッサのクロック数を MHz 単位で指定します。
                   1638: デフォルトは 6.144 [MHz] です。
                   1639: _EOM_
                   1640: );
                   1641: 
1.1.1.16  root     1642: 
1.1       root     1643: ?>
                   1644: </dl>
                   1645: </div>
1.1.1.14  root     1646: <?php H4end(); ?>
1.1       root     1647: 
                   1648: 
1.1.1.14  root     1649: <?php H4("aboutvm", "VM について <q>About VM</q>"); ?>
1.1.1.13  root     1650: 
1.1.1.14  root     1651: <?php H5("", "実装状況 <q>Implementation Status</q>"); ?>
1.1.1.13  root     1652: <div class="main">
                   1653: <table cellpadding=0 cellspacing=0>
                   1654: <tr><td style="padding-right: 1em">◎ <td>: ほぼ実装済み <q>Mostly implemented</q>
                   1655: <tr><td>○    <td>: 困らない程度には実装済み <q>Works</q>
                   1656: <tr><td>△    <td>: とりあえず動いてる程度 <q>Works somehow</q>
                   1657: <tr><td>×     <td>: 未実装 <q>Not implemented</q>
                   1658: <tr><td>—    <td>: 実装予定なし <q>Not planned</q>
                   1659: </table>
                   1660: <style type="text/css">
                   1661: .pghd {
                   1662:        border: 0px none;
                   1663:        border-bottom: 1px solid black;
                   1664:        padding-top: 1em;
                   1665: }
                   1666: .pgth {
                   1667:        border-top: 0px none;
                   1668:        border-left: 1px solid black;
                   1669:        border-right: 1px solid black;
                   1670:        border-bottom: 1px solid black;
                   1671:        padding-right: 1ex;
                   1672: }
                   1673: .pgtd {
                   1674:        border-top: 0px none;
                   1675:        border-left: 0px none;
                   1676:        border-right: 1px solid black;
                   1677:        border-bottom: 1px solid black;
                   1678: }
                   1679: </style>
                   1680: <table cellspacing=0 cellpadding=0>
                   1681: <?php
                   1682:        $table = <<<__EOM__
                   1683: LUNA-I
1.1.1.18  root     1684: MPU (68030)            ◎
1.1.1.13  root     1685: FPU (68881)            ◎
                   1686: BT454                  ◎
                   1687: CRTC2                  ○     標準で使用する値のみサポート
                   1688: Frame buffer   ◎
                   1689: Keyboard/Mouse ◎
1.1.1.14  root     1690: SIO (uPD7201)  ◎
                   1691: PIO (8255)             ○
1.1.1.16  root     1692: Ethernet (AM7990)      ◎
1.1.1.13  root     1693: NVRAM&amp;RTC (MK48T02)        ◎
                   1694: Front LCD              ◎
1.1.1.14  root     1695: SPC (MB89352)  ◎
1.1.1.13  root     1696: SCSI HD/CD/MO Devices  ○
1.1.1.15  root     1697: XP(HD647180) CPU       △
                   1698: XP(HD647180) Timer0/1  ○
                   1699: XP(HD647180) その他の内蔵デバイス<br><q>Other internal devices</q>   ×
                   1700: XP 周辺デバイス <q>Peripheral devices</q>        ×
1.1.1.13  root     1701: 電源 <q>Power Circuit</q>                    ○
                   1702: 
                   1703: LUNA-88K specific
                   1704: MPU (88100 part)       ○     マルチプロセッサ未実装、バグも未実装? <wbr><q>MP (and bugs?) not implemented</q>
                   1705: MPU (88200 part)       ◎
                   1706: MPU (88110)            —     実装予定なし <q>Not planned</q>
                   1707: FUSEROM                        ○
                   1708: 
                   1709: X68030
1.1.1.18  root     1710: MPU (68030)            ◎     68EC030 は実装予定なし <q>68EC030 is not planned</q>
1.1.1.13  root     1711: FPU (68881)            ◎     68882 は未実装 <q>68882 not implemented</q>
1.1.1.19  root     1712: MPU (68040)            △     キャッシュ未実装、実行サイクル未考察
1.1.1.16  root     1713: DMAC                   △
1.1.1.13  root     1714: CRTC/VC                        △     768x512 のテキスト画面のみサポート <wbr><q>Only 768x512 text screen supported</q>
                   1715: FDC/FDD                        ○
1.1.1.16  root     1716: 標準・拡張エリアセット <q>Areaset</q>       ◎
1.1.1.13  root     1717: ADPCM/OPM              ×
1.1.1.16  root     1718: テキスト画面<q>Text screen</q>   ○
                   1719: コントラスト <wbr><q>Contrast</q>        ◎
1.1.1.13  root     1720: グラフィック機能全般 <wbr><q>All other graphics</q>  ×      当面予定なし <q>Not scheduled</q>
                   1721: Keyboard               ◎     TVコントロールを除く <q>Except TV Control</q>
                   1722: Mouse                  ◎     本体接続のみ
                   1723: MFP                            △
1.1.1.14  root     1724: PPI (8255)             △
1.1.1.13  root     1725: Printer                        ×
                   1726: RTC                            ◎     アラームを除く <q>Except Alarm</q>
1.1.1.14  root     1727: SPC (MB89352)  ◎
1.1.1.13  root     1728: SCSI HD/CD/MO Devices  ○
1.1.1.14  root     1729: SCC (Z8530)            ◎
1.1.1.13  root     1730: SRAM                   ◎
                   1731: システムポート<q>System port</q>        △
                   1732: 電源 <q>Power curcuit</q>                    ○
1.1.1.16  root     1733: Nereid Ethernet                ◎
                   1734: Nereid Bank memory     ◎
1.1.1.13  root     1735: Nereid USB                     —     実装予定なし <q>Not planned</q>
1.1.1.15  root     1736: 拡張メモリ <q>Extended memory</q> ○
1.1.1.16  root     1737: Windrv                 △
1.1.1.14  root     1738: 
                   1739: NWS-1750
1.1.1.18  root     1740: MPU (68030)            ◎
1.1.1.14  root     1741: FPU (68881)            ◎     68882 は未実装 <q>68882 not implemented</q>
                   1742: PROM                           ×
                   1743: SCC (Z8530)            ◎     チャンネル A のみホストに接続 <wbr><q>Only channel A is connected to the host</q>
1.1.1.16  root     1744: Ethernet (AM7990)      ◎
1.1.1.14  root     1745: NVRAM&amp;RTC (MK48T02)        ◎
                   1746: Video Board            ×
                   1747: Keyboard/Mouse ×
                   1748: SCSI Controller                ×
                   1749: IDROM, DIP-SW, 100Hz Timer, 診断用LED               ○
                   1750: AST, Lv2Intr   ×
                   1751: 電源 <q>Power Circuit</q>    ×
                   1752: 
1.1.1.17  root     1753: virt-m68k
1.1.1.18  root     1754: MPU (68030)            ◎
1.1.1.16  root     1755: FPU (68881)            ◎     68882 は未実装 <q>68882 not implemented</q>
1.1.1.19  root     1756: MPU (68040)            △     キャッシュ未実装、実行サイクル未考察
1.1.1.17  root     1757: Goldfish PIC   ◎
                   1758: Goldfish RTC   ◎
                   1759: Goldfish Timer ◎
                   1760: Goldfish TTY   ○
1.1.1.20! root     1761: VirtIO Block   ○
        !          1762: VirtIO Network         ○
        !          1763: VirtIO Entropy ◎
        !          1764: <span class="new">VirtIO SCSI</span>   <span class="new">○</span>
1.1.1.17  root     1765: Power Control  ○
1.1.1.16  root     1766: 
1.1.1.13  root     1767: __EOM__;
                   1768:        $table_lines = preg_split("/\n/", $table);
                   1769:        foreach ($table_lines as $line) {
                   1770:                if ($line == "") {
                   1771:                        continue;
1.1.1.16  root     1772:                } else if (preg_match("/\t/", $line) == 0) {
1.1.1.13  root     1773:                        // table title
1.1.1.16  root     1774:                        print "<tr><td colspan=3 class=pghd>{$line}\n";
1.1.1.13  root     1775:                } else {
1.1.1.16  root     1776:                        $t = preg_split("/\t+/", $line, 3);
                   1777:                        $h = isset($t[0]) ? $t[0] : "";
                   1778:                        $m = isset($t[1]) ? $t[1] : "";
                   1779:                        $d = isset($t[2]) ? $t[2] : "";
1.1.1.13  root     1780:                        print "<tr><td class=pgth>{$h}\n";
                   1781:                        print " <td class=pgtd style='padding: 0 1ex 0 1ex'>{$m}\n";
                   1782:                        print " <td class=pgtd style='padding-left: 0.5ex'>{$d}\n";
                   1783:                }
                   1784:        }
                   1785: ?>
                   1786: </table>
                   1787: </div>
1.1.1.14  root     1788: <?php H5end(); ?>
1.1.1.13  root     1789: 
1.1.1.14  root     1790: <?php H5("", "MPU (68030)"); ?>
                   1791: <div class="main">
1.1.1.17  root     1792: 68030 ATC (アドレス変換キャッシュ) は実際の仕様とは異なり高速化してあります。
                   1793: <q>68030 ATC (Address Translation Cache) is differ from and faster than the real 68030.</q>
1.1.1.13  root     1794: </div>
1.1.1.14  root     1795: <?php H5end(); ?>
1.1.1.13  root     1796: 
1.1.1.19  root     1797: <?php H5("", "MPU (68040)"); ?>
                   1798: <div class="main">
1.1.1.18  root     1799: いくつか未実装の命令があります。
                   1800: キャッシュは未実装で、
                   1801: それに伴いキャッシュ制御を行う新設命令 CINV*, CPUSH* も未実装です。
1.1.1.19  root     1802: MMU、ATC はまだ怪しいです。
1.1.1.18  root     1803: FPU はある程度動作すると思いますが
                   1804: 例外を起こす細かい条件は未検証のため、
                   1805: 本来は例外が起きてソフトウェア (FPSP) で処理するはずのものが
                   1806: 68881 相当のハードウェアエミュレーションで実行出来てしまうという
                   1807: 通常あまり困らないタイプの問題は存分にあります。
                   1808: <br>
1.1.1.20! root     1809: <span class="new">
        !          1810: 命令の実行サイクルについてはある程度似せているつもりですが、
1.1.1.18  root     1811: そもそも 68040 はパイプライン方式なので 68000 時代のようにサイクル数を
1.1.1.20! root     1812: 正確にエミュレーションすることはおそらく不可能です。</span>
1.1.1.18  root     1813: <br>
1.1.1.20! root     1814: 68040 は X68030 と virt-m68k でのみ選択可能です。
1.1.1.18  root     1815: NEWS に 68040 搭載モデルはなさそうなのと、
                   1816: LUNA では 68040 搭載モデルは LUNA-I ではなく LUNA-II になるからです。
1.1.1.19  root     1817: </div>
1.1.1.18  root     1818: <?php H5end(); ?>
                   1819: 
1.1.1.14  root     1820: <?php H5("", "LUNA の ROM エミュレーション"); ?>
                   1821: <div class="main">
1.1.1.13  root     1822: LUNA-I、LUNA-88K で PROM の外部イメージを指定しない場合
                   1823: (<tt>prom-image</tt> が空の場合)、
                   1824: 内蔵の独自 ROM が動作し、コンソールモニタが起動します。
                   1825: このコンソールモニタの動作は実機のそれとよく似ていますが、
                   1826: これは実機確認の際に操作方法が違いすぎると(自分が)困るため仕方なく似せているもので、
                   1827: 忠実なコピーを作る目的ではありません。
                   1828: </div>
1.1.1.14  root     1829: <?php H5end(); ?>
1.1.1.13  root     1830: 
1.1.1.14  root     1831: <?php H5("", "X68030 の ROM (ROM30) エミュレーション"); ?>
                   1832: <div class="main">
1.1.1.13  root     1833: X68030 で ROM30 の外部イメージを指定しない場合
                   1834: (<tt>iplrom2-image</tt> が空の場合)、内蔵の独自 ROM が組み込まれます。
                   1835: 本来の ROM30 には SCSIIOCS の他に ROM デバッガなどが含まれていますが、
                   1836: 内蔵 ROM はこのうち SCSIIOCS を NetBSD/x68k が起動するのに十分なだけしか
                   1837: 実装していません。
                   1838: Human68k を起動する場合はお手元の実機から ROM イメージを作成してください。
                   1839: </div>
1.1.1.14  root     1840: <?php H5end(); ?>
                   1841: 
1.1.1.16  root     1842: <?php H5("", "NEWS エミュレーション"); ?>
                   1843: <div class="main">
                   1844: NEWS エミュレーションは今の所
                   1845: <tt>-X</tt> オプションでカーネルを直接起動することしか出来ません。
                   1846: PROM も NetBSD/news68k
                   1847: の起動と終了に最低限必要な程度が誤魔化してあるだけです。
                   1848: また、デバイスの配置や、デバイスが存在しないアドレスへのアクセスが
                   1849: どうなるかなどは実機確認をしていないため分かりません。
                   1850: 従って、動くものは動く、程度のものでしかありません。
                   1851: というかネタです。
                   1852: </div>
                   1853: <?php H5end(); ?>
                   1854: 
1.1.1.17  root     1855: <?php H5("", "virt-m68k エミュレーション"); ?>
1.1.1.16  root     1856: <div class="main">
                   1857: QEMU の "virt" (架空ハードウェア仕様)の互換機wをサポートしています。
                   1858: NetBSD/virt68k が動作します。
                   1859: <tt>-X</tt> オプション (または設定の <tt>exec-file</tt>)
1.1.1.18  root     1860: でカーネルを、
1.1.1.19  root     1861: 設定の <tt>exec-bootparam</tt> でルートデバイスを
                   1862: それぞれ指定してください。
1.1.1.16  root     1863: インストール時には <tt>--initrd</tt> (または設定の <tt>exec-initrd</tt>)
                   1864: で RAM ディスクイメージも指定します。
                   1865: <q>Supports QEMU "virt" virtual hardware's compatible machine and
                   1866: it can run NetBSD/virt68k.
                   1867: You need to specify the kernel by <tt>-X</tt> option
                   1868: (or <tt>exec-file</tt> in configuration).
                   1869: If you want to install, you also need to specify the ramdisk image by
1.1.1.18  root     1870: <tt>--initrd</tt> option (or <tt>exec-initrd</tt> in configuration).</q>
                   1871: </div>
                   1872: <?php H5end(); ?>
                   1873: 
1.1.1.19  root     1874: <?php H5("nereid", "シリアルコンソールの端末エミュレーション"); ?>
1.1.1.18  root     1875: <div class="main">
                   1876: virt-m68k (や NEWS) のようにシリアルコンソールしか持たない機種のために、
                   1877: メイン画面でシリアルコンソールの端末エミュレーションを実装してあります。
                   1878: <tt>hostcom-driver = cons</tt> とすることで nono のメイン画面に
                   1879: シリアルコンソールの内容が表示されます。
                   1880: カラーは現状サポートしていませんが、
                   1881: ボールド、イタリック、下線などはある程度サポートしています。
                   1882: バックログはありませんので、バックログが必要なら
                   1883: <tt>stdio</tt> 等を使ってください。
1.1.1.16  root     1884: </div>
                   1885: <?php H5end(); ?>
                   1886: 
1.1.1.15  root     1887: <?php H5("nereid", "X68030 の Nereid エミュレーション"); ?>
1.1.1.16  root     1888: <div class="main">
1.1.1.15  root     1889: 現実の Nereid はイーサネット/メモリ/USB の複合拡張ボードで、
                   1890: このうちメモリは、メインメモリの増設に使える他、
                   1891: メインメモリとして使わなかった領域をバンクメモリとして使うことも出来ます。
                   1892: nono ではこの Nereid の機能のうちイーサネット (RTL8019AS)
                   1893: とバンクメモリのみサポートします。
                   1894: メインメモリの増設機能はエミュレータでは意味がないので実装しません。また
                   1895: USB (SL811HS/T) の実装予定はありません。
                   1896: <q>Nereid in the real world is a combined Ethernet/memory/USB expansion board.
                   1897: Of these, the memory can be used to expand main memory,
                   1898: and areas not used for the main memory can be used as bank memory.
                   1899: nono supports only ethernet (RTL8019AS) and bank memory among
                   1900: the functions of the Nereid expansion board.
                   1901: Main memory expansion is not supported because it's meaningless on emulators.
                   1902: Also, USB (SL811HS/T) is not planned for implementation.</q>
                   1903: <br><br>
                   1904: Nereid は DIPSW6,7 によりアドレス・割り込みベクタの組を2通り指定できるため、
                   1905: 2枚まで同時に運用することが出来ます。
                   1906: 本来 SW6 と SW7 は (衝突さえしなければ) 任意に組み合わせることが可能ですが、
                   1907: nono では簡便のためボード #0 は SW6,7 が OFF、
                   1908: ボード #1 は SW6,7 が ON と固定しています。
                   1909: <q>Since Nereid can set to two different combinations of addresses and
                   1910: interrupt vectors by DIPSW,
                   1911: so up to two boards can be operated at the same time.
                   1912: Originally, SW6 and SW7 can be arbitrarily combined
                   1913: (as long as they don't collide), in nono however, for simpility,
                   1914: SW6 and SW7 are fixed to be OFF on board #0, and
                   1915: SW6 and SW7 are fixed to be ON on board #1.</q>
                   1916: <blockquote>
1.1.1.16  root     1917: <table border=1 rules=all>
1.1.1.15  root     1918: <tr><th><th>#0 (<tt>nereid0-*</tt>)<th>#1 (<tt>nereid1-*</tt>)
                   1919: <tr><td align=center>ベースアドレス・割り込みベクタ<br><q>Base address and interrupt vectors</q>
                   1920:  <td>$ece300,$f9,$fb<br>(SW7=OFF)
                   1921:  <td>$eceb00,$f8,$fa<br>(SW7=ON)
                   1922: <tr><td align=center>バンクメモリウィンドウ<br><q>Bank memory window</q>
                   1923:  <td>$ee0000<br>(SW6=OFF)
                   1924:  <td>$ef0000<br>(SW6=ON)
                   1925: </table>
                   1926: </blockquote>
                   1927: バンクメモリは、メインメモリとして使わなかった領域を使用します。
                   1928: そのため実機でもバンクメモリの容量は DIPSW のメインメモリ割り当て設定
                   1929: (SW1-5) に依存します。
                   1930: nono に関係する結論だけでいうと、
                   1931: メインメモリへの割り当てを一切行わない場合はバンクメモリは 16MB 確保でき、
                   1932: メインメモリへの割り当てをいくらかでも行うとバンクメモリは 4MB となります。
                   1933: 設定の <tt>nereid<i>N</i>-ram-size</tt> はこの部分を指定していることになります。
                   1934: またこの容量とは独立に SW8 でバンクメモリの有効・無効を指定できますので、
                   1935: <tt>nereid<i>N</i>-ram-size</tt> が 0 (以下) というのは SW8
                   1936: でバンクメモリを無効にしたことに相当します。
                   1937: <q>Bank memory uses memory areas not used as the main memory.
                   1938: So the bank memory size depends on the main memory settings (SW1-5).
                   1939: As a result,
                   1940: only if you don't allocate any memories to main memory,
                   1941: the bank memory can be allocated 16MB.
                   1942: Otherwise, the bank memory will be allocated 4MB.
                   1943: Thus, <tt>nereid<i>N</i>-ram-size</tt> specifies this value.
                   1944: Also, SW8 specifies enable/disable of the bank memory regardless of the size,
                   1945: <tt>nereid<i>N</i>-ram-size = 0</tt> (or less) means disabling the bank memory.</q>
1.1.1.16  root     1946: </div>
1.1.1.15  root     1947: <?php H5end(); ?>
                   1948: 
1.1.1.20! root     1949: <?php H5("", "usermode ネットワーク"); ?>
1.1.1.19  root     1950: <div class="main">
                   1951: usermode ネットワークでは nono 自身が
                   1952: NAT ルータ、DHCP サーバ、DNS サーバの機能を持ちます。
                   1953: ルータと DHCP サーバのアドレスはネットワークアドレス +1 (デフォルトでは 10.8.0.1)、
                   1954: DNS サーバのアドレスはネットワークアドレス +2 (デフォルトでは 10.8.0.2) です。
                   1955: IPv6 ルータのアドレスはネットワークアドレス +1 (デフォルトでは fd08::1)、
                   1956: DNS サーバのアドレスはネットワークアドレス +2 (デフォルトでは fd08::2) です。
1.1.1.20! root     1957: </div>
        !          1958: <?php H5end(); ?>
        !          1959: 
        !          1960: <?php H5("netbsd-x68k-timesync", "NetBSD/x68k での時間同期"
        !          1961:  . "<q>Time Synchronization on NetBSD/x68k</q>"); ?>
        !          1962: <div class="main">
        !          1963: <span class="new">
        !          1964: X68030 でゲスト OS に NetBSD/x68k を使う場合、
        !          1965: nono と NetBSD/x68k を次の通りに設定すれば
        !          1966: nono をフルスピード動作にしてもゲスト OS の時間がずれなくなります。
        !          1967: まず nono の設定ファイルに以下を追加します。
        !          1968: <blockquote><pre class=file>
        !          1969: clock-sync = real
        !          1970: </pre></blockquote>
        !          1971: ゲストの NetBSD/x68k を起動し、
        !          1972: <tt>/etc/sysctl.conf</tt> に以下の1行を追加します。
        !          1973: <blockquote><pre class=file>
        !          1974: kern.timecounter.hardware=clockinterrupt
        !          1975: </pre></blockquote>
        !          1976: さらに <tt>/etc/rc.conf</tt> に
        !          1977: <blockquote><pre class=file>
        !          1978: ntpdate=YES
        !          1979: ntpdate_hosts=ntp.nict.jp
        !          1980: </pre></blockquote>
        !          1981: などと設定します (NTP サーバはお好みで)。
        !          1982: sysctl の設定によって、ゲスト OS の時計は「この設定が有効になった時点から」
        !          1983: 実時間間隔を刻めますが、
        !          1984: 電源オンからここまでにずれた分が解決できるわけではありませんので、
        !          1985: 必然的に時計を合わせる必要もあるためです。
        !          1986: これで再起動すると次回からはフルスピードでも実時間を刻めます。
        !          1987: (再起動せずに有効にしたい場合はこの設定の後 root ユーザで
        !          1988: <blockquote><pre class=cons>
        !          1989: /etc/rc.d/sysctl start
        !          1990: /etc/rc.d/ntpdate start
        !          1991: </pre></blockquote>
        !          1992: を実行してください)
1.1.1.19  root     1993: </span>
                   1994: </div>
                   1995: <?php H5end(); ?>
                   1996: 
1.1.1.16  root     1997: <?php H5("", "Windrv"); ?>
1.1.1.14  root     1998: <div class="main">
1.1.1.17  root     1999: X68030 で Windrv を一応サポートしています。
1.1.1.16  root     2000: Human68k からホストのファイルシステムをアクセスする機構です。
1.1.1.17  root     2001: 従来の Windrv とはホスト OS の前提が異なるため、
                   2002: 既存実装からの移植ではありませんし、
1.1.1.16  root     2003: そもそも Human68k とホスト(UNIX)ファイルシステムの差異による制約も多くあります。
                   2004: これらを把握してから使用してください。
                   2005: <ul>
                   2006: <li>ファイル名は21文字すべて認識します。
                   2007: 22文字以上(というか 18.3 形式以外)のファイル名はゲストからは見えません。
                   2008: <li>ファイル名中の ASCII 以外の文字には現状対応していません。
                   2009: これらの文字を含むファイルはゲストからは見えません。
                   2010: <li>マルチピリオドには対応していません。
                   2011: このようなファイルはゲストからは見えません。
                   2012: <li>大文字小文字は区別しません。
                   2013: 大文字小文字だけが違う同名のファイル (例えば a.BAK と a.bak) があると、
                   2014: 検索(FILES/NFILES) には現れません。
                   2015: この状況で a.Bak (大文字小文字を区別していれば違うファイル)
1.1.1.19  root     2016: を新規作成しようとすると (大文字小文字を区別しないゲスト OS からは
                   2017: a.Bak というエントリは存在しないように見えるにも関わらず)
                   2018: 作成できなくしてあります。
1.1.1.16  root     2019: <li>ファイルサイズが 2GB 以上のファイルはゲストからは見えません。
                   2020: <li>Human68k 側の属性は A(アーカイブ)/D(ディレクトリ)/R(読み込み専用)
                   2021: のみ対応しています。
                   2022: S(システム)/H(隠しファイル)属性は保存されません。
                   2023: <li>ホストのシンボリックリンクは、リンク先の
                   2024: ファイルもしくはディレクトリとして見えます。
                   2025: またリンク先が Windrv のルートパスの外側を指していても構いません。
                   2026: <li>ファイルのロックには対応していません。
                   2027: <li>WindrvXM.sys による拡張動作には対応していません。
                   2028: windrv 互換として動作します。
                   2029: <li>TwentyOne.x は現状 +T/-C/-P/-S (いずれもデフォルト) 相当だと思います。
                   2030: TwentyOne.x が常駐していないとか、
                   2031: これ以外のオプションの時にどうなるかは把握していません。
                   2032: <li>lndrv.x によるゲスト側のシンボリックリンク機能には未対応です。
                   2033: </ul>
                   2034: <p></p>
                   2035: Windrv を使用する場合、まず nono
                   2036: の設定ファイルに <tt>windrv-path</tt> を設定します。
                   2037: 次にゲストの Human68k の CONFIG.SYS に WINDRV.SYS (または WindrvXM.sys)
                   2038: を設定してください。
                   2039: <blockquote>
                   2040: <pre class=file>
                   2041: DEVICE = \SYS\WINDRV.SYS
                   2042: </pre>
                   2043: </blockquote>
1.1.1.14  root     2044: </div>
                   2045: <?php H5end(); ?>
1.1.1.13  root     2046: 
1.1.1.14  root     2047: <?php H5("", "ステータスパネル <q>Status Panel</q>"); ?>
1.1.1.7   root     2048: <div class="main">
                   2049: ステータスパネル中央にあるパフォーマンスメータのアイコンは
                   2050: 高速モードの状態を表示しています。
                   2051: ダブルクリックすると高速/等速モードの指定を切り替えることができます。
                   2052: <q>The performance meter's icon at the center of the status panel
                   2053: shows the VM speed status.
1.1.1.11  root     2054: You can switch full speed / syncronized mode by double-clicking
                   2055: on this icon.</q>
1.1.1.7   root     2056: <table>
                   2057: <tr><td valign=top>
                   2058: <image src="image/sp-ffmark0.png" style="padding:0.5ex; background-color:white">
                   2059: <td valign=top>…
                   2060: <td valign=top>
                   2061: マークなしの場合、ユーザが等速モードを指定していて、等速モードで実行中です。
                   2062: <q>When no icons are displayed,
                   2063: the user has specified syncronized mode and
                   2064: the VM is running in synchronized mode.</q>
                   2065: <tr><td valign=top>
1.1.1.11  root     2066: <image src="image/sp-ffmark2.png" style="padding:0.5ex; background-color:white">
1.1.1.7   root     2067: <td valign=top>…
                   2068: <td valign=top>
1.1.1.11  root     2069: 三角3つの場合、ユーザが高速モードを指定していて、高速モードで実行中です。
1.1.1.8   root     2070: 高速モード中はパーセントではなく何倍速で動作しているかを表します。
1.1.1.11  root     2071: <q>When an icon (three triangles) is displayed,
1.1.1.7   root     2072: the user has specified full speed mode and
1.1.1.11  root     2073: the VM is running in full speed mode.
1.1.1.7   root     2074: <tr><td valign=top>
1.1.1.11  root     2075: <image src="image/sp-ffmark1.png" style="padding:0.5ex; background-color:white">
1.1.1.7   root     2076: <td valign=top>…
                   2077: <td valign=top>
1.1.1.11  root     2078: 三角2つの場合、ユーザが高速モードを指定していて、等速モードで実行中です。
                   2079: 以下のいずれかの状態で起きます。
                   2080: <q>When an icon (two triangles) is displayed,
1.1.1.7   root     2081: the user has specified full speed mode and
1.1.1.11  root     2082: the VM is running in synchronized mode.
                   2083: This will happen when any of the following occurs:</q>
                   2084: <ul>
                   2085: <li>キー押下中(後述)あるいはキーボードブザー発声中
                   2086: <q>When any keys are pressed (see below),
                   2087: or the keyboard buzzer is sounding.
                   2088: <li>STOP instruction on m68k.
                   2089: <li>pseudo STOP state on m88k.
                   2090: </ul>
1.1.1.7   root     2091: </table>
                   2092: </div>
1.1.1.14  root     2093: <?php H5end(); ?>
1.1.1.7   root     2094: 
1.1.1.14  root     2095: <?php H5("", "DIPSW 設定ウィンドウ"); ?>
                   2096: <div class="main">
                   2097: DIPSW 設定ウィンドウでの変更はアプリケーション起動中のみ有効です。
                   2098: またここでの設定は即 VM に反映されますが、
                   2099: LUNA の場合 DIPSW の状態を
                   2100: PIO(8255) がラッチするのが概ね起動時および再起動時のみとなっています
                   2101: (厳密には PROM と XP が云々ですが)。
                   2102: </div>
1.1.1.16  root     2103: <?php H5end(); ?>
1.1.1.14  root     2104: 
                   2105: <?php H5("", "メモリダンプモニタ <q>Memory Dump Monitor</q>"); ?>
                   2106: <div class="main">
                   2107: メモリダンプモニタの出力形式を、バイト、ワード、ロングワード
                   2108: (m88k ではそれぞれバイト、ハーフワード、ワードと表現します)
                   2109: から選択できます。
                   2110: また 68030/88200 の MMU ディスクリプタとして表示させることもできます
                   2111: (この位置が正しいディスクリプタかどうかは関係なく表示します)。
1.1.1.16  root     2112: 逆アセンブルは、
                   2113: LUNA-I なら m68k と HD64180 の逆アセンブルが、
                   2114: LUNA-88K なら m88k と HD64180 の逆アセンブルが、
1.1.1.17  root     2115: X68030/virt-m68k/NEWS なら m68k の逆アセンブルが選択できます。
1.1.1.14  root     2116: <q>On memory dump monitor,
                   2117: you can choose the output format from byte, word and longword
                   2118: (In m88k, it is represented as byte, halfword and word respectively).
                   2119: Also you can choose 68030/88200 MMU descriptor format
                   2120: (It displays regardless of whether this address is used as descriptor or not).
1.1.1.15  root     2121: Disassemble is now merged from disassemble monitor.
1.1.1.14  root     2122: On LUNA-I, you can choose m68k and HD64180 disassemble.
                   2123: On LUNA-88K, you can choose m88k and HD64180 disassemble.
1.1.1.17  root     2124: On X68030/virt-m68k/NEWS,
1.1.1.16  root     2125: you can choose m68k disassemble.</q>
1.1.1.14  root     2126: <p>
                   2127: 表示されているダンプ値をダブルクリックすることでメモリの値を編集できます。
                   2128: 編集できるのはメモリと以下の部分のみです。
                   2129: <q>You can edit the memory value by double click.
1.1.1.15  root     2130: Only memory and the following areas are editable.</q>
1.1.1.14  root     2131: <ul>
                   2132: <li>NVRAM (LUNA and NEWS Only) …
                   2133: 編集するとただちにファイルも更新します。
1.1.1.16  root     2134: 後ろの8バイトのみ時計レジスタを兼ねているため編集不可です。
1.1.1.14  root     2135: <q>The backend file is also updated immediately when edited.
1.1.1.16  root     2136: The only last 8 bytes are not editable since there are the clock registers.</q>
1.1.1.14  root     2137: <li>Bitmap framebuffer (LUNA Only) … 共通プレーンは書き込み不可です。
                   2138: <q>The common plane is not editable.</q>
                   2139: <li>SRAM (X68030 Only) …
                   2140: 編集するとただちにファイルも更新します。
                   2141: <q>The backend file is also updated immediately when edited.</q>
                   2142: <li>TVRAM とテキストパレット (X68030 Only) <q>Text VRAM and text palette</q>
                   2143: </ul>
                   2144: </div>
1.1.1.16  root     2145: <?php H5end(); ?>
1.1.1.14  root     2146: 
1.1.1.15  root     2147: <?php H5("", "デバイスマップモニタ <q>Device Map Monitor</q>"); ?>
                   2148: <div class="main">
                   2149: m68k/m88k バスに接続されているデバイスを表示します。
                   2150: 32ビットアドレスのうち上位 8 ビット、256個分を表示しています。
                   2151: 1枠が 16MB になります。
                   2152: また、X68030 ではこのうち 24ビット空間を別モニタで表示します。
                   2153: こちらは 1枠 8KB x 2048個です。
                   2154: どちらも内部構造を表示しているだけなので名前に馴染みがない場合があるかもしれません。
1.1.1.16  root     2155: NEWS のデバイスマップは内部構造の都合上、
                   2156: 内部状態を正確に反映していないケースがあるかも知れません。
1.1.1.15  root     2157: </div>
1.1.1.16  root     2158: <?php H5end(); ?>
1.1.1.15  root     2159: 
1.1.1.14  root     2160: <?php H5("", "キー入力モード <q>Key input mode</q>"); ?>
1.1.1.10  root     2161: <div class="main">
1.1.1.13  root     2162: LUNA も X68030 もキーボードは通常日本語キーボードです
                   2163: (LUNA には英語キーボードも存在するようですが…)。
1.1.1.10  root     2164: そのため、ホストが日本語キーボードの場合とそうでない場合のために
                   2165: 2つの入力モードを用意しています。
                   2166: どちらも一長一短があります。
1.1.1.13  root     2167: <q>LUNA and X68030 has the Japanese keyboard
                   2168: (though I ever heard there are US keyboard for LUNA...).
1.1.1.10  root     2169: So nono provides two input modes
                   2170: for Japanese keyboard users and non Japanese keyboard users.
                   2171: Both have advantages and disadvantages.</q>
                   2172: <p>
                   2173: JP キーボードモードは、ホストが日本語キーボードであることを前提に
                   2174: 対応するキーの押下、開放をその都度 VM に入力します。
                   2175: メリットとしては動作が実機に近くなり、
                   2176: 特にキーリピート(をハードウェアが行わないこと)も忠実に再現可能です。
                   2177: デメリットは ALT + TAB やアクセラレータキーでメニューを開く場合などに
                   2178: キー入力が残ることがあることです
                   2179: (キーを押した後でフォーカスが外れるとキーを離したことが
                   2180: アプリケーションに通知されないため)。
                   2181: またホストが日本語キーボードでなければ使いづらいです。
                   2182: <q>JP keyboard mode assumes that the host uses the Japanese keyboard.
                   2183: Each time you presses and releases a key,
                   2184: nono sends the corresponding key-pressed or key-released to the VM.
                   2185: One advantage is that it's close to the real machine behavior,
                   2186: and another is that it can reproduce
                   2187: the LUNA keyboard itself does not perform a key repeat.
                   2188: On the other hand,
                   2189: one disadvantage is that key sometimes remains pressed,
                   2190: especially when you enter ALT + TAB to switch the application
                   2191: or enter accelerator key to open the menu
                   2192: (If the application loses the focus after the key is pressed,
                   2193: the application will not receive the subsequent key release).
                   2194: And another disadvantage is that
1.1.1.11  root     2195: it will be hard to use for non Japenese keyboard users.</q>
1.1.1.10  root     2196: <p>
                   2197: 一方、キャラクタ入力モードは、ホストから入力された「文字」を
1.1.1.13  root     2198: 再び LUNA/X68030 のキーコードに解釈し直して VM に入力するモードです。
1.1.1.10  root     2199: 例えばゲスト OS に "@" を入力したい場合、
                   2200: US キーボードなら [SHIFT] + [2] を、
                   2201: JP キーボードなら [@] キーを押しますが、
                   2202: どちらも VM には [@] キーの押下、[@] キーの開放が連続して送られます。
                   2203: US キーボードで [SHIFT] を押したことは通知されません。
                   2204: 逆に "=" を入力したい場合、
                   2205: US キーボードなら [=] キーを、
                   2206: JP キーボードなら [SHIFT] + [-] を押しますが、
                   2207: どちらも VM には
                   2208: [SHIFT]押下 → [-]押下 → [-]開放 → [SHIFT]開放のシーケンスが送られます。
                   2209: このようにホストキーボードのレイアウトによらず、
                   2210: 入力したい文字が入力できるようになり、
                   2211: 通常のタイピングで困ることはないと思います。
                   2212: デメリットは、通常の文字入力以外のタイピングはほぼ出来ないことです。
                   2213: [SHIFT] キーを押したままにすることや、
                   2214: 文字が入力できないキーの組み合わせは入力出来ません。
                   2215: もう一つのデメリットはキーリピート(をハードウェアが行わないこと)が再現できず、
                   2216: ホスト側のキーリピートが効いてしまうことです
                   2217: (本来キーリピートが動作しない ROM やブートローダでもキーリピートが効くことは
                   2218: 一般ユーザからはメリットに感じられるかも知れませんが)。
                   2219: <q>In contrast, in the character mode, when you type a character,
1.1.1.13  root     2220: nono re-converts it into the LUNA/X68030's key code and sends it to the VM.
1.1.1.10  root     2221: For example if you want to type "@" in the guest OS,
                   2222: you would press [SHIFT] + [2] on the US keyboard or [@] on the JP keyboard.
                   2223: In both cases, the sequence of
                   2224: [@]-pressed and [@]-released will be sent to the VM.
                   2225: Note that the fact that you pressed [SHIFT] key on the US keyboard
                   2226: will not be sent to the VM.
                   2227: Another example, if you want to type "=",
                   2228: you would press [=] on the US keyboard or [SHIFT] + [-] on the JP keyboard.
                   2229: In both cases, the sequence of
                   2230: [SHIFT]-pressed, [-]-pressed, [-]-released, and [SHIFT]-released
                   2231: will be sent to the VM.
                   2232: Thus, you can type what character you want to type,
                   2233: regardless of your keyboard layout.
                   2234: Of course there are some disadvantages.
                   2235: Firstly, it's hard to type any special characters,
                   2236: for example, you can not type any key conbinations
                   2237: that don't generate a character.
                   2238: Or you can not hold [SHIFT] key pressed.
                   2239: Secondly, the key repeat works (by the host),
                   2240: even though it should not work as a correct emulation
                   2241: (Although some of you may feel it an advantage).</q>
                   2242: </div>
1.1.1.14  root     2243: <?php H5end(); ?>
1.1.1.10  root     2244: 
1.1.1.14  root     2245: <?php H5("","キャラクタ入力モードのキーコード対応表 " .
                   2246:        "<q>Keycode table in the character mode</q>"); ?>
1.1.1.10  root     2247: <div class="main">
                   2248: キャラクタ入力モードでの、ホストから入力した文字と
                   2249: VM に送信されるキーの対応は次の通りです。
                   2250: ファンクションキーとカーソルキーは文字ではありませんが
                   2251: 特別に対応しています。
1.1.1.13  root     2252: ここに記載のないゲストキーはソフトウェアキーボードからのみ入力できます。
1.1.1.10  root     2253: <q>The following table shows the correspondence between
                   2254: the character that typed from the host
                   2255: and the key that will be sent to the VM.
                   2256: nono can recognize the function keys and arrow keys.
1.1.1.13  root     2257: The keys that not listed in this table can
1.1.1.10  root     2258: only be typed from the software keyboard window.</q>
                   2259: <p>
                   2260: <center>
                   2261: <style type="text/css">
                   2262: .keytable-whole {
                   2263:        display: inline-block;
                   2264:        vertical-align: top;
1.1.1.16  root     2265:        border-bottom: solid 1px;
1.1.1.10  root     2266: }
                   2267: .keytable-middle {
                   2268:        margin-left: 1em;
                   2269:        margin-right: 1em;
                   2270: }
                   2271: 
                   2272: .keytable-head {
                   2273:        text-align: left;
1.1.1.16  root     2274:        border-top:    solid 1px;
1.1.1.10  root     2275:        border-bottom: solid 1px;
                   2276: }
                   2277: .keytable-headl {
                   2278:        padding-right: 1em;
1.1.1.16  root     2279:        border-left:   solid 1px;
                   2280:        border-right:  solid 1px;
                   2281: }
                   2282: .keytable-headr {
                   2283:        border-right:  solid 1px;
1.1.1.10  root     2284: }
                   2285: 
                   2286: .keytable-tdl {
                   2287:        padding-right: 1em;
1.1.1.16  root     2288:        border-left:   solid 1px;
                   2289:        border-right:  solid 1px;
1.1.1.10  root     2290: }
                   2291: .keytable-tdr {
1.1.1.16  root     2292:        border-right:  solid 1px;
1.1.1.10  root     2293: }
                   2294: </style>
                   2295: <?php
                   2296:        $str = <<<__EOM__
                   2297:                <tt>a</tt> 〜 <tt>z</tt>       [A] 〜 [Z]
                   2298:                <tt>0</tt> 〜 <tt>9</tt>       [0] 〜 [9]
                   2299:                SPACE           [SPACE]
                   2300:                <tt>-</tt>      [-]
                   2301:                <tt>^</tt>      [^]
                   2302:                <tt>&bsol;</tt> [&bsol;]
                   2303:                <tt>@</tt>      [@]
                   2304:                <tt>[</tt>      [[]
                   2305:                <tt>;</tt>      [;]
                   2306:                <tt>:</tt>      [:]
                   2307:                <tt>]</tt>      []]
                   2308:                <tt>,</tt>      [,]
                   2309:                <tt>.</tt>      [.]
                   2310:                <tt>/</tt>      [/]
                   2311: 
                   2312:                <tt>A</tt> 〜 <tt>Z</tt>       [SHIFT]+[A] 〜 [SHIFT]+[Z]
                   2313:                <tt>!</tt>      [SHIFT]+[1]
                   2314:                <tt>"</tt>      [SHIFT]+[2]
                   2315:                <tt>#</tt>      [SHIFT]+[3]
                   2316:                <tt>$</tt>      [SHIFT]+[4]
                   2317:                <tt>%</tt>      [SHIFT]+[5]
                   2318:                <tt>&amp;</tt>  [SHIFT]+[6]
                   2319:                <tt>'</tt>      [SHIFT]+[7]
                   2320:                <tt>(</tt>      [SHIFT]+[8]
                   2321:                <tt>)</tt>      [SHIFT]+[9]
                   2322:                <tt>=</tt>      [SHIFT]+[-]
                   2323:                <tt>~</tt>      [SHIFT]+[^]
                   2324:                <tt>|</tt>      [SHIFT]+[&bsol;]
                   2325:                <tt>`</tt>      [SHIFT]+[@]
                   2326:                <tt>{</tt>      [SHIFT]+[[]
                   2327:                <tt>+</tt>      [SHIFT]+[;]
                   2328:                <tt>*</tt>      [SHIFT]+[:]
                   2329:                <tt>]</tt>      [SHIFT]+[]]
                   2330:                <tt>&lt;</tt>   [SHIFT]+[,]
                   2331:                <tt>&gt;</tt>   [SHIFT]+[.]
                   2332:                <tt>?</tt>      [SHIFT]+[/]
                   2333:                <tt>_</tt>      [SHIFT]+[_]
                   2334: 
                   2335:                F1 〜 F10      [PF1] 〜 [PF10]
1.1.1.14  root     2336:                F11             [PF10]
1.1.1.10  root     2337:                ↑             [↑]
                   2338:                ←             [←]
                   2339:                →             [→]
                   2340:                ↓             [↓]
1.1.1.13  root     2341:                <tt>^@</tt>     [CTRL]+[@]
                   2342:                <tt>^A</tt> 〜 <tt>^Z</tt>     [CTRL]+[A] 〜 [CTRL]+[Z]
                   2343:                <tt>^[</tt>     [ESC]
                   2344:                <tt>^\</tt>     [CTRL]+[&bsol;]
                   2345:                <tt>^]</tt>     [CTRL]+[]]
                   2346:                <tt>^^</tt>     [CTRL]+[^]
                   2347:                <tt>^_</tt>     [CTRL]+[_]
                   2348:                <tt>^H</tt>     [BS]
                   2349:                <tt>^I</tt>     [TAB]
                   2350:                <tt>^M</tt>     [Enter]
1.1.1.10  root     2351: __EOM__;
                   2352:        $table = array();
                   2353:        $table[0] = array();
                   2354:        $table[1] = array();
                   2355:        $table[2] = array();
                   2356:        $i = 0;
1.1.1.16  root     2357:        foreach (explode("\n", $str) as $s) {
1.1.1.10  root     2358:                if ($s == "") {
                   2359:                        $i++;
                   2360:                        continue;
                   2361:                }
                   2362:                $s = preg_replace("/^\t+/", "", $s);
                   2363:                list ($hkey, $gkey) = preg_split("/\t+/", $s);
                   2364:                $table[$i][] = array($hkey, $gkey);
                   2365:        }
                   2366: 
                   2367:        for ($j = 0; $j < count($table); $j++) {
                   2368:                switch ($j) {
                   2369:                 case 0:        $classname = "left";    break;
1.1.1.13  root     2370:                 default:       $classname = "middle";  break;
                   2371:                 case 3:        $classname = "right";   break;
1.1.1.10  root     2372:                }
                   2373:                print "<table class='keytable-whole keytable-${classname}'";
                   2374:                print " cellspacing=0 cellpadding=1>\n";
                   2375:                print "<tr>";
                   2376:                print "<th class='keytable-head keytable-headl'>HostChar";
                   2377:                print "<th class='keytable-head keytable-headr'>GuestKey\n";
                   2378:                for ($i = 0; $i < count($table[$j]); $i++) {
                   2379:                        list ($h, $g) = $table[$j][$i];
                   2380:                        print "<tr>";
                   2381:                        print "<td class='keytable-tdl'>{$h}";
                   2382:                        print "<td class='keytable-tdr'>${g}\n";
                   2383:                }
                   2384:                print "</table>\n";
                   2385:        }
                   2386: ?>
                   2387: </center>
                   2388: </div>
1.1.1.14  root     2389: <?php H5end(); ?>
1.1.1.10  root     2390: 
1.1.1.14  root     2391: <?php H5("", "JP キーボードモードのキーコード対応表 " .
                   2392:        "<q>Keycode table in the JP keyboard mode</q>"); ?>
1.1.1.10  root     2393: <div class="main">
                   2394: JP キーボードモードでの、ホストキーと VM に送信されるキーの対応は次の通りです。
1.1.1.13  root     2395: ここに記載のないキーはソフトウェアキーボードからのみ入力出来ます。
1.1.1.10  root     2396: <q>The following table shows the correspondence between
                   2397: the host key and the guest key.
1.1.1.16  root     2398: The keys that not listed in this table can only be entered from
1.1.1.10  root     2399: the software keyboard window.</q>
                   2400: <p>
                   2401: <center>
                   2402: <?php
                   2403:        $str = <<<__EOM__
                   2404:                [0] 〜 [9]             [0] 〜 [9]
                   2405:                [A] 〜 [Z]             [A] 〜 [Z]
                   2406:                [-]                             [-]
                   2407:                [^]                             [^]
                   2408:                [&bsol;]                [&bsol;]
                   2409:                [@]                             [@]
                   2410:                [[]                             [[]
                   2411:                [;]                             [;]
                   2412:                [:]                             [:]
                   2413:                []]                             []]
                   2414:                [,]                             [,]
                   2415:                [.]                             [.]
1.1.1.16  root     2416: 
1.1.1.10  root     2417:                [/]                             [/]
                   2418:                [_]                             [_]
                   2419:                [ESC]                   [ESC]
                   2420:                [TAB]                   [TAB]
                   2421:                [CTRL]                  [CTRL]
1.1.1.13  root     2422:                [SHIFT-L]               [SHIFT-L]
                   2423:                [SHIFT-R]               [SHIFT-R]
1.1.1.16  root     2424:                [Enter]                 [Enter]
1.1.1.13  root     2425:                [↑]                   [↑]
                   2426:                [←]                   [←]
                   2427:                [→]                   [→]
                   2428:                [↓]                   [↓]
                   2429: 
1.1.1.16  root     2430:                [BS]                    [BS]
                   2431:                [Delete]                [DEL]
                   2432:                [F1] 〜 [F10]  [PF1] 〜 [PF10]
                   2433:                [F11]                   [PF10]
1.1.1.10  root     2434:                Numpad[0]〜[9] Numpad[0]〜[9]
                   2435:                Numpad[+]               Numpad[+]
                   2436:                Numpad[-]               Numpad[-]
                   2437:                Numpad[*]               Numpad[*]
                   2438:                Numpad[/]               Numpad[/]
                   2439:                Numpad[=]               Numpad[=]
                   2440:                Numpad[.]               Numpad[.]
                   2441:                Numpad[Enter]   Numpad[Enter]
1.1.1.16  root     2442: 
                   2443:                [Home]                  [HOME]
                   2444:                [Insert]                [INS]
                   2445:                [PageUp]                [ROLL UP]
                   2446:                [PageDown]              [ROLL DOWN]
                   2447:                [End]                   [UNDO]
1.1.1.10  root     2448: __EOM__;
                   2449:        $table = array();
1.1.1.16  root     2450:        $table[0] = array();    // 1段目(共通)
                   2451:        $table[1] = array();    // 1段目(共通)
                   2452:        $table[2] = array();    // 1段目(共通)
                   2453:        $table[3] = array();    // 2段目(X68030)
1.1.1.10  root     2454:        $i = 0;
1.1.1.16  root     2455:        foreach (explode("\n", $str) as $s) {
1.1.1.10  root     2456:                if ($s == "") {
                   2457:                        $i++;
                   2458:                        continue;
                   2459:                }
                   2460:                $s = preg_replace("/^\t+/", "", $s);
                   2461:                list ($hkey, $gkey) = preg_split("/\t+/", $s);
                   2462:                $table[$i][] = array($hkey, $gkey);
                   2463:        }
                   2464: 
                   2465:        for ($j = 0; $j < count($table); $j++) {
1.1.1.16  root     2466:                if ($j == 3) {
                   2467:                        print "<br>\n";
                   2468:                }
                   2469: 
                   2470:                $caption = "";
1.1.1.10  root     2471:                switch ($j) {
                   2472:                 case 0:        $classname = "left";    break;
                   2473:                 case 1:        $classname = "middle";  break;
                   2474:                 case 2:        $classname = "right";   break;
1.1.1.16  root     2475:                 case 3:        $classname = "left";    $caption = "(X68030 Only)";     break;
1.1.1.10  root     2476:                }
                   2477:                print "<table class='keytable-whole keytable-${classname}'";
                   2478:                print " cellspacing=0 cellpadding=0>\n";
1.1.1.16  root     2479:                if ($caption != "") {
                   2480:                        print "<caption>{$caption}</caption>\n";
                   2481:                }
1.1.1.10  root     2482:                print "<tr>";
                   2483:                print "<th class='keytable-head keytable-headl'>HostKey";
                   2484:                print "<th class='keytable-head keytable-headr'>GuestKey\n";
                   2485:                for ($i = 0; $i < count($table[$j]); $i++) {
                   2486:                        list ($h, $g) = $table[$j][$i];
                   2487:                        print "<tr>";
                   2488:                        print "<td class='keytable-tdl'>{$h}";
                   2489:                        print "<td class='keytable-tdr'>${g}\n";
                   2490:                }
                   2491:                print "</table>\n";
                   2492:        }
                   2493: ?>
                   2494: </center>
                   2495: </div>
1.1.1.14  root     2496: <?php H5end(); ?>
1.1.1.10  root     2497: 
1.1.1.14  root     2498: <?php H5("", "キーリピート <q>Key Repeat</q>"); ?>
1.1.1.7   root     2499: <div class="main">
                   2500: LUNA では、キーボードがハードウェア側でキーリピートを行わず、
                   2501: ソフトウェア(OS など)がキーリピートの処理を行います。
                   2502: そのため、キーリピートを実装していない LUNA の PROM や
                   2503: NetBSD/luna68k のブートローダではキーリピートは起きず、
                   2504: キーリピートを実装している NetBSD/luna68k カーネルではキーリピートが起こせます。
1.1.1.8   root     2505: キーリピートを起こす間隔をゲストのソフトウェアが測定しているということは、
1.1.1.7   root     2506: VM が高速動作するとキーリピートもそれに合わせて発生することになり、
                   2507: これをホスト側から防ぐ手段はありません。
                   2508: そこで nono ではキー入力が発生している間
                   2509: (キーが一つでも押されてからキーが全て離されるまでの間)、
                   2510: 高速モードが指示されていても VM を一時的に等速モードに落として実行します。
                   2511: 上記のアイコンがそれを区別しているのはこのためです。
                   2512: そのため、何らかの理由でキーが入りっぱなしになった場合
                   2513: (ALT + TAB やアクセラレータキーでメニューを開くと起きがちです)
                   2514: 高速モードが抑制されたままということが起きえます。
                   2515: その場合はソフトウェアキーボードからキー入力を解除するなどしてください。
1.1.1.10  root     2516: <q>On LUNA,
1.1.1.7   root     2517: key repeat is done by software(OS), not by the keyboard hardware.
                   2518: For this reason,
                   2519: key repeat doesn't occur on LUNA's PROM or NetBSD/luna68k's bootloader
                   2520: that don't implement it, and
                   2521: key repeat occurs on NetBSD/luna68k kernel that implements it.
1.1.1.8   root     2522: Since the timing of key repeat is measured by the guest software,
1.1.1.7   root     2523: if the VM is running faster than the real,
                   2524: the key repeat will occur faster, too.
                   2525: The host application doesn't have the way to avoid it.
                   2526: Therefore, nono will temporarily suppress the full speed mode
                   2527: while any keys are pressed.
                   2528: That is why the above-mentioned icon distinguishes them.
1.1.1.8   root     2529: If keys continue to be pressed for some reasons,
1.1.1.7   root     2530: the VM also continues to run syncronized mode.
1.1.1.11  root     2531: In this case, you can resolve it by using the software keyboard window.</q>
1.1.1.7   root     2532: </div>
1.1.1.14  root     2533: <?php H5end(); ?>
                   2534: <?php H4end(); ?>
1.1.1.7   root     2535: 
                   2536: 
1.1.1.14  root     2537: <?php H4("tryit", "実行してみる <q>Try it</q>"); ?>
                   2538: <?php H5("", "NetBSD/luna68k を実行してみる <q>Try NetBSD/luna68k</q>"); ?>
1.1       root     2539: <div class="main">
1.1.1.8   root     2540: つついさんが NetBSD/luna68k 9.2 の liveimage を用意されています。
                   2541: <q>Tsutsui-san has provided a liveimage of NetBSD/luna68k 9.2.</q>
                   2542: <dl>
1.1.1.11  root     2543: <dd><a href="https://twitter.com/tsutsuii/status/1436381589211017217"
                   2544: >https://twitter.com/tsutsuii/status/1436381589211017217</a><br>
1.1.1.8   root     2545: </dl>
                   2546: ここではこれを起動してみます。<q>Let's try it.</q>
1.1.1.2   root     2547: <br>
                   2548: <ol>
                   2549: <li>どこかに nono 用のディレクトリを用意し(例えば ~/nono/)、
1.1       root     2550: その中に VM ディレクトリを用意します (例えば ~/nono/luna/)。
1.1.1.3   root     2551: <q>Create a directory somewhere for nono (for example ~/nono/),
1.1.1.8   root     2552: and create subdirectories for individual VMs in it
                   2553: (for example ~/nono/luna/).</q>
1.1       root     2554: 
1.1.1.3   root     2555: <li>以下のリンクからイメージファイルをダウンロードして展開し、
1.1.1.2   root     2556: VM ディレクトリ ~/nono/luna/ に置きます。
1.1.1.3   root     2557: <q>Download imagefile from the following link,
1.1.1.7   root     2558: extract it and place it in the VM directory, ~/nono/luna/.</q>
1.1.1.3   root     2559: <blockquote>
1.1.1.11  root     2560: <a href="http://teokurebsd.org/netbsd/liveimage/20210910-luna68k/"
                   2561: >http://teokurebsd.org/netbsd/liveimage/20210910-luna68k/</a>
1.1.1.3   root     2562: </blockquote>
1.1.1.2   root     2563: 
1.1.1.8   root     2564: <li>以下の内容の設定ファイル nono.cfg を VM ディレクトリ ~/nono/luna/
                   2565: に作成します。
1.1.1.7   root     2566: <q>Create a configuration file nono.cfg in the VM directory, ~/nono/luna/,
1.1.1.19  root     2567: with following contents.</q>
1.1.1.2   root     2568: <blockquote class="file"><pre>
                   2569: vmtype = luna
1.1.1.11  root     2570: spc0-id6-image = hd,liveimage-luna68k-with-packages-20210910.img
1.1.1.2   root     2571: </pre></blockquote>
1.1.1.8   root     2572: 
1.1.1.2   root     2573: <li><tt>nono -c ~/nono/luna</tt> で起動します
                   2574: (VM ディレクトリに自動的に NVRAM.DAT が作られます)。
                   2575: <q>Run as <tt>nono -c ~/nono/luna</tt>.
1.1.1.4   root     2576: (NVRAM.DAT will be created automatically in the VM directory)</q>
1.1.1.13  root     2577: 
1.1.1.2   root     2578: <li>Emulated ROM Monitor が起動するので、
                   2579: 初回は以下のように入力すると NetBSD が起動します。
                   2580: <q>The emulated ROM Monitor will be executed.
                   2581: Then, only for the first time,
                   2582: entering the following can boot NetBSD.</q>
1.1.1.8   root     2583: <blockquote><pre>
                   2584: k&#x23ce;
                   2585: &#x23ce;
                   2586: &#x23ce;
                   2587: d&#x23ce;
                   2588: boot&#x23ce;
                   2589: g&#x23ce;
                   2590: x&#x23ce;
                   2591: </pre></blockquote>
                   2592: 画面はこんな感じのはずです (太字が入力部分)。
                   2593: <q>You will see a screen like this.  The bold text indicates
                   2594: the characters you need to enter.</q>
1.1.1.2   root     2595: <blockquote class="file"><pre>
1.1.1.11  root     2596: NONO <?=$nono_ver?> Emulated ROM Monitor for LUNA-I
1.1.1.8   root     2597: 
                   2598: ** NVRAM Initialized.
                   2599: 
                   2600: &gt;<b>k&#x23ce;</b>
                   2601: controller: dk  ?<b>&#x23ce;</b>
                   2602: drive unit: 0  ?<b>&#x23ce;</b>
                   2603: partition : c  ?<b>d&#x23ce;</b>
                   2604: filename  : vmunix  ?<b>boot&#x23ce;</b>
                   2605: &gt;<b>g&#x23ce;</b>
                   2606: Loaded.  Entry point = $00700000
                   2607: &gt;<b>x&#x23ce;</b>
1.1.1.2   root     2608: </pre></blockquote>
                   2609: この内容は NVRAM.DAT に記録されているので次回以降は直接 NetBSD が起動します。
1.1.1.7   root     2610: <q>The information you have just entered is recorded in the NVRAM,
1.1.1.13  root     2611: so next time it will boot NetBSD automatically.</q>
1.1.1.8   root     2612: <li>初回起動時、
                   2613: Updating fontconfig cache はあほみたいに時間がかかりますが、
                   2614: nono がハングアップしてるわけではありません(>_<)。
1.1.1.13  root     2615: また初回は起動後数時間めちゃくちゃ重たいですが、
1.1.1.8   root     2616: これはバックグラウンドで makemandb が動くためで
                   2617: nono のせいではありません(>_<)。
                   2618: <q>At the first boot, you will see the console stops after printing
                   2619: "Updating fontconfig cache".
                   2620: This is because the infamous fontconfig takes very looooong time.
                   2621: nono would not have hang-up.
1.1.1.13  root     2622: In addition, at the first boot, you will feel it's too heavy for several hours.
1.1.1.8   root     2623: This is because the infamous makemandb(8) runs heavily in the background
                   2624: for a looooong time.
                   2625: It's very sad to me that these two accidents which are far from the ideal
1.1.1.12  root     2626: are the first experiences of newcomers.</q>
1.1.1.8   root     2627: 
                   2628: <li>終了する時は root
                   2629: ユーザで &ldquo;<tt>shutdown -p now</tt>&rdquo; を実行してください。
                   2630: LUNA はソフトウェアから電源オフでき、
                   2631: VM の電源オフで nono も終了します。
                   2632: <q>To quit, type &ldquo;<tt>shutdown -p now</tt>&rdquo; as the root user.
                   2633: LUNA can be powered off by software,
                   2634: and nono will terminate when the VM is powered off.</q>
                   2635: </ol>
                   2636: </div>
1.1.1.14  root     2637: <?php H5end(); ?>
1.1.1.8   root     2638: 
1.1.1.14  root     2639: <?php H5("", "OpenBSD/luna88k を実行してみる <q>Try OpenBSD/luna88k</q>"); ?>
1.1.1.8   root     2640: <div class="main">
1.1.1.17  root     2641: あおやまさんが OpenBSD/luna88k 7.6 の liveimage を用意されています。
                   2642: <q>Aoyama-san has provided a liveimage of OpenBSD/luna88k 7.6.</q>
1.1.1.8   root     2643: <dl>
1.1.1.17  root     2644: <dd><a href="https://bsd.network/@ao_kenji/113300210182705408"
                   2645: >https://bsd.network/@ao_kenji/113300210182705408</a>
1.1.1.8   root     2646: </dl>
                   2647: ここではこれを起動してみます。<q>Let's try it.</q>
                   2648: <br>
                   2649: <ol>
                   2650: <li>どこかに nono 用のディレクトリを用意し(例えば ~/nono/)、
                   2651: その中に VM ディレクトリを用意します (例えば ~/nono/luna88k/)。
                   2652: <q>Create a directory somewhere for nono (for example ~/nono/),
                   2653: and create subdirectories for individual VMs in it
                   2654: (for example ~/nono/luna88k/).</q>
                   2655: 
1.1.1.17  root     2656: <li>以下のリンクから liveimage-luna88k-raw-20241013.img.gz
1.1.1.8   root     2657: をダウンロードして展開し、
                   2658: VM ディレクトリ ~/nono/luna88k/ に置きます。
1.1.1.17  root     2659: <q>Download liveimage-luna88k-raw-20241013.img.gz from the following link,
1.1.1.8   root     2660: extract it and place it in the VM directory, ~/nono/luna88k/.</q>
                   2661: <blockquote>
                   2662: <a href="http://www.nk-home.net/~aoyama/liveimage/"
                   2663: >http://www.nk-home.net/~aoyama/liveimage/</a>
                   2664: </blockquote>
                   2665: 
                   2666: <li>以下の内容の設定ファイル nono.cfg を VM ディレクトリ ~/nono/luna88k/
                   2667: に作成します。
                   2668: <q>Create a configuration file nono.cfg in the VM directory, ~/nono/luna88k/,
1.1.1.19  root     2669: with following contents.</q>
1.1.1.8   root     2670: <blockquote class="file"><pre>
                   2671: vmtype = luna88k
1.1.1.17  root     2672: spc0-id6-image = hd,liveimage-luna88k-raw-20241013.img
1.1.1.8   root     2673: </pre></blockquote>
                   2674: 
                   2675: <li><tt>nono -c ~/nono/luna88k</tt> で起動します
                   2676: (VM ディレクトリに自動的に NVRAM.DAT が作られます)。
                   2677: <q>Run as <tt>nono -c ~/nono/luna88k</tt>.
                   2678: (NVRAM.DAT will be created automatically in the VM directory)</q>
                   2679: <li>Emulated ROM Monitor が起動するので、
                   2680: 初回は以下のように入力すると OpenBSD が起動します。
                   2681: <q>The emulated ROM Monitor will be executed.
                   2682: Then, only for the first time,
                   2683: entering the following can boot OpenBSD.</q>
                   2684: <blockquote><pre>
                   2685: nvram boot_filename boot&#x23ce;
                   2686: y
                   2687: b&#x23ce;
                   2688: </pre></blockquote>
                   2689: 画面はこんな感じのはずです (太字が入力部分)。
                   2690: <q>You will see a screen like this.  The bold text indicates
                   2691: the characters you need to enter.</q>
                   2692: <blockquote class="file"><pre>
1.1.1.14  root     2693: NONO <?=$nono_ver?> Emulated ROM Monitor for LUNA-88K
1.1.1.8   root     2694: 
                   2695: ** NVRAM Initialized.
                   2696: 
                   2697: N&gt;<b>nvram boot_filename boot&#x23ce;</b>
                   2698: Update boot_filename : "vmunix" -&gt; "boot" (Y/[N]):<b>y</b>
                   2699: Updated
                   2700: N&gt;<b>b&#x23ce;</b>
                   2701: </pre></blockquote>
                   2702: この内容は NVRAM.DAT に記録されているので次回以降は直接 OpenBSD が起動します。
                   2703: <q>The information you have just entered is recorded in the NVRAM,
1.1.1.13  root     2704: so next time it will boot OpenBSD automatically.</q>
1.1.1.8   root     2705: 
                   2706: <li>終了する時は root
                   2707: ユーザで &ldquo;<tt>shutdown -p now</tt>&rdquo; を実行してください。
1.1.1.12  root     2708: LUNA-88K はソフトウェアから電源オフでき、
1.1.1.8   root     2709: VM の電源オフで nono も終了します。
                   2710: <q>To quit, type &ldquo;<tt>shutdown -p now</tt>&rdquo; as the root user.
1.1.1.12  root     2711: LUNA-88K can be powered off by software,
1.1.1.8   root     2712: and nono will terminate when the VM is powered off.</q>
1.1.1.2   root     2713: </ol>
1.1       root     2714: </div>
1.1.1.14  root     2715: <?php H5end(); ?>
                   2716: 
1.1       root     2717: 
1.1.1.14  root     2718: <?php H5("", "NetBSD/x68k を実行してみる <q>Try NetBSD/x68k</q>"); ?>
1.1.1.13  root     2719: <div class="main">
1.1.1.19  root     2720: つついさんが NetBSD/x68k 10.1 の liveimage を用意されています。
1.1.1.13  root     2721: ここではこれを起動してみます。
1.1.1.19  root     2722: <q>Tsutsui-san has provided a liveimage of NetBSD/x68k 10.1.
1.1.1.16  root     2723: Let's try it.</q>
1.1.1.13  root     2724: <br>
                   2725: <ol>
                   2726: <li>どこかに nono 用のディレクトリを用意し(例えば ~/nono/)、
                   2727: その中に VM ディレクトリを用意します (例えば ~/nono/x68k/)。
                   2728: <q>Create a directory somewhere for nono (for example ~/nono/),
                   2729: and create subdirectories for individual VMs in it
                   2730: (for example ~/nono/x68k/).</q>
                   2731: 
1.1.1.19  root     2732: <li>以下のサイトから
                   2733: 「パッケージインストール設定済み版」か
                   2734: 「インストーラでインストールしたところまでの未設定版」の
                   2735: お好みのほうをダウンロードします。
                   2736: 迷ったら「パッケージインストール設定済み版」がよいでしょう。
                   2737: ダウンロードできたら展開して、VM ディレクトリ ~/nono/x68k/ に置きます。
                   2738: <q>Download your favorite one of with-packages or plain-install
                   2739: from the following site.
                   2740: Extract it and place it in the VM directory, ~/nono/x68k/.</q>
1.1.1.14  root     2741: <blockquote>
1.1.1.19  root     2742: <a href="http://www.ceres.dti.ne.jp/tsutsui/netbsd/liveimage/x68k.html"
                   2743: >http://www.ceres.dti.ne.jp/tsutsui/netbsd/liveimage/x68k.html</a>
1.1.1.13  root     2744: </blockquote>
                   2745: 
                   2746: <li>以下の内容の設定ファイル nono.cfg を VM ディレクトリ ~/nono/x68k/
                   2747: に作成します。
                   2748: <q>Create a configuration file nono.cfg in the VM directory, ~/nono/x68k/,
1.1.1.19  root     2749: with following contents.</q>
1.1.1.13  root     2750: <blockquote class="file"><pre>
                   2751: vmtype = x68030
1.1.1.19  root     2752: spc0-id0-image = hd,liveimage-x68k-with-packages-20250106.hds
1.1.1.13  root     2753: </pre></blockquote>
                   2754: 
1.1.1.15  root     2755: <li>初回のみ <tt>nono -c ~/nono/x68k --create-sram</tt> を実行します。
1.1.1.14  root     2756: これで VM ディレクトリに初期状態の SRAM.DAT が作られます。
                   2757: <q>Only the first time, run as <tt>nono -c ~/nono/x68k --create-sram</tt>.
1.1.1.15  root     2758: This will create an initial SRAM.DAT in the VM directory.</q>
1.1.1.14  root     2759: 
                   2760: <li><tt>nono -c ~/nono/x68k</tt> で起動すると、
1.1.1.13  root     2761: HDD から NetBSD/x68k が起動します。
                   2762: 次回以降はこれだけで直接 NetBSD が起動します。
                   2763: <q>Again, run as <tt>nono -c ~/nono/x68k</tt>.
                   2764: NetBSD/x68k will be booted from HDD.
                   2765: Next time, it will boot NetBSD automatically.</q>
                   2766: 
                   2767: <li>初回起動後数時間はめちゃくちゃ重たいですが、
                   2768: これはバックグラウンドで makemandb が動くためで
                   2769: nono のせいではありません(>_<)。
                   2770: <q>At the first boot, you will feel it's too heavy for several hours.
                   2771: This is because the infamous makemandb(8) runs heavily in the background
                   2772: for a looooong time.
1.1.1.17  root     2773: It's very sad to me that the accident which is far from the ideal
1.1.1.13  root     2774: is the first experiences of newcomers.</q>
                   2775: 
                   2776: <li>NetBSD が起動した後なら (正確には powerd(8) が起動していれば)、
                   2777: 終了する時はメニューの「デバイス &gt; 操作 &gt; 電源ボタンを押す」
                   2778: でシャットダウンして電源オフになり、
                   2779: VM の電源オフで nono も終了します。
                   2780: <q>After NetBSD boots up (more precisely, if powerd(8) is running),
                   2781: you can shutdown and power off by
                   2782: "Device &gt; Operation &gt; Push Power button" on menu,
                   2783: and nono will terminate when the VM is powered off.</q>
                   2784: </ul>
                   2785: </div>
1.1.1.14  root     2786: <?php H5end(); ?>
1.1.1.16  root     2787: 
                   2788: 
1.1.1.17  root     2789: <?php H5("", "NetBSD/virt68k をインストールしてみる"
                   2790:        . " <q>Try installing NetBSD/virt68k</q>"); ?>
1.1.1.16  root     2791: <div class="main">
                   2792: ここでは NetBSD/virt68k をクリーンインストールする手順だけ紹介します。
1.1.1.18  root     2793: <q>Here I will introduce how to install NetBSD/virt68k cleanly.</q>
1.1.1.16  root     2794: <br>
1.1.1.17  root     2795: <ol>
1.1.1.18  root     2796: 
1.1.1.16  root     2797: <li>どこかに nono 用のディレクトリを用意し(例えば ~/nono/)、
                   2798: その中に VM ディレクトリを用意します (例えば ~/nono/virt68k/)。
                   2799: <q>Create a directory somewhere for nono (for example ~/nono/),
                   2800: and create subdirectories for individual VMs in it
                   2801: (for example ~/nono/virt68k/).</q>
                   2802: 
1.1.1.18  root     2803: <li>NetBSD/virt68k のインストールセットはまだ用意されてないようなので、
                   2804: NetBSD のソースコードから build.sh でビルドします。
                   2805: <q>There doesn't seem to be the official NetBSD/virt68k set available yet.
                   2806: You have to build it manually from the source code using build.sh. :(</q>
                   2807: 
                   2808: <li>インストーラを起動するカーネルとその後運用するカーネルは同じものなので
                   2809: VM ディレクトリ内に持ってきておくとよいです。
                   2810: <q>The kernel used for installation and the kernel used for operation
                   2811: are the same.
                   2812: So it would be good idea to bring it into the VM directory at this point.</q>
                   2813: <blockquote class="cons"><pre>
                   2814: cp &lt;path&gt;/release/virt68k/binary/kernel/netbsd-GENERIC.gz ~/nono/virt68k/
                   2815: </pre></blockquote>
                   2816: 
1.1.1.16  root     2817: <li>空のディスクイメージを用意します。
                   2818: 1GB でもインストール自体は出来ますが、もう少し大きいほうが安心です。
                   2819: <q>Prepare an empty disk image file.
                   2820: You can install it with 1GB at least,
                   2821: but it would be safer if it was a little larger.</q>
                   2822: <blockquote class="cons"><pre>
                   2823: dd if=/dev/zero of=virt68k.img bs=1m count=2048
                   2824: </pre></blockquote>
                   2825: 
                   2826: <li>以下の内容の設定ファイル nono.cfg を VM ディレクトリ ~/nono/virt68k
                   2827: に作成します。
                   2828: <q>Create a configuration file nono.cfg in the VM directory, ~/nono/virt68k/,
1.1.1.19  root     2829: with following contents.</q>
1.1.1.16  root     2830: <blockquote class="file"><pre>
1.1.1.17  root     2831: vmtype = virt-m68k
1.1.1.18  root     2832: exec-file = netbsd-GENERIC.gz
                   2833: exec-bootparam = root=ld0
1.1.1.16  root     2834: virtio-block0-image = virt68k.img
1.1.1.18  root     2835: fast-mode = 1
1.1.1.16  root     2836: </pre></blockquote>
                   2837: 
1.1.1.18  root     2838: <li>インストーラ RAM ディスクを指定してインストーラを起動します。
                   2839: 設定ファイルでルートデバイスを ld0 に指定していますが、
                   2840: RAM ディスク指定のほうが優先されるようです。
                   2841: <q>Run the installer by specifying installer RAM disk.
                   2842: By the way, configuration file specifies root device as ld0,
                   2843: but RAM disk specified by the command line will take precedence.</q>
1.1.1.16  root     2844: <blockquote class="cons"><pre>
1.1.1.18  root     2845: nono -c ~/nono/virt68k \
1.1.1.16  root     2846:  --initrd &lt;path&gt;/release/virt68k/installation/ramdisks/inst-ramdisk.fs
                   2847: </pre></blockquote>
                   2848: 
1.1.1.18  root     2849: <li>しばらくすると見慣れたインストーラが起動してきます。
                   2850: インストールが終わったらトップメニューから e:Utility menu &gt;
                   2851: g:Halt the system
                   2852: を選択してください。ゲストの電源がオフになり nono も終了します。
                   2853: <q>After a while, the familiar installer will start.
                   2854: Once the installation has finished,
                   2855: choose e:Utility menu &gt; g:Halt the system.
                   2856: Then the guest will shut down, and nono also will terminate.</q>
                   2857: 
                   2858: <li>インストールしたディスクから起動するには、
                   2859: <tt>--initrd</tt> オプションを外して実行します。
                   2860: カーネルは引き続きホストファイルシステム上にあるもの
                   2861: (ここでは ~/nono/virt68k/netbsd-GENERIC.gz) を使います。
                   2862: <q>To boot from the installed disk,
                   2863: run without <tt>--initrd</tt> option.
                   2864: It still uses the kernel on the host filesystem,
                   2865: just like the installer does.</q>
1.1.1.16  root     2866: <blockquote class="cons"><pre>
1.1.1.18  root     2867: nono -c ~/nono/virt68k
1.1.1.16  root     2868: </pre></blockquote>
1.1.1.18  root     2869: </ul>
1.1.1.16  root     2870: </div>
                   2871: <?php H5end(); ?>
1.1.1.14  root     2872: <?php H4end(); ?>
1.1       root     2873: 
1.1.1.8   root     2874: 
1.1.1.14  root     2875: <?php H4("network",
                   2876:        "ホストネットワーク設定例 <q>Example of host network setup</q>"); ?>
1.1.1.19  root     2877: <?php H5("network-tap", "tap"); ?>
1.1       root     2878: <div class=main>
1.1.1.19  root     2879: NetBSD の tap(4) デバイスを用いて、
                   2880: ホストの wm0 と nono のゲスト OS を接続する場合の設定例です。
1.1.1.8   root     2881: <ol>
                   2882: <li>
1.1.1.19  root     2883: 設定ファイル nono.cfg に以下の行を追加します。
                   2884: <q>Add the following line to configuration file, nono.cfg.</q>
1.1       root     2885: <blockquote class="file"><pre>
1.1.1.8   root     2886: hostnet-driver = tap
                   2887: hostnet-tap-devpath = auto
1.1       root     2888: </pre></blockquote>
1.1.1.8   root     2889: 
1.1.1.5   root     2890: <li>デフォルトでは /dev/tap は一般ユーザからアクセスできないので、
                   2891: chmod で適当にパーミッションを与えます。
                   2892: 番号の付いていないほうの /dev/tap だけでいいです。
                   2893: sysinst 等で OS をアップグレードするとパーミッションが 600
                   2894: に戻るのがハマりポイントです。
1.1.1.8   root     2895: <q>By default, /dev/tap is only accessible to privileged user.
                   2896: You need to chmod /dev/tap (without unit number) appropriately.
1.1.1.16  root     2897: Note that upgrading using sysinst always resets the permission to 600.</q>
1.1.1.5   root     2898: 
                   2899: <li>bridge(4) インタフェースを作成し、
1.1.1.8   root     2900: ホストの外部(物理)インタフェースをブリッジに追加しておきます。
1.1.1.5   root     2901: <q>Create a bridge(4) interface, and
                   2902: add your physical interface to the bridge.</q>
1.1       root     2903: <blockquote class="cons"><pre>
1.1.1.5   root     2904: # ifconfig bridge0 create
1.1       root     2905: # brconfig bridge0 add wm0
                   2906: </pre></blockquote>
1.1.1.8   root     2907: 常用するなら /etc の設定ファイルに書いておきましょう。
                   2908: <q>If you use it regularly,
1.1.1.5   root     2909: you can put configuration file into /etc.</q>
                   2910: <blockquote>
                   2911: /etc/ifconfig.bridge0
                   2912: <pre class=file>
                   2913: create
                   2914: up
                   2915: !/sbin/brconfig $int add wm0
                   2916: </pre>
                   2917: <pre class=cons>
                   2918: # /etc/rc.d/network restart
                   2919: </pre>
                   2920: </blockquote>
                   2921: 
                   2922: <li>
                   2923: 一般ユーザに戻って、
                   2924: VM ディレクトリかその親ディレクトリに
                   2925: 次のような 2つのスクリプトを用意します。
1.1.1.8   root     2926: nono は tap(4) をオープンし、
                   2927: そのデバイス名を引数にこれらのスクリプトを呼びます。
1.1.1.5   root     2928: sudo の設定は別途行ってください。
                   2929: <q>Return to non-privileged user, and
                   2930: create following two scripts in the VM directory or its parent directory.
1.1.1.8   root     2931: nono will open tap(4) and
                   2932: invoke these scripts with the name of the device as an argument.
1.1.1.5   root     2933: In addition, you need to set up sudo separately.</q>
1.1       root     2934: <blockquote>
                   2935: nono-ifup
                   2936: <pre class=file>
                   2937: #!/bin/sh
1.1.1.5   root     2938: sudo /sbin/ifconfig $1 up
                   2939: sudo /sbin/brconfig bridge0 add $1
1.1       root     2940: </pre></blockquote>
                   2941: 
                   2942: <blockquote>
1.1.1.5   root     2943: nono-ifdown
1.1       root     2944: <pre class=file>
                   2945: #!/bin/sh
1.1.1.5   root     2946: sudo /sbin/brconfig bridge0 delete $1
                   2947: sudo /sbin/ifconfig $1 down
                   2948: </pre></blockquote>
                   2949: 
                   2950: <blockquote class="cons"><pre>
                   2951: % chmod +x nono-ifup nono-ifdown
1.1       root     2952: </pre></blockquote>
                   2953: 
1.1.1.5   root     2954: <li>nono を起動し、
                   2955: メニューの「モニタ &gt; ホスト &gt; ホストネットワーク」を開いて
1.1.1.8   root     2956: HostNet Driver: tap になっていれば動いてるはずです。
1.1.1.5   root     2957: <q>Run nono,
                   2958: and open "Monitor &gt; Host &gt; Host Network" window from menu.
1.1.1.8   root     2959: It's OK if you can see "HostNet Driver: tap".</q>
1.1.1.5   root     2960: 
                   2961: </ol>
1.1       root     2962: </div>
1.1.1.19  root     2963: <?php H5end(); ?>
1.1.1.14  root     2964: <?php H4end(); ?>
                   2965: 
1.1       root     2966: 
1.1.1.14  root     2967: <?php H4("knownissues", "既知の問題 <q>Known Issues</q>"); ?>
1.1.1.12  root     2968: <div class="main">
                   2969: <ul>
1.1.1.13  root     2970: <li>デバッガのコンソール入力で、
1.1.1.14  root     2971: カーソルキーなどの特殊文字入力に対する表示が動作していません。
                   2972: <q>In debugger console, some special characters like cursor keys
1.1.1.12  root     2973: aren't printed correctly.</q>
1.1.1.13  root     2974: (since ver 0.3.0)
1.1.1.12  root     2975: <li>ホストが VirtualBox (on Windows?) で、
                   2976: VirtualBox の「マウス統合」が有効にしている場合、
                   2977: nono の「マウスモード」でマウスポインタが正しく移動しません。
                   2978: <q>If the host OS is running on VirtualBox (on Windows?) and
                   2979: "Mouse integration" on VirtualBox is enabled,
                   2980: the mouse pointer will not move as expected in nono's Mouse Mode.</q>
                   2981: (2021/12/30)
                   2982: 
                   2983: <li>Wayland の場合にウィンドウサイズが正しく設定されない場合があります。
1.1.1.17  root     2984: wxWidgets (3.0/3.2) のバグと思われます。
1.1.1.12  root     2985: <q>On Wayland, window size may be incorrect.
1.1.1.17  root     2986: This may be due to wxWidgets (3.0/3.2) bug.</q>
                   2987: (2021/12/30, Updated 2024/07/03)
                   2988: 
1.1.1.18  root     2989: <li>nono ではありませんが、wxWidgets 3.2 (with GTK3) は
                   2990: NetBSD/sparc (などマイナーアーキテクチャ?)
                   2991: でウィンドウ内がほぼ描画されないようです。
                   2992: wxWidgets 3.0 (with GTK2) であれば動作します。
                   2993: <q>On wxWidgets 3.2 (with GTK3), it seems that the inside of the window
                   2994: is hardly drawn at NetBSD/sparc (and such minor architectures?).
                   2995: wxWidgets 3.0 (with GTK2) can.</q>
1.1.1.17  root     2996: (2024/07/03)
1.1.1.12  root     2997: 
                   2998: </ul>
                   2999: </div>
1.1.1.14  root     3000: <?php H4end(); ?>
                   3001: 
1.1       root     3002: 
1.1.1.14  root     3003: <?php H4("migrate",
                   3004:        "過去のバージョンからの移行方法 <q>How to migrate from old versions</q>");
                   3005: ?>
1.1.1.9   root     3006: <div class="main">
                   3007: バージョンアップに伴い設定ファイル等に非互換が発生する場合があります。
                   3008: その場合は以下の移行方法を参照して設定ファイル等を更新してください。
                   3009: <q>Some versions may have incompatibilities in the configuration files, etc.
                   3010: In such case, you may need to upgrade it by referring the following link.</q>
                   3011: <ul>
1.1.1.13  root     3012: <li><a href="upgrade-0.3.0.html">From ver 0.2.x to ver 0.3.0</a>
1.1.1.9   root     3013: <li><a href="upgrade-0.2.0.html">From ver 0.1.x to ver 0.2.0</a>
                   3014: </ul>
                   3015: </div>
1.1.1.14  root     3016: <?php H4end(); ?>
                   3017: 
1.1.1.2   root     3018: 
1.1.1.17  root     3019: <?php H4("util", "付属ソフトウェア <q>Included Software</q>"); ?>
                   3020: <div class="main">
                   3021: <ul>
                   3022: <li><?php linkto("runx", "runx"); ?>
                   3023: </ul>
                   3024: </div>
                   3025: <?php H4end(); ?>
                   3026: 
                   3027: 
1.1.1.14  root     3028: <?php H4("changes", "変更履歴 <q>Changes</q>"); ?>
1.1.1.10  root     3029: <div class="main">
1.1.1.17  root     3030: See <?php linkto("changes", "changes.html"); ?>.
1.1.1.10  root     3031: </div>
1.1.1.14  root     3032: <?php H4end(); ?>
                   3033: 
1.1.1.10  root     3034: 
1.1.1.14  root     3035: <?php H4("license", "連絡先、ライセンス等 <q>Contact, License, etc</q>"); ?>
1.1.1.10  root     3036: 
1.1.1.14  root     3037: <?php H5("", "ライセンス <q>License</q>"); ?>
1.1.1.2   root     3038: <div class="main">
1.1.1.14  root     3039: <ul>
                   3040: <li>
                   3041: nono 自身については
                   3042: <a href="nono-license.txt">nono-license.txt</a> を読んでください。
                   3043: <q>See nono-license.txt about nono itself.</q>
                   3044: <li>
                   3045: nono は無償公開されている X68030 の IPLROM を使用しています。
1.1.1.13  root     3046: <a href="fsharp-license.txt">許諾条件</a>を読んでください。
                   3047: <q>nono uses X68030 IPLROM image distributed without charge.
                   3048: You must read
                   3049: <a href="fsharp-license.txt">the license agreement</a>
                   3050: (even though it's Japanese original text only).</q>
1.1.1.14  root     3051: <li>
                   3052: nono は SIL Open Font License version 1.1 で配布されているフォントの
                   3053: 一部を改変して組み込んでいます。
                   3054: <q>nono modifies and embeds the font distributed as SIL Open Font License version 1.1.</q>
                   3055: </ul>
                   3056: </div>
                   3057: 
                   3058: <?php H5end(); ?>
1.1.1.2   root     3059: 
1.1.1.14  root     3060: <?php H5("", "連絡先 <q>Contact us</q>"); ?>
1.1.1.4   root     3061: <div class="main">
                   3062: バグ報告などは以下にお願いします。日本語でおk。
                   3063: <q>If you find any problems, please let me know.
                   3064: You may write in English.</q><br>
                   3065: <a href="https://github.com/isaki68k/nono-issue/issues"
                   3066: >https://github.com/isaki68k/nono-issue/issues</a>
                   3067: </div>
1.1.1.14  root     3068: <?php H5end(); ?>
1.1.1.4   root     3069: 
1.1.1.14  root     3070: <?php H5("", "パッチの提供について <q>About contributes</q>"); ?>
1.1.1.2   root     3071: <div class="main">
                   3072: パッチを提供してくださる場合は以下に同意したものとします。
1.1.1.12  root     3073: <q>If you provide a patch to nono, we assume that you agree the following
1.1.1.11  root     3074: conditions:</q>
1.1.1.2   root     3075: <ul>
                   3076: <li>成果物が nono のライセンスに従って運用あるいは配布されること。
1.1.1.15  root     3077: <q>All your work will be operated or distributed under the nono license.</q>
1.1.1.2   root     3078: <li>ライセンスが将来変わる可能性があること。
                   3079: <q>The license may be changed in the future.</q>
                   3080: <li>著作部分に関して著作者人格権を行使しないこと。
                   3081: <q>Do not exercise your author's rights.</q>
                   3082: </ul>
                   3083: </div>
1.1.1.14  root     3084: <?php H5end(); ?>
1.1.1.2   root     3085: 
1.1.1.14  root     3086: <?php H5("", "Acknowledgements"); ?>
1.1.1.2   root     3087: <div class="main">
                   3088: nono は以下の広告条項を含むソースコードを利用しています。
                   3089: <q>nono uses source code with the following advertising clause.</q>
                   3090: <blockquote>
                   3091: This product includes software developed by Gordon Ross<br>
                   3092: This product includes software developed by the University of California, Lawrence Berkeley Laboratory.<br>
                   3093: </blockquote>
                   3094: </div>
1.1.1.14  root     3095: <?php H5end(); ?>
                   3096: <?php H4end(); ?>
1.1       root     3097: 
                   3098: <hr>
1.1.1.2   root     3099: nono project
1.1       root     3100: </body>
                   3101: </html>

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.