@@ -578,7 +705,7 @@ LUNA では、キーボードがハー
そのため、キーリピートを実装していない LUNA の PROM や
NetBSD/luna68k のブートローダではキーリピートは起きず、
キーリピートを実装している NetBSD/luna68k カーネルではキーリピートが起こせます。
-ソフトウェアでキーリピートを起こす間隔を測定しているということは、
+キーリピートを起こす間隔をゲストのソフトウェアが測定しているということは、
VM が高速動作するとキーリピートもそれに合わせて発生することになり、
これをホスト側から防ぐ手段はありません。
そこで nono ではキー入力が発生している間
@@ -596,15 +723,14 @@ For this reason,
key repeat doesn't occur on LUNA's PROM or NetBSD/luna68k's bootloader
that don't implement it, and
key repeat occurs on NetBSD/luna68k kernel that implements it.
-Since the timing of key repeat is measured by software,
+Since the timing of key repeat is measured by the guest software,
if the VM is running faster than the real,
the key repeat will occur faster, too.
The host application doesn't have the way to avoid it.
Therefore, nono will temporarily suppress the full speed mode
while any keys are pressed.
That is why the above-mentioned icon distinguishes them.
-For this reason,
-if keys continue to be pressed for some reason,
+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.
@@ -613,34 +739,48 @@ In this case, you can resolve it by usin
実行してみる Try it
+NetBSD/luna68k を実行してみる Try NetBSD/luna68k
-つついさんが NetBSD/luna68k 9.0 の liveimage を用意してくださっています
-(いつもありがとうございます)。
- Tsutsui-san has provided NetBSD/luna68k 9.0 liveimage for this
-(Thanks as always).
+つついさんが 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
+
+ここではこれを起動してみます。 Let's try it.
- どこかに nono 用のディレクトリを用意し(例えば ~/nono/)、
その中に VM ディレクトリを用意します (例えば ~/nono/luna/)。
Create a directory somewhere for nono (for example ~/nono/),
-and create subdirectories for individual VMs in it (for example ~/nono/luna/).
+and create subdirectories for individual VMs in it
+(for example ~/nono/luna/).
- 以下のリンクからイメージファイルをダウンロードして展開し、
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/20200518-luna68k/
+http://teokurebsd.org/netbsd/liveimage/20210614-luna68k/
- - 同じく VM ディレクトリに設定ファイル nono.cfg を以下の内容で用意します。
+
- 以下の内容の設定ファイル nono.cfg を VM ディレクトリ ~/nono/luna/
+に作成します。
+ここでは説明を簡単にするためネットワークなしにしていますが、
+ネットワーク設定は必要に応じて行ってください。
Create a configuration file nono.cfg in the VM directory, ~/nono/luna/,
-with following contents:
+with following contents.
+By the way, to simplify the explanation, we assume there is no network here.
+However, please configure the network if necessary.
vmtype = luna
-spc0-id6-image = hd,liveimage-luna68k-raw-20200518.img
+spc0-id6-image = hd,liveimage-luna68k-raw-20210614.img
+hostnet-driver = none
+
- nono -c ~/nono/luna で起動します
(VM ディレクトリに自動的に NVRAM.DAT が作られます)。
Run as nono -c ~/nono/luna.
@@ -650,64 +790,183 @@ spc0-id6-image = hd,liveimage-luna68k-ra
The emulated ROM Monitor will be executed.
Then, only for the first time,
entering the following can boot NetBSD.
+
+k⏎
+⏎
+⏎
+d⏎
+boot⏎
+g⏎
+x⏎
+
+画面はこんな感じのはずです (太字が入力部分)。
+You will see a screen like this. The bold text indicates
+the characters you need to enter.
-k
-[Enter]
-[Enter]
-d
-boot
-g
-x
+NONO 0.2.0 Emulated ROM Monitor for LUNA-I
+
+** NVRAM Initialized.
+
+>k⏎
+controller: dk ?⏎
+drive unit: 0 ?⏎
+partition : c ?d⏎
+filename : vmunix ?boot⏎
+>g⏎
+Loaded. Entry point = $00700000
+>x⏎
この内容は NVRAM.DAT に記録されているので次回以降は直接 NetBSD が起動します。
The information you have just entered is recorded in the NVRAM,
so next time it boots NetBSD automatically.
+- 初回起動時、
+Updating fontconfig cache はあほみたいに時間がかかりますが、
+nono がハングアップしてるわけではありません(>_<)。
+また初回ログイン時めちゃくちゃ重たいですが、
+これはバックグラウンドで makemandb が動くためで
+nono のせいではありません(>_<)。
+
At the first boot, you will see the console stops after printing
+"Updating fontconfig cache".
+This is because the infamous fontconfig takes very looooong time.
+nono would not have hang-up.
+In addition, after the first login, you will feel it's too heavy.
+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.
+
+
+ - 終了する時は root
+ユーザで “shutdown -p now” を実行してください。
+LUNA はソフトウェアから電源オフでき、
+VM の電源オフで nono も終了します。
+
To quit, type “shutdown -p now” as the root user.
+LUNA can be powered off by software,
+and nono will terminate when the VM is powered off.
-
-元ツイートはこちらOriginal tweet 。
+OpenBSD/luna88k を実行してみる Try OpenBSD/luna88k
+
+あおやまさんが OpenBSD/luna88k 6.9 の liveimage を用意されています。
+ Aoyama-san has provided a liveimage of OpenBSD/luna88k 6.9.
+
+- https://twitter.com/ao_kenji/status/1404784588015112192
+
+ここではこれを起動してみます。 Let's try it.
+
+
+- どこかに nono 用のディレクトリを用意し(例えば ~/nono/)、
+その中に VM ディレクトリを用意します (例えば ~/nono/luna88k/)。
+
Create a directory somewhere for nono (for example ~/nono/),
+and create subdirectories for individual VMs in it
+(for example ~/nono/luna88k/).
+
+ - 以下のリンクから liveimage-luna88k-raw-YYYYMMDD.img.gz
+をダウンロードして展開し、
+VM ディレクトリ ~/nono/luna88k/ に置きます。
+
Download liveimage-luna88k-raw-YYYYMMDD.img.gz from the following link,
+extract it and place it in the VM directory, ~/nono/luna88k/.
+
+http://www.nk-home.net/~aoyama/liveimage/
+
+
+ - 以下の内容の設定ファイル 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.
+
+vmtype = luna88k
+spc0-id6-image = hd,liveimage-luna88k-raw-20210614.img
+hostnet-driver = none
+
+
+ - nono -c ~/nono/luna88k で起動します
+(VM ディレクトリに自動的に NVRAM.DAT が作られます)。
+
Run as nono -c ~/nono/luna88k.
+(NVRAM.DAT will be created automatically in the VM directory)
+ - Emulated ROM Monitor が起動するので、
+初回は以下のように入力すると OpenBSD が起動します。
+
The emulated ROM Monitor will be executed.
+Then, only for the first time,
+entering the following can boot OpenBSD.
+
+nvram boot_filename boot⏎
+y
+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
+
+** NVRAM Initialized.
+
+N>nvram boot_filename boot⏎
+Update boot_filename : "vmunix" -> "boot" (Y/[N]):y
+Updated
+N>b⏎
+
+この内容は NVRAM.DAT に記録されているので次回以降は直接 OpenBSD が起動します。
+The information you have just entered is recorded in the NVRAM,
+so next time it boots OpenBSD automatically.
+
+ - 終了する時は root
+ユーザで “shutdown -p now” を実行してください。
+LUNA88K はソフトウェアから電源オフでき、
+VM の電源オフで nono も終了します。
+
To quit, type “shutdown -p now” as the root user.
+LUNA88K can be powered off by software,
+and nono will terminate when the VM is powered off.
+
+
+
+
-ネットワーク設定 Setup network
+ネットワーク設定例 Example of network setup
-設定ファイル nono.cfg に以下の行を追加します。
- Add the following line to configuration file, nono.cfg.
+wm0 を持つ NetBSD ホストに tap(4) デバイスを用いて
+nono のゲスト OS を接続する場合の設定例です。
+
+-
+設定ファイル 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)
-ethernet-hostdriver = tap
+hostnet-driver = tap
+hostnet-tap-devpath = auto
-次に VM ディレクトリかその親ディレクトリに nono-ifup、nono-ifdown
-というスクリプトを用意します。
-nono は tap(4) をオープンし、
-そのデバイス名を引数にこれらのスクリプトを呼びます。
-Then, prepare two scripts named nono-ifup and nono-ifdown
-in the VM directory or its parent directory.
-nono will open tap(4) and
-invoke these scripts with the name of the device as an argument.
-
-例えば、NetBSD ホストで、ホストの wm0 セグメントに nono のゲスト OS を接続する場合、
-For example, if you want to connect guest OS to host's wm0 segment
-on NetBSD,
-
+
- デフォルトでは /dev/tap は一般ユーザからアクセスできないので、
chmod で適当にパーミッションを与えます。
番号の付いていないほうの /dev/tap だけでいいです。
-
By default, /dev/tap is only accessible to privileged user.
-You need to chmod /dev/tap (without unit number) appropriately.
sysinst 等で OS をアップグレードするとパーミッションが 600
に戻るのがハマりポイントです。
+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.
+
- bridge(4) インタフェースを作成し、
-ホストの外側のインタフェースをブリッジに追加しておきます。
+ホストの外部(物理)インタフェースをブリッジに追加しておきます。
Create a bridge(4) interface, and
add your physical interface to the bridge.
# ifconfig bridge0 create
# brconfig bridge0 add wm0
-常用するなら設定ファイルに書いておきましょう。
-If you want to use this all the time,
+常用するなら /etc の設定ファイルに書いておきましょう。
+If you use it regularly,
you can put configuration file into /etc.
/etc/ifconfig.bridge0
@@ -725,9 +984,13 @@ up
一般ユーザに戻って、
VM ディレクトリかその親ディレクトリに
次のような 2つのスクリプトを用意します。
+nono は tap(4) をオープンし、
+そのデバイス名を引数にこれらのスクリプトを呼びます。
sudo の設定は別途行ってください。
Return to non-privileged user, and
create following two scripts in the VM directory or its parent directory.
+nono will open tap(4) and
+invoke these scripts with the name of the device as an argument.
In addition, you need to set up sudo separately.
nono-ifup
@@ -751,10 +1014,10 @@ sudo /sbin/ifconfig $1 down
- nono を起動し、
メニューの「モニタ > ホスト > ホストネットワーク」を開いて
-NetDriver が None 以外 (この場合 BSD tap) になっていれば動いてるはずです。
+HostNet Driver: tap になっていれば動いてるはずです。
Run nono,
and open "Monitor > Host > Host Network" window from menu.
-It's OK if you can see "NetDriver: BSD tap" (in this case).
+It's OK if you can see "HostNet Driver: tap".
|