-
-
Notifications
You must be signed in to change notification settings - Fork 82
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
Mac Plus write error: Not able to receive 512 bytes of data #656
Comments
@edgeux Does other SCSI storage devices work well with your Plus? Have you tried using contact cleaner on the SCSI port on the computer? |
Thanks for the reply, I have performed contact tests with every pin, board to board. I have no other scsi devices to test unfortunately. |
@edgeux Is your SCSI chain properly terminated? Both physical ends of the chain have to be terminated, i.e. if the RaSCSI board is your only device it definitely must be terminated. |
It is the only scsi device and the jumpers are terminated on the rascsi. I think I will have to get my hands on some other scsi equipment to test further. Is there any other useful information that can be derived from the error itself? It means nothing to me. |
@edgeux I'm afraid there is no further information the error message provides. It just indicates a basic SCSI communication/protocol issue. |
I'm seeing the exact same error with my Mac Plus. I'm using a Raspberry Pi 3b, RaSCSI board v2.4a, 4MB RAM installed on the Mac Plus with ROM 3, and the RaSCSI is the only device connected to the SCSI bus, with termination enabled. The Mac Plus boots fine from floppy, a FloppyEmu (either configured as either a floppy drive or HD20), and from a SCSI Zip drive. The RaSCSI works completely fine on a Mac Classic II. |
@supercompman Your logs on trace level look the same? |
@uweseimet Yes. I'm seeing the same things in my logs. I'll post my logs as soon as I get a chance if that would help. By the way, I'm using version 22.02.01 of the RaSCSI software. |
@supercompman If your trace logs shows do same you don't have to spend on posting it. I just wanted to ensure from the logs your issue is the same, and not just a similar problem with different logs. |
I also stumbled upon this error message (with various counts for the received data), but it is not reproducible. Platform: Atari TT, develop branch 2022-02-25.
|
I have the same error from my Mac Plus. I can boot from the RaSCSI, but intermittently it hangs and this error appears in the log: Mac Plus 2.5M, system 608 |
Having the exact same issue Completely unstable Works flawlessly with Floppy Emu and well as my real 20MB SCSI drive |
@uweseimet I will point out however that performance is pretty abysmal, even for a Mac Plus. Writes average about 140k/s and reads about 200k/s. While the seek time is outrageous, even my SCSI Zip drive gets better throughput. |
@supercompman |
Same here!
…On Sat, Jul 30, 2022 at 1:41 PM jcres69 ***@***.***> wrote:
@supercompman <https://github.com/supercompman>
Thank you! I started using the Silverlining driver a few weeks ago and so
far the SCSI errors and freezes on my mac plus have disappeared.
—
Reply to this email directly, view it on GitHub
<#656 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AZ6U46LBAZEEVV6THLAIAFTVWVSM5ANCNFSM5NYOM54Q>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
I've documented in wiki the fact that only Silverlining drivers are known to work properly with the Plus. https://github.com/akuker/RASCSI/wiki/Drive-Setup#initializing-a-new-disk-on-classic-mac-os In the long term it'd be great to have a workaround in RaSCSI code, so let's keep this ticket open. |
@rdmark It will be very hard to find out what's wrong because these errors are spurious and we do not know how to reproduce them. This might be a timing issue, or even a general (not by board, but by design) hardware issue. What we do know, though, is that it is independent of the computer that is connected, i.e. it is very likely not a driver issue. |
@uweseimet On my Mac Plus, the issue is anything but spurious. If there's any information that I can gather or testing I can do to help understand this issue better, just let me know. I'm not a C/C++ or Python developer, but I am a software developer by trade and I'm pretty comfortable working with Linux. |
@supercompman I'm afraid I cannot provide further support in this case. I think that this particular issue needs to be debugged and resolved by somebody who has a setup where this problem happens frequently. Somebody like you ;-). A try-and-error approach may be needed. |
@supercompman I think Uwe's point is that the Receive() error is a red herring, and the actual issue lies elsewhere. @uweseimet Yes fair point, I can see how the issue is likely not driver specific. We have also observed issues with Lido drivers, RaSCSI, and the Mac Plus in the past. However, using Apple drivers is the sure way to trigger the most severe effect, so it's still worth mentioning as a reproduction path. As a side note, in order to use a SCSI2SD with the Mac Plus, you need to configure the device with the following compatibility settings:
No idea if this helps. I couldn't find the source code for scsi2sd-util v5.x to see what this actually does. |
To all of you who have had issues on your Mac Pluses: Please try the new 22.10 release. From our testing, the stability on the Plus is much improved in this version. https://github.com/akuker/RASCSI/releases/tag/v22.10.01 |
@uweseimet I would like to revisit this issue. I have a Mac Plus myself now and am able to assist with debugging. To remove all other factors, I followed these test steps:
The code is the bleeding edge of the |
@rdmark It appears as if the bus signals say that the DATA OUT phase is over before a full sector has been transferred. This is not an issue with the SCSI command implementations, but something that happens during the data transfer. Saying that I am not surprised that despite all of my changes the issue is still there, because my changes do not deal with the low-level signal handling and/or timing. The problem could also be a general RaSCSI hardware issue. If I remember correctly @akuker mentioned that he has some bus signal analyzer hardware. This might be what's needed in order to find out more. |
For the record, if someone reads this trying to get their Plus working, I prepared a modified MacPack image that uses Silverlining drivers and posted it here: https://macintoshgarden.org/apps/piscsi-rascsi |
@rdmark I do not expect that wrt this ticket anything has changed, but in case you have time for it, can you please verify if this issue is still there? With the testing_issue_949 branch if possible. Maybe something has changed, or based on previous logging changes we can gain more insight. |
@uweseimet Unfortunately I had to give away both my Mac Pluses when I relocated internationally last month. Is there anyone else subscribing to this thread who would test on their Plus? It'd be valuable to hear if the behavior has changed in any way in the branch that Uwe refers to. |
One problem with this ticket appears to be reproducability. I have not seen this error with my setup for ages, but this does not mean that the problem is gone. It would be good if somebody had a setup where this error is quite reproducable, now that @rdmark does not have his hardware anymore. |
I can confirm the issue exists on I downloaded HD20_512-1GB-MacPlus-6+7.hda from somewhere as my 6.0.8 bootdisk had no tools to initialize the disk. |
Describe the issue
I have tried all of the boot images supplied in the repo as well as manually created system (6.0.8, 7.0.1, 7.5.3)
I have tried booting the pi from USB and from SD
I have tried both 32 and 64 bit rpi os
I have tried multiple scsi cables.
Voltage is ok.
I am able to boot the macplus from all/any rascsi system to a functional desktop HOWEVER when i try to perform any operation that requires writing to the scsi disk the mac freezes after ~10 seconds of data transfer.
with the log set to TRACE, the rascsi/macplus hangs reliably on these two lines:
the only difference with each hang being that:
only received 2
varies numerically in each case.
i am able to boot the mac from a system floppy with zero errors but as soon as i write to scsi, i get maybe 10 seconds of transfer before hanging with the same errors
advice, instructions, etc ?
m
The text was updated successfully, but these errors were encountered: