--- nono/doc/index.php 2026/04/29 17:04:54 1.1.1.8 +++ nono/doc/index.php 2026/04/29 17:05:04 1.1.1.11 @@ -4,16 +4,10 @@ Licensed under nono-license.txt --> 1) - get_version($_SERVER['argv'][1]); - -function get_version($filename) -{ - global $nono_ver; - - $fp = fopen($filename, "r"); + $fp = fopen("../lib/header.h", "r"); if ($fp !== false) { while (($buf = fgets($fp)) !== false) { if (preg_match("/NONO_MAJOR_VER\s+\((\d+)\)/", $buf, $m)) { @@ -31,13 +25,12 @@ function get_version($filename) } fclose($fp); - $nono_ver = "${nono_major}.${nono_minor}.${nono_patch} (${nono_date})"; + $nono_ver = "${nono_major}.${nono_minor}.${nono_patch}"; } -} ?> -

nono

+

nono ()

nono は NetBSD とかで動作する OMRON LUNA-I や LUNA88K とかのエミュレータです。 nono is OMRON LUNA-I and LUNA88K emulator runs on NetBSD and etc. @@ -46,81 +39,20 @@ nono は NetBSD とかで動作する OM

Index of this page:

-ver 0.1.x から ver 0.2.0 への移行方法 How to migrate from ver 0.1.x to ver 0.2.0
-ビルド方法 How to build
-コマンドラインオプション Command Line Option
-設定 Configuration
-VM について About VM
-実行してみる Try it
-ネットワーク設定例 Example of network setup
-変更履歴 Changes
-連絡先、ライセンス等 Contact, License, etc
-
- - -

ver 0.1.x から ver 0.2.0 への移行方法 How to migrate from ver 0.1.x to ver 0.2.0

-
-ver 0.1.x と ver 0.2.0 には2つの非互換があり、そのままでは以前と同じ動作はしません。 -There are two incompatibilities between ver 0.1.x and ver 0.2.0, -so it will not work the same as before. - -
-
1. 設定ファイルのネットワーク関連項目の変更 -Configuration changes about network -
ver 0.1.x の以下の2つの設定項目は廃止になりました。 -These two items in 0.1.x have been removed. -
-
-ethernet-hostdriver     = (default: none)
-ethernet-hostdevice     = (default: auto)
-
-代わりに次の5つが追加されています。 -設定方法はこのドキュメントの設定の章を参照してください。 -ホストドライバは以前はデフォルトでオフでしたがデフォルトでオン(auto)に変更になっています。 -Instead, the following five items have been added. -See Configuration section in this document -to setup. -The host driver used to be disabled by default before, -but now it is enabled(auto) by default. -
-hostnet-driver          = (default: auto)
-hostnet-afpacket-ifname = (default: auto)
-hostnet-bpf-ifname      = (defualt: auto)
-hostnet-tap-devpath     = (default: auto)
-hostnet-fallback        = (default: 0)
-
-
- -
2. LUNA88K の NVRAM サポートについて About NVRAM in LUNA88K -
-LUNA88K では本来 PROM が NVRAM の情報を元に起動先を決定しますが、 -nono ver 0.1.x は NVRAM を (ファイルを作るだけで) 一切サポートしておらず、 -OpenBSD/luna88k を起動するために起動先ファイル名を boot と決め打ちしていました。 -ver 0.2.0 で NVRAM をサポートしたため、 -内蔵互換 ROM で起動するとまず NVRAM がチェックサム不正のため初期化されます。 -更に初期化された NVRAM の起動ファイル名は vmunix であるため、 -そのままでは OpenBSD/luna88k を起動できません。 -Emulated ROM Monitor が起動したら以下のように入力してください。 -On LUNA88K, originally PROM determines the boot target by referring NVRAM. -Since nono ver 0.1.x didn't support NVRAM (though it created NVRAM.DAT file), -it used hard-coded boot filename "boot" in order to boot OpenBSD/luna88k. -nono ver 0.2.0 supports NVRAM, so at first it initializes the NVRAM -due to checksum mismatch. -In addition, the boot filename in the initialized NVRAM is "vmunix", -so it cannot boot OpenBSD/luna88k. -To boot it, enter as following on Emulated ROM Monitor. -
-nvram boot_filename boot[Enter]
-y
-b[Enter]
-
-この内容は NVRAM.DAT に記録されるので次回以降は直接 OpenBSD が起動します。 -The information you have just entered is recorded in the NVRAM, -so next time it boots OpenBSD automatically. +1. ビルド方法 How to build
+2. コマンドラインオプション Command Line Option
+3. 設定 Configuration
+4. VM について About VM
+5. 実行してみる Try it
+6. ネットワーク設定例 Example of network setup
+7. 過去のバージョンからの移行方法 +How to migrate from old versions
+8. 変更履歴 Changes
+9. 連絡先、ライセンス等 Contact, License, etc
-

ビルド方法 How to build

+

1. ビルド方法 How to build

ビルドには以下が必要です。 NetBSD(pkgsrc) なら wxWidgets は pkgsrc/x11/wxGTK30 です @@ -141,8 +73,8 @@ For clang, 7.0 and 8.0 works at least.)

