Izumi Tsutsui | 19 Dec 12:59 2009
Picon

anyone uses floppy on sun4m?

Has anyone ever used sun4m floppy drive on NetBSD/sparc kernel?

5.0 and -current had a problem in floppy driver after MI softint(9)
changes and I have committed a workaround fix for it.
But floppy on my SS20 still doesn't work, and it doesn't
work even on older 1.6 and 2.0, so I wonder if we have
ever had any working fd driver for sun4m.

Floppy support for sparc has had many problems since 2.0 days,
and this sun4m one is the last one, I hope.

 * port-sparc/42192: cannot access floppy on SPARCstation 1+
  -> Fix committed, will send a pullup request once after
     releng HEAD build is complete

 * port-sparc/42193: "tar zxpf /dev/rfd0a" used in install script fails
  -> I'm still awaitng feedback of this one.

 * install/42146: sparc install floppy overflow
 * port-sparc/42186: sparc boot floppy "Data Access Exception" error
  -> Fixes commited on HEAD, pullup pending due to the above
     two essential PRs

 * install/28734: Can't unpack the contents on disk2 during installation of 2.0
  -> Not enough info, but I wonder if this error on SS5 was caused by
     the same problem as the above PR 42193, or sun4m specific issue.

---
Izumi Tsutsui

(Continue reading)

doomwarrior | 19 Dec 13:16 2009
Picon

Re: anyone uses floppy on sun4m?

Hi,

> Has anyone ever used sun4m floppy drive on NetBSD/sparc kernel?
>   
yes I did, but it was always very buggy on my SS10. I can't remember 
what problems occur, because 1.6.1 was the last release with a floppy 
drive installed.

Best Regards
Stephan

Izumi Tsutsui | 19 Dec 14:59 2009
Picon

Re: anyone uses floppy on sun4m?

> > Has anyone ever used sun4m floppy drive on NetBSD/sparc kernel?
> >   
> yes I did, but it was always very buggy on my SS10. I can't remember 
> what problems occur, because 1.6.1 was the last release with a floppy 
> drive installed.

Hmm, installed with ramdisk loaded from floppy?

On my SS20, PROM can load 1.6.1 floppy kernel, but
installer script running on NetBSD/sparc kernel still complains
on loading ramdisk from floppy:

---
 :

The question below allows you to specify the device name f the floppy
drive.  Usually, the default device will do just fine.
Floppy device to load the installtion utilities from [/dev/rfd0a]:
Extracting installation utilities...
fd0a: hard error reading fsbn 0
fd0: controller status: state 17 (st0 70<abnrml,seek_cmplt,drv_chck> cyl 0)
fd0a: hard error reading fsbn 0-127
fd0: controller status: state 17 (st0 70<abnrml,seek_cmplt,drv_chck> cyl 0)
tar: End of archive volume 1 reached

ATTENTION! tar archive volume change required.
Ready for archive volume: 1
Input archve name or "." to quit tar.
Archive name > 

(Continue reading)

amthor | 19 Dec 17:45 2009
Picon

Re: anyone uses floppy on sun4m?

Hi,

Izumi Tsutsui <tsutsui <at> ceres.dti.ne.jp> wrote:

> > > Has anyone ever used sun4m floppy drive on NetBSD/sparc kernel?

Several years ago I installed 1.6 from netinstall floppies on an SS5
and occasionally used the floppy drive. I can't recall any problems.

> Note 1.6.1 floppies work fine on SS1+.

But the 1+ is sun4c architecture, isn't it?

Best regards,
Chris

--

-- 
Q: How is "SunOS" spelled?
A: As one speaks it. With capital "S-O-S".

Izumi Tsutsui | 20 Dec 02:05 2009
Picon

Re: anyone uses floppy on sun4m?

> > > > Has anyone ever used sun4m floppy drive on NetBSD/sparc kernel?
> 
> Several years ago I installed 1.6 from netinstall floppies on an SS5
> and occasionally used the floppy drive. I can't recall any problems.

Okay, my SS20 with HyperSPARCx4 always gets timeout on floppy access,
but it might be SS20 or HyperSPARC specific issue.

I found Solaris also had a patch for 150MHz hyperSPARC:
http://sunsolve.sun.com/search/document.do?assetkey=1-21-107389-01-1
"SunOS 5.6: fd floppy won't work after upgrading to 150MHZ hyperSPARC"

I'll check if OpenSolaris driver handles any quirks.
http://cvs.opensolaris.org/source/xref/sparks/sparks-hg/usr/src/uts/sun/io/fd.c

> > Note 1.6.1 floppies work fine on SS1+.
> 
> But the 1+ is sun4c architecture, isn't it?

