Technical article 105797

I'm getting floppy read errors with known good media and hardware on OSR5.

OpenServer 5.0.0OpenServer 5.0.2OpenServer 5.0.4

Written · Last revised

Problem

I get a message similar to the following:

ERROR: floppy read error on dev 2/64 blk=0 cmd0x03 status=0x01

The hardware and media are both known to be good.

Cause

There can be timing issues, especially with fast CPUs, where the floppy device fails to read or write without errors.

Solution

The floppy driver is located in /etc/conf/pack.d/fd/. There are three files: Driver.o, device.dat and space.c. The device.dat contains information which is placed in the /etc/conf/cf.d/sysRegistry file.

One test is to move the sysRegistry file out of the way and attempt to perform the failing floppy operation. If this resolves the issue, then there is a parameter within the device.dat that is incorrect.

Note: Modification of the device.dat or sysRegistry files is
beyond the scope of this article.  Contact your Technical Support
provider for more in-depth assistance.

If there is still a problem, return the sysRegistry file and edit the /etc/conf/pack.d/fd/space.c file and locate the last two lines. Modify them in the following way:

Change:
int fd_enable_FIFO = 0;
int fd_FIFOthresh = 0;
to:
int fd_enable_FIFO = 1;
int fd_FIFOthresh = 8;

Note: The fd_FIFOthresh value pertains to a 16-byte buffer. If the value of 8 doesn't work, retry with a value of 2. There have also been some instances where a threshold value of 'f' worked.

Relink and reboot the system.

See also

TA105025, "How can I use the Software Manager/custom(ADM) with a non-standard device?"

From the Xinuos technical article database, record 105797. Reproduced with permission. The original is at www.sco.com/ta/105797, which is reachable but blocked from search engines. Xinuos marks this article against a retired product line. That refers to the product’s lifecycle, not to whether the advice still works — plenty of it still applies to running systems.

Next step

Need this fixed rather than explained?

Tell us the release, what the system runs and what it is doing. We will reply by email with what we would do next.

  • You deal with the people who do the work
  • No obligation, and no upgrade required before we will help
  • We tell you plainly if something is not worth doing

Send an enquiry

We reply by email. If a server is down, say so in the first line. You can also write to help@scoexpert.com.