(NetBSD 以外でのビルドはサポートしていませんが) -Ubuntu 18.04 ではたぶん以下のパッケージが必要です。 -You may need the following packages on Ubuntu 18.04 +Ubuntu 20.04 ではたぶん以下のパッケージが必要です。 +You may need the following packages on Ubuntu 20.04 (though we won't support non-NetBSD platform).

@@ -187,7 +119,7 @@ the command line executable. -

コマンドラインオプション Command Line Option

+

2. コマンドラインオプション Command Line Option

file", <<<_EOM_ -ホストの file をロードして実行します。 -file が相対パスの場合カレントディレクトリからのパスになります。 -ファイルが gzip 圧縮されていれば自動的に展開します。 -(展開後の) ファイル形式は a.out (OMAGIC) か ELF で、 -実際にはブートローダとカーネル程度しか想定していません。 -設定ファイルの prom-image とともに指定されると --A のほうが優先します。 -Loads and executes host's file. -If file is relative path, -it is path from the current directory. -If the file is gzip'd, it is automatically extracted. -The supported file format (after extracting) is a.out (OMAGIC) or ELF. -Actually, it only assumes bootloaders or kernels. -If this option is specified at the same time as -prom-image in configuration file, -this option preceeds. - -_EOM_ -); - option_item("-c vmpath", <<<_EOM_ VM ディレクトリ/設定ファイルを指定します。 vmpath がディレクトリならそのディレクトリの中の nono.cfg @@ -243,8 +154,7 @@ make the specified file a configuration And in both cases, make the directory where that file is located a VM directory. If -c option is omitted, -vmpath is considered as the current directory. - +vmpath is considered as the current directory. _EOM_ ); @@ -253,8 +163,7 @@ option_item("-f", <<<_EOM_ GUI なら起動後にもメニューから変更できますが、その初期値を変えるだけです。 Boot as the fast mode. You can change this mode on GUI menu after boot, -and the option only changes its initial state. - +and the option only changes its initial state. _EOM_ ); @@ -269,8 +178,7 @@ GUI Only. Specifies the initial fontsize on all sub windows. height is one of 12 or 16. The default value is 12. -You can change this value on GUI menu after boot. - +You can change this value on GUI menu after boot. _EOM_ ); @@ -309,8 +217,27 @@ option_item("-V name=value 設定ファイルで指定した name=configvalue の代わりに このオプションの name=value を適用します。 Use this name=value -instead of name=configvalue specified in configuration file. - +instead of name=configvalue specified in configuration file. +_EOM_ +); + +option_item("-X file", <<<_EOM_ +ホストの file をロードして実行します。 +file が相対パスの場合カレントディレクトリからのパスになります。 +ファイルが gzip 圧縮されていれば自動的に展開します。 +(展開後の) ファイル形式は a.out (OMAGIC) か ELF で、 +実際にはブートローダとカーネル程度しか想定していません。 +設定の prom-imageluna-dipsw1 の内容(後述)によらず +内蔵の互換 PROM で起動し、直ちにホストファイルを実行します。 +Loads and executes host's file. +If file is relative path, +it is path from the current directory. +If the file is gzip'd, it is automatically extracted. +The supported file format (after extracting) is a.out (OMAGIC) or ELF. +Actually, it only assumes bootloaders or kernels. +Regardless of prom-image and luna-dipsw1 configuration +(see below), +the internal emulated PROM loads and executes the host file immediately. _EOM_ ); ?> @@ -357,6 +284,11 @@ option_dev("-L name1=level1file", <<<_EOM_ +-X オプションと同様ですが、PROM のプロンプトで停止します。 +_EOM_ +); + option_dev("-M name[,name2,...]", <<<_EOM_ 起動時に表示するモニタウィンドウを指定します。 カンマで区切って複数指定することも出来ます。 @@ -371,7 +303,7 @@ _EOM_ -

設定 Configuration

+

3. 設定 Configuration

VM の設定ファイルはその VM ディレクトリ内の nono.cfg (または -c で指定したファイル) です。 @@ -383,9 +315,8 @@ VM の設定ファイルはその VM デ (or the file specified by -c option) in the VM directory. Its syntax is key = value format, one per line. White spaces before and after key and value are ignored. -And, blank lines, lines beginning with "#", and -lines with unrecognized key are also ignored. - +Blank lines, lines beginning with "#", and +lines with unrecognized key are also ignored.

設定項目は次の通りです。 The configuration items are: @@ -400,8 +331,7 @@ config_item("vmtype = string", << VM 種別を以下のいずれかから指定します。 省略不可です。 Specifies the VM type from the following. -This field is mandatory. - +This field is mandatory. "; + print ""; + print "
 luna … LUNA-I
luna88k … LUNA88K @@ -419,8 +349,7 @@ If real, synchronize with the r if virtual, synchronize with the virtual time. The default is real. This feature is under experimentation and may be changed in the future -without notice. - +without notice. _EOM_ ); @@ -443,6 +372,20 @@ config_item("ethernet-macaddr = strin _EOM_ ); +config_item("hostkbd-input = string", <<<_EOM_ +ホストキーボードの入力モードを指定します。 +char ならキャラクタ入力モード、 +jp なら日本語キーボードモードです。 +デフォルトは char です。 +詳細は VM について の章を参照してください。 +Specifies the input mode of the host keyboard. +char means the character mode, +jp means the Japanese keyboard mode. +The defualt is char. +See About VM for details. +_EOM_ +); + config_item("hostnet-driver = string", <<<_EOM_ イーサネットデバイスのホスト側ドライバを指定します。 afpacketbpftap のうち @@ -524,8 +467,7 @@ In all cases, you need to prepare two sh nono-ifup and nono-ifdown in the VM directory or its parent directory. Even if you don't have anything to do in these scripts, -you need to prepare empty scripts that will terminate successfully. - +you need to prepare empty scripts that will terminate successfully. _EOM_ ); @@ -542,6 +484,43 @@ The default is 0. _EOM_ ); +config_item("luna-adjust-misused-epoch = integer", <<<_EOM_ +LUNA で誤った RTC epoch を採用している OS 向けに RTC +エミュレーションを補正するかどうかを +指定します。0 なら補正をしません(実機と同じ動作)、 +1 なら補正します(現実世界と同じ動作)。 +デフォルトは 1 で、通常 1 のままで使用して問題ありません。 + +Specifies whether nono corrects RTC emulation for OSes +that adopts wrong RTC epoch on LUNA. +0 means making no correction +(this is the same behavior as the actual machine). +1 means making correction +(this is the same behavior as the real world). +The default is 1. Normally, leave it 1. +

+LUNA で採用している RTC (MK48T02) は2桁で保持している年の値が +4 で割り切れる年をうるう年とする仕様です。 +ところが NetBSD/luna68k、OpenBSD/luna88k など現存してソースが確認できる OS +はいずれもこの RTC の年の値を 1970年からの経過年として使用しています +(LUNA が本来どういう仕様だったのかは分かりませんが、 +異なる OS を起動し直すたびに RTC epoch をずらす運用は考えにくいので +おそらくすべての OS で同じだと思います)。 +例えば1970年はうるう年ではないため 2月28日の翌日は 3月1日ですが、 +MK48T02 的には 00年であるためうるう年と認識し 2月28日の翌日が2月29日になります。 +このように、実機の RTC は4年のうち約2年間、1日ずれた日付を指しているようです。 +しかしながら、RTC の時刻は OS 起動時に一度読んだ後は基本的に参照しない上、 +今時必要なら NTP で時間を合わせるため、 +実機でも問題が顕在化することはまずないと思います。 +nono の場合は実機と異なり、アプリケーション実行中しか RTC が進まないため、 +補正がない場合の動作が問題になるのは +nono を起動したまま偶数年の2月末日から日付をまたいで、 +かつ nono を起動したまま OS を再起動して NTP などで時刻修正を行わなかった時 +だけだと思います。 +このオプションはほぼ開発者向けの動作確認用です。 +_EOM_ +); + config_item("luna-dipsw1 = string", <<<_EOM_ 本体前面 DIPSW#1-1..#1-8 の内容を指定します。 "0" を DOWN、"1" を UP として、 @@ -583,8 +562,7 @@ DIPSW#2 が "11111111" なら if the DIPSW#2 is "11111111". Otherwise, the bootloader will enter interactive mode. (I doubt that they actually wanted to switch with only #8) - - + _EOM_ ); @@ -595,8 +573,7 @@ config_item("monitor-rate = integerSpecifies refresh rate of all text monitor windows in Hz. It ranges from 1 to 60. The default is 20Hz. You can change this value on GUI menu after boot, -but unlike this configuration value, there are only a few preset choices. - +but unlike this configuration value, there are only a few preset choices. _EOM_ ); @@ -645,8 +622,7 @@ The default value is empty. nono 内蔵のなんちゃって下位互換 ROM で起動します。 If you does not have the real LUNA machines, you can boot with nono's internal downward compatible emulated ROM -if you set this field empty (or leave it as the default). - +if you set this field empty (or leave it as the default).

LUNA-I 実機を持っている場合は ROM ファイルを指定することで実機 ROM で起動できます。 @@ -658,16 +634,14 @@ you can boot with the real ROM spcifying The ROM file is extracted from 0x41000000-0x4101ffff (128KB) of the real LUNA-I machine. For now, only V4.22 (Thu Jul 27 11:45:42 1989) is supported. -I have no idea about other ROMs. - +I have no idea about other ROMs.

LUNA88K 実機の場合は 0x41000000-0x4103ffff (256KB) を保存したものです。 今のところ ROM は version 1.20 のみサポートしています。 For LUNA88K, the ROM file is extracted from 0x41000000-0x4103ffff (256KB). -For now, only version 1.20 is supported. - +For now, only version 1.20 is supported. _EOM_ ); @@ -687,8 +661,7 @@ If larger, you can specify up to 255MB i By the way, NetBSD/luna68k needs at least 8MB to boot. On LUNA88K, the default is 64MB. If the size is less than 64MB, you can specify in 16MB unit. -If larger, you can specify up to tentative 255MB in 1MB unit. - +If larger, you can specify up to tentative 255MB in 1MB unit. _EOM_ ); @@ -698,37 +671,53 @@ config_item("show-statuspanel = integ 起動後はメニューから変更可能です。 Specifies whether to display the status panel or not. If 0, it is hidden; if 1, it is shown. -You can change it on GUI menu after boot. - +You can change it on GUI menu after boot. _EOM_ ); -config_item("spc0-idN-image = devtype,path", <<<_EOM_ -SCSI デバイスを指定します。N には 0 から 7 が入ります。 -ID 7 は本体が使用しますので指定しないでください。 -値はデバイス種別 devtype とイメージパス path -を ","(カンマ) で区切って並べた形式で、 -今の所デバイス種別 devtype には "hd"(ハードディスク) のみ指定可能です。 -ディスクイメージパスが相対パスなら VM ディレクトリからの相対パスになります。 +config_item("spc0-idN-image = devtype[,path]", <<<_EOM_ +SCSI デバイスとイメージを指定します。キーの N には 0 から 7 が入ります。 +ただし ID 7 は本体が使用しますので指定しないでください。 +値はデバイス種別 devtype とディスクイメージパス path +を ","(カンマ) で区切って並べた形式です。 +デバイス種別 devtype は以下のいずれかです。 -Specifies SCSI device. N is 0 to 7. +Specifies SCSI device and image. N in the key is 0 to 7. But don't specify ID 7 because the host uses it. The value is in a form of device type devtype and -the image path path separated by ","(comma). -For now, only "hd" (hard disk) can be specified for devtype. -If the path is relative path, it is from the VM directory. - +the disk image path path separated by ","(comma). +devtype can be one of the following: +

    +
  • hd … HD drive +
  • cd … CD-ROM drive +
  • mo … MO drive +

-例えば、nono.cfg と同じディレクトリに置いたディスクイメージ luna.img -を使う場合、 -LUNA では通常 ID 6 をプライマリ HDD に割り当てるのでこんな感じになります。 -For example, if you use disk image luna.img placed in the same -directory as nono.cfg, -since LUNA usually assigns ID 6 to the primary HDD, +devtypehd なら path は省略できません。 +devtypecdmo なら path は省略可能です。 +イメージパスが相対パスなら VM ディレクトリからの相対パスになります。 + +If devtype is hd, path cannot be ommitted. +If devtype is cd or mo, path can be ommitted. +If the path is relative path, it is from the VM directory. + +

+例えば、nono.cfg と同じディレクトリに置いた sd0.img を +起動 HDD ディスクイメージとして使い +(LUNA では通常 ID 6 をプライマリ HDD に割り当てます)、 +ID 5 に同じディレクトリの install.iso をセットした CD ドライブを、 +ID 4 に起動時メディアなしの MO ドライブを接続する場合は次のようになります。 +For example, if you use a harddisk image sd0.img placed in the same +directory as nono.cfg +(LUNA usually assigns ID 6 to the primary HDD), +ID 5 for CD-ROM drive that loads install.iso in the same directory, +and ID 4 for MO drive without media on boot, write as following:

-spc0-id6-image = hd,luna.img
+spc0-id6-image = hd,sd0.img
+spc0-id5-image = cd,install.iso
+spc0-id4-image = mo
 
_EOM_ ); @@ -742,20 +731,19 @@ config_item("spc0-idN-seektime = Currently, the default value is 0 (This may be something like SSD :-). If you specify about 16 or so, you can feel nostalgic, -but this feature is still unstable. - +but this feature is still unstable. _EOM_ ); -config_item("spc0-idN-writeprotect = integer", <<<_EOM_ -指定の SCSI デバイスへの書き込みを無視するかどうか指定します。 +config_item("spc0-idN-writeignore = integer", <<<_EOM_ +指定の SCSI HD デバイスへの書き込みを無視するかどうか指定します。 0 なら通常動作(書き込みを行う)です。 1 なら書き込みコマンドは成功したように振る舞いますが実際には ディスクイメージに一切書き戻しません。 fsck を気にせずカーネルのデバッグとかを行いたい場合にはどうぞ。 何が起きるか意味が分からない人は指定しないでください。 デフォルトは 0 です。 -Specifies whether nono ignores writing to SCSI devices. +Specifies whether nono ignores writing to SCSI HD devices. 0 means normal operation (writes to the devices). If 1 is specified, nono will not actually write back to the disk image @@ -766,8 +754,23 @@ to the actual disk image. This is useful for kernel debugging because it does not require fsck after the kernel hangs. But don't use this flag if you don't understand this paragraph. -The default value is 0. - +The default value is 0. +

+ちなみに、メディアを書き込み禁止にしたい場合はこれではなく、 +イメージファイルの書き込み権を落としてください。 +By the way, if you want to make the media write-protected, +clear the write permission from the image file +(instead of this setting). +_EOM_ +); + +config_item("spc0-idN-writeprotect = integer", <<<_EOM_ +古いオプションです。 +代わりに spc0-idN-writeignore を使ってください。 +このオプションは開発用です。 +Obsolete. +Use spc0-idN-writeignore instead. +This option is for developers. _EOM_ ); ?> @@ -776,16 +779,16 @@ _EOM_ -