Yes (that's why I asked if it works on sun4m).

I meant that 1.6.1 installer itself didn't have problem.
All relreases after 2.0 had certain problems around floppy install:

PR/42193: "tar zxpf /dev/rfd0a" fails (though /dev/fd0a works)
PR/32379: disk2 overflow (fixed before 3.1)
PR/42186: bootloader fails with "Data Access Exception" (fixed in HEAD)
PR/42146: disk2 overflow again (workarounded in HEAD)
PR/42192: new MI softint(9) isn't handled properly (workarounded in HEAD)

(Continue reading)

matthew green | 20 Dec 02:10 2009
Picon

re: anyone uses floppy on sun4m?


i seem to have a floppy drive in my ss20 with supersparc.

i'll find some floppies and test it out... that may take a few days.

.mrg.

Izumi Tsutsui | 20 Dec 04:36 2009
Picon

Re: anyone uses floppy on sun4m?

> i seem to have a floppy drive in my ss20 with supersparc.
> 
> i'll find some floppies and test it out... that may take a few days.

After a large set of try-and-errors, the following patch
seems to make floppy work on my SS20.
I'm not sure if comment about AUXIO4M_FTC is correct or not, though.

Index: sparc/auxreg.h
===================================================================
RCS file: /cvsroot/src/sys/arch/sparc/sparc/auxreg.h,v
retrieving revision 1.12
diff -u -r1.12 auxreg.h
--- sparc/auxreg.h	16 Nov 2005 03:00:23 -0000	1.12
+++ sparc/auxreg.h	20 Dec 2009 03:26:26 -0000
 <at>  <at>  -105,6 +105,9  <at>  <at> 
 	if (CPU_ISSUN4M) {						\
 		/* AUXIO4M_FTC bit is auto-clear */			\
 		*AUXIO4M_REG = auxio_regval | AUXIO4M_FTC;		\
+		/* XXX we need to clear it on hyperSPARC SS20 */	\
+		DELAY(10);						\
+		*AUXIO4M_REG = auxio_regval;				\
 	} else {							\
 		auxio_regval |= AUXIO4C_FTC;				\
 		*AUXIO4C_REG = auxio_regval;				\

---
Izumi Tsutsui

(Continue reading)

matthew green | 20 Dec 04:46 2009
Picon

re: anyone uses floppy on sun4m?


   > i seem to have a floppy drive in my ss20 with supersparc.
   > 
   > i'll find some floppies and test it out... that may take a few days.

   After a large set of try-and-errors, the following patch
   seems to make floppy work on my SS20.
   I'm not sure if comment about AUXIO4M_FTC is correct or not, though.

i'll give it a go with and without your patch as soon as i locate
some working floppies :)

there are docs for fdtwo around.  do you have them?  i'm sure i
do somewhere..

.mrg.

Izumi Tsutsui | 24 Dec 16:19 2009
Picon

Re: anyone uses floppy on sun4m?

>    After a large set of try-and-errors, the following patch
>    seems to make floppy work on my SS20.
>    I'm not sure if comment about AUXIO4M_FTC is correct or not, though.
> 
> i'll give it a go with and without your patch as soon as i locate
> some working floppies :)

FYI, I've filed a PR about this for a record (PR port-sparc/42516)
and also committed a workaround for PR port-sparc/42193
("tar zxpf /dev/rfd0a" doesn't work).

> there are docs for fdtwo around.  do you have them?  i'm sure i
> do somewhere..

I don't have any docs. Does it also mention about AUX register?
I doubt it mention a quirk that Solaris also had a problem..
---
Izumi Tsutsui

matthew green | 24 Dec 22:29 2009
Picon

re: anyone uses floppy on sun4m?


   >    After a large set of try-and-errors, the following patch
   >    seems to make floppy work on my SS20.
   >    I'm not sure if comment about AUXIO4M_FTC is correct or not, though.
   > 
   > i'll give it a go with and without your patch as soon as i locate
   > some working floppies :)

   FYI, I've filed a PR about this for a record (PR port-sparc/42516)
   and also committed a workaround for PR port-sparc/42193
   ("tar zxpf /dev/rfd0a" doesn't work).

i finally got some floppies last night.  i'll report on how well
they work soon..

   > there are docs for fdtwo around.  do you have them?  i'm sure i
   > do somewhere..

   I don't have any docs. Does it also mention about AUX register?
   I doubt it mention a quirk that Solaris also had a problem..

hmm, my initial search has not turned up what i thought i would
find..  i'll keep looking.  yeah, auxio may be relevant.

.mrg.


Gmane