Annotation of nono/doc/index.html, revision 1.1.1.10

1.1.1.2   root        1: <!--
                      2:  nono
                      3:  Copyright (C) 2020 nono project
                      4:  Licensed under nono-license.txt
                      5: -->
1.1       root        6: <html><head>
                      7: <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
                      8: <title>nono document</title>
                      9: <style type="text/css">
                     10: /* https://jfly.uni-koeln.de/colorset/ */
                     11: 
                     12: :root {
                     13:        --blue:                 rgb(  0,  90, 255);
                     14:        --brown:                rgb(128,  64,   0);
                     15:        --green:                rgb(  3, 175, 122);
                     16:        --grey:                 rgb(132, 145, 158);
1.1.1.9   root       17:        --light-pink:   rgb(255, 202, 191);
1.1       root       18:        --light-grey:   rgb(200, 200, 203);
1.1.1.4   root       19: 
                     20:        --bg-grey:              rgb(220, 220, 223);
1.1       root       21: }
                     22: body {
1.1.1.4   root       23:        background-color: var(--bg-grey);
1.1       root       24: }
                     25: q {
                     26:        color: var(--brown);
                     27: }
                     28: q:before {
                     29:        content: "[";
                     30: }
                     31: q:after {
                     32:        content: "]";
                     33: }
                     34: dt.dt-indent {
                     35:        padding-left: 1ex;
                     36: }
                     37: .main {
                     38:        margin-left: 1em;
                     39: }
                     40: .cons {
                     41:        background-color: black;
                     42:        color: white;
                     43: }
                     44: .file {
                     45:        background-color: white;
                     46:        color: black;
                     47: }
                     48: .strike {
                     49:        color: var(--grey);
                     50: }
1.1.1.5   root       51: .strike > q {
                     52:        color: var(--grey);
                     53: }
1.1       root       54: </style>
                     55: </head>
                     56: <body>
1.1.1.10! root       57: <h3>nono 0.2.1 (2021/08/18)</h3>
1.1       root       58: 
1.1.1.9   root       59: nono は NetBSD とかで動作する OMRON LUNA-I や LUNA88K とかのエミュレータです。
                     60: <q>nono is OMRON LUNA-I and LUNA88K emulator runs on NetBSD and etc.</q>
                     61: 
                     62: <hr>
                     63: 
                     64: <h4>Index of this page:</h4>
1.1.1.8   root       65: <div class="main">
                     66: <a href="#build">ビルド方法 <q>How to build</q></a><br>
                     67: <a href="#commandline">コマンドラインオプション <q>Command Line Option</q></a><br>
                     68: <a href="#configuration">設定 <q>Configuration</q></a><br>
                     69: <a href="#aboutvm">VM について <q>About VM</q></a><br>
                     70: <a href="#tryit">実行してみる <q>Try it</q></a><br>
1.1.1.9   root       71: <a href="#network">ネットワーク設定例 <q>Example of network setup</q></a><br>
1.1.1.10! root       72: <a href="#migrate">過去のバージョンからの移行方法
        !            73: <q>How to migrate from old versions</q></a><br>
1.1.1.8   root       74: <a href="#changes">変更履歴 <q>Changes</q></a><br>
                     75: <a href="#license">連絡先、ライセンス等 <q>Contact, License, etc</q></a><br>
                     76: </div>
1.1.1.4   root       77: 
1.1.1.8   root       78: <a name="build"></a>
1.1       root       79: <h4>ビルド方法 <q>How to build</q></h4>
                     80: <div class="main">
1.1.1.5   root       81: ビルドには以下が必要です。
1.1.1.7   root       82: NetBSD(pkgsrc) なら wxWidgets は pkgsrc/x11/wxGTK30 です
1.1.1.8   root       83: (OPTIONS:gtk3 で動作確認しています)。
1.1.1.5   root       84: <q>The followings are required for build.
                     85: If you use NetBSD(pkgsrc),
1.1.1.8   root       86: wxWidgets is pkgsrc/x11/wxGTK30 (OPTIONS:gtk3 is tested).</q>
1.1.1.5   root       87: 
1.1       root       88: <ul>
1.1.1.2   root       89: <li>make (BSD make, not GNU make)
1.1.1.4   root       90: <li>C/C++ compiler which supports -std=c++14.
                     91: <br>
                     92: (For gcc, 7.4 works but 5.5 doesn't work, at least.
                     93: For clang, 7.0 and 8.0 works at least.)
1.1.1.2   root       94: <li>wxWidgets &gt;= 3.0
                     95: <li>gettext
1.1       root       96: </ul>
1.1.1.2   root       97: 
1.1.1.5   root       98: <p>
                     99: (NetBSD 以外でのビルドはサポートしていませんが)