VM について About VM

-
ステータスパネル Status Panel
+

4. VM について About VM

+
4.1. ステータスパネル Status Panel
ステータスパネル中央にあるパフォーマンスメータのアイコンは 高速モードの状態を表示しています。 ダブルクリックすると高速/等速モードの指定を切り替えることができます。 The performance meter's icon at the center of the status panel shows the VM speed status. -You can switch full speed / syncronized mode by double-clicking on this icon. - +You can switch full speed / syncronized mode by double-clicking +on this icon.
@@ -796,30 +799,370 @@ You can switch full speed / syncronized the user has specified syncronized mode and the VM is running in synchronized mode.
- + -三角2つの場合、ユーザが高速モードを指定していて、等速モードで実行中です。 -キー入力中(後述)または VM がアイドル状態(m68k の STOP 命令)などで起きます。 +三角3つの場合、ユーザが高速モードを指定していて、高速モードで実行中です。 高速モード中はパーセントではなく何倍速で動作しているかを表します。 -When an icon (two triangles) is displayed, +When an icon (three triangles) is displayed, the user has specified full speed mode and -the VM is running in synchronized mode. -This will happen during keystrokes (see below) or when the VM is idle -(STOP instruction on m68k). - +the VM is running in full speed mode.
- + -三角3つの場合、ユーザが高速モードを指定していて、高速モードで実行中です。 -When an icon (three triangles) is displayed, +三角2つの場合、ユーザが高速モードを指定していて、等速モードで実行中です。 +以下のいずれかの状態で起きます。 +When an icon (two triangles) is displayed, the user has specified full speed mode and -the VM is running in full speed mode. +the VM is running in synchronized mode. +This will happen when any of the following occurs: +
    +
  • キー押下中(後述)あるいはキーボードブザー発声中 +When any keys are pressed (see below), +or the keyboard buzzer is sounding. +
  • STOP instruction on m68k. +
  • pseudo STOP state on m88k. +
