Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ZuluSCSI RP2040 Otari Digital Master Problems #184

Closed
WhatIsTheWeather opened this issue Apr 26, 2023 · 11 comments
Closed

ZuluSCSI RP2040 Otari Digital Master Problems #184

WhatIsTheWeather opened this issue Apr 26, 2023 · 11 comments

Comments

@WhatIsTheWeather
Copy link

WhatIsTheWeather commented Apr 26, 2023

Hi, I hope it is ok to post this here. I have been attempting to get a ZuluSCSI RP2040 working with an Otari Digital Master unit with no success thus far. The unit has two SCSI CD drives and I have been attempting to replace one with the ZuluSCSI board and uses a Fujitsu MB866601A SPC IC for the SCSI controller interface. The unit has an option to change the master media type from CD to other playback media such as MO drives and HDDs through switching of a dip switch on the main board so I have tried both options and emulated SCSI device types with no success (CD, HDD and MO drive). I have found no way of identifying the correct SCSI used for the drives so have periodically gone through SCSI IDs 0-7 and the only SCSI ID that seems to somewhat communicate with the machine is ID 0, however when using ID 0 the machine repeatably beeps and does not seem to communicate with the ZuluSCSI board correctly. The only files inside of the image file created are two 16 bit .wav files so nothing complex.

I have enabled debug mode on the ZuluSCSI and have obtained a log from when using the ZuluSCSI with the image file set to SCSI ID 0. I am honestly pretty stumped with getting this working, after updating the firmware and messing with some of the settings I still have had no luck so thought here would be the best place to attempt to find a solution.

Attached is the log file from the SD Card.
zululog.txt

dp-3.pdf - Here is the very brief manual for the Otari.

@aperezbios
Copy link
Collaborator

Thanks for reaching out, @WhatIsTheWeather. Can you describe what you have tried so far? I see you're currently specifying Magneto Optical as the device type. Was there a reason for that? The manual you've attached doesn't contain a single mention of SCSI that I could find, so I don't believe it's of much use in this context.

@PetteriAimonen, can you take a look at this log? From what I can tell, everything appears to be functioning as expected from the ZuluSCSI side.

@PetteriAimonen
Copy link
Collaborator

Yes, SCSI communication appears to work fine based on the log. The device beeping sounds like it might not like either the filesystem in the image or the block size.

If you have an image of a CD that works in the CD drive, you could try that with names "CD0_512.iso", "CD0_1024.iso" and "CD0_2048.iso". We have seen some samplers in particular be quite specific about the block size used.

@WhatIsTheWeather
Copy link
Author

Thanks for reaching out, @WhatIsTheWeather. Can you describe what you have tried so far? I see you're currently specifying Magneto Optical as the device type. Was there a reason for that? The manual you've attached doesn't contain a single mention of SCSI that I could find, so I don't believe it's of much use in this context.

@PetteriAimonen, can you take a look at this log? From what I can tell, everything appears to be functioning as expected from the ZuluSCSI side.

Thanks for taking the time to reply. So far I have attempted to use wav files packaged into an image in the CD, MO and HDD modes on ZuluSCSI.

When using the Otari with physical media it seems to work best using audio files written as an audio CD/CD-DA but I am unsure how to create an image of an audio cd that is compatible with the ZuluSCSI. I had another mess around with the ZuluSCSI last night and when looking at the logs it seems that the Otari gets stuck looking for the TOC of the audio cd. The manual states that it will also work with a cd burnt as a data cd following the Yellow Book Mode 1 / ISO9660 format but I have never managed to get this format working.

When I was using the ZuluSCSI image configured as a HDD or MO drive I had set the Otari to the other physical media mode using one of the machines internal dip switches. In the manual there is a small section stating what internal dipswitch has to be changed to enable this mode.

I have also tried to alter the block size to different sizes but that has not allowed the Otari to read the wav files either.

Does anyone know the best way to image an audio cd to use with the ZuluSCSI as an image files to boot from?

thanks.

@PetteriAimonen
Copy link
Collaborator

