mirror of
https://github.com/akuker/RASCSI.git
synced 2025-02-22 14:29:09 +00:00
Remove redundant docs that are represented in wiki and manpages (#254)
This commit is contained in:
parent
b92a762acc
commit
36c614ddc8
@ -1,116 +0,0 @@
|
||||
------------------------------------------------------------------------------
|
||||
|
||||
SCSI Target Emulator RaSCSI for Raspberry Pi
|
||||
|
||||
Powered by XM6 TypeG Technology.
|
||||
Copyright (C) 2016-2020 GIMONS
|
||||
|
||||
------------------------------------------------------------------------------
|
||||
|
||||
□変換基板の必要性について
|
||||
SCSIはTTLレベルで5Vを220Ωと330Ωで分圧(パッシブターミネータの場合)する
|
||||
ことで各信号線に3V弱の電圧がかかった状態が定常状態(信号的にはネゲート)に
|
||||
なっています。
|
||||
|
||||
イニシエータ側もしくはターゲット側が信号をアサートする(=0V)にしようと
|
||||
すると両端のターミネータから合わせて5000÷220×2=45mAの電流が流れることに
|
||||
なります(X68000のSCSIコントローラであるMB89352のデータシートを見ればシンク
|
||||
電流としてIol48mAとなっています)。
|
||||
|
||||
RPIのGPIOはこのような大きなシンク電流は吸収できません。電気的に安全な接続
|
||||
を行うためには汎用ロジックIC等で変換基板を作る必要があります。汎用ロジック
|
||||
ICで48mAものシンク電流に耐えるのは74LS06とか07といったオープンコレクタで
|
||||
ハイパワータイプのものを使用します。
|
||||
|
||||
作者は74HC541×3,74HC126×1,74HC04×1で基本的なSCSIの方向制御を行い更に
|
||||
74LS07×3を使ってバスをドライブする回路を組んでみたところ問題なく動作する
|
||||
ことを確認しました。
|
||||
|
||||
他にも74LS641の派生版である74LS641-1を使用すると回路はシンプルに構成できる
|
||||
でしょう。ノーマル品と違ってシンク電流が48mA対応なので74LS07を使用する必要
|
||||
はありません。しかし入手性はそれほど良くありません。
|
||||
|
||||
□変換基板の回路図案
|
||||
同じフォルダに回路図案を入れています。
|
||||
|
||||
・target.png
|
||||
SCSIのターゲットモードを使用するための変換基板回路図です。基本機能である
|
||||
HDDやMOのエミュレーションを行うのであればこの回路図相当の物を作れば良い
|
||||
でしょう。使用するGPIOピンも最も少ない構成になります。
|
||||
|
||||
ピンアサインを変更しなければRaSCSIのstandardディレクトリに含まれる
|
||||
バイナリを使用することが可能です。
|
||||
|
||||
・fullspec.png
|
||||
SCSIのターゲットモード、イニシエータモードを利用できる変換基板回路図です。
|
||||
全ての74LS641-1の方向制御をRaSCSIから行いますのでGPIOピンを三つ余分に使用
|
||||
してしまいます。
|
||||
|
||||
ピンアサインのカスタマイズで、PIN_TAD,PIN_IND,PIN_DTDにそれぞれ標準
|
||||
では6,7,8を設定してコンパイルする必要があります。ピンアサインの
|
||||
カスタマイズを参照してください。
|
||||
|
||||
□既存のものを手に入れる方法
|
||||
最近では主にTwitter界隈を通じてRaSCSI用の変換基板を作成していただいて
|
||||
いる方々がいらっしゃいます。直ぐに見つかると思いますのでここでの紹介
|
||||
は省略します。時期は未定ですが公式版の有償頒布を計画しています。
|
||||
|
||||
□ピンアサインのカスタマイズ
|
||||
GPIOの信号制御論理やピンアサインはgpiobus.hに定義があります。
|
||||
|
||||
カスタマイズ例としてgpiobus.hに下記の二つの変換基板用定義例を用意しました。
|
||||
配布物の中にはコンパイル済みバイナリも含まれています。
|
||||
|
||||
・あいぼむ版
|
||||
・GAMERnium版
|
||||
|
||||
□カスタマイズ方法
|
||||
・RaSCSI起動時のメッセージです。
|
||||
CONNECT_DESC
|
||||
|
||||
・信号制御モードを選択します。
|
||||
SIGNAL_CONTROL_MODE
|
||||
|
||||
0:SCSI論理仕様
|
||||
直結またはHPに公開した74LS641-1等を使用する変換基板
|
||||
アーサート:0V
|
||||
ネゲート :オープンコレクタ出力(バスから切り離す)
|
||||
|
||||
1:負論理仕様(負論理->SCSI論理への変換基板を使用する場合)
|
||||
現時点でこの仕様による変換基板は存在しません
|
||||
アーサート:0V -> (CONVERT) -> 0V
|
||||
ネゲート :3.3V -> (CONVERT) -> オープンコレクタ出力
|
||||
|
||||
2:正論理仕様(正論理->SCSI論理への変換基板を使用する場合)
|
||||
RaSCSI Adapter Rev.C @132sync等
|
||||
|
||||
アーサート:3.3V -> (CONVERT) -> 0V
|
||||
ネゲート :0V -> (CONVERT) -> オープンコレクタ出力
|
||||
|
||||
・制御信号ピンアサイン
|
||||
PIN_ACT:SCSIコマンドを処理中の状態を示す信号のピン番号。
|
||||
PIN_ENB:起動から終了の間の有効信号を示す信号のピン番号。
|
||||
PIN_TAD:ターゲット信号(BSY,IO,CD,MSG,REG)の入出力方向を示す信号のピン番号。
|
||||
PIN_IND:イニシーエータ信号(SEL,ATN,RST,ACK)の入出力方向を示す信号のピン番号。
|
||||
PIN_DTD:データ信号(DT0...DT7,DP)の入出力方向を示す信号のピン番号。
|
||||
|
||||
・制御信号出力論理
|
||||
0V:FALSE 3.3V:TRUEで指定します。
|
||||
|
||||
ACT_ON:PIN_ACT信号の論理です。
|
||||
ENB_ON:PIN_ENB信号の論理です。
|
||||
TAD_IN:PIN_TAD入力方向時の論理です。
|
||||
IND_IN:PIN_ENB入力方向時の論理です。
|
||||
DTD_IN:PIN_ENB入力方向時の論理です。
|
||||
|
||||
・SCSI信号ピンアサイン
|
||||
PIN_DT0~PIN_SEL:それぞれSCSI信号のピン番号です。
|
||||
|
||||
□コンパイル方法
|
||||
|
||||
・実行ファイル(rascsi,rasctl)
|
||||
gpiobus.hを修正
|
||||
make clean
|
||||
make
|
||||
|
||||
[EOF]
|
@ -1,116 +0,0 @@
|
||||
-------------------------------------------------- ----------------------------
|
||||
|
||||
SCSI Target Emulator RaSCSI for Raspberry Pi
|
||||
|
||||
Powered by XM6 TypeG Technology.
|
||||
Copyright (C) 2016-2020 GIMONS
|
||||
|
||||
-------------------------------------------------- ----------------------------
|
||||
|
||||
□ Necessity of conversion board
|
||||
SCSI divides 5V at 220Ω and 330Ω at TTL level (in the case of passive terminator)
|
||||
As a result, the state where a voltage of less than 3 V is applied to each signal line becomes a steady state (signal-wise negate)
|
||||
It has become.
|
||||
|
||||
Initiator side or target side tries to assert signal (=0V)
|
||||
Then, a total current of 5000÷220×2=45mA flows from both terminators.
|
||||
If you look at the data sheet of MB89352 which is the SCSI controller of X68000,
|
||||
The current is Iol48mA).
|
||||
|
||||
The RPI GPIO cannot absorb such a large sink current. Electrically secure connection
|
||||
To do this, it is necessary to make a conversion board with a general-purpose logic IC. General logic
|
||||
It is an open collector such as 74LS06 or 07 that can withstand a sink current of 48 mA with IC.
|
||||
Use the high power type.
|
||||
|
||||
The author does basic SCSI direction control with 74HC541×3,74HC126×1,74HC04×1
|
||||
I tried to build a circuit to drive the bus using 74LS07 × 3 and it works without problems
|
||||
I confirmed that.
|
||||
|
||||
If you use 74LS641-1 which is a derivative of 74LS641, you can configure the circuit simply.
|
||||
Would be Unlike normal products, the sink current is compatible with 48 mA, so it is necessary to use 74LS07
|
||||
there is no. But availability is not so good.
|
||||
|
||||
□ Circuit board of conversion board
|
||||
The circuit design is put in the same folder.
|
||||
|
||||
・Target.png
|
||||
Conversion board circuit diagram for using SCSI target mode. It is a basic function
|
||||
If you want to emulate HDD or MO, you can make something equivalent to this circuit diagram.
|
||||
Would be It also uses the fewest GPIO pins.
|
||||
|
||||
If you do not change the pin assignment, it will be included in the standard directory of RaSCSI
|
||||
It is possible to use the binary.
|
||||
|
||||
・Fullspec.png
|
||||
It is a conversion board circuit diagram that can use SCSI target mode and initiator mode.
|
||||
All 74LS641-1 direction control is performed from RaSCSI, so use 3 extra GPIO pins
|
||||
I will do it.
|
||||
|
||||
Customize pin assignments to PIN_TAD, PIN_IND, PIN_DTD respectively
|
||||
Now you need to set 6,7,8 and compile. Pin assigned
|
||||
See Customization.
|
||||
|
||||
□ How to get existing ones
|
||||
Recently, you have created a conversion board for RaSCSI mainly through the Twitter area.
|
||||
There are people who are. Introducing here
|
||||
Is omitted. The timing is undecided, but we plan to distribute the official version for a fee.
|
||||
|
||||
□ Customize pin assignment
|
||||
The signal control logic and pin assignment of GPIO are defined in gpiobus.h.
|
||||
|
||||
As a customization example, the following two conversion board definition examples are prepared in gpiobus.h.
|
||||
Compiled binaries are also included in the distribution.
|
||||
|
||||
・Aibomu version
|
||||
・GAMERnium version
|
||||
|
||||
□ How to customize
|
||||
-This is a message when starting up RaSCSI.
|
||||
CONNECT_DESC
|
||||
|
||||
・Select the signal control mode.
|
||||
SIGNAL_CONTROL_MODE
|
||||
|
||||
0: SCSI logical specification
|
||||
Conversion board using 74LS641-1 etc. directly connected or published on HP
|
||||
Arthurt: 0V
|
||||
Negative: Open collector output (disconnect from bus)
|
||||
|
||||
1: Negative logic specification (when using the conversion board for negative logic -> SCSI logic)
|
||||
There are no conversion boards with this specification at this time
|
||||
Arthurt: 0V -> (CONVERT) -> 0V
|
||||
Negative: 3.3V -> (CONVERT) -> Open collector output
|
||||
|
||||
2: Positive logic specification (when using the conversion board for positive logic -> SCSI logic)
|
||||
RaSCSI Adapter Rev.C @132sync etc.
|
||||
|
||||
Arthurt: 3.3V -> (CONVERT) -> 0V
|
||||
Negative: 0V -> (CONVERT) -> Open collector output
|
||||
|
||||
・Control signal pin assignment
|
||||
PIN_ACT: The pin number of the signal that indicates the status that the SCSI command is being processed.
|
||||
PIN_ENB: Pin number of the signal that indicates the valid signal from start to finish.
|
||||
PIN_TAD: Pin number of the signal that indicates the input/output direction of the target signal (BSY,IO,CD,MSG,REG).
|
||||
PIN_IND: Pin number of the signal indicating the input/output direction of the initiator signal (SEL, ATN, RST, ACK).
|
||||
PIN_DTD: Pin number of the signal that indicates the input/output direction of the data signal (DT0...DT7,DP).
|
||||
|
||||
・Control signal output logic
|
||||
0V:FALSE Specify with 3.3V:TRUE.
|
||||
|
||||
ACT_ON: PIN_ACT signal logic.
|
||||
ENB_ON: Logic of PIN_ENB signal.
|
||||
TAD_IN:PIN_TAD This is the logic in the input direction.
|
||||
IND_IN:PIN_ENB Logic in the input direction.
|
||||
DTD_IN:PIN_ENB Logic in the input direction.
|
||||
|
||||
・ SCSI signal pin assignment
|
||||
PIN_DT0 to PIN_SEL: Each is the pin number of the SCSI signal.
|
||||
|
||||
□ How to compile
|
||||
|
||||
・Executable files (rascsi, rasctl)
|
||||
Fix gpiobus.h
|
||||
make clean
|
||||
make
|
||||
|
||||
[EOF]
|
335
doc/rascsi.txt
335
doc/rascsi.txt
@ -1,335 +0,0 @@
|
||||
------------------------------------------------------------------------------
|
||||
|
||||
SCSI Target Emulator RaSCSI (*^..^*)
|
||||
for Raspberry Pi
|
||||
|
||||
Powered by XM6 TypeG Technology.
|
||||
Copyright (C) 2016-2020 GIMONS
|
||||
|
||||
------------------------------------------------------------------------------
|
||||
□RaSCSIとは
|
||||
RaSCSIはRaspberry Piで動作するSCSIデバイス(ハードディスク,MO,CD-ROM)を
|
||||
仮想的に再現するエミュレータです。SCSIを採用したSHARPのX68000で使用する
|
||||
ことを目的として開発しました。RaSCSIを導入したRaspberry PiをX68000のSCSI
|
||||
コネクタに接続するだけで物理的なSCSIデバイスとして認識されます。
|
||||
|
||||
X68000以外にもSCSIを採用したFM TOWNSやPC98等のレトロPCでも使用できるかも
|
||||
しれません。作者はFM TOWNSとPC9821Ceで動作するところまでは確認しています。
|
||||
|
||||
RaSCSIはSCSIデバイスをエミュレートするソフトウェアに加えてRaspberry Piの
|
||||
GPIOコネクタをSCSIコネクタに変換する機構の総称を指します。
|
||||
|
||||
□動作環境
|
||||
(1)Raspberry Pi
|
||||
Raspberry Pi Zero
|
||||
Raspberry Pi Zero W
|
||||
Raspberry Pi Zero WH
|
||||
Raspberry Pi 2 Model B
|
||||
Raspberry Pi 3 Model B(推奨)
|
||||
Raspberry Pi 3 Model A+
|
||||
Raspberry Pi 3 Model B+
|
||||
Raspberry Pi 4 Model B
|
||||
|
||||
Zero/Zero W/Zero WHでは性能的に少し不安定かもしれません。
|
||||
|
||||
3 Model A+/3 Model B+/4 Model Bは高性能ですが熱の影響でCPUクロックが
|
||||
変動することがありますので対策が必要でしょう。
|
||||
|
||||
(2)OS
|
||||
RASPBIAN BUSTERで開発およびテストしています。
|
||||
RaSCSIはSCSI信号をGPIOを利用して制御しているので可能な限り低レイテンシー
|
||||
の状態で使用する必要があります。したがってCUIモードで利用することを推奨
|
||||
します。
|
||||
|
||||
□SCSIコネクタとの接続方法
|
||||
状況が複雑になってきましたのでRaSCSIのホームページ上で情報提供しています。
|
||||
このドキュメントの最後にある公式ホームページを参考にして下さい。
|
||||
|
||||
□配布物
|
||||
配布するアーカイブには実行ファイル、ドキュメント、ソースコードのそれぞれが
|
||||
ディレクトリで分かれて含まれています。
|
||||
|
||||
bin/ ・・・ 実行ファイル
|
||||
raspberrypi/ ・・・ RPI用のプログラム
|
||||
rascsi.tar.gz ・・・ 実行ファイルをtar+gzipしたもの。
|
||||
|
||||
x68k/ ・・・ X68000用の専用ドライバ
|
||||
RASDRIVER.XDF・・・ 二つのドライバを含むフロッピーイメージ
|
||||
RASDRIVER.HDS・・・ 二つのドライバを含むSCSI HDイメージ
|
||||
RASDRIVER.HDF・・・ 二つのドライバを含むSASI HDイメージ
|
||||
|
||||
doc/ ・・・ ドキュメント
|
||||
rascsi.txt ・・・ 当ドキュメント
|
||||
x68k.txt ・・・ X68000固有機能の説明
|
||||
converter.txt ・・・ 変換基板の説明
|
||||
pinassign.png ・・・ ピンアサイン図
|
||||
target.png ・・・ 変換基板回路図案(ターゲットモード)
|
||||
fullspec.png ・・・ 変換基板回路図案(フルスペック)
|
||||
|
||||
src/ ・・・ ソースコード
|
||||
raspberrypi/ ・・・ RPI用のプログラムソース一式
|
||||
x68k/ ・・・ X68000用のプログラム一式
|
||||
|
||||
|
||||
RPIで使用するプログラムはrascsi.tar.gzですのでRPI上に転送してから解凍して
|
||||
下さい。パーミッション等を維持するためにRPI上で解凍することを推奨します。
|
||||
|
||||
rascsi.tar.gzにはstandard,fullspec,aibom,gamerniumのディレクトリが含まれ
|
||||
ています。
|
||||
|
||||
直結ケーブルや直結基板を使用する場合はstandardディレクトリの実行ファイル
|
||||
を使用して下さい。
|
||||
|
||||
同様にフルスペック版と説明された変換基板の場合はfullspecのディレクトリの
|
||||
ものを使用します(直結でも動くと思います)。
|
||||
|
||||
aibom,gamerniumディレクトリのものは"あいぼむ版","GAMERnium版"の変換基板を
|
||||
使用する時のものです。
|
||||
|
||||
X68000用のドライバはRASDRIVER.XDFもしくはRASDRIVER.HDSの中に次の二つが含ま
|
||||
れています。
|
||||
RASDRV.SYS ・・・ ホストドライブドライバ
|
||||
RASETHER.SYS ・・・ イーサネットドライバ
|
||||
|
||||
□RASCI本体の使用方法(rascsi)
|
||||
|
||||
ID指定の場合
|
||||
rascsi [-IDn FILE] ...
|
||||
n:0~7
|
||||
|
||||
HD指定の場合(X68000 SASI機のHD指定互換)
|
||||
rascsi [-HDn FILE] ...
|
||||
n:0~15
|
||||
|
||||
ルート権限が必要ですのでsudo等で起動する必要があります。
|
||||
オプションに-hを付けると簡単なHELPが表示されます
|
||||
|
||||
Usage: rascsi [-IDn FILE] ...
|
||||
|
||||
n is SCSI identification number(0-7).
|
||||
FILE is disk image file.
|
||||
|
||||
Usage: rascsi [-HDn FILE] ...
|
||||
|
||||
n is X68000 SASI HD number(0-15).
|
||||
FILE is disk image file.
|
||||
|
||||
Image type is detected based on file extension.
|
||||
hdf : SASI HD image(XM6 SASI HD image)
|
||||
hds : SCSI HD image(XM6 SCSI HD image)
|
||||
hdn : SCSI HD image(NEC GENUINE)
|
||||
hdi : SCSI HD image(Anex86 HD image)
|
||||
nhd : SCSI HD image(T98Next HD image)
|
||||
hda : SCSI HD image(APPLE GENUINE)
|
||||
mos : SCSI MO image(XM6 SCSI MO image)
|
||||
iso : SCSI CD image(ISO 9660 image)
|
||||
|
||||
引数では-IDnもしくは-HDnとFILEの一組で一つのSCSI(SASI)デバイスを指定できます。
|
||||
-IDの後ろの番号はSCSI(SASI) IDです。IDは0-7を指定できますが通常レトロPC本体
|
||||
がイニシエータとしてID7等を使用していると思います。その場合は0-6を指定する
|
||||
ことになります。
|
||||
|
||||
FILEは仮想ディスクイメージのファイルパスです。イメージファイル名には拡張子
|
||||
が必要です。拡張子によってHD,MO,CDの種別を判定しています。
|
||||
|
||||
例)SCSI ID0にHDIMAGE0.HDS,ID1にHDIMAGE1.HDSを指定して起動する場合、
|
||||
sudo rascsi -ID0 HDIMAGE0.HDS -ID1 HDIMAGE1.HDS
|
||||
|
||||
終了する場合はCTRL+Cで停止します。
|
||||
バックグラウンドで起動した場合にはkillコマンド該当プロセスにINTシグナルか
|
||||
HUPシグナルを送ることで終了します。
|
||||
|
||||
rascsiは起動後にソケット(6868ポート)を開いて外部からの管理コマンドを受け
|
||||
付ける状態になります。したがって既に別プロセスとしてrascsiが起動している
|
||||
場合はエラーメッセージとともに起動を中断します。
|
||||
|
||||
□管理ツールの使用方法(rasctl)
|
||||
バージョン1.10からrasctlという管理ツールを提供します。これはrascsiプロセス
|
||||
がバックグラウンドで起動(6868ポートで接続待ちの状態)している場合にディスク
|
||||
操作のコマンドを発行することが可能となります。コマンドラインは下記の通り。
|
||||
|
||||
rasctl -i ID [-u UNIT] [-c CMD] [-t TYPE] [-f FILE]
|
||||
|
||||
ID : SCSI ID(0~7)
|
||||
UNIT : ユニット番号(0または1)
|
||||
CMD : 操作コマンド
|
||||
attach : ディスクを取り付ける
|
||||
detach : ディスクを取り外す
|
||||
insert : メディアを挿入する(MOまたはCDのみ)
|
||||
eject : メディアを取り出す(MOまたはCDのみ)
|
||||
protect : メディアを書き込み禁止にする(MOのみ)
|
||||
TYPE : ディスク種別
|
||||
hd : ハードディスク(SASI/SCSI)
|
||||
mo : MO(光磁気ディスク)
|
||||
cd : CDROM(CDROMドライブ)
|
||||
bridge : ブリッジデバイス
|
||||
FILE : ディスクイメージファイルのパス
|
||||
|
||||
IDは必須です。UNITは省略時は0です(SCSIの場合は0を基本とします)。
|
||||
CMDは省略時はattachと解釈します。TYPEはコマンドがattachの場合にはFILEの拡張子
|
||||
から自動判定します。FILEはTYPEを明示的に指定している場合は拡張子が異なっても
|
||||
構いません。基本的CMD,TYPEの解釈は大文字小文字を無視します。最初の1文字でのみ
|
||||
判定しています。
|
||||
|
||||
コマンド例
|
||||
rasctl -i 0 -f HDIMAGE0.HDS
|
||||
|
||||
の場合はSCSI IDは0。CMDはデフォルトでattachでありTYPEは拡張子HDSから判断
|
||||
するのでhdと推測することになりrascsi起動時のオプション指定と同等です。
|
||||
|
||||
現在の状態を確認するにために-lオプションのみを指定するとデバイス一覧が表示
|
||||
されます。コマンドラインは下記の通り。
|
||||
|
||||
rasctl -l
|
||||
|
||||
rasctl自体の起動にはルート権限は必要ありません。
|
||||
|
||||
□ディスクダンプツールの使用方法(rasdump)
|
||||
直結もしくは直結基板、またはフルスペック基板向けのサンプルプログラムです。
|
||||
|
||||
名前の通りSCSI HDDやMOのイメージをダンプ(オプションでリストア)します。
|
||||
自身のIDはBIDで指定して下さい。省略時は7を使用します。
|
||||
|
||||
rasdump -i ID [-b BID] -f FILE [-r]
|
||||
ID : ターゲットデバイスのSCSI ID
|
||||
BID : RaSCSI自身のSCSI ID
|
||||
FILE : ダンプファイル名
|
||||
-r : リストアモード
|
||||
|
||||
サンプルなので必要最低限の処理しか実装していませんので改造するなりして
|
||||
ご使用下さい。
|
||||
|
||||
□SASI専用ディスクダンプツールの使用方法(sasidump)
|
||||
rasdumpをベースにSASI専用に作成したダンプツールです。
|
||||
SASI HDイメージをダンプ(オプションでリストア)します。
|
||||
|
||||
sasidump -i ID [-u UT] [-b BSIZE] -c COUNT -f FILE [-r]
|
||||
ID : ターゲットデバイスのSASI ID
|
||||
UT : ターゲットデバイスのUNIT ID
|
||||
BSIZE: ブロックサイズ(デフォルトは512)
|
||||
COUNT: ブロック数
|
||||
FILE : ダンプファイル名
|
||||
-r : リストアモード
|
||||
|
||||
□ソースから実行ファイルをコンパイルする場合
|
||||
スタンダード版
|
||||
make CONNECT_TYPE=STANDARD
|
||||
|
||||
フルスペック版
|
||||
make CONNECT_TYPE=FULLSPEC
|
||||
|
||||
あいぼむ版
|
||||
make CONNECT_TYPE=AIBOM
|
||||
|
||||
GAMERnium版
|
||||
make CONNECT_TYPE=GAMERNIUM
|
||||
|
||||
□サポートするディスクイメージ
|
||||
(1)SCSI ハードディスク
|
||||
HDSファイル形式 (拡張子HDS/HDN/HDI/NHD/HDA)
|
||||
ファイルサイズは10MB以上4095MB以下の範囲で任意のサイズ(但し512バイト単位)
|
||||
|
||||
拡張子が"HDN"の場合はNEC純正55ボード(PC-9801-55)向けの純正ハードディスク
|
||||
エミュレーションを行います。INQUIRYで返却される情報やMODE SENSEのサイズに
|
||||
に違いがあります。
|
||||
|
||||
拡張子が"HDI","NHD"の場合はそれぞれPC98エミュレータであるAnex86及びT98Next
|
||||
のSCSIハードディスクイメージを使用するものです。HDNの時と同様に一部の情報
|
||||
がNEC用に変換されます。
|
||||
|
||||
拡張子が"HDA"の場合はAPPLE純正ハードディスクエミュレーションを行います。
|
||||
INQUIRY及びMODE SENSEで返却される情報に違いがあります。
|
||||
|
||||
(2)SASI ハードディスク
|
||||
HDFファイル形式 (拡張子HDF)
|
||||
ファイルサイズは10441728バイト、20748288バイト、41496576バイトのいずれか
|
||||
(それぞれ10MBドライブ、20MBドライブ、40MBドライブに対応)を推奨します。
|
||||
256バイト単位であれば10M~512Mの任意のファイルサイズがマウント可能です。
|
||||
|
||||
Version1.46から22437888バイトのイメージはMZ-2500/MZ-2800 MZ-1F23専用の
|
||||
20MBイメージとして認識します(ブロックサイズが1024という特殊イメージ)。
|
||||
|
||||
(3)SCSI 光磁気(MO)ディスク
|
||||
MOSファイル形式 (拡張子MOS)
|
||||
ファイルサイズは次の4種類のいずれか:
|
||||
128MBタイプ (127398912バイト)
|
||||
230MBタイプ (228518400バイト)
|
||||
540MBタイプ (533248000バイト)
|
||||
640MBタイプ (635600896バイト)
|
||||
128MB,230MB,540MBは512バイト/セクタ、640MBは2048バイト/セクタになります。
|
||||
|
||||
(4)SCSI CD-ROMディスク
|
||||
ISOファイル形式 (拡張子ISO、ISO9660ベタイメージ)
|
||||
モード1(2048バイト/セクタ)で、データのみ格納されたファイルとRAW形式で記録
|
||||
されたファイルの両方に対応しています。
|
||||
|
||||
□ディスクイメージの作成
|
||||
RaSCSI自体がX68000エミュレータであるXM6 TypeGの派生物です。従ってディスク
|
||||
イメージの作成はXM6 TypeGの「ツール」メニューから行うことを前提としています。
|
||||
もちろん先に説明した仕様に従えばdd等で空のイメージファイルを作成することも
|
||||
可能です。
|
||||
|
||||
例)100MBのHDSイメージ(空ファイル)を作る場合
|
||||
|
||||
dd if=/dev/zero of=HARDDISK.HDS bs=512 count=204800
|
||||
|
||||
□動作実績
|
||||
作者の開発環境であるX68000 PRO(内蔵SASI/純正SCSIボード)、X68030 内蔵SCSI、
|
||||
XVI Compact 内蔵SCSIで動作確認しています。Mach-2でも動作しました。
|
||||
|
||||
他にも初代X68000,ACE,EXPERT,XVI,PRO2,SUPER等で動作報告がありましたので、
|
||||
X68000シリーズはほぼ問題ないでしょう。
|
||||
|
||||
その他のレトロPCではFM TOWNSシリーズ、Apple Macintosh、MSX(MEGA-SCSI利用)
|
||||
で動作報告があります。PC98シリーズは動作したという報告も多数ありますが、
|
||||
SCSIボードによっては全く動作しないという報告もあります。
|
||||
|
||||
□活用方法
|
||||
XM6等のX68000エミュレータを使用している場合はエミュレータで環境構築したHDD
|
||||
イメージをFTP等でRaspberry Piに転送することでX68000の実機に接続できます。
|
||||
またその逆も然りで実機上に存在するファイルを格納したHDDイメージをPCにFTP等
|
||||
で転送することでエミュレータで活用することができます。
|
||||
|
||||
□ライセンス
|
||||
RaSCSIはあるがまま"AS IS"で配布されるソフトウェアです。
|
||||
|
||||
つまり使用者が受けたあらゆる損害に対して一切責任を持ちません。またソフト
|
||||
ウェアに不備もしくは不具合があったとしてもそれを修正する責任もありません。
|
||||
|
||||
RaSCSIを利用することでRaspberry PiやレトロPCが故障するリスクがあります。
|
||||
あくまで自己責任でチャレンジしてください。
|
||||
|
||||
XM6 TypeG同様に実験成果公開という性質上私のHP以外での配布を認めておりません。
|
||||
|
||||
XM6のライセンス条項を継承していますので雑誌/書籍での紹介事前の許諾が必要です。
|
||||
そもそも2019年にもなってSCSIに反応するのは限られた人だけだと思います。
|
||||
|
||||
□変換基板の頒布について
|
||||
変換基板を有償で頒布する場合は下記の条件に従う限り作者に許諾を得る必要は
|
||||
ありません。重要なことは基板を購入したユーザーに十分な情報を提供することと
|
||||
心得て下さい。
|
||||
|
||||
1.頒布価格
|
||||
基板製作費 + パーツ費用 + 運送費 +(社会通念上一般的な)手数料。
|
||||
|
||||
2.回路図
|
||||
購入者に回路図を提供して下さい。基板頒布と同時もしくは別途ホームページから
|
||||
のダウンロード等手段は自由です。
|
||||
|
||||
3.動作検証
|
||||
X68000実機環境の動作検証は必須とします。実機が手に入らない場合はX68000
|
||||
ユーザーの方に検証の協力をお願いしてもよいでしょう。動作検証は起動確認以外
|
||||
に書き込みや負荷テストをお願いします。検証結果は使用した環境やと共に公開
|
||||
して下さい。
|
||||
|
||||
□変換基板(公式版)について
|
||||
BOOTHで2019年3月以降配布しています(数に限りがありますので不定期です)。
|
||||
|
||||
□公開ホームページ
|
||||
http://retropc.net/gimons/rascsi/
|
||||
|
||||
□連絡先
|
||||
twitter https://twitter.com/kugimoto0715
|
||||
e-mail gimons.developer.works@gmail.com
|
||||
|
||||
[EOF]
|
@ -1,335 +0,0 @@
|
||||
-------------------------------------------------- ----------------------------
|
||||
|
||||
SCSI Target Emulator RaSCSI (*^..^*)
|
||||
for Raspberry Pi
|
||||
|
||||
Powered by XM6 TypeG Technology.
|
||||
Copyright (C) 2016-2020 GIMONS
|
||||
|
||||
-------------------------------------------------- ----------------------------
|
||||
□ What is RaSCSI
|
||||
RaSCSI is a SCSI device (hard disk, MO, CD-ROM) that operates on the Raspberry Pi.
|
||||
It is a virtual emulator. Use with SHARP X68000 that adopts SCSI
|
||||
It was developed for that purpose. Raspberry Pi with RaSCSI installed on the X68000 SCSI
|
||||
Simply connect it to the connector and it will be recognized as a physical SCSI device.
|
||||
|
||||
In addition to the X68000, it may be possible to use it with a retro PC such as FM TOWNS or PC 98 that adopted SCSI.
|
||||
May. The author has confirmed that it works with FM TOWNS and PC9821Ce.
|
||||
|
||||
RaSCSI is a software that emulates SCSI devices plus Raspberry Pi
|
||||
Refers to the general term for the mechanism that converts a GPIO connector into a SCSI connector.
|
||||
|
||||
□ Operating environment
|
||||
(1) Raspberry Pi
|
||||
Raspberry Pi Zero
|
||||
Raspberry Pi Zero W
|
||||
Raspberry Pi Zero WH
|
||||
Raspberry Pi 2 Model B
|
||||
Raspberry Pi 3 Model B (recommended)
|
||||
Raspberry Pi 3 Model A+
|
||||
Raspberry Pi 3 Model B+
|
||||
Raspberry Pi 4 Model B
|
||||
|
||||
Performance may be a little unstable with Zero/Zero W/Zero WH.
|
||||
|
||||
3 Model A+/3 Model B+/4 Model B has high performance, but CPU clock is affected by heat.
|
||||
It may fluctuate, so it will be necessary to take measures.
|
||||
|
||||
(2) OS
|
||||
Developed and tested by RASPBIAN BUSTER.
|
||||
RaSCSI uses GPIO to control SCSI signals, so latency is as low as possible.
|
||||
Must be used in the state of. Therefore, it is recommended to use it in CUI mode.
|
||||
To do.
|
||||
|
||||
□ Connection method with SCSI connector
|
||||
Since the situation has become complicated, we provide information on the RaSCSI home page.
|
||||
Please refer to the official website at the end of this document.
|
||||
|
||||
□ Handout
|
||||
The executable file, the document, and the source code are stored in the distributed archive.
|
||||
It is divided and included in the directory.
|
||||
|
||||
bin/ ・・・ Executable file
|
||||
raspberrypi/ ・・・ RPI program
|
||||
rascsi.tar.gz ・・・ The tar+gzip of the executable file.
|
||||
|
||||
x68k/ ・・・ Dedicated driver for X68000
|
||||
RASDRIVER.XDF... A floppy image containing two drivers
|
||||
RASDRIVER.HDS... A SCSI HD image containing two drivers
|
||||
RASDRIVER.HDF... SASI HD image containing two drivers
|
||||
|
||||
doc/ ・・・Documents
|
||||
rascsi.txt ・・・ This document
|
||||
x68k.txt ・・・ Description of X68000 specific functions
|
||||
converter.txt ・・・ Description of converter board
|
||||
pinassign.png ・・・ Pin assignment diagram
|
||||
target.png ・・・ Conversion board circuit pattern (target mode)
|
||||
fullspec.png ・・・Conversion board circuit pattern (full spec)
|
||||
|
||||
src/ ・・・ Source code
|
||||
raspberrypi/ ・・・ Set of program source for RPI
|
||||
x68k/ ・・・ Set of programs for X68000
|
||||
|
||||
|
||||
The program used in RPI is rascsi.tar.gz, so transfer it to RPI and decompress it.
|
||||
Please. It is recommended to unzip on RPI to maintain permissions etc.
|
||||
|
||||
rascsi.tar.gz contains standard, fullspec, aibom and gamernium directories.
|
||||
I am.
|
||||
|
||||
Executable file in the standard directory when using a direct connection cable or direct connection board
|
||||
Please use.
|
||||
|
||||
Similarly, in the case of the conversion board described as the full spec version, in the fullspec directory
|
||||
I will use one (I think that it works even if it is directly connected).
|
||||
|
||||
For the aibom and gamernium directories, use the conversion boards of "Aibomu version" and "GAMERnium version".
|
||||
It is when using.
|
||||
|
||||
The driver for X68000 includes the following two in RASDRIVER.XDF or RASDRIVER.HDS
|
||||
It is
|
||||
RASDRV.SYS ・・・ Host drive driver
|
||||
RASETHER.SYS ・・・ Ethernet driver
|
||||
|
||||
□ How to use RASCI main unit (rascsi)
|
||||
|
||||
When ID is specified
|
||||
rascsi [-IDn FILE] ...
|
||||
n:0 ~ 7
|
||||
|
||||
When specifying HD (compatible with HD specification of X68000 SASI machine)
|
||||
rascsi [-HDn FILE] ...
|
||||
n: 0 ~ 15
|
||||
|
||||
Since root authority is required, it is necessary to start with sudo etc.
|
||||
If you add -h to the option, a simple HELP will be displayed
|
||||
|
||||
Usage: rascsi [-IDn FILE] ...
|
||||
|
||||
n is SCSI identification number(0-7).
|
||||
FILE is disk image file.
|
||||
|
||||
Usage: rascsi [-HDn FILE] ...
|
||||
|
||||
n is X68000 SASI HD number(0-15).
|
||||
FILE is disk image file.
|
||||
|
||||
Image type is detected based on file extension.
|
||||
hdf: SASI HD image(XM6 SASI HD image)
|
||||
hds: SCSI HD image(XM6 SCSI HD image)
|
||||
hdn: SCSI HD image (NEC GENUINE)
|
||||
hdi: SCSI HD image(Anex86 HD image)
|
||||
nhd: SCSI HD image(T98Next HD image)
|
||||
hda: SCSI HD image(APPLE GENUINE)
|
||||
mos: SCSI MO image(XM6 SCSI MO image)
|
||||
iso: SCSI CD image (ISO 9660 image)
|
||||
|
||||
In the argument, one SCSI (SASI) device can be specified by a pair of -IDn or -HDn and FILE.
|
||||
-The number after the ID is the SCSI (SASI) ID. You can specify 0-7 as the ID, but usually the retro PC body
|
||||
I think you are using ID7 etc. as the initiator. In that case, specify 0-6
|
||||
It will be.
|
||||
|
||||
FILE is the file path of the virtual disk image. The image file name has an extension
|
||||
Is required. The type of HD, MO, CD is determined by the extension.
|
||||
|
||||
Example) When you specify HDIMAGE0.HDS for SCSI ID0 and HDIMAGE1.HDS for ID1 and start up,
|
||||
sudo rascsi -ID0 HDIMAGE0.HDS -ID1 HDIMAGE1.HDS
|
||||
|
||||
When you finish, press CTRL+C to stop.
|
||||
If it is started in the background, is the kill command an INT signal to the relevant process?
|
||||
It ends by sending a HUP signal.
|
||||
|
||||
After starting, rascsi opens a socket (6868 port) and receives external management commands.
|
||||
It is ready to be attached. Therefore, rascsi has already started as another process.
|
||||
If so, the boot will abort with an error message.
|
||||
|
||||
□ How to use the management tool (rasctl)
|
||||
We provide a management tool called rasctl from version 1.10. This is the rascsi process
|
||||
Disk is running in the background (waiting for connection on port 6868)
|
||||
It is possible to issue operation commands. The command line is as follows.
|
||||
|
||||
rasctl -i ID [-u UNIT] [-c CMD] [-t TYPE] [-f FILE]
|
||||
|
||||
ID: SCSI ID (0 to 7)
|
||||
UNIT: Unit number (0 or 1)
|
||||
CMD: Operation command
|
||||
attach: attach disk
|
||||
detach: detach disk
|
||||
insert: insert media (MO or CD only)
|
||||
eject: Eject media (MO or CD only)
|
||||
protect: Write protect the media (MO only)
|
||||
TYPE: Disc type
|
||||
hd: Hard disk (SASI/SCSI)
|
||||
mo: MO (magneto-optical disk)
|
||||
cd: CDROM (CDROM drive)
|
||||
bridge: Bridge device
|
||||
FILE: Path of disk image file
|
||||
|
||||
ID is required. UNIT defaults to 0 (default is 0 for SCSI).
|
||||
CMD is interpreted as attach when omitted. TYPE is the extension of FILE when the command is attach
|
||||
It will automatically judge from. FILE has a different extension if TYPE is explicitly specified.
|
||||
does not matter. Basic interpretation of CMD and TYPE is case insensitive. Only the first letter
|
||||
Judging.
|
||||
|
||||
Command example
|
||||
rasctl -i 0 -f HDIMAGE0.HDS
|
||||
|
||||
Is 0, the SCSI ID is 0. CMD is attach by default and TYPE is determined from the extension HDS
|
||||
Therefore, it is supposed to be hd and it is equivalent to the option specification when starting rascsi.
|
||||
|
||||
If only -l option is specified to check the current status, the device list is displayed.
|
||||
Will be done. The command line is as follows.
|
||||
|
||||
rasctl -l
|
||||
|
||||
You do not need root privileges to start rasctl itself.
|
||||
|
||||
□ How to use Disk Dump Tool (rasdump)
|
||||
Sample program for direct connection or direct connection board, or full-spec board.
|
||||
|
||||
As the name suggests, it dumps (optionally restores) the image of SCSI HDD or MO.
|
||||
Specify your own ID as BID. If omitted, 7 is used.
|
||||
|
||||
rasdump -i ID [-b BID] -f FILE [-r]
|
||||
ID: SCSI ID of the target device
|
||||
BID: RaSCSI's own SCSI ID
|
||||
FILE: dump file name
|
||||
-r: Restore mode
|
||||
|
||||
Since it is a sample, only the minimum necessary processing is implemented, so do not modify it
|
||||
Please use.
|
||||
|
||||
□ How to use SASI dedicated disk dump tool (sasidump)
|
||||
A dump tool created for SASI based on rasdump.
|
||||
Dump (optionally restore) the SASI HD image.
|
||||
|
||||
sasidump -i ID [-u UT] [-b BSIZE] -c COUNT -f FILE [-r]
|
||||
ID: SASI ID of the target device
|
||||
UT: UNIT ID of the target device
|
||||
BSIZE: Block size (default 512)
|
||||
COUNT: Number of blocks
|
||||
FILE: dump file name
|
||||
-r: Restore mode
|
||||
|
||||
□ When compiling the executable file from the source
|
||||
Standard edition
|
||||
make CONNECT_TYPE=STANDARD
|
||||
|
||||
Full spec version
|
||||
make CONNECT_TYPE=FULLSPEC
|
||||
|
||||
Aibomu version
|
||||
make CONNECT_TYPE=AIBOM
|
||||
|
||||
GAMERnium version
|
||||
make CONNECT_TYPE=GAMERNIUM
|
||||
|
||||
□ Supported disk images
|
||||
(1) SCSI hard disk
|
||||
HDS file format (extension HDS/HDN/HDI/NHD/HDA)
|
||||
The file size can be any size within the range of 10MB to 4095MB (in 512-byte units)
|
||||
|
||||
If the extension is "HDN", a genuine hard disk for NEC genuine 55 board (PC-9801-55)
|
||||
Perform emulation. For information returned by INQUIRY and MODE SENSE size
|
||||
There is a difference.
|
||||
|
||||
If the extension is "HDI" or "NHD", the PC98 emulator is Annex86 or T98Next.
|
||||
It is intended to use a SCSI hard disk image. Some information as in HDN
|
||||
Is converted for NEC.
|
||||
|
||||
If the extension is "HDA", APPLE genuine hard disk emulation is performed.
|
||||
There is a difference in the information returned by INQUIRY and MODE SENSE.
|
||||
|
||||
(2) SASI hard disk
|
||||
HDF file format (extension HDF)
|
||||
File size is either 10441728 bytes, 20748288 bytes, or 41496576 bytes
|
||||
We recommend 10MB drive, 20MB drive and 40MB drive respectively.
|
||||
Any file size from 10M to 512M can be mounted in 256-byte units.
|
||||
|
||||
Images from version 1.46 to 22437888 bytes are for MZ-2500/MZ-2800 MZ-1F23
|
||||
Recognized as a 20MB image (special image with a block size of 1024).
|
||||
|
||||
(3) SCSI magneto-optical (MO) disk
|
||||
MOS file format (extension MOS)
|
||||
File size is one of the following four types:
|
||||
128MB type (127398912 bytes)
|
||||
230MB type (228518400 bytes)
|
||||
540MB type (533248000 bytes)
|
||||
640MB type (635600896 bytes)
|
||||
128MB, 230MB, 540MB is 512 bytes/sector and 640MB is 2048 bytes/sector.
|
||||
|
||||
(4) SCSI CD-ROM disk
|
||||
ISO file format (extension ISO, ISO9660 solid image)
|
||||
Record in a file containing only data and in RAW format in mode 1 (2048 bytes/sector)
|
||||
Both files are supported.
|
||||
|
||||
□ Disk image creation
|
||||
RaSCSI itself is a derivative of the XM6 TypeG, an X68000 emulator. Therefore the disc
|
||||
It is assumed that the image is created from the "Tools" menu of XM6 TypeG.
|
||||
Of course, you can also create an empty image file with dd etc. according to the specifications explained above.
|
||||
Is possible.
|
||||
|
||||
Example) When creating a 100 MB HDS image (empty file)
|
||||
|
||||
dd if=/dev/zero of=HARDDISK.HDS bs=512 count=204800
|
||||
|
||||
□ Operation record
|
||||
The author's development environment X68000 PRO (built-in SASI/genuine SCSI board), X68030 built-in SCSI,
|
||||
We have confirmed the operation with the XVI Compact built-in SCSI. It also worked on Mach-2.
|
||||
|
||||
Since there were other operation reports on the first generation X68000, ACE, EXPERT, XVI, PRO2, SUPER, etc.,
|
||||
The X68000 series should be fine.
|
||||
|
||||
For other retro PCs, FM TOWNS series, Apple Macintosh, MSX (using MEGA-SCSI)
|
||||
There is an operation report in. There are many reports that the PC98 series worked, but
|
||||
Some SCSI boards do not even work at all.
|
||||
|
||||
□ How to use
|
||||
If you are using an X68000 emulator such as XM6, HDD that is built by the emulator
|
||||
You can connect to the actual X68000 machine by transferring the image to the Raspberry Pi by FTP etc.
|
||||
The reverse is also true, and the HDD image that stores the files that exist on the actual machine is FTPed to the PC, etc.
|
||||
You can use it in the emulator by transferring with.
|
||||
|
||||
□ License
|
||||
RaSCSI is software distributed as is "AS IS".
|
||||
|
||||
That is, we do not take any responsibility for any damages that the user receives. Soft again
|
||||
We are not responsible for fixing any defects or defects in the software.
|
||||
|
||||
There is a risk that the Raspberry Pi and retro PC will break down by using RaSCSI.
|
||||
Please challenge at your own risk.
|
||||
|
||||
As with XM6 TypeG, we are not allowed to distribute it on other than my HP due to the nature of experimental results disclosure.
|
||||
|
||||
As it inherits the license terms of XM6, introduction in magazines/books requires prior permission.
|
||||
In the first place, I think only a limited number of people will respond to SCSI in 2019.
|
||||
|
||||
□About distribution of conversion boards
|
||||
If you want to distribute the conversion board for a fee, it is not necessary to obtain permission from the author as long as you follow the conditions below.
|
||||
There is none. It is important to provide enough information to the user who purchased the board.
|
||||
Please understand.
|
||||
|
||||
1.Distribution price
|
||||
Board production cost + parts cost + transportation cost + (general social convention) fee.
|
||||
|
||||
2. Schematic
|
||||
Please provide the buyer with the schematic. Simultaneously with board distribution or separately from homepage
|
||||
There are no restrictions on the means of downloading.
|
||||
|
||||
3. Operation verification
|
||||
Operation verification of the X68000 actual machine environment is mandatory. If you can not get the real machine X68000
|
||||
You may ask the user to cooperate with the verification. Operation verification is other than startup confirmation
|
||||
Please write and load test. Verification results are published together with the environment in which they were used
|
||||
please do it.
|
||||
|
||||
□ About conversion board (official version)
|
||||
It has been distributed on BOOTH since March 2019 (it is irregular because the number is limited).
|
||||
|
||||
□ Public homepage
|
||||
http://retropc.net/gimons/rascsi/
|
||||
|
||||
□ Contact information
|
||||
twitter https://twitter.com/kugimoto0715
|
||||
e-mail gimons.developer.works@gmail.com
|
||||
|
||||
[EOF]
|
114
doc/x68k.txt
114
doc/x68k.txt
@ -1,114 +0,0 @@
|
||||
------------------------------------------------------------------------------
|
||||
|
||||
SCSI Target Emulator RaSCSII (*^..^*)
|
||||
for Raspberry Pi
|
||||
|
||||
Powered by XM6 TypeG Technology.
|
||||
Copyright (C) 2016-2020 GIMONS
|
||||
|
||||
------------------------------------------------------------------------------
|
||||
□X68000固有の機能について
|
||||
RaSCSIにはブリッジデバイスという仮想的なSCSIデバイスが実装されておりX68000と
|
||||
ホストであるRaspberry Piの橋渡しを行うことができます。このブリッジデバイスと
|
||||
X68000用の専用ドライバを使用して下記の機能を提供します。
|
||||
|
||||
・イーサーネット
|
||||
Neptune-Xと同様のイーサーネット機能を提供します。SCSI接続のイーサーネット
|
||||
BOXのようにRaSCSIが振舞います。Raspberry PiのTAPデバイスにパケットを中継
|
||||
することで実現しています。Ether+と似たものです。
|
||||
|
||||
・ホストファイルシステム
|
||||
X68000のエミュレーターでは標準的な機能であるWindrv相当の機能を提供します。
|
||||
Raspberry Pi上のファイルシステムをリモートドライブとしてマウントすること
|
||||
ができます。
|
||||
|
||||
□ブジッジデバイスの起動方法
|
||||
RaSCSI起動時にファイル名として"BRIDGE"というキーワードを設定するとそのIDに
|
||||
対してブジッリデバイスを生成します。
|
||||
|
||||
ex)
|
||||
sudo rascsi -ID0 HDIMAGE0.HDS -ID6 BRIDGE
|
||||
|
||||
□専用ドライバ
|
||||
配布物に含まれるRASDRIVER.XDFもしくはRASDRIVER.HDSに二つのドライバが含まれ
|
||||
ています。RaSCSIでRASDRIVER.HDSをマウントし適宜コピーした方が実機への転送が
|
||||
簡単でしょう。
|
||||
|
||||
□イーサーネット接続
|
||||
イーサネットドライバ(RASETHER.SYS)がブリッジデバイスと連携してイーサーネット
|
||||
のパケット送受信を行うことができます。
|
||||
|
||||
以下、Raspberry Piの仮想アダプタ(TAP)のIPアドレスを「192.168.68.1」として、
|
||||
X68000側を「192.168.68.3」とするケースで説明します。
|
||||
|
||||
・X68000の設定
|
||||
RASETHER.SYSはNeptune-X用ドライバを改造して作ったものですので使用方法は
|
||||
全く同じです。X68000をネット接続するためには他に環境設定を行う必要があり
|
||||
ます。設定方法は自力で調べていただくようお願いします。
|
||||
|
||||
以下実際に使用しているCONFIG.SYSとAUTOEXEC.BATの抜粋です。
|
||||
|
||||
[CONFIG.SYS抜粋]
|
||||
PROCESS = 3 10 10
|
||||
DEVICE = \NETWORK\RASETHER.SYS
|
||||
|
||||
[AUTOEXEC.BAT抜粋]
|
||||
SET SYSROOT=A:/NETWORK/
|
||||
SET temp=A:\
|
||||
SET tmp=A:\
|
||||
SET HOME=A:/NETWORK/ETC/
|
||||
SET HOST=X68000
|
||||
XIP.X
|
||||
IFCONFIG.X lp0 up
|
||||
IFCONFIG.X en0 192.168.68.3 netmask 255.255.255.0 up
|
||||
INETDCONF.X +router 192.168.68.1 -rip
|
||||
INETDCONF.X
|
||||
|
||||
・Raspberry Piの設定
|
||||
TAPデバイスというものを利用していますのでTAPを有効にしてください。恐らく
|
||||
最近のJessieであれば最初から有効なはずです。確認方法は/dev/net/tunという
|
||||
ファイルが存在すれば有効となっていると判断できます。
|
||||
|
||||
仮想アダプタの作成方法は次の様に行います。
|
||||
|
||||
[/etc/rc.local等から設定]
|
||||
ip tuntap add ras0 mode tap user root
|
||||
ip link set ras0 up
|
||||
ifconfig ras0 inet 192.168.68.1/8 up
|
||||
route add -net 192.168.68.0 netmask 255.255.255.0 dev ras0
|
||||
|
||||
上記によってRaspberry Pi(192.168.68.1)とX68000(192.168.68.3)の間で通信が
|
||||
可能になります。
|
||||
|
||||
インターネット等と接続する場合はRaspberry Pi側でブリッジやルーティングの
|
||||
設定が必要になります。ご自身の環境に合わせて設定してください。無線LANの
|
||||
場合にブリッジ構成するには色々と課題があるようなのでフォワーディングと
|
||||
NAT構成等もお勧めです。作者はrc.localで次のような設定で使用しています。
|
||||
|
||||
echo 1 > /proc/sys/net/ipv4/ip_forward
|
||||
iptables -t nat -A POSTROUTING -o wlan0 -j MASQUERADE
|
||||
|
||||
□ホストファイルシステム連携
|
||||
X68000エミュレータでよく利用されるWindrvやWindrvXMと同等の機能を提供します。
|
||||
専用のRASDRV.SYSというデバイスドライバを組み込めばRaspberri Piのファイル
|
||||
システムがX68000側のドライブに見えて操作できるということです。
|
||||
|
||||
デバイスドライバの登録は簡単です。
|
||||
例えば
|
||||
|
||||
DEVICE = \SYS\RASDRV.SYS
|
||||
|
||||
この場合はデフォルトでRaspberry Piのルートディレクトリをマウントします。
|
||||
デバイスドライバ起動時にどのドライブにマウントされたか表示されます。
|
||||
ルートを以外をマウントする場合はディレクトリを指定して下さい。/home/pi等を
|
||||
マウントするには
|
||||
|
||||
DEVICE = \SYS\RASDRV.SYS /home/pi
|
||||
|
||||
と指定します。複数のディレクトリを指定すれば別々のドライブとしてマウントする
|
||||
ことが可能です。
|
||||
|
||||
SUSIEをご利用の方はSUSIEより先にRASDRV.SYSを組み込んで下さい。後に組み込むと
|
||||
正しく認識できなくなると報告があります。
|
||||
|
||||
[EOF]
|
114
doc/x68k_en.txt
114
doc/x68k_en.txt
@ -1,114 +0,0 @@
|
||||
-------------------------------------------------- ----------------------------
|
||||
|
||||
SCSI Target Emulator RaSCSII (*^..^*)
|
||||
for Raspberry Pi
|
||||
|
||||
Powered by XM6 TypeG Technology.
|
||||
Copyright (C) 2016-2020 GIMONS
|
||||
|
||||
-------------------------------------------------- ----------------------------
|
||||
□ Regarding the functions unique to the X68000
|
||||
RaSCSI is equipped with a virtual SCSI device called a bridge device,
|
||||
You can bridge the host Raspberry Pi. With this bridge device
|
||||
The following functions are provided by using the dedicated driver for X68000.
|
||||
|
||||
・Ethernet
|
||||
It provides the same Ethernet function as Neptune-X. SCSI-connected Ethernet
|
||||
RaSCSI behaves like a BOX. Relay packets to the Raspberry Pi TAP device
|
||||
It is realized by doing. Similar to Ether+.
|
||||
|
||||
・Host file system
|
||||
The emulator of X68000 provides a standard function equivalent to Windrv.
|
||||
Mount the file system on the Raspberry Pi as a remote drive
|
||||
I can.
|
||||
|
||||
□ How to activate the Bridge Device
|
||||
If you set the keyword "BRIDGE" as the file name when RaSCSI starts up, it will be assigned to that ID.
|
||||
Generate a Buzzilli device for it.
|
||||
|
||||
ex)
|
||||
sudo rascsi -ID0 HDIMAGE0.HDS -ID6 BRIDGE
|
||||
|
||||
□ Dedicated driver
|
||||
Two drivers are included in RASDRIVER.XDF or RASDRIVER.HDS included in the distribution
|
||||
I am. It is better to mount RASDRIVER.HDS with RaSCSI and copy it appropriately to transfer to the actual device
|
||||
It will be easy.
|
||||
|
||||
□ Ethernet connection
|
||||
Ethernet driver (RASETHER.SYS) works with bridge device to connect to Ethernet
|
||||
You can send and receive packets.
|
||||
|
||||
Below, the IP address of the virtual adapter (TAP) of Raspberry Pi is "192.168.68.1",
|
||||
The case where the X68000 side is set to "192.168.68.3" will be explained.
|
||||
|
||||
-X68000 settings
|
||||
RASETHER.SYS is made by modifying the driver for Neptune-X.
|
||||
Exactly the same. In order to connect the X68000 to the internet, it is necessary to set other environment settings.
|
||||
I will. Please check the setting method by yourself.
|
||||
|
||||
Below is an excerpt of CONFIG.SYS and AUTOEXEC.BAT that are actually used.
|
||||
|
||||
[Excerpt from CONFIG.SYS]
|
||||
PROCESS = 3 10 10
|
||||
DEVICE = \NETWORK\RASETHER.SYS
|
||||
|
||||
[Excerpt from AUTOEXEC.BAT]
|
||||
SET SYSROOT=A:/NETWORK/
|
||||
SET temp=A:\
|
||||
SET tmp=A:\
|
||||
SET HOME=A:/NETWORK/ETC/
|
||||
SET HOST=X68000
|
||||
XIP.X
|
||||
IFCONFIG.X lp0 up
|
||||
IFCONFIG.X en0 192.168.68.3 netmask 255.255.255.0 up
|
||||
INETDCONF.X +router 192.168.68.1 -rip
|
||||
INETDCONF.X
|
||||
|
||||
・Raspberry Pi settings
|
||||
I am using a TAP device, so please enable TAP. perhaps
|
||||
If you're using Jessie these days, it should work from the beginning. The confirmation method is /dev/net/tun
|
||||
If the file exists, it can be determined that it is valid.
|
||||
|
||||
The method of creating a virtual adapter is as follows.
|
||||
|
||||
[Set from /etc/rc.local etc.]
|
||||
ip tuntap add ras0 mode tap user root
|
||||
ip link set ras0 up
|
||||
ifconfig ras0 inet 192.168.68.1/8 up
|
||||
route add -net 192.168.68.0 netmask 255.255.255.0 dev ras0
|
||||
|
||||
By the above, communication between Raspberry Pi (192.168.68.1) and X68000 (192.168.68.3)
|
||||
It will be possible.
|
||||
|
||||
When connecting to the Internet etc., bridge and routing on the Raspberry Pi side
|
||||
Settings are required. Please set according to your environment. Wifi
|
||||
In this case, there seem to be various problems in constructing a bridge.
|
||||
NAT configuration is also recommended. The author uses it in rc.local with the following settings.
|
||||
|
||||
echo 1 >/proc/sys/net/ipv4/ip_forward
|
||||
iptables -t nat -A POSTROUTING -o wlan0 -j MASQUERADE
|
||||
|
||||
□ Host file system cooperation
|
||||
It provides the same functions as Windrv and WindrvXM that are often used in the X68000 emulator.
|
||||
Raspberri Pi files if you include a dedicated device driver called RASDRV.SYS
|
||||
It means that the system can be seen and operated as a drive on the X68000 side.
|
||||
|
||||
Registering a device driver is easy.
|
||||
For example
|
||||
|
||||
DEVICE = \SYS\RASDRV.SYS
|
||||
|
||||
In this case, mount the root directory of Raspberry Pi by default.
|
||||
The drive mounted when the device driver is started is displayed.
|
||||
If you want to mount other than root, please specify the directory. /home/pi etc.
|
||||
To mount
|
||||
|
||||
DEVICE = \SYS\RASDRV.SYS /home/pi
|
||||
|
||||
Specify. If you specify multiple directories, they will be mounted as separate drives.
|
||||
It is possible.
|
||||
|
||||
If you are using SUSIE, please install RASDRV.SYS before SUSIE. When incorporated later
|
||||
There are reports that it can not be recognized correctly.
|
||||
|
||||
[EOF]
|
Loading…
x
Reference in New Issue
Block a user