-
キー入力 Key input
+
4.2. キー入力モード Key input mode
+
+LUNA のキーボードは通常日本語キーボードです +(英語キーボードも存在するようですが…)。 +そのため、ホストが日本語キーボードの場合とそうでない場合のために +2つの入力モードを用意しています。 +どちらも一長一短があります。 +Most LUNAs have the Japanese keyboard +(though I ever heard there are the US keyboard...). +So nono provides two input modes +for Japanese keyboard users and non Japanese keyboard users. +Both have advantages and disadvantages. +

+JP キーボードモードは、ホストが日本語キーボードであることを前提に +対応するキーの押下、開放をその都度 VM に入力します。 +メリットとしては動作が実機に近くなり、 +特にキーリピート(をハードウェアが行わないこと)も忠実に再現可能です。 +デメリットは ALT + TAB やアクセラレータキーでメニューを開く場合などに +キー入力が残ることがあることです +(キーを押した後でフォーカスが外れるとキーを離したことが +アプリケーションに通知されないため)。 +またホストが日本語キーボードでなければ使いづらいです。 +JP keyboard mode assumes that the host uses the Japanese keyboard. +Each time you presses and releases a key, +nono sends the corresponding key-pressed or key-released to the VM. +One advantage is that it's close to the real machine behavior, +and another is that it can reproduce +the LUNA keyboard itself does not perform a key repeat. +On the other hand, +one disadvantage is that key sometimes remains pressed, +especially when you enter ALT + TAB to switch the application +or enter accelerator key to open the menu +(If the application loses the focus after the key is pressed, +the application will not receive the subsequent key release). +And another disadvantage is that +it will be hard to use for non Japenese keyboard users. +

