--- nono/doc/index.php 2026/04/29 17:05:26 1.1.1.17 +++ nono/doc/index.php 2026/04/29 17:05:30 1.1.1.18 @@ -621,6 +621,21 @@ The only one difference is that relative _EOM_ ); +config_item("exec-bootparam = string", <<<_EOM_ + +(virt-m68k Only) +カーネルに渡すブートパラメータを指定します。 +内容はたぶん OS ごとに異なりますが、 +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). + +_EOM_ +); + config_item("exec-initrd = path", <<<_EOM_ (virt-m68k Only) カーネルに渡す初期 RAM ディスクイメージのパスを指定します。 @@ -681,26 +696,26 @@ _EOM_ ); config_item("fpu-type = value", <<<_EOM_ -(X68030 Only) -FPU を装着するかどうか指定しています。 -none なら FPU を装着しません。 -68881 なら FPU として 68881 を装着します。 +(X68030 and virt-m68k Only) +68030 に FPU コプロセッサを装着するかどうか指定しています。 +この設定は mpu-type68030 の時のみ有効です。 +none なら FPU コプロセッサを装着しません。 +68881 なら FPU コプロセッサとして 68881 を装着します。 現状 68882 はサポートしていません。 また none の代わりに 068881 の代わりに 1 と書くこともできます。 デフォルトは 68881 です。 -LUNA-I はたぶん 68881 搭載モデルのみのため設定できません。 -virt-m68k も現状 68881 固定としています。 -Specifies whether to install FPU or not. -If none, FPU is not installed. -If 68881, 68881 FPU is installed. +LUNA-I はたぶん 68881 搭載モデルのみのため変更できません。 +Specifies whether to install FPU co-processor or not. +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. And, none can also be written as 0, 68881 can also be written as 1. The default is 68881. This item cannot be specified on LUNA-I -because (probably) all LUNA-I has 68881. -This item also cannot be specified on virt-m68k for now. +because (probably) all LUNA-I has 68881. _EOM_ ); @@ -740,17 +755,27 @@ _EOM_ config_item("hostcom-driver = string", <<<_EOM_ シリアルポートのホスト側ドライバを指定します。 -stdiotcpnone が選択可能です。 -stdio は標準入出力を使用します。 -tcp は TCP ポートで TELNET プロトコルで待ち受けます。 +stdio なら標準入出力を使用します。 +tcp なら TCP ポートで TELNET プロトコルで待ち受けます。 +cons ならメイン画面で端末エミュレーションを行います。 none ならホスト側とは一切通信を行いません。 -デフォルトは none です。 + +ゲスト機種によって対応しているホスト側ドライバの種類とデフォルト値が変わります。 +LUNA-I、LUNA-88K、X68030 では stdiotcpnone +が選択可能でデフォルトは none です。 +virt-m68k、NEWS では stdiotcpconsnone +すべてが選択可能でデフォルトは cons です。 Specifies the host driver of serial port. -stdio, tcp, and none can be specified. stdio uses the standard input/output. tcp listens on TCP port using TELNET protocol. +cons does a terminal emulation in main panel. none doesn't make any communication with the host. -The default is none. + +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. _EOM_ ); @@ -1115,6 +1140,19 @@ On virt-m68k, it's less meaningful but 2 _EOM_ ); +config_item("mpu-type = value", <<<_EOM_ + +(X68030, virt-m68k Only) +MPU 種別を指定します。 +MPU を変更出来るのは X68030 と virt-m68k のみで、 +6803068040 かを指定します。 +デフォルトはいずれも 68030 です。 +Specifies the MPU type, 68030 or 68040. +The default is 68030. + +_EOM_ +); + config_item("mpu-pseudo-stop = integer", <<<_EOM_ (LUNA-88K Only) m88100 にて疑似 STOP 状態を有効にするかどうかを指定します。 @@ -1526,6 +1564,15 @@ Only if you run the X server on NetBSD/x _EOM_ ); +config_item("xp-clock = value", <<<_EOM_ + +(LUNA Only) +XP プロセッサのクロック数を MHz 単位で指定します。 +デフォルトは 6.144 [MHz] です。 + +_EOM_ +); + ?> @@ -1568,7 +1615,7 @@ _EOM_ データキャッシュ実装 Data cache has implemented +MPU (68030) ◎ FPU (68881) ◎ BT454 ◎ CRTC2 ○ 標準で使用する値のみサポート @@ -1594,9 +1641,9 @@ MPU (88110) — 実装予定なし N FUSEROM ○ X68030 -MPU (68030) データキャッシュ実装 Data cache has implemented -MPU (68EC030) — 実装予定なし Not planned +MPU (68030) ◎ 68EC030 は実装予定なし 68EC030 is not planned FPU (68881) ◎ 68882 は未実装 68882 not implemented +MPU (68040) キャッシュ未実装、実行サイクル未考察 DMAC △ CRTC/VC △ 768x512 のテキスト画面のみサポート Only 768x512 text screen supported FDC/FDD ○ @@ -1624,7 +1671,7 @@ Nereid USB — 実装予定なし N Windrv △ NWS-1750 -MPU (68030) データキャッシュ実装 Data cache has implemented +MPU (68030) ◎ FPU (68881) ◎ 68882 は未実装 68882 not implemented PROM × SCC (Z8530) ◎ チャンネル A のみホストに接続 Only channel A is connected to the host @@ -1638,8 +1685,9 @@ AST, Lv2Intr × 電源 Power Circuit × virt-m68k -MPU (68030) データキャッシュ実装 Data cache has implemented +MPU (68030) ◎ FPU (68881) ◎ 68882 は未実装 68882 not implemented +MPU (68040) キャッシュ未実装、実行サイクル未考察 Goldfish PIC ◎ Goldfish RTC ◎ Goldfish Timer ◎ @@ -1679,6 +1727,30 @@ __EOM__; +MPU (68040)"); ?> +
+いくつか未実装の命令があります。 +キャッシュは未実装で、 +それに伴いキャッシュ制御を行う新設命令 CINV*, CPUSH* も未実装です。 +MMU、ATC はおそらく実装完了です。 +FPU はある程度動作すると思いますが +例外を起こす細かい条件は未検証のため、 +本来は例外が起きてソフトウェア (FPSP) で処理するはずのものが +68881 相当のハードウェアエミュレーションで実行出来てしまうという +通常あまり困らないタイプの問題は存分にあります。 +
+命令の実行サイクルについては未考察です。 +そもそも 68040 はパイプライン方式なので 68000 時代のようにサイクル数を +正確にエミュレーションすることはおそらく不可能ですが、 +それにしても似せるところまでも行っていないという意味です。 +
+68040 は X68030 と virt-m68k でのみ選択可能で、 +LUNA-I と NEWS では選択できません。 +NEWS に 68040 搭載モデルはなさそうなのと、 +LUNA では 68040 搭載モデルは LUNA-I ではなく LUNA-II になるからです。 +
+ +
LUNA-I、LUNA-88K で PROM の外部イメージを指定しない場合 @@ -1719,19 +1791,33 @@ PROM も NetBSD/news68k QEMU の "virt" (架空ハードウェア仕様)の互換機wをサポートしています。 NetBSD/virt68k が動作します。 -X オプション (または設定の exec-file) -でカーネルを指定してください。 +でカーネルを、 +設定の exec-bootparam でルートデバイスを +それぞれ +指定してください。 インストール時には --initrd (または設定の exec-initrd) で RAM ディスクイメージも指定します。 -また、設定の hostcom-driver でシリアルコンソールを -どこかに出力するのもほぼ必須だと思います。 Supports QEMU "virt" virtual hardware's compatible machine and it can run NetBSD/virt68k. You need to specify the kernel by -X option (or exec-file in configuration). If you want to install, you also need to specify the ramdisk image by ---initrd option (or exec-initrd in configuration). -And also, you may need to configure serial console -by hostcom-driver in configuration. +--initrd option (or exec-initrd in configuration). +
+ + +シリアルコンソールの端末エミュレーション"); ?> +
+ +virt-m68k (や NEWS) のようにシリアルコンソールしか持たない機種のために、 +メイン画面でシリアルコンソールの端末エミュレーションを実装してあります。 +hostcom-driver = cons とすることで nono のメイン画面に +シリアルコンソールの内容が表示されます。 +カラーは現状サポートしていませんが、 +ボールド、イタリック、下線などはある程度サポートしています。 +バックログはありませんので、バックログが必要なら +stdio 等を使ってください。 +
@@ -2604,15 +2690,30 @@ and nono will terminate when the VM is p . " Try installing NetBSD/virt68k"); ?>
ここでは NetBSD/virt68k をクリーンインストールする手順だけ紹介します。 -Here I will introduce how to install NetBSD/virt68k. +Here I will introduce how to install NetBSD/virt68k cleanly.
    +
  1. どこかに nono 用のディレクトリを用意し(例えば ~/nono/)、 その中に VM ディレクトリを用意します (例えば ~/nono/virt68k/)。 Create a directory somewhere for nono (for example ~/nono/), and create subdirectories for individual VMs in it (for example ~/nono/virt68k/). +
  2. NetBSD/virt68k のインストールセットはまだ用意されてないようなので、 +NetBSD のソースコードから build.sh でビルドします。 +There doesn't seem to be the official NetBSD/virt68k set available yet. +You have to build it manually from the source code using build.sh. :( + +
  3. インストーラを起動するカーネルとその後運用するカーネルは同じものなので +VM ディレクトリ内に持ってきておくとよいです。 +The kernel used for installation and the kernel used for operation +are the same. +So it would be good idea to bring it into the VM directory at this point. +
    +cp <path>/release/virt68k/binary/kernel/netbsd-GENERIC.gz ~/nono/virt68k/
    +
    +
  4. 空のディスクイメージを用意します。 1GB でもインストール自体は出来ますが、もう少し大きいほうが安心です。 Prepare an empty disk image file. @@ -2630,39 +2731,45 @@ with following contents. You may also need network configuration.
     vmtype = virt-m68k
    +exec-file = netbsd-GENERIC.gz
    +exec-bootparam = root=ld0
     virtio-block0-image = virt68k.img
    -hostcom-driver = stdio
    +fast-mode = 1
     hostnet-driver = auto
     
    -
  5. NetBSD/virt68k のインストールセットはまだ用意されてないようなので、 -NetBSD のソースコードから build.sh でビルドします。 -There doesn't seem to be the official NetBSD/virt68k set available yet. -You have to build it manually from the source code. :( - -
  6. 以下のコマンドラインで起動します。 -Run as the following: +
  7. インストーラ RAM ディスクを指定してインストーラを起動します。 +設定ファイルでルートデバイスを ld0 に指定していますが、 +RAM ディスク指定のほうが優先されるようです。 +Run the installer by specifying installer RAM disk. +By the way, configuration file specifies root device as ld0, +but RAM disk specified by the command line will take precedence.
    -nono -c ~/nono/virt68k -f \
    - -X <path>/release/virt68k/binary/kernel/netbsd-GENERIC.gz \
    +nono -c ~/nono/virt68k \
      --initrd <path>/release/virt68k/installation/ramdisks/inst-ramdisk.fs
     
    -
  8. しばらくすると root パーティションなどを聞かれるので Enter を 4回押します。 -またしばらくすると見慣れたインストーラが起動してきます。 -After a while, you will be asked about the root partition, etc., -so hit Enter key four times. -After a while again, the familiar installer will start. +
  9. しばらくすると見慣れたインストーラが起動してきます。 +インストールが終わったらトップメニューから e:Utility menu > +g:Halt the system +を選択してください。ゲストの電源がオフになり nono も終了します。 +After a while, the familiar installer will start. +Once the installation has finished, +choose e:Utility menu > g:Halt the system. +Then the guest will shut down, and nono also will terminate. + +
  10. インストールしたディスクから起動するには、 +--initrd オプションを外して実行します。 +カーネルは引き続きホストファイルシステム上にあるもの +(ここでは ~/nono/virt68k/netbsd-GENERIC.gz) を使います。 +To boot from the installed disk, +run without --initrd option. +It still uses the kernel on the host filesystem, +just like the installer does.
    -[   1.0000030] root device (default md0a): 
    -[   1.0200030] dump device (default md0b): 
    -[   1.0300030] file system (default ffs): 
    -[   1.0400030] root on md0a dumps on md0b
    -[   1.0600030] kern.module.path=/stand/virt68k/10.99.10/modules
    -[   1.1200030] init path (default /sbin/init): 
    -[   1.1400030] init: trying /sbin/init
    - :
    +nono -c ~/nono/virt68k
     
    +
@@ -2783,11 +2890,13 @@ wxWidgets (3.0/3.2) のバグと思わ This may be due to wxWidgets (3.0/3.2) bug.
(2021/12/30, Updated 2024/07/03) -
  • nono ではありませんが、wxWidgets 3.2 (wxGTK3) は -NetBSD/sparc でウィンドウ内がほぼ描画されないようです。 -wxWidgets 3.0 (wxGTK2) であれば動作します。 -On wxWidgets 3.2 (wxGTK3), it seems that the inside of the window -is hardly drawn at NetBSD/sparc. wxWidgets 3.0 (wxGTK2) can. +
  • nono ではありませんが、wxWidgets 3.2 (with GTK3) は +NetBSD/sparc (などマイナーアーキテクチャ?) +でウィンドウ内がほぼ描画されないようです。 +wxWidgets 3.0 (with GTK2) であれば動作します。 +On wxWidgets 3.2 (with GTK3), it seems that the inside of the window +is hardly drawn at NetBSD/sparc (and such minor architectures?). +wxWidgets 3.0 (with GTK2) can. (2024/07/03)