English Amiga Board


Go Back   English Amiga Board > News

 
 
Thread Tools
Old 28 February 2018, 19:51   #1
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 43
Posts: 21,209
Warp Engine SCSI driver converted for PP&S Zeus 040 (and others)

And now something totally different: MacroSystem Warp Engine warpdrive.device SCSI driver converted to other 53C710 based SCSI controllers.

This quick project started when I saw request from wmaciv asking for working PP&S Zeus 040 SCSI driver. Official driver is quite bad, it uses all CPU time and is quite buggy.
I took the challenge because technically it should be easy (and it was!), 53C710 is all-in-one SCSI chip, no external DMA or other hardware needed so the "only" task was remapping 53C710 registers.

There was two obvious choices for driver, A4091 or Warp Engine. I chose Warp Engine because Warp Engine ROM driver is in normal relocatable executable format (+small loader) which made it easy to disassemble. Note that 53C720 is too different and can't be used with 53C710 driver or vice versa. All later variants (including 53C8xx) are fully or almost compatible with 53C720.

Executable version (run it in shell, drives get detected and partitions mounted) Zeus 040 driver was quickly done under emulation (I don't have Zeus 040) and surprisingly it worked perfectly on real hardware too (I didn't really expect it..). ~8M/s speed using SCSI2SDv6 with over 90% CPU availability.

Next step was ROM version (not yet tested, Zeus 040 has unusual ROM chip package size). And finally I also did two mostly useless versions: one for A4091 and another for A4000T built-in SCSI.

Included drivers:

warpdrive_a4000t: Executable/rommable A4000T driver.
warpdrive_a4091.rom: A4091 ROM driver. (No executable version because A4091 does not have no-autoboot jumper)
warpdrive_zeus040: Executable Zeus 040 driver.
warpdrive_zeus040.rom: Zeus 040 ROM driver (needs odd/even splitting).

A4091 and A4000T drivers are emulation only tested but I expect them to work because Zeus 040 driver worked perfectly fine on real hardware
Ignores SCSI ID/mode jumpers: ID=7, 100ns sync mode (fastest possible).
ROM version mode can be changed if needed by changing single value using hex editor.
Executable versions take optional parameter (0 to 7) which matches Warp Engine K, J and H jumper setting.

Currently only uploaded to the zone (warpengine_driver_hacks.zip). If spreading hacked files based on 3rd party drivers is not ok, I'll replace them with patches against Warp Engine ROM image.
Toni Wilen is online now  
AdSense AdSense  
Old 28 February 2018, 20:19   #2
gulliver
BoingBagged

 
Join Date: Aug 2007
Location: The South of nowhere
Age: 40
Posts: 1,617
Really outstanding work!

Does this new set of drivers provide any additional feature or better reimplementation in any aspect than the original drivers?.

I ask this because your response might persuade A4000T/A4091 owners to update.

Anyway, as mentioned, despite I dont have any of those devices I can truly apreciate any development going that route. Thanks.

Last edited by gulliver; 28 February 2018 at 21:04. Reason: typo
gulliver is offline  
Old 28 February 2018, 20:33   #3
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 43
Posts: 21,209
Quote:
Originally Posted by gulliver View Post
Does this new set of drivers provide any additional feature or better reimplementation in any aspect than the original drivers?.
I don't know if it is better than original A4000T/A4091 driver. Someone needs to test it. (I only have broken A4091) I only made them because it was very easy. Main goal was Zeus 040 driver replacement.
Toni Wilen is online now  
Old 28 February 2018, 22:37   #4
Romanujan
Registered User
 
Join Date: Dec 2007
Location: Szczecin/Poland
Posts: 232
Why running version command on the A4000T driver prints out version 40.-1?
Romanujan is offline  
Old 01 March 2018, 03:31   #5
dannyp1
Registered User
 
Join Date: Nov 2009
Location: Michigan USA
Posts: 159
I believe the most recent WarpDrive.device was version 40.66. I wonder if Toni is keeping this version number or if it will be changed because of changes he's made.
dannyp1 is offline  
Old 01 March 2018, 08:28   #6
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 43
Posts: 21,209
I get 40.66. (EDIT: short answer to short question without any details, run it in shell? In rom? and so on..)

Last edited by Toni Wilen; 01 March 2018 at 10:25.
Toni Wilen is online now  
Old 01 March 2018, 18:48   #7
Romanujan
Registered User
 
Join Date: Dec 2007
Location: Szczecin/Poland
Posts: 232
Sorry, I was imprecise. Driver not installed (not in ROM, no LoadModule used, etc.) - just open the shell, go to the directory with a driver file and type:

Code:
version warpdrive_a4000t

Last edited by Romanujan; 01 March 2018 at 18:57.
Romanujan is offline  
Old 01 March 2018, 21:34   #8
grelbfarlk
Registered User

 
Join Date: Dec 2015
Location: USA
Posts: 1,156
I looked in the zone but I don't see the file. I could check A4091 version.
grelbfarlk is offline  
Old 01 March 2018, 22:12   #9
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 43
Posts: 21,209
Quote:
Originally Posted by grelbfarlk View Post
I looked in the zone but I don't see the file. I could check A4091 version.
It is currently 3rd file, impossible to miss..