ZuluSCSI currently mainly supports data CDs - I'm not sure if CD's with only audio might work, but at least mixed CDs will not - the TOC is just hardcoded currently.

@aperezbios Maybe we should move forward with the bin/cue support to enable audio CDs properly?
Related discussion: #143

@WhatIsTheWeather
Copy link
Author

So I have had a bit more of a mess around with the ZuluSCSI and the Otari attempting to get it working. I successfully created a CD-ROM yellow book mode1 iso9600 data cd that worked with the digital master consisting of two wav files named A and B, even after imaging the CD with imgburn I still had no luck with getting it working with ZuluSCSI. Once again I tried the ZuluSCSI set as a CD, MO and HDD but none seemed to work. I will try again and attach separate logs for each emulation type. It would be great to see bin/cue support implemented to be able to do away with using CDs with this unit.

Thanks.

@aperezbios
Copy link
Collaborator

@WhatIsTheWeather we'd need to see actual data (eg the log file, with debug mode turned on) to be able to understand what is or is not happening. Without something to analyze, we can only take shots in the dark, which isn't likely to result in a successful outcome. Can you please re-try the test with the ISO you created, but with debug mode turned on, and then send us the resulting zululog.txt file? You can attach it here to this issue.

@WhatIsTheWeather
Copy link
Author

WhatIsTheWeather commented May 1, 2023

Here is the log file from using the imaged known good cd-rom data cd containing Side A and B 16 bit 44.1 wav files named an and b. I have debug and termination enabled on the ZuluSCSI board. The ZuluSCSI seems to flash the led when I tell the machine to read a cd so it looks to be communicating correctly but then displays an error on the display.

I can provide a wetransfer link to the image used on the sd card if that will help too? With this log file the unit is set to use the Plextor CD-ROM drives. I have also tried setting the unit to use other physical media through changing a dip switch on the control board but that has not worked when setting the ZuluSCSI to behave as a HDD or MO drive.

Thanks.

zululog.txt

@PetteriAimonen
Copy link
Collaborator

Thanks for the log.
I think the problem is here:

[23746ms] DBG ---- SELECTION: 0
[23748ms] DBG ---- COMMAND: CDROM Read TOC
[23748ms] DBG ------ OUT: 0x43 0x00 0x00 0x00 0x00 0x00 
[23749ms] DBG ------ OUT: 0xAA 0x00 0x0C 0x00 
[23749ms] DBG ---- STATUS: 2 CHECK_CONDITION, sense 0x00002400
[26245ms] DBG BUS RESET
[26245ms] DBG ---- MESSAGE_IN
[26246ms] DBG -- BUS_FREE

The Read TOC with track 0xAA means "read lead-out area information".
This is currently not implemented, but should be quite simple to add - I'll see about it.

@PetteriAimonen
Copy link
Collaborator

@WhatIsTheWeather I have a test build for you here (download .zip at bottom of page):
https://github.com/ZuluSCSI/ZuluSCSI-firmware/actions/runs/4858960133

If you can try it with the same CD-ROM image and post a new debug log, that would be great.

@WhatIsTheWeather
Copy link
Author

Thanks for making up a new build for me to try - it was a success! The unit detected the cd-rom and played the wav files at x16 speed with no problems what so ever, I also tried the ZuluSCSI in the second drive bay where it reverses the audio and that seemed to work with no problems too. Thanks a lot for getting that sorted out! The unit has been taken into the modern era and I can finally abandon temperamental CDs!

Here is the log file any way. Thanks a lot!

zululog.txt

@WhatIsTheWeather WhatIsTheWeather changed the title ZuluSCSI RP2040 Otari DP-3 Digital Master Problems ZuluSCSI RP2040 Otari Digital Master Problems May 2, 2023
aperezbios added a commit that referenced this issue May 2, 2023
SCSI2SD: Add support for lead-out track in CDROM READTOC (#184)
@PetteriAimonen
Copy link
Collaborator

Looks good now, no more unhandled commands in the log. The fix will be part of the next release.

I will add bin/cue support in near future also, but that takes slightly more work so it is tracked in issue #187.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants