home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.bsd
- Path: sparky!uunet!tarpit!phoenix!rd
- From: rd@phoenix.aii.com (Robert D. Thrush)
- Subject: wd boot bug found!
- Message-ID: <RD.92Jul22144159@phoenix.aii.com>
- Sender: rd@pixie.aii.com (Robert D. Thrush)
- Organization: Automation Intelligence, Inc.
- Distribution: comp
- Date: Wed, 22 Jul 1992 18:42:16 GMT
- Lines: 228
-
- Many thanks to Bill and Lynne Jolitz for an extremely valuable
- contribution. We've been delighted with the results.
-
- We've found a showstopper in the secondary boot (bootwd) for some
- DTK controllers that we tried to use. It appears to me that this may
- solve the problem that many have reported about not being able to boot
- from the hard disk after "install". At least, it has solved it for
- us.
-
- The problem occurs in /sys/i386/stand/wd.c. In wdinit() the
- controller is reset; however, the wrong register is tested
- for busy. On some controllers, this mis-test seems to cause
- no harm. However, it seems to hang forever on a few here.
-
- This code only appears to be used by the boot parts. The
- main driver code (in /sys/i386/isa/wd.c) doesn't have the above
- problem since it checks the correct status register.
-
- I've attached both the source diff and a uuencoded bootwd that
- incorporates this fix.
-
- To replace the bootwd on your already "installed" hard disk, do
- something like the following:
-
- 1. uudecode <attached (This will produce bootwd.)
- 2. copy it over /usr/mdec/bootwd on the fixit.fs diskette.
- 3. boot from this fixit.fs diskette.
- 4. make the floppy writeable, ie. mount -u /dev/fd0a /
- 5. obtain the existing hard disk label, ie.
- "disklabel -r wd0 >wd0.label"
- 6. replace the primary and secondary boots via
- "disklabel -R -r wd0 wd0.label /usr/mdec/wdboot /usr/mdec/bootwd"
-
- At this point, the hard disk should have the replacement
- bootwd installed. "shutdown" and boot from the hard disk.
- Let us know if it works!
-
- The new bootwd can be incorporated on the dist.fs diskette in a
- similar fashion. At that point, "install" per the INSTALL.NOTES
-
- If I had direct ftp access, I could make the fixed dist.fs and
- fixit.fs readily available. Perhaps some kind soul could incorporate
- the above changes and make them available.
-
- Most of the credit goes to Jim Huber (jbh@aii.com) for sweating
- through comparing and finding this difference between the AT bios and
- the 386bsd boot code.
-
- Here's the diff to feed to patch as follows:
-
- cd /sys/i386/stand
- patch <following-patch
-
- *** wd.c Wed Jul 22 12:58:32 1992
- --- wd.c- Sun Jun 28 00:20:53 1992
- ***************
- *** 299,305 ****
- DELAY(1000);
- outb(wdc+wd_ctlr,2);
- DELAY(1000);
- ! while(inb(wdc+wd_status) & WDCS_BUSY);
- outb(wdc+wd_ctlr,8);
-
- /* set SDH, step rate, do restore to recalibrate drive */
- --- 299,305 ----
- DELAY(1000);
- outb(wdc+wd_ctlr,2);
- DELAY(1000);
- ! while(inb(wdc+wd_altsts) & WDCS_BUSY);
- outb(wdc+wd_ctlr,8);
-
- /* set SDH, step rate, do restore to recalibrate drive */
-
-
- And here's the uuencoded bootwd.
- begin 664 bootwd
- M
- M
- M
- M
- M
- M
- M
- M
- M
- M
- M
- M "-1"0$N_1_"0!J#%-0Z*P ")W(GFNP 0"X
- M+/X) "V@FPD 4&B@FPD Z'X ")\"G8@^L44U#H< .CE!@ B?3HP@
- M .LA:$!"#P#HZ@< %BX^?___^L/:$!"#P#HV < %B+1"0$9K@T$F:C<@0
- M +P PXM4) 0IP.2$Y(3LPXM4) 3DA.2$BT0D".[#BT0D!#'2]W0D",.+
- M1"0$,=*9]WPD",-7BWPD"(M,) RP /SSJE_#5E>+="0,BWPD$(M,)!3\\Z1?
- M7L-79HM4) B+?"0,BTPD$.2$Y(3\D&;R;9")^%_#5F:+5"0(BW0D#(M,)!#D
- MA.2$_)!F\F^0B?!>PP 58GE@^P$5U93BWT0OJ28"0#'1?P NP"""0!F
- M@WL$!'40_S5@@ D Z"$3 ")QX/$!($[5T56@G51,=+K+XG0P> $@[P8E
- M !T'V:#>P0$=02)^>L&B?D/KTLXB=#!X 0[C!B8 = Q"#[>#B@ #G0
- M=\8/MX.* .=!T"(D];)@) .L&,=*#3?P#BT4,P> 0"T4(P>(("= -
- MH*-HF D _S;H9@D (G"@\0$@_H"?@]7_W7\4NAF @\0,ZPUHQ)@) .B'
- M!@ @\0$_S9HTY@) .AX!@ @\8$@\0(@SX =06^I)@) /\V:.>8"0#H7 8
- M (L-O)@) (/!"K@! T^#_!;R8"0!0Z!@& "#Q SKBHUE\%M>7\G#
- M58GE@>R@ 5U93C9U@____4_]U".B5"0 :B"-1>!0:@!3Z"\* "#Q!B#
- M^"!U"8%]X L! !T"FCTF D Z>@ "+5>2!PO\/ "!X@#P__\#5>@#5>R-
- MA6#___\YT',*: V9"0#IOP +\ $ _W7D:@!7C85@____4.C4"0 @\00
- M.T7D#X67 WWDBUWD]\/_#P = S& P!#]\/_#P =?3_=>A35XVU8/__
- M_U;HG0D (/$$#M%Z'5D UWHB=@#1>PYQG,4:"*9"0#H5P4 (G9*?&)3>R#
- MQ 3_=>Q3Z(K]__^!9?3__P\ :B!H , &@ _PD Z(+]__]7_S5HF D _W4,
- MBT7T_]"#Q""%P'074&A"F0D Z L% #K"FA8F0D Z/\$ "-I53___];7E_)
- MPU6)Y8/L&%=64XM="(M%#(E%_(7 ?%:#??P+?QV+1?R+7(,HA=L/A>H "+
- M11#' /_____IZP +\! BT7\C5#TB57\O@, "AM/T) (E%Z(M%Z ^O
- M>'0[??Q_""E]_$Z%]G_LA?9U"K@; Z; "X P "GPBUR#6(7;#X6'
- M BT40QP#_____Z8T "AM/T) (E%Z(M(9-/C.QV@FPD ="/_<#!HI)L)
- M %/_-2C^"0#H? 8 (E%Z(/$$(7 = 6+1>CK5XD=H)L) *&T_0D B47PB?B+
- M3?"9]WETB47LBWWLBT7\F??_B47TF?=Y=(L<E:2;"0"%VW4+BT40QP#_____
- MZQ5&@_X#?H*AM/T) (M(9-/CBT40B1@QP(UEW%M>7\G# !5B>53BUT(:@[_
- M-7R9"0#HT?O__XG8P?@(4*%\F0D 0%#HO_O__VH/_S5\F0D Z++[__^!X_\
- M !3H7R9"0! 4.B?^___C67\6\G#58GE@^P$4XI-"(A-_(,]@)D) /A;P
- M "A>)D) &:+$&;' %JEH7B9"0!F@3A:I704QP5XF0D + ,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P'3QA<!T!>C)_O__
- MC67\6\G# 58GE5U93C7T,ZQ&%]@^$Y0$ %;HE____X/$!(M%" ^^,/]%
- M"(/^)77A,=N+10@/OC"-1I[_10B#^!8/AY8! #_)(6PC D $XT) )B-"0#/
- MC0D /XX) #^."0 _C@D /XX) #^."0 _C@D /XX) R-"0 _C@D /XX) />-
- M"0 _C@D /XX) #^."0"GC0D /XX) ^."0 _C@D /XX) ">."0"[ 0 .N!
- M@\<$BW?\@\<$BU_\#[X#0U!6Z#X! "#Q B%]@^$3____S'2ZTB)P4FX 0
- M -/@A?!T-872= >X+ .L%N#P !0Z+O^__^#Q 3K"E#HL/[__X/$!$,/
- MO@.#^"!_[KH! ZP9#@#L@?_H/O@-#A<!UL(72#X3S_O__:C[IY/[__X/'
- M!(M'_(/@?U#IU?[__X/'!(M?_ ^^,T.%]@^$R_[__U;H6?[__X/$! ^^,T.%
- M]G7OZ;7^__^#QP2+1_R)QH7V?0QJ+>@V_O__]]Z#Q 1J"E;H>0 (/$".F-
- M_O__@\<$BT?\B<9J"%;H80 (/$".EU_O__@\<$BT?\B<9J"E;H20 (/$
- M".E=_O__@\<$BT?\B<9J$%;H,0 (/$".E%_O__:B7HTOW__X/$!(7;#X0J
- M_O__:FSHP/W__X/$!.D;_O__C67T6UY?R<-5B>6#[!!75E.+10B+30R-7?2^
- MA)D) #'2]_&)5?"+??"*%#>($T.%P'7LC77T2P^^ U#H>/W__X/$!#G><N^-
- M9>1;7E_)PP!5B>6X_/T) ,< ,= ! #'0 @ QT , ,=
- M$ "+512)4!2+50R)4!B+51")4!S'0"0& @SV@F0D '03QP6@F0D
- M %#HO ( (/$!&H$:/S]"0#H[0( .C\^___,<#)PU6)Y8'L@ %.#
- M/;3]"0 =21H " &BTW0D :A#_-2C^"0#H8O___\<%M/T) +3="0"#Q!"-
- M78!3:@+H@@ /]U"%/H"0 (VE?/___UO)PU6)Y8'L# $ %=64XM]"#';
- MC;7X_O__C58(B97T_O__: @! !64U?HZP ^WA?S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# 0 :A"-7@=3Z'WN
- M___HLP$ %/H9N[__P^VV(/$%/?# 0 '0^:-N:"0")\$!0Z$KN__^#Q 0/
- MML!0: N;"0!3_[7P_?__:#R;"0#H&/;__T>#Q!B#_PE^B[C_____Z5,! "+
- MC?3]__^+031 4(U&!%#H$N[__XN-]/W__XM!-$#!Z A0C48%4.C[[?__BX7P
- M_?__P> $BXWT_?__ T$P2 V@ 4(U&!E#HV>W__XN-]/W___]Q+(U& E#H
- MQ^W__X/$(&B1 C48'4.BV[?__@\0(C5X'4^B>[?__@\0$J(!U\[BPNPD
- MBY7P_?__P>()9L=$ @C__XN-]/W___=!6 0 /A*8 QVXN-]/W__XM1
- M/"M1+(T4$XV% /[__U!2_[7P_?__:@3H5/O__XG'@\00A?]T$X/# H/["7\+
- MBXWT_?__.UDL<L"-E0#^__^%_W4L9H-Z! !U)6:!>@8A0W4=BX7P_?__P> )
- MC8"PNPD : " !04N@Z[?__ZRZ#/;#="0 =1#_M?#]__]H7)L) .C)]/__
- MN+"["0"+E?#]___!X@EFQT0""/__,<"-I>3]__];7E_)PP %6)Y5=64XL]
- MJ+L) #';C7<'5NBB[/__@\0$J(!U\XUW!^L1B=A#/:"& 0!^![C_____ZP]6
- MZ'_L__^#Q 2H0'3B,<"-9?1;7E_)PP!5B>6+50B+30SK"XH"0H3 =00QP.L0
- MB@%!.@)T[@^V @^V4?\IT,G#0"@C*6AT;VYL+G,)-2XS("A"97)K96QE>2D@
- M,3(O,3<O.3 BT0D!(;$P< 0AL3# #,X-F)S9 S
- M.#9B<V0N86QT #,X-F)S9"YO;&0 8F]O= !V;75N:7@ >)@) '^8"0"*
- MF D E9@) )J8"0 #_"0!&:6QE(&YO="!F;W5N9 @+2!D:61N
- M)W0@;&]A9" E<RP@ '=I;&P@=')Y("5S"@!.;W0@86X@97AE8W5T86)L92!F
- M;W)M870 1FEL92!T;V\@8FEG('1O(&QO860 5V%R;FEN9SH@8G-S(&]V97)L
- M87!S(&)O;W1S=')A< !0<F]G<F%M(&5X:71S('=I=&@@)60 4F5A9"!O9B!F
- M:6QE(&ES(&EN8V]M<&QE=&4 < @ L U , P,3(S-#4V-S@Y
- M86)C9&5F '=D "8F0D 0 "1(96%D97(Z("]U<W(O<W)C+W-Y<RXS
- M.#9B<V0O:3,X-B]B;V]T+U)#4R]F<RYC+'8@,2XR(#DR+S R+S T(#$T.C$X
- M.C X(&)I;&P@17AP("0 1F%I;&5D.B5S"@ '=D(&EN:71I86QI>F%T:6]N
- M(&5R<F]R "TM+2!B861B;&]C:R!C;V1E("T^($]L9" ]("5D.R $ AB861B
- M;&L'=6YC;W)R!FED7V-R8P5N;U]I9 -A8F]R= )T<C P, %N;U]D86T $ AB
- M=7-Y!G)D>09W<G1F;'0%<V5E:V1O;F4$9')Q V5C8U]C;W(":6YD97@!97)R
- M ')E860 =W)I=&4 =V0E9#H@:&%R9" E<R!E<G)O<CH@<V5C=&]R("5D('-T
- M871U<R E8B!E<G)O<B E8@H $ AB861B;&L'=6YC;W)R!FED7V-R8P5N;U]I
- M9 -A8F]R= )T<C P, %N;U]D86T $ AB=7-Y!G)D>09W<G1F;'0%<V5E:V1O
- M;F4$9')Q V5C8U]C;W(":6YD97@!97)R '=D)60Z(')E8V%L('-T871U<R E
- M8B!E<G)O<B E8@H =V0E9#H@97)R;W(@:6X@8F%D+7-E8W1O<B!F:6QE"@!
- C*",I<W1R8VUP+F,)-2XU("A"97)K96QE>2D@,2\R-B\Y,0!O
-
- end
-
- --
- Bob Thrush rd@aii.com (407) 661-7089 Fax-(407) 661-6966
- Automation Intelligence,Inc. -- 850 Trafalgar Court, Maitland, FL 32751
-