+一方、キャラクタ入力モードは、ホストから入力された「文字」を +再び LUNA のキーコードに解釈し直して VM に入力するモードです。 +例えばゲスト OS に "@" を入力したい場合、 +US キーボードなら [SHIFT] + [2] を、 +JP キーボードなら [@] キーを押しますが、 +どちらも VM には [@] キーの押下、[@] キーの開放が連続して送られます。 +US キーボードで [SHIFT] を押したことは通知されません。 +逆に "=" を入力したい場合、 +US キーボードなら [=] キーを、 +JP キーボードなら [SHIFT] + [-] を押しますが、 +どちらも VM には +[SHIFT]押下 → [-]押下 → [-]開放 → [SHIFT]開放のシーケンスが送られます。 +このようにホストキーボードのレイアウトによらず、 +入力したい文字が入力できるようになり、 +通常のタイピングで困ることはないと思います。 +デメリットは、通常の文字入力以外のタイピングはほぼ出来ないことです。 +[SHIFT] キーを押したままにすることや、 +文字が入力できないキーの組み合わせは入力出来ません。 +もう一つのデメリットはキーリピート(をハードウェアが行わないこと)が再現できず、 +ホスト側のキーリピートが効いてしまうことです +(本来キーリピートが動作しない ROM やブートローダでもキーリピートが効くことは +一般ユーザからはメリットに感じられるかも知れませんが)。 +In contrast, in the character mode, when you type a character, +nono re-converts it into the LUNA's key code and sends it to the VM. +For example if you want to type "@" in the guest OS, +you would press [SHIFT] + [2] on the US keyboard or [@] on the JP keyboard. +In both cases, the sequence of +[@]-pressed and [@]-released will be sent to the VM. +Note that the fact that you pressed [SHIFT] key on the US keyboard +will not be sent to the VM. +Another example, if you want to type "=", +you would press [=] on the US keyboard or [SHIFT] + [-] on the JP keyboard. +In both cases, the sequence of +[SHIFT]-pressed, [-]-pressed, [-]-released, and [SHIFT]-released +will be sent to the VM. +Thus, you can type what character you want to type, +regardless of your keyboard layout. +Of course there are some disadvantages. +Firstly, it's hard to type any special characters, +for example, you can not type any key conbinations +that don't generate a character. +Or you can not hold [SHIFT] key pressed. +Secondly, the key repeat works (by the host), +even though it should not work as a correct emulation +(Although some of you may feel it an advantage). +

