Subject: current install fix for 3 1/4" disks + wd still hangs
To: None <current-users@NetBSD.ORG>
From: Brad Parker <brad@FCR.COM>
List: current-users
Date: 09/30/1994 17:53:35
I tried to make another distribution today (notes!  this time there are
notes! yea! ;-)

In case anyone cares, I made the folling change to
src/distrib/i386/floppies/inst-common/Makefile.inc so I could build 3 1/4"
floppies.  I made a similar change to kc-common/Makefile.inc

Also, on a totally new 486/33 (genoa motherboard) w/256k cache and a
stock cheapo ide controller & 2 x 515mb caviar ide disks, I get up the
point where the kernel prints "biomask... netmask... ttymask..."
(isa_configure) and I hang in wd.c.

Last time this happened I put some code in wd.c/wdcommand() in the
RECAL case to call wdcreset() and wdgetctlr() and retry the command if
the WDCC_RESTORE|WD_STEP command failed and this fixed the problem.

(to me, ignorant as I am of IDE controllers, it looked like the probe
wedged the controller)

I'm about to try this again...

-brad

*** Makefile.inc.~1~	Mon Aug 29 11:30:23 1994
--- Makefile.inc	Fri Sep 30 17:23:06 1994
***************
*** 11,25 ****
  VND_RDEV=	/dev/r${VND}a
  IMAGE?=		xxx-${REV}.fs
  MDEC=		${DESTDIR}/usr/mdec
  
  LISTS=		${COMMONDIR}/list ${.CURDIR}/list
  CRUNCHCONF=	${COMMONDIR}/${CBIN}.conf
  MTREE=		${COMMONDIR}/mtree.conf
  
  all: ${CBIN}
! 	dd if=/dev/zero of=${IMAGE} bs=100k count=12
  	vnconfig -v -c ${VND_DEV} ${IMAGE}
! 	newfs -O -m 0 -o space -i 5120 -c 80 ${VND_RDEV} floppy5
  	mount ${VND_DEV} ${MOUNT_POINT}
  	mtree -def ${MTREE} -p ${MOUNT_POINT}/ -u
  	TOPDIR=${TOP} CURDIR=${.CURDIR} OBJDIR=${.OBJDIR} \
--- 11,29 ----
  VND_RDEV=	/dev/r${VND}a
  IMAGE?=		xxx-${REV}.fs
  MDEC=		${DESTDIR}/usr/mdec
+ #FLOPPY=		floppy5
+ #FLOPPY_COUNT=	10
+ FLOPPY=		floppy3
+ FLOPPY_COUNT=	12
  
  LISTS=		${COMMONDIR}/list ${.CURDIR}/list
  CRUNCHCONF=	${COMMONDIR}/${CBIN}.conf
  MTREE=		${COMMONDIR}/mtree.conf
  
  all: ${CBIN}
! 	dd if=/dev/zero of=${IMAGE} bs=120k count=${FLOPPY_COUNT}
  	vnconfig -v -c ${VND_DEV} ${IMAGE}
! 	newfs -O -m 0 -o space -i 5120 -c 80 ${VND_RDEV} ${FLOPPY}
  	mount ${VND_DEV} ${MOUNT_POINT}
  	mtree -def ${MTREE} -p ${MOUNT_POINT}/ -u
  	TOPDIR=${TOP} CURDIR=${.CURDIR} OBJDIR=${.OBJDIR} \