Patch for floppies

Wilko Bulte wkb at freebie.xs4all.nl
Thu Feb 5 14:12:53 PST 2004


On Thu, Feb 05, 2004 at 04:25:38PM -0500, John Baldwin wrote:
> On Thursday 05 February 2004 02:40 pm, Wilko Bulte wrote:
> > On Thu, Feb 05, 2004 at 02:29:37PM -0500, John Baldwin wrote:
> > > On Thursday 05 February 2004 01:26 pm, Wilko Bulte wrote:
> > > > On Wed, Feb 04, 2004 at 02:01:41PM -0500, John Baldwin wrote:
> > > > > On Wednesday 04 February 2004 01:52 pm, Wilko Bulte wrote:
> > > > > > On Wed, Feb 04, 2004 at 11:06:28AM -0500, John Baldwin wrote:
> > > > > > > Ok, since the cross-built floppies don't work for whatever
> > > > > > > reason, someone is going to need to build a native alpha release
> > > > > > > and then post those floppies for testing (or test them
> > > > > > > themselves).  I currently don't have an alpha setup such that I
> > > > > > > can do this, so I'm posting the patch to do so.  It's quite
> > > > > > > simple and is at
> > > > > > > http://www.FreeBSD.org/~jhb/patches/alpha.floppies.patch
> > > > > >
> > > > > > I will have a go at it. Be patient..
> > > >
> > > > Freshly generated from HEAD:
> > > > >>>boot dva0
> > > >
> > > > (boot dva0.0.0.0.1 -flags a)
> > > > block 0 of dva0.0.0.0.1 is not a valid boot block
> > > > bootstrap failure
> > > >
> > > >
> > > > hmm.
> > >
> > > Can bsdlabel generate a bootable floppy image at all on Alpha?
> > > I.e., can you do something like 'fdformat fd0', 'bsdlabel /dev/fd0
> > > fd1440',
> >
> > Well.. no. And that is because on my DS10 the floppy does not work at
> > all.
> >
> > ds10#fdformat fd0
> > fdformat: open(fd0): No such file or directory
> >
> > While:
> >
> > fdc0: <Enhanced floppy controller (i82077, NE72065 or clone)> at port
> > 0x3f7,0x3f0-0x3f5 irq 6 drq 2 on isa0
> > fdc0: interrupting at ISA irq 6
> >
> > See also alpha/30486 for an older PR. I don't recall we ever managed
> > to fix it. Looks specific to EV6/Tsunami machines.
> 
> You have to add a hint for fd.0 I think.  GENERIC.hints in current should have 
> the hint listed that you would need to add your /boot/device.hints to bring 
> your fd0 back.

Hm, right. Yes, floppy is now detected:

fdc0: <Enhanced floppy controller (i82077, NE72065 or clone)> at port
0x3f7,0x3f0-0x3f5 irq 6 drq 2 on isa0
fdc0: interrupting at ISA irq 6
fdc0: FIFO enabled, 8 bytes threshold
fd0: <1440-KB 3.5" drive> on fdc0 drive 0

But the long standing bug is still there:

ds10#fdformat fd0
Format 1440K floppy `/dev/fd0'? (y/n): y
Processing EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE done.
Errors encountered:
Cyl Head Sect   Error
  0    0    1   no data (sector not found)
  0    1    1   no data (sector not found)
  1    0    1   no data (sector not found)
  1    1    1   no data (sector not found)
  2    0    1   no data (sector not found)
  2    1    1   no data (sector not found)
  3    0    1   no data (sector not found)
  3    1    1   no data (sector not found)
  4    0    1   wrong cylinder (format mismatch)
  4    1    1   no data (sector not found)
(Further errors not printed.)
ds10#

-- 
Wilko Bulte				wilko at FreeBSD.org


More information about the freebsd-alpha mailing list