+ +
4.3. キャラクタ入力モードのキーコード対応表 +Keycode table in the character mode
+
+キャラクタ入力モードでの、ホストから入力した文字と +VM に送信されるキーの対応は次の通りです。 +ファンクションキーとカーソルキーは文字ではありませんが +特別に対応しています。 +HostChar が N/A で示してあるキーはソフトウェアキーボードからのみ入力できます。 +The following table shows the correspondence between +the character that typed from the host +and the key that will be sent to the VM. +nono can recognize the function keys and arrow keys. +The keys where the HostChar is N/A can +only be typed from the software keyboard window. +

+

+ +a 〜 z [A] 〜 [Z] + 09 [0] 〜 [9] + SPACE [SPACE] + - [-] + ^ [^] + \ [\] + @ [@] + [ [[] + ; [;] + : [:] + ] []] + , [,] + . [.] + / [/] + ^@ [CTRL]+[@] + ^A^Z [CTRL]+[A] 〜 [CTRL]+[Z] + ^[ [ESC] + ^\ [CTRL]+[\] + ^] [CTRL]+[]] + ^^ [CTRL]+[^] + ^_ [CTRL]+[_] + ^H [BS] + ^I [TAB] + ^M [Enter] + + AZ [SHIFT]+[A] 〜 [SHIFT]+[Z] + ! [SHIFT]+[1] + " [SHIFT]+[2] + # [SHIFT]+[3] + $ [SHIFT]+[4] + % [SHIFT]+[5] + & [SHIFT]+[6] + ' [SHIFT]+[7] + ( [SHIFT]+[8] + ) [SHIFT]+[9] + = [SHIFT]+[-] + ~ [SHIFT]+[^] + | [SHIFT]+[\] + ` [SHIFT]+[@] + { [SHIFT]+[[] + + [SHIFT]+[;] + * [SHIFT]+[:] + ] [SHIFT]+[]] + < [SHIFT]+[,] + > [SHIFT]+[.] + ? [SHIFT]+[/] + _ [SHIFT]+[_] + + F1 〜 F10 [PF1] 〜 [PF10] + ↑ [↑] + ← [←] + → [→] + ↓ [↓] + N/A [確定] + N/A [前面] + N/A [CAP] + N/A [かな] + N/A [変換] + N/A [消去] + N/A [呼出] + N/A [文節←] + N/A [文節→] + N/A Numpad[0]〜[9] + N/A Numpad[+] + N/A Numpad[-] + N/A Numpad[*] + N/A Numpad[/] + N/A Numpad[=] + N/A Numpad[.] + N/A Numpad[Enter] +__EOM__; + $table = array(); + $table[0] = array(); + $table[1] = array(); + $table[2] = array(); + $i = 0; + foreach (split("\n", $str) as $s) { + if ($s == "") { + $i++; + continue; + } + $s = preg_replace("/^\t+/", "", $s); + list ($hkey, $gkey) = preg_split("/\t+/", $s); + $table[$i][] = array($hkey, $gkey); + } + + for ($j = 0; $j < count($table); $j++) { + switch ($j) { + case 0: $classname = "left"; break; + case 1: $classname = "middle"; break; + case 2: $classname = "right"; break; + } + print "\n"; + print ""; + print ""; + print "
HostChar"; + print "GuestKey\n"; + for ($i = 0; $i < count($table[$j]); $i++) { + list ($h, $g) = $table[$j][$i]; + print "
{$h}"; + print "${g}\n"; + } + print "
\n"; + } +?> +
+
+ +
4.4. JP キーボードモードのキーコード対応表 +Keycode table in the JP keyboard mode
+
+JP キーボードモードでの、ホストキーと VM に送信されるキーの対応は次の通りです。 +HostKey が N/A で示してあるキーは +ソフトウェアキーボードからのみ入力出来ます。 +The following table shows the correspondence between +the host key and the guest key. +The keys where the HostKey is N/A can only be enter from +the software keyboard window. +