1.1.1.10! root      100: Ubuntu 20.04 ではたぶん以下のパッケージが必要です。
1.1.1.5   root      101: <q>You may need the following packages on Ubuntu 18.04
                    102: (though we won't support non-NetBSD platform).</q>
                    103: </p>
1.1.1.8   root      104: <ul>
                    105: <li>
1.1.1.5   root      106: bmake
                    107: build-essential
                    108: gettext
                    109: libbsd-dev
                    110: libedit-dev
                    111: libkqueue-dev
1.1.1.10! root      112: libwxgtk3.0-gtk-dev
1.1.1.5   root      113: zlib1g-dev
1.1.1.8   root      114: </ul>
1.1.1.5   root      115: 
1.1.1.2   root      116: <p>
1.1.1.9   root      117: nono のソースアーカイブを展開したら以下のようにビルドします。
1.1.1.2   root      118: configure には環境変数 CC、CXX でコンパイラを指定することが出来ます。
                    119: また wx-config が標準的な名前で提供されていないために見付けられない場合には
                    120: 環境変数 WX_CONFIG にパスを指定することが出来ます。
1.1.1.9   root      121: <q>Extract the nono's source archive and build as following.
1.1.1.2   root      122: You can specify C/C++ compiler using environment variable CC and CXX
                    123: if configure cannot find standard name suitable compiler.
                    124: Also, you can specify wx-config path using environment variable WX_CONFIG
                    125: if configure cannot find wx-config.</q>
1.1       root      126: <blockquote class="cons"><pre>
                    127: % ./configure
                    128: % make depend
                    129: % make
1.1.1.2   root      130: % su
                    131: # make install
1.1       root      132: </pre></blockquote>
1.1.1.2   root      133: 
                    134: <p>
                    135: 2つの実行ファイルがインストールされます。
                    136: <tt>nono</tt> が GUI 版実行ファイル、
                    137: <tt>nono-cli</tt> がコマンドライン版です。
                    138: <q>Two executables will be installed.
1.1.1.8   root      139: <tt>nono</tt> is the GUI executable and <tt>nono-cli</tt> is
                    140: the command line executable.</q>
1.1       root      141: 
                    142: </div>
                    143: 
                    144: 
1.1.1.8   root      145: <a name="commandline"></a>
1.1       root      146: <h4>コマンドラインオプション <q>Command Line Option</q></h4>
                    147: <div class="main">
                    148: <dl>
1.1.1.7   root      149: <dt class=dt-indent><tt>-c <i>vmpath</i></tt></dt>
                    150: <dd>VM ディレクトリ/設定ファイルを指定します。
                    151: <i>vmpath</i> がディレクトリならそのディレクトリの中の nono.cfg
                    152: を設定ファイルとします。
                    153: <i>vmpath</i> がファイルならそれを設定ファイルとします。
                    154: そしていずれの場合も
                    155: 設定ファイルがあるディレクトリを VM ディレクトリとします。
                    156: -c オプションを省略すると <i>vmpath</i> をカレントディレクトリとします。
                    157: <q>Specifies the VM directory/configuration file.
                    158: If <i>vmpath</i> is a directory,
                    159: make nono.cfg in that directory a configuration file.
                    160: Or if <i>vmpath</i> is a file,
                    161: make the specified file a configuration file.
                    162: And in both cases,
                    163: make the directory where that file is located a VM directory.
                    164: If <tt>-c</tt> option is omitted,
                    165: <i>vmpath</i> is considered as the current directory.
                    166: </q></p></dd>
1.1       root      167: <dt class=dt-indent><tt>-f</tt></dt>
                    168: <dd>高速モードで起動します。
1.1.1.2   root      169: GUI なら起動後にもメニューから変更できますが、その初期値を変えるだけです。
                    170: <q>Boot as the fast mode.
                    171: You can change this mode on GUI menu after boot,
                    172: and the option only changes its initial state.
                    173: </q></p></dd>
1.1       root      174: <dt class=dt-indent><tt>--fontsize <i>height</i></tt></dt>
                    175: <dd>GUI 版のみ。
                    176: 全サブウインドウの起動時のフォントサイズを指定します。
1.1.1.2   root      177: <tt><i>height</i></tt> には 12, 16
                    178: のいずれかを指定します。デフォルトは <tt>12</tt> です。
1.1.1.3   root      179: 起動後にメニューから変更できます。
1.1.1.2   root      180: <q>
                    181: GUI Only.
                    182: Specifies the initial fontsize on all sub windows.
                    183: <tt><i>height</i></tt> is one of 12 or 16.
1.1.1.3   root      184: The default value is <tt>12</tt>.
                    185: You can change this value on GUI menu after boot.
1.1.1.2   root      186: </q></p></dd>
1.1       root      187: <dt class=dt-indent><tt>-s <i>scale</i></tt></dt>
                    188: <dt class=dt-indent><tt>--scale <i>scale</i></tt></dt>
                    189: <dd>GUI 版のみ。
                    190: メインウィンドウの起動時のスケールを実数で指定します。
                    191: 起動後にもメニューからプリセットされた倍率には変更可能ですが、
                    192: 任意倍率は起動時のみ指定可能です
                    193: <span class=strike>(そのうちなんとかしたい)</span>。
1.1.1.2   root      194: デフォルトは 1.0 です。
                    195: <q>
                    196: GUI Only.
                    197: Specifies the initial main window scale in real number.
                    198: You can change this scale on GUI menu after boot,
                    199: but unlike this option, there are only a few preset choices
                    200: <span class=strike>(Should be improved in someday)</span>.
                    201: The default value is 1.0</q></p></dd>
1.1       root      202: <dt class=dt-indent><tt>--show-config</tt></dt>
1.1.1.2   root      203: <dd>設定ファイルと <tt>-V</tt> オプションを読み込んだ結果を表示します。
                    204: <q>Shows the result of reading configuration file and
                    205: parsing <tt>-V</tt> options.</q></p></dd>
1.1       root      206: <dt class=dt-indent><tt>-v</tt></dt>
1.1.1.2   root      207: <dd>バージョンを表示します。
                    208: <q>Shows the version.</q></p></dd>
1.1       root      209: <dt class=dt-indent><tt>-V <i>name</i>=<i>value</i></tt></dt>
1.1.1.3   root      210: <dd>設定ファイルで指定した <tt><i>name</i>=<i>configvalue</i></tt> の代わりに
1.1.1.2   root      211: このオプションの <tt><i>name</i>=<i>value</i></tt> を適用します。
1.1.1.3   root      212: <q>Use this <i>name</i>=<i>value</i>
                    213: instead of <i>name</i>=<i>configvalue</i> specified in configuration file.
1.1.1.2   root      214: </q></p></dd>
1.1.1.10! root      215: <dt class=dt-indent><tt>-X <i>file</i></tt></dt>
        !           216: <dd>ホストの <tt><i>file</i></tt> をロードして実行します。
        !           217: <tt><i>file</i></tt> が相対パスの場合カレントディレクトリからのパスになります。
        !           218: ファイルが gzip 圧縮されていれば自動的に展開します。
        !           219: (展開後の) ファイル形式は a.out (OMAGIC) か ELF で、
        !           220: 実際にはブートローダとカーネル程度しか想定していません。
        !           221: 設定ファイルの <tt>prom-image</tt> とともに指定されると
        !           222: <tt>-X</tt> のほうが優先します。
        !           223: <q>Loads and executes host's <tt><i>file</i></tt>.
        !           224: If <tt><i>file</i></tt> is relative path,
        !           225: it is path from the current directory.
        !           226: If the file is gzip'd, it is automatically extracted.
        !           227: The supported file format (after extracting) is a.out (OMAGIC) or ELF.
        !           228: Actually, it only assumes bootloaders or kernels.
        !           229: If this option is specified at the same time as
        !           230: <tt>prom-image</tt> in configuration file,
        !           231: this option preceeds.
        !           232: </q></p></dd>
1.1       root      233: </dl>
                    234: 
1.1.1.2   root      235: 以下開発用。<q>For developers:</q>
1.1       root      236: <dl>
1.1.1.3   root      237: <dt class=dt-indent><tt>-b <i>hexaddr</i>[,<i>skipcount</i>]</tt></dt>
1.1       root      238: <dd>デバッガのブレークポイントを 16進数で指定します。</dd>
                    239: <dt class=dt-indent><tt>-C</tt></dt>
                    240: <dd>ログをコンソールにも出力します。
                    241: 通常はログウィンドウにだけ出力されます。</dd>
                    242: <dt class=dt-indent><tt>-d</tt></dt>
                    243: <dd>起動時にデバッガプロンプトで停止します。</dd>
                    244: <dt class=dt-indent><tt>-D</tt></dt>
                    245: <dd>コンソールをデバッガとして使用します。
                    246: -d を指定しなくても起動時にプロンプトで停止します
                    247: <span class=strike>(そのうちなんとかしたい)</span>。</dd>
                    248: <dt class=dt-indent><tt>-L <i>name1</i>=<i>level1</i>[,<i>name2</i>=<i>level2</i>,...]</tt></dt>
                    249: <dd>ログレベルを指定します。
                    250: カンマで区切って複数指定することも出来ます。
                    251: <tt>-Lhelp</tt> で name の一覧を表示します。</dd>
                    252: <dt class=dt-indent><tt>-M <i>name</i>[,<i>name2</i>,...]</tt></dt>
                    253: <dd>起動時に表示するモニタウィンドウを指定します。
1.1.1.3   root      254: カンマで区切って複数指定することも出来ます。
                    255: <tt>-Mhelp</tt> で name の一覧を表示します。</dd>
1.1       root      256: </dl>
                    257: </div>
                    258: 
1.1.1.8   root      259: 
                    260: <a name="configuration"></a>
1.1       root      261: <h4>設定 <q>Configuration</q></h4>
                    262: <div class="main">
1.1.1.7   root      263: VM の設定ファイルはその VM ディレクトリ内の nono.cfg
                    264: (または -c で指定したファイル) です。
1.1       root      265: 書式は <tt>key = value</tt> 形式で1行1項目ずつです。
                    266: <tt>key</tt> と <tt>value</tt> の前後の空白は取り除かれます。
                    267: また空行と "<tt>#</tt>" で始まる行は無視します。
                    268: 知らないキーの行も無視します。
1.1.1.7   root      269: <q>VM configuration file is nono.cfg
                    270: (or the file specified by -c option) in the VM directory.
1.1.1.2   root      271: Its syntax is <tt>key = value</tt> format, one per line.
                    272: White spaces before and after <tt>key</tt> and <tt>value</tt> are ignored.
                    273: And, blank lines, lines beginning with "<tt>#</tt>", and
                    274: lines with unrecognized key are also ignored.
                    275: </q>
1.1       root      276: <p>
                    277: 設定項目は次の通りです。
1.1.1.2   root      278: <q>The configuration items are:</q>
1.1       root      279: <dl>
                    280: <dt class=dt-indent><tt>vmtype = <i>string</i></tt></dt>
1.1.1.4   root      281: <dd>VM 種別を以下のいずれかから指定します。
                    282: 省略不可です。
                    283: <q>Specifies the VM type from the following.
                    284: This field is mandatory.
                    285: </q>
                    286: <table cellspacing=0 cellpadding=0>
                    287: <tr><td>&nbsp;<td><tt>luna</tt>        <td>… LUNA-I
1.1.1.9   root      288: <tr><td><td><tt>luna88k</tt>   <td>… LUNA88K
1.1.1.4   root      289: </table></p></dd>
1.1.1.9   root      290: <dt class=dt-indent><tt>clock-sync = <i>value</i></tt></dt>
                    291: <dd>仮想マシン内の時刻の同期方法を指定します。
                    292: <tt>real</tt> なら実時間に同期、<tt>virtual</tt> なら仮想時間に同期します。
                    293: デフォルトは <tt>real</tt> です。
                    294: この機能は実験中のため将来予告なく仕様が変更になる可能性があります。
                    295: <q>Specify how to synchronize the time in virtual machine.
                    296: If <tt>real</tt>, synchronize with the real time;
                    297: if <tt>virtual</tt>, synchronize with the virtual time.
                    298: The default is <tt>real</tt>.
                    299: This feature is under experimentation and may be changed in the future
                    300: without notice.
                    301: </q></p></dd>
1.1       root      302: <dt class=dt-indent><tt>debugger-port = <i>integer</i></tt></dt>
                    303: <dd>デバッガの TCP 待ち受けポート番号を指定します。
                    304: 0 なら待ち受けを行いません。
1.1.1.4   root      305: デフォルトは 0 です。
                    306: <q>Specifies the TCP port number that debugger listens.
                    307: If 0, it will not listen.
                    308: The default is 0.</q></p></dd>
1.1.1.9   root      309: <dt class=dt-indent><tt>ethernet-macaddr = <i>string</i></tt></dt>
                    310: <dd>イーサネットデバイスの仮想マシン側の MAC アドレスを指定します。
                    311: <tt><i>XX</i>:<i>XX</i>:<i>XX</i>:<i>XX</i>:<i>XX</i>:<i>XX</i></tt>
                    312: 形式で指定します。
                    313: <tt>auto</tt> なら自動的に決定します。
                    314: デフォルトは <tt>auto</tt> です。</p></dd>
                    315: <dt class=dt-indent><tt>hostnet-driver = <i>string</i></tt></dt>
1.1       root      316: <dd>イーサネットデバイスのホスト側ドライバを指定します。
1.1.1.9   root      317: <tt>afpacket</tt>、<tt>bpf</tt>、<tt>tap</tt> のうち
                    318: ホスト OS がサポートしているものと <tt>auto</tt>、<tt>none</tt> が選択可能です。
                    319: <tt>afpacket</tt> は Linux の AF_PACKET ソケットを使用します。
                    320: <tt>bpf</tt> は bpf(4) デバイスを使用します。
                    321: <tt>tap</tt> は tap(4) インタフェースを使用します。
1.1       root      322: <tt>none</tt> ならホスト側とは一切通信を行いません。
1.1.1.9   root      323: <tt>auto</tt> ならホスト OS がサポートしているもののうち
                    324: <tt>tap</tt> → <tt>afpacket</tt> → <tt>bpf</tt> を順に試します。
                    325: デフォルトは <tt>auto</tt> です。
1.1.1.7   root      326: <q>Specifies the host driver of ethernet device.
1.1.1.9   root      327: <tt>afpacket</tt>, <tt>bpf</tt>, and <tt>tap</tt> can be specified
                    328: only if the host OS supports them.
                    329: <tt>auto</tt> and <tt>none</tt> can always be specified.
                    330: <tt>afpacket</tt> uses Linux's AF_PACKET socket,
                    331: <tt>bpf</tt> uses bpf(4) device,
                    332: and <tt>tap</tt> uses tap(4) interface.
                    333: <tt>none</tt> doesn't make any communication with the host.
                    334: If <tt>auto</tt> is specified,
                    335: it tries <tt>tap</tt>, <tt>afpacket</tt>, and <tt>bpf</tt> in that order
                    336: (if the host OS supports them).
                    337: The default is <tt>auto</tt>.</q></p></dd>
                    338: <dt class=dt-indent><tt>hostdriver-afpacket-ifname = <i>ifname</i></tt></dt>
                    339: <dd>ホストドライバが afpacket の時にバインドするインタフェースを1つ指定します。
                    340: <i>ifname</i> が <tt>auto</tt>
                    341: なら使用可能なインタフェースを1つ自動的に選択します。
                    342: デフォルトは <tt>auto</tt> です。
                    343: なお、このホストドライバではローカルホストとの通信は出来ません。
                    344: <q>Specify an interface name to bind to, when the host driver is afpacket.
                    345: If <tt>auto</tt> is specified as <i>ifname</i>,
                    346: it selects an usable interface automatically.
                    347: The default is <tt>auto</tt>.
                    348: Note that this host driver cannot communicate with the localhost.</q></p></dd>
                    349: <dt class=dt-indent><tt>hostdriver-bpf-ifname = <i>ifname</i></tt></dt>
                    350: <dd>ホストドライバが bpf の時にバインドするインタフェースを1つ指定します。
                    351: <i>ifname</i> が <tt>auto</tt>
                    352: なら使用可能なインタフェースを1つ自動的に選択します。
                    353: デフォルトは <tt>auto</tt> です。
                    354: なお、このホストドライバではローカルホストとの通信は出来ません。
                    355: <q>Specify an interface name to bind to, when the host driver is bpf.
                    356: If <tt>auto</tt> is specified as <i>ifname</i>,
                    357: it selects an usable interface automatically.
                    358: The default is <tt>auto</tt>.
                    359: Note that this host driver cannot communicate with the localhost.</q></p></dd>
                    360: <dt class=dt-indent><tt>hostdriver-tap-devpath = <i>path</i></tt></dt>
                    361: <dd>ホストドライバが tap の時に使用するデバイスを1つフルパスで指定します。
                    362: デフォルトは <tt>auto</tt> で、この場合は自動的にデバイスを選択します。
                    363: この時の探し方はホスト OS によって異なります。
                    364: Linux なら <tt>/dev/net/tun</tt> を指定したのと同じです。
1.1.1.7   root      365: OpenBSD なら <tt>/dev/tap0</tt> から <tt>/dev/tap9</tt> まで
                    366: 順番にオープンできるまで試します。
                    367: NetBSD (と FreeBSD) ならまず <tt>/dev/tap</tt> でクローニングを試み、
                    368: それが失敗すれば <tt>/dev/tap0</tt> から <tt>/dev/tap9</tt> までを
                    369: 順番にオープンできるまで試します。
1.1.1.9   root      370: いずれの場合も VM ディレクトリかその親ディレクトリに
                    371: <tt>nono-ifup</tt>, <tt>nono-ifdown</tt> という名前のシェルスクリプトが必要です。
                    372: 何もすることがない場合でも正常終了する空のシェルスクリプトを用意してください。
                    373: <q>
                    374: Specify a device pathname, when the host driver is tap.
                    375: The default is <tt>auto</tt>.
1.1.1.7   root      376: The behavior in this case depends on the host OS.
                    377: On Linux, it's the same as <tt>/dev/net/tun</tt>.
                    378: On OpenBSD, it will try from <tt>/dev/tap0</tt> to <tt>/dev/tap9</tt>
                    379: until successful.
                    380: On NetBSD (and FreeBSD), it will try cloning by <tt>/dev/tap</tt> first.
                    381: If that fails, then try from <tt>/dev/tap0</tt> to <tt>/dev/tap9</tt>
                    382: until successful.
1.1.1.9   root      383: In all cases, you need to prepare two shell script files which names are
                    384: <tt>nono-ifup</tt> and <tt>nono-ifdown</tt> in the VM directory or
                    385: its parent directory.
                    386: Even if you don't have anything to do in these scripts,
                    387: you need to prepare empty scripts that will terminate successfully.
1.1.1.7   root      388: </q></p></dd>
1.1.1.9   root      389: <dt class=dt-indent><tt>hostnet-fallback = <i>integer</i></tt></dt>
                    390: <dd><tt>hostnet-driver</tt> で指定したドライバが使用可能でなかった時、
                    391: 0 ならプロセスを終了します。
                    392: 1 なら none を選択して実行を継続します。
                    393: デフォルトは 0 です。
                    394: <q>Specify the behavior when the driver which is selected by
                    395: <tt>hostnet-driver</tt> is unusable;
                    396: terminate the process if 0,
                    397: or continue to run using the <tt>none</tt> driver if 1.
                    398: The default is 0.</q></p></dd>
1.1.1.10! root      399: <dt class=dt-indent><tt>luna-adjust-misused-epoch = <i>integer</i></tt></dt>
        !           400: <dd>LUNA で誤った RTC epoch を採用している OS 向けに RTC
        !           401: エミュレーションを補正するかどうかを
        !           402: 指定します。0 なら補正をしません(実機と同じ動作)、
        !           403: 1 なら補正します(現実世界と同じ動作)。
        !           404: デフォルトは 1 で、通常 1 のままで使用して問題ありません。
        !           405: <q>
        !           406: Specifies whether nono corrects RTC emulation for OSes
        !           407: that adopts wrong RTC epoch on LUNA.
        !           408: 0 means making no correction
        !           409: (this is the same behavior as the actual machine).
        !           410: 1 means making correction
        !           411: (this is the same behavior as the real world).
        !           412: The default is 1.  Normally, leave it 1.</q>
        !           413: <p>
        !           414: LUNA で採用している RTC (MK48T02) は2桁で保持している年の値が
        !           415: 4 で割り切れる年をうるう年とする仕様です。
        !           416: ところが NetBSD/luna68k、OpenBSD/luna88k など現存してソースが確認できる OS
        !           417: はいずれもこの RTC の年の値を 1970年からの経過年として使用しています
        !           418: (LUNA が本来どういう仕様だったのかは分かりませんが、
        !           419: 異なる OS を起動し直すたびに RTC epoch をずらす運用は考えにくいので
        !           420: おそらくすべての OS で同じだと思います)。
        !           421: 例えば1970年はうるう年ではないため 2月28日の翌日は 3月1日ですが、
        !           422: MK48T02 的には 00年であるためうるう年と認識し 2月28日の翌日が2月29日になります。
        !           423: このように、実機の RTC は4年のうち約2年間、1日ずれた日付を指しているようです。
        !           424: しかしながら、RTC の時刻は OS 起動時に一度読んだ後は基本的に参照しない上、
        !           425: 今時必要なら NTP で時間を合わせるため、
        !           426: 実機でも問題が顕在化することはまずないと思います。
        !           427: nono の場合は実機と異なり、アプリケーション実行中しか RTC が進まないため、
        !           428: 補正がない場合の動作が問題になるのは
        !           429: nono を起動したまま偶数年の2月末日から日付をまたいで、
        !           430: かつ nono を起動したまま OS を再起動して NTP などで時刻修正を行わなかった時
        !           431: だけだと思います。
        !           432: このオプションはほぼ開発者向けの動作確認用です。</p></dd>
1.1       root      433: <dt class=dt-indent><tt>luna-dipsw1 = <i>string</i></tt></dt>
                    434: <dd>本体前面 DIPSW#1-1..#1-8 の内容を指定します。
                    435: "<tt>0</tt>" を DOWN、"<tt>1</tt>" を UP として、
                    436: これを8つ並べた形式で、前から順に #1..#8 に対応します。
1.1.1.4   root      437: <q>Specifies status of the front panel DIPSW#1-1..#1-8 using 8 digit.
1.1.1.2   root      438: "<tt>0</tt>" means DOWN and "<tt>1</tt>" means UP.
                    439: The first character corresponds to #1 and
1.1.1.3   root      440: the eighth character corresponds to #8.</q>
                    441: <p>
                    442: LUNA-I でのデフォルトは <tt>11110111</tt> です。
                    443: 各スイッチの内容は以下のリンクを参照してください。
                    444: <q>On LUNA-I, the default value is <tt>11110111</tt>.
1.1.1.4   root      445: See the following link about DIPSW.</q><br>
1.1.1.3   root      446: → <a href="https://wiki.netbsd.org/ports/luna68k/luna68k_info/"
                    447: >NetBSD/luna68k: Information</a>
1.1       root      448: <br>
1.1.1.4   root      449: LUNA88K でのデフォルトは <tt>11111111</tt> です。
                    450: 各スイッチの内容は以下のリンクを参照してください。
                    451: <q>On LUNA88K, the default value is <tt>11111111</tt>.
                    452: See the following link about DIPSW.</q><br>
                    453: → <a href="http://man.openbsd.org/boot_luna88k.8"
                    454: >OpenBSD manual pages: boot_luna88k(8)</a></p></dd>
1.1       root      455: <dt class=dt-indent><tt>luna-dipsw2 = <i>string</i></tt></dt>
                    456: <dd>本体前面 DIPSW#2-1..#2-8 の内容を指定します。
                    457: 書式は <tt>luna-dipsw1</tt> と同じです。
                    458: デフォルトは <tt>11111111</tt> です。
1.1.1.2   root      459: <q>Specifies status of the front panel DIPSW#2-1..#2-8.
                    460: The same syntax as <tt>luna-dipsw1</tt> is used.
                    461: The default value is <tt>11111111</tt>.</q>
1.1.1.3   root      462: <p>
1.1.1.4   root      463: NetBSD/luna68k のブートローダは、
                    464: DIPSW#2 が "<tt>11111111</tt>" なら自動的にカーネルをロードして実行し、
                    465: どれかでも "<tt>0</tt>" にするとプロンプトで停止するようです。
1.1.1.2   root      466: <span class=strike>(本当は #8 だけで制御するつもりだったんじゃないかという気がします)</span>
1.1.1.4   root      467: <q>NetBSD/luna68k bootloader will automatically load and execute the kernel,
                    468: if the DIPSW#2 is "<tt>11111111</tt>".
1.1.1.2   root      469: Otherwise, the bootloader will enter interactive mode.
                    470: <span class=strike>(I doubt that they actually wanted to switch with only #8)
                    471: </span>
                    472: </q></p></dd>
1.1.1.3   root      473: <dt class=dt-indent><tt>monitor-rate = <i>integer</i></tt></dt>
                    474: <dd>テキスト系モニタウィンドウの更新頻度を Hz 単位で指定します。
                    475: 1 から 60 までの間で指定でき、デフォルトは 20Hz です。
                    476: 起動後にメニューからプリセットされた頻度には変更可能です。
                    477: <q>Specifies refresh rate of all text monitor windows in Hz.
                    478: It ranges from 1 to 60.  The default is 20Hz.
                    479: You can change this value on GUI menu after boot,
                    480: but unlike this configuration value, there are only a few preset choices.
                    481: </q></p></dd>
1.1       root      482: <dt class=dt-indent><tt>mpu-clock = <i>value</i></tt></dt>
                    483: <dd>MPU のクロック数を MHz 単位で指定します。
1.1.1.5   root      484: デフォルトは LUNA-I なら 20MHz、LUNA88K なら 25MHz です。
                    485: <q>Specifies the MPU clock in MHz.
                    486: The default value is 20MHz on LUNA-I, or 25MHz on LUNA88K.</q></p></dd>
1.1.1.9   root      487: <dt class=dt-indent><tt>mpu-pseudo-stop = <i>integer</i></tt></dt>
                    488: <dd>m88100 にて疑似 STOP 状態を有効にするかどうかを指定します。
                    489: 0 なら無効(実機と同じ動作)、1 なら有効で、デフォルトは 1 です。
                    490: m88100 には、m68k の STOP 命令 (割り込みが上がるまで何もせず待つ)
                    491: に相当する命令がなく、
                    492: 大抵ビジーウェイトループで割り込みが上がるのを待つことになります。
                    493: これは実機では (消費電力を減らす手段がないという些細な問題以外には)
                    494: 何のデメリットもないのですが、
                    495: エミュレータで特に高速動作させている時には割り込みが上がるまで
                    496: (例えば人間がキーを入力するまで) ホスト CPU パワーを使い潰してビジーウェイトループを実行し続けることになり、ホスト CPU があっつあつになります。
                    497: それを防ぐための機能です。
                    498: 特徴的な命令列を検出して実現しているので、すべての状況で動作するわけではありません。</p></dd>
1.1.1.2   root      499: <dt class=dt-indent><tt>prom-image = <i>path</i></tt></dt>
1.1.1.4   root      500: <dd>LUNA-I/LUNA88K の外部 ROM イメージファイルのパスを指定します。
1.1.1.2   root      501: <i>path</i> がファイル名のみなら VM ディレクトリとその親ディレクトリからこのファイル名を検索します。
                    502: <i>path</i> が相対パスなら VM ディレクトリからの相対パスになります (現在のディレクトリからではありません)。
                    503: 空にすると内蔵 ROM を使用します。
                    504: デフォルトは空です。
1.1.1.4   root      505: <q>Specifies the LUNA-I/LUNA88K's external ROM image file path.
1.1.1.2   root      506: If the <i>path</i> does not have any path delimiters,
                    507: the VM directory and then its parent directory will be searched.
                    508: If the <i>path</i> is a relative path,
                    509: it will be path from the VM directory, not from the current
                    510: directory.
                    511: If the <i>path</i> is empty, internal emulated ROM will be used.
                    512: The default value is empty.</q>
1.1       root      513: <p>
1.1.1.2   root      514: 実機を持っていない場合はこの値を空に (= デフォルトのままに) しておくと、
1.1.1.9   root      515: nono 内蔵のなんちゃって下位互換 ROM で起動します。
1.1.1.2   root      516: <q>If you does not have the real LUNA machines,
                    517: you can boot with nono's internal downward compatible emulated ROM
1.1.1.4   root      518: if you set this field empty (or leave it as the default).
                    519: </q>
1.1       root      520: <p>
1.1.1.4   root      521: LUNA-I 実機を持っている場合は
                    522: ROM ファイルを指定することで実機 ROM で起動できます。
1.1.1.2   root      523: ROM ファイルは実機の 0x41000000-0x4101ffff (128KB) を保存したものです。
1.1.1.3   root      524: 今のところ ROM は V4.22 (Thu Jul 27 11:45:42 1989) のみサポートしています。
                    525: それ以外については何も分かりません。
1.1.1.4   root      526: <q>If you have the real LUNA-I machine,
1.1.1.2   root      527: you can boot with the real ROM spcifying the ROM file path.
1.1.1.4   root      528: The ROM file is extracted from 0x41000000-0x4101ffff (128KB) of
                    529: the real LUNA-I machine.
1.1.1.3   root      530: For now, only V4.22 (Thu Jul 27 11:45:42 1989) is supported.
                    531: I have no idea about other ROMs.
1.1.1.4   root      532: </q>
                    533: <p>
                    534: LUNA88K 実機の場合は 0x41000000-0x4103ffff (256KB) を保存したものです。
1.1.1.9   root      535: 今のところ ROM は version 1.20 のみサポートしています。
1.1.1.4   root      536: <q>
                    537: For LUNA88K,
                    538: the ROM file is extracted from 0x41000000-0x4103ffff (256KB).
1.1.1.9   root      539: For now, only version 1.20 is supported.
1.1.1.3   root      540: </q></p></dd>
                    541: <dt class=dt-indent><tt>ram-size = <i>integer</i></tt></dt>
1.1.1.2   root      542: <dd>搭載する RAM サイズを MB 単位で指定します。
1.1.1.7   root      543: LUNA-I のデフォルトは 16MB です。
                    544: 16MB 未満は 4MB 単位で、
                    545: 16MB 以上は 255MB まで 1MB 単位で指定できます
                    546: (ちなみに NetBSD/luna68k の起動には最低でも 8MB 必要です)。
                    547: LUNA88K のデフォルトは 64MB です。
                    548: 64MB 未満は 16MB 単位で、
                    549: 64MB 以上は暫定で 255MB まで 1MB 単位で指定できます。
1.1.1.5   root      550: <q>Specifies the RAM size in MB.
1.1.1.7   root      551: On LUNA-I, the default is 16MB.
                    552: If the size is less than 16MB, you can specify in 4MB unit.
                    553: If larger, you can specify up to 255MB in 1MB unit.
                    554: By the way, NetBSD/luna68k needs at least 8MB to boot.
                    555: On LUNA88K, the default is 64MB.
                    556: If the size is less than 64MB, you can specify in 16MB unit.
                    557: If larger, you can specify up to tentative 255MB in 1MB unit.
                    558: </q></p></dd>
1.1.1.8   root      559: <dt class=dt-indent><tt>show-statuspanel = <i>integer</i></tt></dt>
                    560: <dd>ステータスパネルを表示するかどうかを指定します。
                    561: 0 なら非表示、1 なら表示です。
                    562: 起動後はメニューから変更可能です。
                    563: <q>Specifies whether to display the status panel or not.
                    564: If 0, it is hidden; if 1, it is shown.
                    565: You can change it on GUI menu after boot.
                    566: </q></p></dd>
1.1.1.10! root      567: <dt class=dt-indent><tt>spc0-id<i>N</i>-image = <i>devtype</i>[,<i>path</i>]</tt></dt>
        !           568: <dd>SCSI デバイスとイメージを指定します。キーの <i>N</i> には 0 から 7 が入ります。
        !           569: ただし ID 7 は本体が使用しますので指定しないでください。
        !           570: 値はデバイス種別 <i>devtype</i> とディスクイメージパス <i>path</i>
        !           571: を "<tt>,</tt>"(カンマ) で区切って並べた形式です。
        !           572: デバイス種別 <i>devtype</i> は以下のいずれかです。
1.1.1.2   root      573: <q>
1.1.1.10! root      574: Specifies SCSI device and image.  <i>N</i> in the key is 0 to 7.
1.1.1.2   root      575: But don't specify ID 7 because the host uses it.
                    576: The value is in a form of device type <i>devtype</i> and
1.1.1.10! root      577: the disk image path <i>path</i> separated by "<tt>,</tt>"(comma).
        !           578: <i>devtype</i> can be one of the following:
        !           579: </q>
        !           580: <ul>
        !           581: <li><tt>hd</tt> … HD drive
        !           582: <li><tt>cd</tt> … CD-ROM drive
        !           583: <li><tt>mo</tt> … MO drive
        !           584: </ul>
        !           585: 
        !           586: <p>
        !           587: <i>devtype</i> が <tt>hd</tt> なら <i>path</i> は省略できません。
        !           588: <i>devtype</i> が <tt>cd</tt> か <tt>mo</tt> なら <i>path</i> は省略可能です。
        !           589: イメージパスが相対パスなら VM ディレクトリからの相対パスになります。
        !           590: <q>
        !           591: If <i>devtype</i> is <tt>hd</tt>, <i>path</i> cannot be ommitted.
        !           592: If <i>devtype</i> is <tt>cd</tt> or <tt>mo</tt>, <i>path</i> can be ommitted.
1.1.1.2   root      593: If the <i>path</i> is relative path, it is from the VM directory.
                    594: </q>
                    595: 
1.1       root      596: <p>
1.1.1.10! root      597: 例えば、nono.cfg と同じディレクトリに置いた sd0.img を
        !           598: 起動 HDD ディスクイメージとして使い
        !           599: (LUNA では通常 ID 6 をプライマリ HDD に割り当てます)、
        !           600: ID 5 に同じディレクトリの install.iso をセットした CD ドライブを、
        !           601: ID 4 に起動時メディアなしの MO ドライブを接続する場合は次のようになります。
        !           602: <q>For example, if you use a harddisk image sd0.img placed in the same
        !           603: directory as nono.cfg
        !           604: (LUNA usually assigns ID 6 to the primary HDD),
        !           605: ID 5 for CD-ROM drive that loads install.iso in the same directory,
        !           606: and ID 4 for MO drive without media on boot,
1.1.1.2   root      607: write as following:</q>
1.1       root      608: <blockquote><pre>
1.1.1.10! root      609: spc0-id6-image = hd,sd0.img
        !           610: spc0-id5-image = cd,install.iso
        !           611: spc0-id4-image = mo
1.1       root      612: </pre></blockquote></p></dd>
1.1.1.4   root      613: <dt class=dt-indent><tt>spc0-id<i>N</i>-seektime = <i>integer</i></tt></dt>
                    614: <dd>指定の SCSI HDD の平均シークタイムを msec 単位で指定します。
                    615: 現在のデフォルトは <tt>0</tt> です (S・S・D!! S・S・D!!)。
                    616: 16 程度を指定すると幾分往時に思いを馳せることが出来るかもしれませんが、
                    617: 今の所あまり安定していません。
                    618: <q>Specifies the average seek time of specified SCSI HDD in msec.
                    619: Currently, the default value is <tt>0</tt>
                    620: (This may be something like SSD :-).
                    621: If you specify about 16 or so, you can feel nostalgic,
                    622: but this feature is still unstable.
                    623: </q></p></dd>
1.1.1.10! root      624: <dt class=dt-indent><tt>spc0-id<i>N</i>-writeignore = <i>integer</i></tt></dt>
        !           625: <dd>指定の SCSI HD デバイスへの書き込みを無視するかどうか指定します。
1.1       root      626: <tt>0</tt> なら通常動作(書き込みを行う)です。
                    627: <tt>1</tt> なら書き込みコマンドは成功したように振る舞いますが実際には
                    628: ディスクイメージに一切書き戻しません。
                    629: fsck を気にせずカーネルのデバッグとかを行いたい場合にはどうぞ。
                    630: 何が起きるか意味が分からない人は指定しないでください。
1.1.1.2   root      631: デフォルトは <tt>0</tt> です。
1.1.1.10! root      632: <q>Specifies whether nono ignores writing to SCSI HD devices.
1.1.1.2   root      633: <tt>0</tt> means normal operation (writes to the devices).
1.1.1.7   root      634: If <tt>1</tt> is specified,
1.1.1.2   root      635: nono will not actually write back to the disk image
                    636: even though the write command is succeeded.
                    637: nono's SCSI devices acts as
                    638: write command is successfully done but it never writes back
                    639: to the actual disk image.
                    640: This is useful for kernel debugging because it does not require fsck
                    641: after the kernel hangs.
                    642: But don't use this flag if you don't understand this paragraph.
1.1.1.10! root      643: The default value is <tt>0</tt>.</q>
        !           644: <p>
        !           645: ちなみに、メディアを書き込み禁止にしたい場合はこれではなく、
        !           646: イメージファイルの書き込み権を落としてください。
        !           647: <q>By the way, if you want to make the media write-protected,
        !           648: clear the write permission from the image file
        !           649: (instead of this setting).</q></p></dd>
        !           650: <dt class=dt-indent><tt>spc0-id<i>N</i>-writeprotect = <i>integer</i></tt></dt>
        !           651: <dd>古いオプションです。
        !           652: 代わりに <tt>spc0-id<i>N</i>-writeignore</tt> を使ってください。
        !           653: このオプションは開発用です。
        !           654: <q>Obsolete.
        !           655: Use <tt>spc0-id<i>N</i>-writeignore</tt> instead.
        !           656: This option is for developers.
1.1.1.2   root      657: </q></p></dd>
1.1       root      658: </dl>
                    659: </div>
                    660: 
                    661: 
1.1.1.8   root      662: <a name="aboutvm"></a>
                    663: <h4>VM について <q>About VM</q></h4>
                    664: <h5>ステータスパネル <q>Status Panel</q></h5>
                    665: <div class="main">
                    666: ステータスパネル中央にあるパフォーマンスメータのアイコンは
                    667: 高速モードの状態を表示しています。
                    668: ダブルクリックすると高速/等速モードの指定を切り替えることができます。
                    669: <q>The performance meter's icon at the center of the status panel
                    670: shows the VM speed status.
                    671: You can switch full speed / syncronized mode by double-clicking on this icon.
                    672: </q>
                    673: <table>
                    674: <tr><td valign=top>
                    675: <image src="image/sp-ffmark0.png" style="padding:0.5ex; background-color:white">
                    676: <td valign=top>…
                    677: <td valign=top>
                    678: マークなしの場合、ユーザが等速モードを指定していて、等速モードで実行中です。
                    679: <q>When no icons are displayed,
                    680: the user has specified syncronized mode and
                    681: the VM is running in synchronized mode.</q>
                    682: <tr><td valign=top>
                    683: <image src="image/sp-ffmark1.png" style="padding:0.5ex; background-color:white">
                    684: <td valign=top>…
                    685: <td valign=top>
                    686: 三角2つの場合、ユーザが高速モードを指定していて、等速モードで実行中です。
                    687: キー入力中(後述)または VM がアイドル状態(m68k の STOP 命令)などで起きます。
1.1.1.9   root      688: 高速モード中はパーセントではなく何倍速で動作しているかを表します。
1.1.1.8   root      689: <q>When an icon (two triangles) is displayed,
                    690: the user has specified full speed mode and
                    691: the VM is running in synchronized mode.
1.1.1.9   root      692: This will happen during keystrokes (see below) or when the VM is idle
1.1.1.8   root      693: (STOP instruction on m68k).
                    694: </q>
                    695: <tr><td valign=top>
                    696: <image src="image/sp-ffmark2.png" style="padding:0.5ex; background-color:white">
                    697: <td valign=top>…
                    698: <td valign=top>
                    699: 三角3つの場合、ユーザが高速モードを指定していて、高速モードで実行中です。
                    700: <q>When an icon (three triangles) is displayed,
                    701: the user has specified full speed mode and
                    702: the VM is running in full speed mode.
                    703: </table>
                    704: </div>
                    705: 
                    706: <h5>キー入力 <q>Key input</q></h5>
                    707: <div class="main">
                    708: LUNA では、キーボードがハードウェア側でキーリピートを行わず、
                    709: ソフトウェア(OS など)がキーリピートの処理を行います。
                    710: そのため、キーリピートを実装していない LUNA の PROM や
                    711: NetBSD/luna68k のブートローダではキーリピートは起きず、
                    712: キーリピートを実装している NetBSD/luna68k カーネルではキーリピートが起こせます。
1.1.1.9   root      713: キーリピートを起こす間隔をゲストのソフトウェアが測定しているということは、
1.1.1.8   root      714: VM が高速動作するとキーリピートもそれに合わせて発生することになり、
                    715: これをホスト側から防ぐ手段はありません。
                    716: そこで nono ではキー入力が発生している間
                    717: (キーが一つでも押されてからキーが全て離されるまでの間)、
                    718: 高速モードが指示されていても VM を一時的に等速モードに落として実行します。
                    719: 上記のアイコンがそれを区別しているのはこのためです。
                    720: そのため、何らかの理由でキーが入りっぱなしになった場合
                    721: (ALT + TAB やアクセラレータキーでメニューを開くと起きがちです)
                    722: 高速モードが抑制されたままということが起きえます。
                    723: その場合はソフトウェアキーボードからキー入力を解除するなどしてください。
                    724: <q>
                    725: On LUNA,
                    726: key repeat is done by software(OS), not by the keyboard hardware.
                    727: For this reason,
                    728: key repeat doesn't occur on LUNA's PROM or NetBSD/luna68k's bootloader
                    729: that don't implement it, and
                    730: key repeat occurs on NetBSD/luna68k kernel that implements it.
1.1.1.9   root      731: Since the timing of key repeat is measured by the guest software,
1.1.1.8   root      732: if the VM is running faster than the real,
                    733: the key repeat will occur faster, too.
                    734: The host application doesn't have the way to avoid it.
                    735: Therefore, nono will temporarily suppress the full speed mode
                    736: while any keys are pressed.
                    737: That is why the above-mentioned icon distinguishes them.
1.1.1.9   root      738: If keys continue to be pressed for some reasons,
1.1.1.8   root      739: the VM also continues to run syncronized mode.
                    740: In this case, you can resolve it by using the software keyboard window.
                    741: </q>
                    742: </div>
                    743: 
                    744: 
                    745: <a name="tryit"></a>
1.1       root      746: <h4>実行してみる <q>Try it</q></h4>
1.1.1.9   root      747: <h5>NetBSD/luna68k を実行してみる <q>Try NetBSD/luna68k</q></h5>
1.1       root      748: <div class="main">
1.1.1.9   root      749: つついさんが NetBSD/luna68k 9.2 の liveimage を用意されています。
                    750: <q>Tsutsui-san has provided a liveimage of NetBSD/luna68k 9.2.</q>
                    751: <dl>
                    752: <dd><a href="https://twitter.com/tsutsuii/status/1262429647364427783"
                    753: >https://twitter.com/tsutsuii/status/1262429647364427783</a><br>
                    754: <dd><a href="https://twitter.com/tsutsuii/status/1405206240913805313"
                    755: >https://twitter.com/tsutsuii/status/1405206240913805313</a><br>
                    756: </dl>
                    757: ここではこれを起動してみます。<q>Let's try it.</q>
1.1.1.2   root      758: <br>
                    759: <ol>
                    760: <li>どこかに nono 用のディレクトリを用意し(例えば ~/nono/)、
1.1       root      761: その中に VM ディレクトリを用意します (例えば ~/nono/luna/)。
1.1.1.3   root      762: <q>Create a directory somewhere for nono (for example ~/nono/),
1.1.1.9   root      763: and create subdirectories for individual VMs in it
                    764: (for example ~/nono/luna/).</q>
1.1       root      765: 
1.1.1.3   root      766: <li>以下のリンクからイメージファイルをダウンロードして展開し、
1.1.1.2   root      767: VM ディレクトリ ~/nono/luna/ に置きます。
1.1.1.3   root      768: <q>Download imagefile from the following link,
1.1.1.8   root      769: extract it and place it in the VM directory, ~/nono/luna/.</q>
1.1.1.3   root      770: <blockquote>
1.1.1.9   root      771: <a href="http://teokurebsd.org/netbsd/liveimage/20210614-luna68k/"
                    772: >http://teokurebsd.org/netbsd/liveimage/20210614-luna68k/</a>
1.1.1.3   root      773: </blockquote>
1.1.1.2   root      774: 
1.1.1.9   root      775: <li>以下の内容の設定ファイル nono.cfg を VM ディレクトリ ~/nono/luna/
                    776: に作成します。
                    777: ここでは説明を簡単にするためネットワークなしにしていますが、
                    778: ネットワーク設定は必要に応じて行ってください。
1.1.1.8   root      779: <q>Create a configuration file nono.cfg in the VM directory, ~/nono/luna/,
1.1.1.9   root      780: with following contents.
                    781: By the way, to simplify the explanation, we assume there is no network here.
                    782: However, please configure the network if necessary.</q>
1.1.1.2   root      783: <blockquote class="file"><pre>
                    784: vmtype = luna
1.1.1.9   root      785: spc0-id6-image = hd,liveimage-luna68k-raw-20210614.img
                    786: hostnet-driver = none
1.1.1.2   root      787: </pre></blockquote>
1.1.1.9   root      788: 
1.1.1.2   root      789: <li><tt>nono -c ~/nono/luna</tt> で起動します
                    790: (VM ディレクトリに自動的に NVRAM.DAT が作られます)。
                    791: <q>Run as <tt>nono -c ~/nono/luna</tt>.
1.1.1.4   root      792: (NVRAM.DAT will be created automatically in the VM directory)</q>
1.1.1.2   root      793: <li>Emulated ROM Monitor が起動するので、
                    794: 初回は以下のように入力すると NetBSD が起動します。
                    795: <q>The emulated ROM Monitor will be executed.
                    796: Then, only for the first time,
                    797: entering the following can boot NetBSD.</q>
1.1.1.9   root      798: <blockquote><pre>
                    799: k&#x23ce;
                    800: &#x23ce;
                    801: &#x23ce;
                    802: d&#x23ce;
                    803: boot&#x23ce;
                    804: g&#x23ce;
                    805: x&#x23ce;
                    806: </pre></blockquote>
                    807: 画面はこんな感じのはずです (太字が入力部分)。
                    808: <q>You will see a screen like this.  The bold text indicates
                    809: the characters you need to enter.</q>
1.1.1.2   root      810: <blockquote class="file"><pre>
1.1.1.9   root      811: NONO 0.2.0 Emulated ROM Monitor for LUNA-I
                    812: 
                    813: ** NVRAM Initialized.
                    814: 
                    815: &gt;<b>k&#x23ce;</b>
                    816: controller: dk  ?<b>&#x23ce;</b>
                    817: drive unit: 0  ?<b>&#x23ce;</b>
                    818: partition : c  ?<b>d&#x23ce;</b>
                    819: filename  : vmunix  ?<b>boot&#x23ce;</b>
                    820: &gt;<b>g&#x23ce;</b>
                    821: Loaded.  Entry point = $00700000
                    822: &gt;<b>x&#x23ce;</b>
1.1.1.2   root      823: </pre></blockquote>
                    824: この内容は NVRAM.DAT に記録されているので次回以降は直接 NetBSD が起動します。
1.1.1.8   root      825: <q>The information you have just entered is recorded in the NVRAM,
1.1.1.2   root      826: so next time it boots NetBSD automatically.</q>
1.1.1.9   root      827: <li>初回起動時、
                    828: Updating fontconfig cache はあほみたいに時間がかかりますが、
                    829: nono がハングアップしてるわけではありません(>_<)。
                    830: また初回ログイン時めちゃくちゃ重たいですが、
                    831: これはバックグラウンドで makemandb が動くためで
                    832: nono のせいではありません(>_<)。
                    833: <q>At the first boot, you will see the console stops after printing
                    834: "Updating fontconfig cache".
                    835: This is because the infamous fontconfig takes very looooong time.
                    836: nono would not have hang-up.
                    837: In addition, after the first login, you will feel it's too heavy.
                    838: This is because the infamous makemandb(8) runs heavily in the background
                    839: for a looooong time.
                    840: It's very sad to me that these two accidents which are far from the ideal
                    841: are the first experiences of a newcomer.
                    842: </q>
                    843: 
                    844: <li>終了する時は root
                    845: ユーザで &ldquo;<tt>shutdown -p now</tt>&rdquo; を実行してください。
                    846: LUNA はソフトウェアから電源オフでき、
                    847: VM の電源オフで nono も終了します。
                    848: <q>To quit, type &ldquo;<tt>shutdown -p now</tt>&rdquo; as the root user.
                    849: LUNA can be powered off by software,
                    850: and nono will terminate when the VM is powered off.</q>
1.1.1.2   root      851: </ol>
1.1       root      852: </div>
                    853: 
1.1.1.9   root      854: <h5>OpenBSD/luna88k を実行してみる <q>Try OpenBSD/luna88k</q></h5>
                    855: <div class="main">
                    856: あおやまさんが OpenBSD/luna88k 6.9 の liveimage を用意されています。
                    857: <q>Aoyama-san has provided a liveimage of OpenBSD/luna88k 6.9.</q>
                    858: <dl>
                    859: <dd><a href="https://twitter.com/ao_kenji/status/1404784588015112192"
                    860: >https://twitter.com/ao_kenji/status/1404784588015112192</a>
                    861: </dl>
                    862: ここではこれを起動してみます。<q>Let's try it.</q>
                    863: <br>
                    864: <ol>
                    865: <li>どこかに nono 用のディレクトリを用意し(例えば ~/nono/)、
                    866: その中に VM ディレクトリを用意します (例えば ~/nono/luna88k/)。
                    867: <q>Create a directory somewhere for nono (for example ~/nono/),
                    868: and create subdirectories for individual VMs in it
                    869: (for example ~/nono/luna88k/).</q>
                    870: 
                    871: <li>以下のリンクから liveimage-luna88k-raw-YYYYMMDD.img.gz
                    872: をダウンロードして展開し、
                    873: VM ディレクトリ ~/nono/luna88k/ に置きます。
                    874: <q>Download liveimage-luna88k-raw-YYYYMMDD.img.gz from the following link,
                    875: extract it and place it in the VM directory, ~/nono/luna88k/.</q>
                    876: <blockquote>
                    877: <a href="http://www.nk-home.net/~aoyama/liveimage/"
                    878: >http://www.nk-home.net/~aoyama/liveimage/</a>
                    879: </blockquote>
                    880: 
                    881: <li>以下の内容の設定ファイル nono.cfg を VM ディレクトリ ~/nono/luna88k/
                    882: に作成します。
                    883: ここでは説明を簡単にするためネットワークなしにしていますが、
                    884: ネットワーク設定は必要に応じて行ってください。
                    885: <q>Create a configuration file nono.cfg in the VM directory, ~/nono/luna88k/,
                    886: with following contents.
                    887: By the way, to simplify the explanation, we assume there is no network here.
                    888: However, please configure the network if necessary.</q>
                    889: <blockquote class="file"><pre>
                    890: vmtype = luna88k
                    891: spc0-id6-image = hd,liveimage-luna88k-raw-20210614.img
                    892: hostnet-driver = none
                    893: </pre></blockquote>
                    894: 
                    895: <li><tt>nono -c ~/nono/luna88k</tt> で起動します
                    896: (VM ディレクトリに自動的に NVRAM.DAT が作られます)。
                    897: <q>Run as <tt>nono -c ~/nono/luna88k</tt>.
                    898: (NVRAM.DAT will be created automatically in the VM directory)</q>
                    899: <li>Emulated ROM Monitor が起動するので、
                    900: 初回は以下のように入力すると OpenBSD が起動します。
                    901: <q>The emulated ROM Monitor will be executed.
                    902: Then, only for the first time,
                    903: entering the following can boot OpenBSD.</q>
                    904: <blockquote><pre>
                    905: nvram boot_filename boot&#x23ce;
                    906: y
                    907: b&#x23ce;
                    908: </pre></blockquote>
                    909: 画面はこんな感じのはずです (太字が入力部分)。
                    910: <q>You will see a screen like this.  The bold text indicates
                    911: the characters you need to enter.</q>
                    912: <blockquote class="file"><pre>
                    913: NONO 0.2.0 Emulated ROM Monitor for LUNA88K
                    914: 
                    915: ** NVRAM Initialized.
                    916: 
                    917: N&gt;<b>nvram boot_filename boot&#x23ce;</b>
                    918: Update boot_filename : "vmunix" -&gt; "boot" (Y/[N]):<b>y</b>
                    919: Updated
                    920: N&gt;<b>b&#x23ce;</b>
                    921: </pre></blockquote>
                    922: この内容は NVRAM.DAT に記録されているので次回以降は直接 OpenBSD が起動します。
                    923: <q>The information you have just entered is recorded in the NVRAM,
                    924: so next time it boots OpenBSD automatically.</q>
                    925: 
                    926: <li>終了する時は root
                    927: ユーザで &ldquo;<tt>shutdown -p now</tt>&rdquo; を実行してください。
                    928: LUNA88K はソフトウェアから電源オフでき、
                    929: VM の電源オフで nono も終了します。
                    930: <q>To quit, type &ldquo;<tt>shutdown -p now</tt>&rdquo; as the root user.
                    931: LUNA88K can be powered off by software,
                    932: and nono will terminate when the VM is powered off.</q>
                    933: </ol>
                    934: </div>
                    935: 
                    936: 
1.1       root      937: 
1.1.1.8   root      938: <a name="network"></a>
1.1.1.9   root      939: <h4>ネットワーク設定例 <q>Example of network setup</q></h4>
1.1       root      940: <div class=main>
1.1.1.9   root      941: wm0 を持つ NetBSD ホストに tap(4) デバイスを用いて
                    942: nono のゲスト OS を接続する場合の設定例です。
                    943: <ol>
                    944: <li>
                    945: 設定ファイル nono.cfg に以下の行を追加します
                    946: (と言いつつ NetBSD では書かなくてもデフォルトでこの動作になりますが)
                    947: <q>Add the following line to configuration file, nono.cfg.
                    948: (Although you don't need to write it since these are default behavior
                    949: on NetBSD)</q>
1.1       root      950: <blockquote class="file"><pre>
1.1.1.9   root      951: hostnet-driver = tap
                    952: hostnet-tap-devpath = auto
1.1       root      953: </pre></blockquote>
1.1.1.9   root      954: 
1.1.1.5   root      955: <li>デフォルトでは /dev/tap は一般ユーザからアクセスできないので、
                    956: chmod で適当にパーミッションを与えます。
                    957: 番号の付いていないほうの /dev/tap だけでいいです。
                    958: sysinst 等で OS をアップグレードするとパーミッションが 600
                    959: に戻るのがハマりポイントです。
1.1.1.9   root      960: <q>By default, /dev/tap is only accessible to privileged user.
                    961: You need to chmod /dev/tap (without unit number) appropriately.
                    962: Note that upgrading using sysinst always reset the permission to 600.
                    963: </q>
1.1.1.5   root      964: 
                    965: <li>bridge(4) インタフェースを作成し、
1.1.1.9   root      966: ホストの外部(物理)インタフェースをブリッジに追加しておきます。
1.1.1.5   root      967: <q>Create a bridge(4) interface, and
                    968: add your physical interface to the bridge.</q>
1.1       root      969: <blockquote class="cons"><pre>
1.1.1.5   root      970: # ifconfig bridge0 create
1.1       root      971: # brconfig bridge0 add wm0
                    972: </pre></blockquote>
1.1.1.9   root      973: 常用するなら /etc の設定ファイルに書いておきましょう。
                    974: <q>If you use it regularly,
1.1.1.5   root      975: you can put configuration file into /etc.</q>
                    976: <blockquote>
                    977: /etc/ifconfig.bridge0
                    978: <pre class=file>
                    979: create
                    980: up
                    981: !/sbin/brconfig $int add wm0
                    982: </pre>
                    983: <pre class=cons>
                    984: # /etc/rc.d/network restart
                    985: </pre>
                    986: </blockquote>
                    987: 
                    988: <li>
                    989: 一般ユーザに戻って、
                    990: VM ディレクトリかその親ディレクトリに
                    991: 次のような 2つのスクリプトを用意します。
1.1.1.9   root      992: nono は tap(4) をオープンし、
                    993: そのデバイス名を引数にこれらのスクリプトを呼びます。
1.1.1.5   root      994: sudo の設定は別途行ってください。
                    995: <q>Return to non-privileged user, and
                    996: create following two scripts in the VM directory or its parent directory.
1.1.1.9   root      997: nono will open tap(4) and
                    998: invoke these scripts with the name of the device as an argument.
1.1.1.5   root      999: In addition, you need to set up sudo separately.</q>
1.1       root     1000: <blockquote>
                   1001: nono-ifup
                   1002: <pre class=file>
                   1003: #!/bin/sh
1.1.1.5   root     1004: sudo /sbin/ifconfig $1 up
                   1005: sudo /sbin/brconfig bridge0 add $1
1.1       root     1006: </pre></blockquote>
                   1007: 
                   1008: <blockquote>
1.1.1.5   root     1009: nono-ifdown
1.1       root     1010: <pre class=file>
                   1011: #!/bin/sh
1.1.1.5   root     1012: sudo /sbin/brconfig bridge0 delete $1
                   1013: sudo /sbin/ifconfig $1 down
                   1014: </pre></blockquote>
                   1015: 
                   1016: <blockquote class="cons"><pre>
                   1017: % chmod +x nono-ifup nono-ifdown
1.1       root     1018: </pre></blockquote>
                   1019: 
1.1.1.5   root     1020: <li>nono を起動し、
                   1021: メニューの「モニタ &gt; ホスト &gt; ホストネットワーク」を開いて
1.1.1.9   root     1022: HostNet Driver: tap になっていれば動いてるはずです。
1.1.1.5   root     1023: <q>Run nono,
                   1024: and open "Monitor &gt; Host &gt; Host Network" window from menu.
1.1.1.9   root     1025: It's OK if you can see "HostNet Driver: tap".</q>
1.1.1.5   root     1026: 
                   1027: </ol>
                   1028: 
1.1       root     1029: </div>
                   1030: 
                   1031: 
1.1.1.8   root     1032: <a name="changes"></a>
1.1.1.2   root     1033: <h4>変更履歴 <q>Changes</q></h4>
                   1034: <div class="main">
                   1035: See <a href="changes.html">changes.html</a>.
                   1036: </div>
                   1037: 
1.1.1.10! root     1038: <a name="migrate"></a>
        !          1039: <h4>過去のバージョンからの移行方法 <q>How to migrate from old versions</q></h4>
        !          1040: <div class="main">
        !          1041: バージョンアップに伴い設定ファイル等に非互換が発生する場合があります。
        !          1042: その場合は以下の移行方法を参照して設定ファイル等を更新してください。
        !          1043: <q>Some versions may have incompatibilities in the configuration files, etc.
        !          1044: In such case, you may need to upgrade it by referring the following link.</q>
        !          1045: <ul>
        !          1046: <li><a href="upgrade-0.2.0.html">From ver 0.1.x to ver 0.2.0</a>
        !          1047: </ul>
        !          1048: </div>
1.1.1.2   root     1049: 
1.1.1.8   root     1050: <a name="license"></a>
1.1.1.2   root     1051: <h4>ライセンス <q>License</q></h4>
                   1052: <div class="main">
                   1053: See <a href="nono-license.txt">nono-license.txt</a>.
                   1054: </div>
                   1055: 
                   1056: 
1.1.1.4   root     1057: <h4>連絡先 <q>Contact us</q></h4>
                   1058: <div class="main">
                   1059: バグ報告などは以下にお願いします。日本語でおk。
                   1060: <q>If you find any problems, please let me know.
                   1061: You may write in English.</q><br>
                   1062: <a href="https://github.com/isaki68k/nono-issue/issues"
                   1063: >https://github.com/isaki68k/nono-issue/issues</a>
                   1064: </div>
                   1065: 
                   1066: 
1.1.1.2   root     1067: <h4>パッチの提供について <q>About contributes</q></h4>
                   1068: <div class="main">
                   1069: パッチを提供してくださる場合は以下に同意したものとします。
                   1070: <q>If you provide a patch to nono, you must agree to the following conditions:
                   1071: </q>
                   1072: <ul>
                   1073: <li>成果物が nono のライセンスに従って運用あるいは配布されること。
                   1074: <q>All your work are operated or distributed under the nono license.</q>
                   1075: <li>ライセンスが将来変わる可能性があること。
                   1076: <q>The license may be changed in the future.</q>
                   1077: <li>著作部分に関して著作者人格権を行使しないこと。
                   1078: <q>Do not exercise your author's rights.</q>
                   1079: </ul>
                   1080: <ul>
                   1081: </div>
                   1082: 
                   1083: 
                   1084: <h4>Acknowledgements</h4>
                   1085: <div class="main">
                   1086: nono は以下の広告条項を含むソースコードを利用しています。
                   1087: <q>nono uses source code with the following advertising clause.</q>
                   1088: <blockquote>
                   1089: This product includes software developed by Gordon Ross<br>
                   1090: This product includes software developed by the University of California, Lawrence Berkeley Laboratory.<br>
                   1091: </blockquote>
                   1092: </div>
                   1093: 
1.1       root     1094: 
                   1095: <hr>
1.1.1.2   root     1096: nono project
1.1       root     1097: </body>
                   1098: </html>

unix.superglobalmegacorp.com

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