--- nono/doc/index.html 2026/04/29 17:05:30 1.1.1.19 +++ nono/doc/index.html 2026/04/29 17:05:34 1.1.1.20 @@ -72,10 +72,10 @@ dt.dt-indent { background-color: var(--light-green); } -nono document (1.1.0) +nono document (1.2.0) -

nono 1.1.0 (2024/12/25)

+

nono 1.2.0 (2025/01/26)

nono は NetBSD とかで動作する OMRON LUNA-I/LUNA-88K のエミュレータです。 何故か SHARP X68030 と virt-m68k も動いたりするかも知れません。 @@ -118,41 +118,37 @@ It can also emulate SHARP X68030 and vir (For gcc, at least 7.4 or later. For clang, at least 7.0 or later.)
  • wxWidgets 3.2.x "stable" branch. - (3.0.x "old stable" branch would also work but is not confirmed.) + (3.0.x "old stable" branch would also work.)
  • gettext +
  • libslirp +(4.7.0 or later is comfirmed, 4.8.0 or later is preferred.)

    -wxWidgets は NetBSD(pkgsrc) なら -pkgsrc/x11/wxGTK32 です (wxGTK30 でも動くはずです)。 +NetBSD(pkgsrc) なら必要なパッケージは +x11/wxGTK32 と net/libslirp です。 +wxGTK32 の代わりに wxGTK30 でも動くはずです。 If you use NetBSD(pkgsrc), -wxWidgets is pkgsrc/x11/wxGTK32 -(or wxGTK30). +x11/wxGTK32 and net/libslirp are needed. +wxGTK30 would work.

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

    - +

    nono のソースアーカイブを展開したら以下のようにビルドします。 @@ -538,9 +534,8 @@ and NWB-512 monochrome console (not impl Specifiies the host file that will be loaded at startup. This is mostly the same as -X option. The only one difference is that relative path originates the VM directory.

    -
    exec-bootparam = string
    -
    -(virt-m68k Only) +
    exec-bootparam = string
    +
    (virt-m68k Only) カーネルに渡すブートパラメータを指定します。 内容はたぶん OS ごとに異なりますが、 NetBSD/virt68k では "root=ld0" (クォートを除く) @@ -548,8 +543,7 @@ NetBSD/virt68k では "root=ld0 Specifies the boot parameter that is passed to the kernel. The syntax may differ depending on the OS, but in NetBSD/virt68k, you can specify the root device to the kernel, like as -"root=ld0" (excluding quotes). -

    +"root=ld0" (excluding quotes).

    exec-initrd = path
    (virt-m68k Only) カーネルに渡す初期 RAM ディスクイメージのパスを指定します。 @@ -595,9 +589,9 @@ If the path is relative path, it You can also operate them from menu after startup. The default is empty.

    fpu-type = value
    -
    (X68030 and virt-m68k Only) +
    (X68030 and virt-m68k Only) 68030 に FPU コプロセッサを装着するかどうか指定しています。 -この設定は mpu-type68030 の時のみ有効です。 +この設定は mpu-type68030 の時のみ有効です。 none なら FPU コプロセッサを装着しません。 68881 なら FPU コプロセッサとして 68881 を装着します。 現状 68882 はサポートしていません。 @@ -606,7 +600,7 @@ The default is empty.

    デフォルトは 68881 です。 LUNA-I はたぶん 68881 搭載モデルのみのため変更できません。 Specifies whether to install FPU co-processor or not. -This item is meaningful only if mpu-type is 68030. +This item is meaningful only if mpu-type is 68030. If none, FPU co-processor is not installed. If 68881, 68881 FPU co-processor is installed. 68882 is not supported yet. @@ -647,25 +641,23 @@ Note that this item is ignored if the ho
    シリアルポートのホスト側ドライバを指定します。 stdio なら標準入出力を使用します。 tcp なら TCP ポートで TELNET プロトコルで待ち受けます。 -cons ならメイン画面で端末エミュレーションを行います。 +cons ならメイン画面で端末エミュレーションを行います。 none ならホスト側とは一切通信を行いません。 - ゲスト機種によって対応しているホスト側ドライバの種類とデフォルト値が変わります。 LUNA-I、LUNA-88K、X68030 では stdiotcpnone が選択可能でデフォルトは none です。 virt-m68k、NEWS では stdiotcpconsnone -すべてが選択可能でデフォルトは cons です。 +すべてが選択可能でデフォルトは cons です。 Specifies the host driver of serial port. stdio uses the standard input/output. tcp listens on TCP port using TELNET protocol. -cons does a terminal emulation in main panel. +cons does a terminal emulation in main panel. none doesn't make any communication with the host. - The choices and default value vary depending on the guest type. On LUNA-I, LUNA-88K and X68030, you can choose stdio, tcp or none, and the default is none. On virt-m68k and NEWS, you can choose all of stdio, tcp, -cons or none, and the default is cons.

    +cons or none, and the default is cons.

    hostcom-tcp-port = integer
    ホストドライバが tcp の時の TCP 待ち受けポート番号を指定します。 Specifies the TCP port number that host driver listens.

    @@ -690,33 +682,45 @@ The default is 0.

    jp means the Japanese keyboard mode. The defualt is char. See About VM for details.

    -
    hostnet-driver = string
    hostnet-afpacket-ifname = ifname
    hostnet-bpf-ifname = ifname
    hostnet-tap-devpath = path
    hostnet-fallback = integer
    +
    hostnet-driver = string
    hostnet-afpacket-ifname = ifname
    hostnet-bpf-ifname = ifname
    hostnet-tap-devpath = path
    hostnet-usermode-hostfwd = string
    hostnet-usermode-net = string
    hostnet-usermode-net6 = string
    hostnet-fallback = integer
    それぞれ hostnet0-* の別名です。

    hostnetN-driver = string
    N 番目のイーサネットデバイスのホスト側ドライバを指定します。 -afpacketbpftap のうち -ホスト OS がサポートしているものと autonone が選択可能です。 -afpacket は Linux の AF_PACKET ソケットを使用します。 -bpf は bpf(4) デバイスを使用します。 -tap は tap(4) インタフェースを使用します。 -none ならホスト側とは一切通信を行いません。 -auto ならホスト OS がサポートしているもののうち -tapafpacketbpf を順に試します。 -hostnet0-driver のデフォルトは auto、 -hostnet1-driver のデフォルトは none です。 +afpacketbpftapusermode のうち +configure で検出したものと autonone が選択可能です。 Specifies the host driver of N-th ethernet device. -afpacket, bpf, and tap can be specified -only if the host OS supports them. -auto and none can always be specified. -afpacket uses Linux's AF_PACKET socket, -bpf uses bpf(4) device, -and tap uses tap(4) interface. -none doesn't make any communication with the host. -If auto is specified, -it tries tap, afpacket, and bpf in that order -(if the host OS supports them). +afpacket, bpf, tap and usermode can be specified +only if the configure detects them. +auto and none can always be specified. + + +autousermode と同義ですが、 +configure で libslirp が無効になっている場合は none と同義になります。 +hostnet0-driver のデフォルトは auto、 +hostnet1-driver のデフォルトは none です。 + +auto is a synonym for usermode, but +when libslirp is disabled on configure, it is a synonym for none. The default of hostnet0-driver is auto, the default of hostnet1-driver is none.

    hostnetN-afpacket-ifname = ifname
    @@ -769,6 +773,46 @@ In all cases, you need to prepare two sh 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.

    +
    hostnetN-usermode-net = network/netmask
    +
    +ホストドライバが usermode の時の、内部 IPv4 ネットワークのアドレスを指定します。 +ネットワークアドレスは +192.0.2.0/255.255.255.0 のようにネットマスクで指定するか +192.0.2.0/24 のようにネットマスク長で指定することも出来ます。 +デフォルトは 10.8.0.0/24 です。 +

    +
    hostnetN-usermode-net6 = network/prefixlen
    +
    +ホストドライバが usermode の時の、内部 IPv6 ネットワークのアドレスを指定します。 +ネットワークアドレスは 2001:db8::/64 +のようにアドレスとプレフィックス長で指定します。 +デフォルトは fd08::/64 です。 +

    +
    hostnetN-usermode-hostfwd = entry[;entry[;…]]
    +
    +ホストドライバが usermode の時の、外部から内部へのポートフォワーディングの設定を行います。 +1つの entry は +
    +
    + +protocol,[hostaddr:]hostport,[guestaddr:]guestport + +
    + +のように ','(カンマ) 3つで区切って表します。 +protocoltcpudp です。 +hostaddr はホストのバインドアドレスで省略すると 0.0.0.0 です。 +guestaddr はゲストのアドレスで、 +省略すると DHCP でクライアントに配布したアドレスになります +(通常は省略します)。 +例えば、ホストの 10022/tcp へのコネクションをゲストの 22/tcp に転送したい場合は +tcp,10022,22 となります。 +複数指定する場合は ';'(セミコロン) で区切って1行に並べます。 + +

    + +IPv6 には対応していません。 +

    hostnetN-fallback = integer
    hostnetN-driver で指定したドライバが使用可能でなかった時、 0 ならプロセスを終了します。 @@ -956,16 +1000,14 @@ virt-m68k ではあまり意味はあり Specifies the MPU clock in MHz. The default value is 20MHz on LUNA-I, or 25MHz on LUNA-88K and X68030. On virt-m68k, it's less meaningful but 25MHz.

    -
    mpu-type = value
    -
    -(X68030, virt-m68k Only) +
    mpu-type = value
    +
    (X68030, virt-m68k Only) MPU 種別を指定します。 MPU を変更出来るのは X68030 と virt-m68k のみで、 6803068040 かを指定します。 デフォルトはいずれも 68030 です。 Specifies the MPU type, 68030 or 68040. -The default is 68030. -

    +The default is 68030.

    mpu-pseudo-stop = integer
    (LUNA-88K Only) m88100 にて疑似 STOP 状態を有効にするかどうかを指定します。 @@ -1317,12 +1359,10 @@ If 0, the FC2 pin is connected If 1, it is disconnected. The default is 1. Only if you run the X server on NetBSD/x68k, it needs to be 1.

    -
    xp-clock = value
    -
    -(LUNA Only) +
    xp-clock = value
    +
    (LUNA Only) XP プロセッサのクロック数を MHz 単位で指定します。 -デフォルトは 6.144 [MHz] です。 -

    +デフォルトは 6.144 [MHz] です。

    @@ -1437,9 +1477,9 @@ XP プロセッサのクロック数を FPU (68881) ◎ 68882 は未実装 68882 not implemented -MPU (68040) - - キャッシュ未実装、実行サイクル未考察 +MPU (68040) + △ + キャッシュ未実装、実行サイクル未考察 DMAC △ @@ -1559,9 +1599,9 @@ XP プロセッサのクロック数を FPU (68881) ◎ 68882 は未実装 68882 not implemented -MPU (68040) - - キャッシュ未実装、実行サイクル未考察 +MPU (68040) + △ + キャッシュ未実装、実行サイクル未考察 Goldfish PIC ◎ @@ -1600,11 +1640,11 @@ XP プロセッサのクロック数を
    -4.3. MPU (68040)
    +4.3. MPU (68040)
    いくつか未実装の命令があります。 キャッシュは未実装で、 それに伴いキャッシュ制御を行う新設命令 CINV*, CPUSH* も未実装です。 -MMU、ATC はおそらく実装完了です。 +MMU、ATC はまだ怪しいです。 FPU はある程度動作すると思いますが 例外を起こす細かい条件は未検証のため、 本来は例外が起きてソフトウェア (FPSP) で処理するはずのものが @@ -1620,7 +1660,7 @@ FPU はある程度動作すると思い LUNA-I と NEWS では選択できません。 NEWS に 68040 搭載モデルはなさそうなのと、 LUNA では 68040 搭載モデルは LUNA-I ではなく LUNA-II になるからです。 -
    +
    @@ -1668,9 +1708,8 @@ QEMU の "virt" (架空ハードウェ NetBSD/virt68k が動作します。 -X オプション (または設定の exec-file) でカーネルを、 -設定の exec-bootparam でルートデバイスを -それぞれ -指定してください。 +設定の exec-bootparam でルートデバイスを +それぞれ指定してください。 インストール時には --initrd (または設定の exec-initrd) で RAM ディスクイメージも指定します。 Supports QEMU "virt" virtual hardware's compatible machine and @@ -1684,8 +1723,7 @@ If you want to install, you also need to
    -4.8. シリアルコンソールの端末エミュレーション
    - +4.8. シリアルコンソールの端末エミュレーション
    virt-m68k (や NEWS) のようにシリアルコンソールしか持たない機種のために、 メイン画面でシリアルコンソールの端末エミュレーションを実装してあります。 hostcom-driver = cons とすることで nono のメイン画面に @@ -1694,7 +1732,6 @@ virt-m68k (や NEWS) のようにシリ ボールド、イタリック、下線などはある程度サポートしています。 バックログはありませんので、バックログが必要なら stdio 等を使ってください。 -
    @@ -1763,7 +1800,21 @@ Also, SW8 specifies enable/disable of th
    -4.10. Windrv
    +4.10. usermode ネットワーク
    + +usermode ネットワークでは nono 自身が +NAT ルータ、DHCP サーバ、DNS サーバの機能を持ちます。 +ルータと DHCP サーバのアドレスはネットワークアドレス +1 (デフォルトでは 10.8.0.1)、 +DNS サーバのアドレスはネットワークアドレス +2 (デフォルトでは 10.8.0.2) です。 +IPv6 ルータのアドレスはネットワークアドレス +1 (デフォルトでは fd08::1)、 +DNS サーバのアドレスはネットワークアドレス +2 (デフォルトでは fd08::2) です。 + +
    +
    + + +
    +4.11. Windrv
    X68030 で Windrv を一応サポートしています。 Human68k からホストのファイルシステムをアクセスする機構です。 従来の Windrv とはホスト OS の前提が異なるため、 @@ -1781,8 +1832,9 @@ Human68k からホストのファイル 大文字小文字だけが違う同名のファイル (例えば a.BAK と a.bak) があると、 検索(FILES/NFILES) には現れません。 この状況で a.Bak (大文字小文字を区別していれば違うファイル) -を新規作成しようとすると (大文字小文字を区別しない a.Bak -というエントリはゲスト的には存在しないにも関わらず) 作成できなくしてあります。 +を新規作成しようとすると (大文字小文字を区別しないゲスト OS からは +a.Bak というエントリは存在しないように見えるにも関わらず) +作成できなくしてあります。
  • ファイルサイズが 2GB 以上のファイルはゲストからは見えません。
  • Human68k 側の属性は A(アーカイブ)/D(ディレクトリ)/R(読み込み専用) のみ対応しています。 @@ -1813,7 +1865,7 @@ DEVICE = \SYS\WINDRV.SYS
    -4.11. ステータスパネル Status Panel
    +4.12. ステータスパネル Status Panel
    ステータスパネル中央にあるパフォーマンスメータのアイコンは 高速モードの状態を表示しています。 ダブルクリックすると高速/等速モードの指定を切り替えることができます。 @@ -1862,7 +1914,7 @@ or the keyboard buzzer is sounding.
    -4.12. DIPSW 設定ウィンドウ
    +4.13. DIPSW 設定ウィンドウ
    DIPSW 設定ウィンドウでの変更はアプリケーション起動中のみ有効です。 またここでの設定は即 VM に反映されますが、 LUNA の場合 DIPSW の状態を @@ -1873,7 +1925,7 @@ PIO(8255) がラッチするのが概ね
    -4.13. メモリダンプモニタ Memory Dump Monitor
    +4.14. メモリダンプモニタ Memory Dump Monitor
    メモリダンプモニタの出力形式を、バイト、ワード、ロングワード (m88k ではそれぞれバイト、ハーフワード、ワードと表現します) から選択できます。 @@ -1916,7 +1968,7 @@ The only last 8 bytes are not editable s
    -4.14. デバイスマップモニタ Device Map Monitor
    +4.15. デバイスマップモニタ Device Map Monitor
    m68k/m88k バスに接続されているデバイスを表示します。 32ビットアドレスのうち上位 8 ビット、256個分を表示しています。 1枠が 16MB になります。 @@ -1930,7 +1982,7 @@ NEWS のデバイスマップは内部
    -4.15. キー入力モード Key input mode
    +4.16. キー入力モード Key input mode
    LUNA も X68030 もキーボードは通常日本語キーボードです (LUNA には英語キーボードも存在するようですが…)。 そのため、ホストが日本語キーボードの場合とそうでない場合のために @@ -2016,7 +2068,7 @@ even though it should not work as a corr
    -4.16. キャラクタ入力モードのキーコード対応表 Keycode table in the character mode
    +4.17. キャラクタ入力モードのキーコード対応表 Keycode table in the character mode
    キャラクタ入力モードでの、ホストから入力した文字と VM に送信されるキーの対応は次の通りです。 ファンクションキーとカーソルキーは文字ではありませんが @@ -2131,7 +2183,7 @@ only be typed from the software keyboard
    -4.17. JP キーボードモードのキーコード対応表 Keycode table in the JP keyboard mode
    +4.18. JP キーボードモードのキーコード対応表 Keycode table in the JP keyboard mode
    JP キーボードモードでの、ホストキーと VM に送信されるキーの対応は次の通りです。 ここに記載のないキーはソフトウェアキーボードからのみ入力出来ます。 The following table shows the correspondence between @@ -2201,7 +2253,7 @@ the software keyboard window.
    -4.18. キーリピート Key Repeat
    +4.19. キーリピート Key Repeat
    LUNA では、キーボードがハードウェア側でキーリピートを行わず、 ソフトウェア(OS など)がキーリピートの処理を行います。 そのため、キーリピートを実装していない LUNA の PROM や @@ -2270,16 +2322,11 @@ extract it and place it in the VM direct
  • 以下の内容の設定ファイル nono.cfg を VM ディレクトリ ~/nono/luna/ に作成します。 -ここでは説明を簡単にするためネットワークなしにしていますが、 -ネットワーク設定は必要に応じて行ってください。 Create a configuration file nono.cfg in the VM directory, ~/nono/luna/, -with following contents. -By the way, to simplify the explanation, we assume there is no network here. -However, please configure the network if necessary. +with following contents.
     vmtype = luna
     spc0-id6-image = hd,liveimage-luna68k-with-packages-20210910.img
    -hostnet-driver = none
     
  • nono -c ~/nono/luna で起動します @@ -2305,7 +2352,7 @@ x⏎ You will see a screen like this. The bold text indicates the characters you need to enter.
    -NONO 1.1.0 Emulated ROM Monitor for LUNA-I
    +NONO 1.2.0 Emulated ROM Monitor for LUNA-I
     
     ** NVRAM Initialized.
     
    @@ -2378,16 +2425,11 @@ extract it and place it in the VM direct
     
     
  • 以下の内容の設定ファイル nono.cfg を VM ディレクトリ ~/nono/luna88k/ に作成します。 -ここでは説明を簡単にするためネットワークなしにしていますが、 -ネットワーク設定は必要に応じて行ってください。 Create a configuration file nono.cfg in the VM directory, ~/nono/luna88k/, -with following contents. -By the way, to simplify the explanation, we assume there is no network here. -However, please configure the network if necessary. +with following contents.
     vmtype = luna88k
     spc0-id6-image = hd,liveimage-luna88k-raw-20241013.img
    -hostnet-driver = none
     
  • nono -c ~/nono/luna88k で起動します @@ -2408,7 +2450,7 @@ b⏎ You will see a screen like this. The bold text indicates the characters you need to enter.
    -NONO 1.1.0 Emulated ROM Monitor for LUNA-88K
    +NONO 1.2.0 Emulated ROM Monitor for LUNA-88K
     
     ** NVRAM Initialized.
     
    @@ -2436,9 +2478,9 @@ and nono will terminate when the VM is p
     
     
    5.3. NetBSD/x68k を実行してみる Try NetBSD/x68k
    -つついさんが NetBSD/x68k 10.0_BETA の liveimage を用意されています。 +つついさんが NetBSD/x68k 10.1 の liveimage を用意されています。 ここではこれを起動してみます。 -Tsutsui-san has provided a liveimage of NetBSD/x68k 10.0_BETA. +Tsutsui-san has provided a liveimage of NetBSD/x68k 10.1. Let's try it.
      @@ -2448,29 +2490,27 @@ Let's try it. and create subdirectories for individual VMs in it (for example ~/nono/x68k/). -
    1. 以下のリンクから -plain-install か with-packages のお好みのほうをダウンロードして展開し、 -VM ディレクトリ ~/nono/x68k/ に置きます。 -Download your favorite one of plain-install or with-packages -from the following link, -extract it and place it in the VM directory, ~/nono/x68k/. +
    2. 以下のサイトから +「パッケージインストール設定済み版」か +「インストーラでインストールしたところまでの未設定版」の +お好みのほうをダウンロードします。 +迷ったら「パッケージインストール設定済み版」がよいでしょう。 +ダウンロードできたら展開して、VM ディレクトリ ~/nono/x68k/ に置きます。 +Download your favorite one of with-packages or plain-install +from the following site. +Extract it and place it in the VM directory, ~/nono/x68k/.
      -http://teokurebsd.org/netbsd/liveimage/20230111-x68k/ +http://www.ceres.dti.ne.jp/tsutsui/netbsd/liveimage/x68k.html
    3. 以下の内容の設定ファイル nono.cfg を VM ディレクトリ ~/nono/x68k/ に作成します。 -ここでは説明を簡単にするためネットワークなしにしていますが、 -ネットワーク設定は必要に応じて行ってください。 Create a configuration file nono.cfg in the VM directory, ~/nono/x68k/, -with following contents. -By the way, to simplify the explanation, we assume there is no network here. -However, please configure the network if necessary. +with following contents.
       vmtype = x68030
      -spc0-id0-image = hd,liveimage-x68k-with-packages-20230111.hds
      -hostnet0-driver = none
      +spc0-id0-image = hd,liveimage-x68k-with-packages-20250106.hds
       
    4. 初回のみ nono -c ~/nono/x68k --create-sram を実行します。 @@ -2546,17 +2586,14 @@ dd if=/dev/zero of=virt68k.img bs=1m cou
    5. 以下の内容の設定ファイル nono.cfg を VM ディレクトリ ~/nono/virt68k に作成します。 -ネットワークは別途設定してください。 Create a configuration file nono.cfg in the VM directory, ~/nono/virt68k/, -with following contents. -You may also need network configuration. +with following contents.
       vmtype = virt-m68k
       exec-file = netbsd-GENERIC.gz
       exec-bootparam = root=ld0
       virtio-block0-image = virt68k.img
       fast-mode = 1
      -hostnet-driver = auto
       
    6. インストーラ RAM ディスクを指定してインストーラを起動します。 @@ -2598,16 +2635,15 @@ nono -c ~/nono/virt68k
      -6. ホストネットワーク設定例 Example of host network setup
      -wm0 を持つ NetBSD ホストに tap(4) デバイスを用いて -nono のゲスト OS を接続する場合の設定例です。 +6. ホストネットワーク設定例 Example of host network setup +
      +6.1. tap
      +NetBSD の tap(4) デバイスを用いて、 +ホストの wm0 と nono のゲスト OS を接続する場合の設定例です。
      1. -設定ファイル nono.cfg に以下の行を追加します -(と言いつつ NetBSD では書かなくてもデフォルトでこの動作になりますが) -Add the following line to configuration file, nono.cfg. -(Although you don't need to write it since these are default behavior -on NetBSD) +設定ファイル nono.cfg に以下の行を追加します。 +Add the following line to configuration file, nono.cfg.
         hostnet-driver = tap
         hostnet-tap-devpath = auto
        @@ -2687,6 +2723,7 @@ It's OK if you can see "HostNet Driver:
         
      +