+

+\n"; + print "
HostKey"; + print "GuestKey\n"; + for ($i = 0; $i < count($table[$j]); $i++) { + list ($h, $g) = $table[$j][$i]; + print "
{$h}"; + print "${g}\n"; + } + print "
\n"; + } +?> + +

+ +
4.5. キーリピート Key Repeat
LUNA では、キーボードがハードウェア側でキーリピートを行わず、 ソフトウェア(OS など)がキーリピートの処理を行います。 @@ -837,8 +1180,7 @@ VM が高速動作するとキーリピ (ALT + TAB やアクセラレータキーでメニューを開くと起きがちです) 高速モードが抑制されたままということが起きえます。 その場合はソフトウェアキーボードからキー入力を解除するなどしてください。 - -On LUNA, +On LUNA, key repeat is done by software(OS), not by the keyboard hardware. For this reason, key repeat doesn't occur on LUNA's PROM or NetBSD/luna68k's bootloader @@ -853,22 +1195,19 @@ while any keys are pressed. That is why the above-mentioned icon distinguishes them. If keys continue to be pressed for some reasons, the VM also continues to run syncronized mode. -In this case, you can resolve it by using the software keyboard window. - +In this case, you can resolve it by using the software keyboard window.
-

実行してみる Try it

-
NetBSD/luna68k を実行してみる Try NetBSD/luna68k
+

5. 実行してみる Try it