Quote:
Originally Posted by Romanujan View Post
Sorry, I was imprecise. Driver not installed (not in ROM, no LoadModule used, etc.) - just open the shell, go to the directory with a driver file and type:

Code:
version warpdrive_a4000t
It means nothing, it is not a driver but loader that creates the driver in memory. Version probably guesses something.
Toni Wilen is online now  
Old 01 March 2018, 22:23   #10
grelbfarlk
Registered User

 
Join Date: Dec 2015
Location: USA
Posts: 1,156
Quote:
Originally Posted by Toni Wilen View Post
It is currently 3rd file, impossible to miss..
Sorry I was looking in the ftp The Zone folder. Found it, will report back.
grelbfarlk is offline  
Old 02 March 2018, 09:39   #11
alexh
Thalion Webshrine
alexh's Avatar
 
Join Date: Jan 2004
Location: Oxford
Posts: 12,057
I wonder if this driver would be any better than the one included with the A2000 CSA Magnum 040/4? I remember people complaining it was "strange".

I don't have one. Just noticed that it has the same SCSI chip.

chiark on this forum used to have one but he sold it to a regular member of Amibay called Tahoe.
alexh is offline  
Old 02 March 2018, 11:00   #12
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 43
Posts: 21,209
Quote:
Originally Posted by alexh View Post
I wonder if this driver would be any better than the one included with the A2000 CSA Magnum 040/4? I remember people complaining it was "strange".

I don't have one. Just noticed that it has the same SCSI chip.

chiark on this forum used to have one but he sold it to a regular member of Amibay called Tahoe.
I'll ask. ROM dump is needed to find out how the SCSI chip (and other hardware) is mapped to address space.
Toni Wilen is online now  
Old 02 March 2018, 19:18   #13
mark_k
Registered User
 
Join Date: Aug 2004
Location:
Posts: 2,935
ROM dump probably wouldn't be needed for that. You should be able to test with the disk-loadable driver. (Also, a version of the driver can be loaded to RDB LSEG blocks, presumably the actual ROM is just a tiny loader.)

btw there are a few useful tools on the software disk that aren't Magnum-specific. In C/CSA:
Code:
asi	Amiga System Information. Display expansions, libraries, memory list, 
creg	Read 40/4 Magnum Control Registers
DRAM	Configure DRAM Controller
DROM	Remap Kickstart ROM into Magnum DRAM
inq	Issue INQUIRY. Magnum-specific?
rdb	Display RDB info, also has a "-fixnexus" option "fix LSEG blocks written by Nexus". Magnum-specific?
rw	Read/Write memory
sad	SCSI Access (Driver) Program. Issue TEST UNIT READY, READ CAPACITY, REQUEST SENSE, INQUIRY, MODE SENSE, display RDB structures
mark_k is offline  
Old 02 March 2018, 20:42   #14
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 43
Posts: 21,209
Some updates coming soon, 53C710 timing parameter register settings aren't exactly right.

Quote:
Originally Posted by mark_k View Post
ROM dump probably wouldn't be needed for that. You should be able to test with the disk-loadable driver.
Yes but testing is more annoying.. And I also want something back

EDIT: and ROM replacement is impossible without original ROM image.

Last edited by Toni Wilen; 03 March 2018 at 13:24.
Toni Wilen is online now  
Old 04 March 2018, 19:33   #15
mark_k
Registered User
 
Join Date: Aug 2004
Location:
Posts: 2,935
I've uploaded some notes/info about the CSA 40/4 Magnum to The Zone. Figured out from looking at various programs on the software disk.
mark_k is offline  
Old 18 March 2018, 16:05   #16
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 43
Posts: 21,209
Update uploaded.

- CSA Magnum 40/4 supported. (Thanks Tahoe) Due to hardware stability problems it is not real hardware tested.
- Removed duplicate strings and some unused code.
- Fixed timing values.
- Readme included.
Toni Wilen is online now  
Old 19 March 2018, 23:08   #17
chiark
Needs a life

chiark's Avatar
 
Join Date: Jan 2008
Location: England
Posts: 1,629
Glad Tahoe's still got the board ! Brilliant stuff, Toni.
chiark is offline  
AdSense AdSense  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
FOR SALE - Warp Engine 040 for A4000 fitzsteve MarketPlace 6 12 October 2015 00:42
Progressive Zeus 040 troubleshooting Robert Morewood support.Hardware 3 05 March 2008 07:58
FS : Zeus 040 for A2000 with 64 mb ram coze MarketPlace 7 09 May 2007 04:08
FS:- A4000/040, Warp Engine040, C64/3D, AMON, SCSI. LOADED alewis MarketPlace 20 08 February 2007 14:58
FS: Warp Engine 040 and 2gb SCSI HD (wb preinstalled) alewis MarketPlace 7 15 August 2006 18:06

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 17:19.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2018, vBulletin Solutions Inc.
Page generated in 0.08322 seconds with 13 queries