+
5.1. NetBSD/luna68k を実行してみる Try NetBSD/luna68k
つついさんが NetBSD/luna68k 9.2 の liveimage を用意されています。 Tsutsui-san has provided a liveimage of NetBSD/luna68k 9.2.
-
https://twitter.com/tsutsuii/status/1262429647364427783
-
https://twitter.com/tsutsuii/status/1405206240913805313
+
https://twitter.com/tsutsuii/status/1436381589211017217
ここではこれを起動してみます。Let's try it.
@@ -884,8 +1223,8 @@ VM ディレクトリ ~/nono/luna/ に Download imagefile from the following link, extract it and place it in the VM directory, ~/nono/luna/.
-http://teokurebsd.org/netbsd/liveimage/20210614-luna68k/ +http://teokurebsd.org/netbsd/liveimage/20210910-luna68k/
  • 以下の内容の設定ファイル nono.cfg を VM ディレクトリ ~/nono/luna/ @@ -898,7 +1237,7 @@ By the way, to simplify the explanation, However, please configure the network if necessary.
     vmtype = luna
    -spc0-id6-image = hd,liveimage-luna68k-raw-20210614.img
    +spc0-id6-image = hd,liveimage-luna68k-with-packages-20210910.img
     hostnet-driver = none
     
    @@ -924,7 +1263,7 @@ x⏎ You will see a screen like this. The bold text indicates the characters you need to enter.
    -NONO 0.2.0 Emulated ROM Monitor for LUNA-I
    +NONO  Emulated ROM Monitor for LUNA-I
     
     ** NVRAM Initialized.
     
    @@ -954,8 +1293,7 @@ In addition, after the first login, you
     This is because the infamous makemandb(8) runs heavily in the background
     for a looooong time.
     It's very sad to me that these two accidents which are far from the ideal
    -are the first experiences of a newcomer.
    -
    +are the first experiences of a newcomer.
     
     
  • 終了する時は root ユーザで “shutdown -p now” を実行してください。 @@ -967,13 +1305,13 @@ and nono will terminate when the VM is p
  • -
    OpenBSD/luna88k を実行してみる Try OpenBSD/luna88k
    +
    5.2. OpenBSD/luna88k を実行してみる Try OpenBSD/luna88k
    -あおやまさんが OpenBSD/luna88k 6.9 の liveimage を用意されています。 -Aoyama-san has provided a liveimage of OpenBSD/luna88k 6.9. +あおやまさんが OpenBSD/luna88k 7.0-beta の liveimage を用意されています。 +Aoyama-san has provided a liveimage of OpenBSD/luna88k 7.0-beta.
    -
    https://twitter.com/ao_kenji/status/1404784588015112192 +
    https://twitter.com/ao_kenji/status/1439351714033766402
    ここではこれを起動してみます。Let's try it.
    @@ -984,10 +1322,10 @@ and nono will terminate when the VM is p and create subdirectories for individual VMs in it (for example ~/nono/luna88k/). -
  • 以下のリンクから liveimage-luna88k-raw-YYYYMMDD.img.gz +
  • 以下のリンクから liveimage-luna88k-raw-20210918.img.gz をダウンロードして展開し、 VM ディレクトリ ~/nono/luna88k/ に置きます。 -Download liveimage-luna88k-raw-YYYYMMDD.img.gz from the following link, +Download liveimage-luna88k-raw-20210918.img.gz from the following link, extract it and place it in the VM directory, ~/nono/luna88k/.
     vmtype = luna88k
    -spc0-id6-image = hd,liveimage-luna88k-raw-20210614.img
    +spc0-id6-image = hd,liveimage-luna88k-raw-20210918.img
     hostnet-driver = none
     
    @@ -1026,7 +1364,7 @@ b⏎ You will see a screen like this. The bold text indicates the characters you need to enter.
    -NONO 0.2.0 Emulated ROM Monitor for LUNA88K
    +NONO  Emulated ROM Monitor for LUNA88K
     
     ** NVRAM Initialized.
     
    @@ -1052,7 +1390,7 @@ and nono will terminate when the VM is p
     
     
     
    -

    ネットワーク設定例 Example of network setup

    +

    6. ネットワーク設定例 Example of network setup

    wm0 を持つ NetBSD ホストに tap(4) デバイスを用いて nono のゲスト OS を接続する場合の設定例です。 @@ -1075,8 +1413,7 @@ sysinst 等で OS をアップグレー に戻るのがハマりポイントです。 By default, /dev/tap is only accessible to privileged user. You need to chmod /dev/tap (without unit number) appropriately. -Note that upgrading using sysinst always reset the permission to 600. - +Note that upgrading using sysinst always reset the permission to 600.
  • bridge(4) インタフェースを作成し、 ホストの外部(物理)インタフェースをブリッジに追加しておきます。 @@ -1145,21 +1482,33 @@ It's OK if you can see "HostNet Driver:
  • + +

    7. 過去のバージョンからの移行方法 How to migrate from old versions

    +
    +バージョンアップに伴い設定ファイル等に非互換が発生する場合があります。 +その場合は以下の移行方法を参照して設定ファイル等を更新してください。 +Some versions may have incompatibilities in the configuration files, etc. +In such case, you may need to upgrade it by referring the following link. + +
    + -

    変更履歴 Changes

    +

    8. 変更履歴 Changes

    - -

    ライセンス License

    +

    9. 連絡先、ライセンス等 Contact, License, etc

    + +
    9.1. ライセンス License
    - -

    連絡先 Contact us

    +
    9.2. 連絡先 Contact us
    バグ報告などは以下にお願いします。日本語でおk。 If you find any problems, please let me know. @@ -1168,12 +1517,11 @@ You may write in English.
    >https://github.com/isaki68k/nono-issue/issues
    - -

    パッチの提供について About contributes

    +
    9.3. パッチの提供について About contributes
    パッチを提供してくださる場合は以下に同意したものとします。 -If you provide a patch to nono, you must agree to the following conditions: - +If you provide a patch to nono, you must agree to the following +conditions:
    • 成果物が nono のライセンスに従って運用あるいは配布されること。 All your work are operated or distributed under the nono license. @@ -1185,8 +1533,7 @@ You may write in English.
    - -

    Acknowledgements

    +
    9.4. Acknowledgements
    nono は以下の広告条項を含むソースコードを利用しています。 nono uses source code with the following advertising clause.