brooks@Apple.COM (Kevin Brooks) (05/17/89)
I've received so many requests for this patch I've decided to post it. This is a patch for the A/UX 1.0 ethernet driver. This patch helps eliminate the problem the driver has in resetting the card correctly after an overflow condition on the receive buffer. This patch greatly reduces the chances of the card going into an off line state, which would require manual intervention to get the card up again. If you've been seeing alot of these: ae6_intr: receive overflow warning ae0: overflow NIC reset failed this is the patch for you. This fix was provided by John Pane. Many thanks go to him for feeding this fix back to Apple so that everyone can benefit from it. I've shared the following together: ae6.uu - uuencoded enet driver ae6install - install program for the new driver Instructions: o Create a new directory and unshar this into it. o uudecode the new ethernet driver (ie. uudecode ae6.uu). o run ae6install Disclaimer: This software is provided on an "AS IS" basis. Apple makes no warranties,express or implied, including without limitation the implied warranties of merchantability and fitness for a particular purpose, regarding the software." -------------------------------Cut Here-------------------------------------- #! /bin/sh # This is a shell archive. Remove anything before this line, then feed it # into a shell via "sh file" or similar. To overwrite existing files, # type "sh file -c". # The tool that generated this appeared in the comp.sources.unix newsgroup; # send mail to comp-sources-unix@uunet.uu.net if you want that tool. # If this archive is complete, you will see the following message at the end: # "End of shell archive." # Contents: ae6.uu ae6install # Wrapped by root@mackev.a on Thu May 4 11:04:18 1989 PATH=/bin:/usr/bin:/usr/ucb ; export PATH if test -f 'ae6.uu' -a "${1}" != "-c" ; then echo shar: Will not clobber existing file \"'ae6.uu'\" else echo shar: Extracting \"'ae6.uu'\" \(12048 characters\) sed "s/^X//" >'ae6.uu' <<'END_OF_FILE' Xbegin 666 ae6 XM 5 R17AO< !KB 5 00N=&5X= 32 (P XM !6< "$ @+F1A=&$ !-( 32 <@ !/4 :Q XM P 0"YB<W, 5$ %1 XM (!(#O____@P-@%B @ !,'\ + @? !"!!\ D0+4C__# V 6( " $ XM2,"PN0 !L*"ZN A.N@!&('8!8O_\ '9(: \3KD 6(]*@&8.+JX XM"$ZZ .AP $Y>3G4P-@%B @ !$C +H O/ $X1.N0 !8CW !8-Y(#O__ XM__0P-@%B @ !,'\ + @? !"!!\ D0+4C__# V 6( " $(# %L $ XM@ DM0/_X,C8!8@ ( 1(P2&!#; ! ,#8!8@ ( 0@, 6P .&( XMX8CAB 2 #_, "! +8@!8O_\ 'HP-@%B @ !" P!; X8CAB.&(!( / XM\@ ($ MB %B__P =C V 6( " $(# %L #AB.&(X8@$@ _Q @0"V( XM 6+__ !^3EY.=4@.____^# V 6( " $P?P L"!\ $($'P"1 M2/_\0K8! XM8O_\ 'I"M@%B__P =D*V 6+__ !^3EY.=4@.____^$CO! !# V 6( " $ XMP?P L"!\ $($7P"1 U=@%B @ ! $)+P !.T-7P%W &)7P 'N "@E XM? $50 ,"5\ %@ L-7P @ (+HI.N0 C_ $FX .3.\$ $ XM3EY.=4@.____Y$CO' 0 !" N A,/ @ L"!\ $($'P"1 D2"9J '8M XM2O_\2K8!8O_\ !!G,DZY "U __A":@""%WP (0 \0BL %$(K !!T & * XM""L !P @9A12@G!DM(!M\& *3.\<! $3EY.=0@K < (&8B+J[_^$ZY XM )V_[\!8O_\ @NK@ (+SP !.W8 5A=\ $D !!=\ P #!=\ 0 "!=\ XM 8 .!=\ $ -!=\ #\ ,!=\ /\ ($AJ &@O*@!^3KD 4(]R_["!9B N XMKO_X3KD +JX ""\\ 3RTZY %B/8 #_;A=\ &$ /!=\ 8 (!=J XM &@ .!=J &D -!=J &H ,!=J &L +!=J &P *!=J &T )!=Y 36 <%WD XM !-9 !@7>0 $UH %!=Y 36P 0%WD !-< P7>0 $UT "!=Y 37@ $ XM%KD !-?%WP (0 \%KP 'Q=\ "( /$(K @(]@ & 6+__ )2K8!8O_\ !1G XM""ZN A.N@#,+J[_^$ZY & _L)(#O___^A([PP$ 0@+@ (3#P( XM + @? !"!%\ D0)FH =BU*__Q.N0 M0/_X0FH @A=\ "$ /"ZN A. XMN@30%WP (0 \0BL %$(K !!T & *""L !P @9@A2@G!DM(!M\ @K < (&8P XM+J[_^$ZY )V_[\!8O_\ @NK@ (+SP !/N3KD 6(],[PP$ 1. XM7DYU%WP ! (%WP (@ \0BL ""ZN__A.N0 !@VD@.____[$CO# !" N XM A,/ @ L"!\ $($'P"1 D2"9J '9*:@""9@ 7"UJ !3_^&<<)78! XM8O_X /P %&8$0JH &$*V 6+_^ #\4ZH '$JN__AF#D)J (),[PP 1.7DYU XM+JH >B\N__A.N@GL6(\M0/_\#( \9 @M? #S__" N__S@@ ( <7 XM0 D</_ +O__%T *$(K "P7? F #PU? ! (((Z@ (<@.0 &CE@"( XMZ8"0@=" +H O+@ (+SP 4R3KD 4(]@ /^ 2 [____X2.\$ $("X XM"$P\" "P('P 0@1? )$ *J_____@"$+JX ""\\ 4$$ZY %B/ XM+JX "$ZZ_'I,[P0 1.7DYU2 [____42.\< $,#8!8@ ( 3!_ "P('P XM 0@1? )$"9N Q"KO_F,#8!8@ ( A(P * 07)!L(%G#"U\ 1O_T XM8 !+G ,#8!80 02H!G "B#( "9Q@,@ YF #B( O0JP $($ H XM2& 5XM=@%B ! !/_J2&[_[DAN_^HO"R\*3KD W_P 02H!F#' XM3.\< $3EY.=2U\ ( /_\+J[_ZDZY $J 9QXNKO_J3KD 2H!F XM$"ZN_^I.N0 !R_["!9C8NO#N:R@!P "\ +PM.N0 !0CRU(_^9@'$GV XM 6( $ "0>[_[B#<,)19C' ,"P #"U __P,JP /P !&(,#*L : 1D XM "$< (N@' +P!.N0 !8CR9(( MF6"U\ 2__T8"QP # V 6$ $"Z XM,#8!8@ ( 1(P"\ +SP !0V3KD 4(\M? $/_]"ZN Q.N0 !* XMKO_F9PHNKO_F3KD ("[_]& _PHFK@ ,)WP , 0W? . A@#@2K XM #@ $!FL #@ (( O0JP $($ H2#EN__X #$'N_^XHV#B068Q![ &0^H XM:"#9,)%.N0 M0/_X(#8!8@ ( !RPM@%B @ (&T@4K8!8@ ( "0NKO_X XM3KD +HM.N0 !P2V _H8@"V8,+KP !1/3KD 0JL _$JV 6( XM" 89@HMBP%B @ %& ,('8!8@ ( !@A2P#\+8L!8@ ( !A2M@%B @ '$IJ XM ()F$# V 6( " $2, N@$ZZ_%PNKO_X3KD 2J[_YF<:+JX $"\N_^8O XM/ !.N0 !0CV _@)P & _?Q(#O____!([P0 0@+@ (3#P( XM + @? !"!!\ D0)$@M:@!V__Q*:@""9T@(*@ (=G&BZN @O/ !3). XMN0 !8CP*J_____@"$0FH @DZY "U __A*J@ 49P@NK@ (3KK[OBZN XM__A.N0 !,[P0 1.7DYU2 [____P2.\$ $("X "$P\" "P('P XM 0@1? )$"UJ ';__& ,+HI.N@'6+HI.N@5N+HI.N@4N'4#_^BZ*3KH$\!U XM__L0+O_ZL"[_^V;63.\$ $3EY.=4@.____Y$CO# P !' ,#8!8@ ( $ $ XM@ DM< VP 0/_\("[__$P\" "P('P 0@0? )$"1()FH =BU* XM__AV RN !O_\;1XNKO_\+SP !1D3KD 6(\NO %(5.N0 !* XM*P @9@XNKO_\+SP !2,8 !$A K "!)P * "B0 9P >" "%T ( @" XM %G#%*V 6+_^ !$8 6 @K , (&< $Y2M@%B__@ 2! K Q)P"8 " , XM F<$4JH F @# -G!%*J )P( P $9P12J@"@" , !6<$4JH I @# 9G!%*J XM *@( P '9P12J@"L+J[__$ZZ_A80*P @2< "@ !4D &< ( @ A= " N XMKO_\3KK^> @" 1G%"ZN__Q.NOE6+KP !2E3KD " ( F< %!2M@%B XM__@ 0! K Q)P"8 " , 6<0" , F<&4JH C& $4JH B @# -G!%*J ) ( XM P $9QA2J@"4$!-)P"Z +SP !3)3KD 6(],[PP, 1.7DYU2 [____$ XM2.\<# $)&X "%*J #PNBDZZ TP"@ /\"@ /\M0/_VX8C0J@!Z($ M XM2/_\< 0-@%B__P ^&(0D$2-@%B__P H!!- !G "$#'80 %B__P $&4 XM ( ,=A 0 6+__ 09 <G ,#8!8O_\ ! $@ $ #AB..(+4#_\@R % XMW&Q&("[_\CVV"2;__ 2 6+__ 00?8!8O_\ !)!]HDF__( G ,! M0/_N XM("[_\M"N_^XR DC!L(%N## N__30;O_P- !@#DSO' P !$Y>3G5"KO_R+JH XM>B\N__(P DC +P O+O_\3KH#PM_\ #"9(( MGT$JN__)G"%BK 19:P ( XM< P-@%B__P $ R ( &<D#( @&9P !C@R " -68 9(NBR\*3KD XM 6(]@ /^.#*L #\ 1B%@RK $ $90Q9JP $6&L "& +).N0 XM M0/_>+7D $_^IG2DIV 6+_Z@ *9PPNO %/!.N0 ]O " 6+_ XMZ@ *4WD (,4GD (8(_8!8?_J !$*V 6'_ZBV\ # %B_^H !& 4 XM< (N@' +P!.N0 !8CRU(_^HNKO_>3KD 2J[_ZF8.+HM.N0 !P XM2V _MXMO P!8O_J 0]O $ 6+_Z@ (+8L!8?_J)F[_ZB +T*L !"! XM((J1R"Z(+SP 3KD 6(\M? !3_YDZY "U _^(@-@%B_^8 XM"+"V 6+_Y@ ,;1)2M@%B_^8 $"Z+3KD 8$(@"V8,+KP !3U3KD XM0JL _$JV 6+_Y@ $9@@MBP%A_^9@#"!V 6+_Y@ $(4L _"V+ 6+_Y@ $4K8! XM8O_F @NKO_B3KD 8 #^'"Z++PI.N0 !@ /Y\2?8!8O_\ 0S]@%B XM__P $ $X)V & *$9PYL $W)2@W .MH!E\'8 8! 1MCDF__P !#FP 3 XM8E*#< :V@&7J+KP !-@+SP !-P+SP !. +PM.N0 #?_ Q@ /VH XM2 [____T2.\$ $)'8!8@ ( '85? ! #P=:@ @__]"*@ \< 0+O__3.\$ XM $3EY.=4@.____]$CO! !"1V 6( " !V$"H ,%( '4#__PP #]C!AU\ XM ;__W $"[__TSO! !$Y>3G5(#O____!([P0 0D=@%B @ =BZN A. XMNO^L @ _QU __IP ! N__KAB-"V 6( " !Z($ M2/_\$#8!8O_\ %3 !U XM__L, &9 8=? ___L5;O_[ #!,[P0 1.7DYU2 [____@2.\,# $)FX XM#"1N AT & 'PP*@ (2, F # J A(P-2 2H-G !D( K0J@ $($ M2/_V XM( L"@ %G/%.++4O_^CUV 6'_^O_^(&[_]E*N__9"0! 0 D _S(N__X" XM0?\ @D "0?__(&[_^E2N__HP@5.#)F[_^BZ#+PLO+O_V3KH"\E"/U\,D4B * XM9@#_@@@" !G E*"+JX "$ZY " "3.\,# $3EY.=4@.____V$CO# P XM!$*N__Q![O_\+4C_^"0N !!']@%B @ $@2N #@ ,8 !KDZY "U XM_^PD>0 0@"F<V2FH "F<,+KP !4*3KD -7P 0 *4WD (,4GD XM (6(]( $0I(E? P !& 2< $N@' +P!.N0 !8CR1(+J[_[$ZY XM " *9Q9*@F<P("X #)"")@!']BDF @ $F B2J[__&<*+J[__$ZY XM )'(( A,[PP, 1.7DYU)BX # R# $ &T,+HI.N0 !*@&8>#(, #P XM;P@@/ /!@ B #-4 ""5\ # $( K0J@ $($ M2/_P( LR*@ (2,'0 XM@2(N !0&@0 0 "P@64 &(@+@ 4!H $ (@N0@2U __0N@"\N__ O"TZZ XM 8!0CR N !0&@ !@ @0"9(("[_\-"N__0@0"U(__ P*@ (2,"0KO_T+H O XM""\+3KH!3E"/,"H "$C D*[_]-? 8!@P*@ (2, N@"\N__ O"TZZ 2Q0C];J XM @MB@%A__@M2O_X2JX $&<@,"H "$C U("TK@ ,9AQ']@%B @ $G0 +6X XM$ ,8 HP*@ (2,"1K@ ,2JX #&X _DX@;O_\8 #^V$@.____Z$CO# !"1N XM @F;@ 0,"H !,'\ + @? !"!!\ D0+4C__$ZY "U __A"KO_T("X XM# R @"!I#&<D#(" (&D09@ ;@@J "69&""H !@ )9SX":O^_ A@ !< XM".H )< P$PR F9 ,"H !$C +H!.NO 6)6L ! !N2&L !"\*3KD XM 4(]@)@@J "6<>""H !@ )9A8P*@ $2, N@$ZZ[^1@""U\ %O_T XM+J[_^$ZY " N__1,[PP 1.7DYU2 [____P2.\,! $)&X ""9N PD XM+@ 08! VVE6"8 HP&@) _P VP%."2H)O"' !M(!O[&#D3.\,! $3EY.=4@. XM____V"UV 6( # (__QF#"U\ /O_P8 IG ,#8!8O_\ "P,@ YF XM "*"#8 %B__P 56< ')P$"Z 2&[_X$ZY %B//7P O_@0?8!8O_\ XM !PM2/_<+78!8O_< 3_Y&<22&[_X$ZY %B/+4C_^&<P+78!8O_X "#_ XM]&<D2'8!8O_\ !PO+@ (+R[_]"!V 6+_] L3I#?_ Q.7DYU+7P !% XM__!@""U\ /?_P2JX "&<*+JX "$ZY " N__!@U$YQ 7P XM &/__________ X . XM #@ 864E9#H@9')I=F5R('9E<G-I;VX@,2XP+"!U;G-U<'!O<G1E9"!P XM871C:" C,0H 864 864E9#H@(&EN:70@9F%I;&5D"@!A925D.B @971H97)N XM970@861D<F5S<R!N;W0@9F]U;F0* &%E)60Z("!O=F5R9FQO=R!.24,@<F5S XM970@9F%I;&5D"@!A925D('1R86YS;6ET=&5R(&9R;WIE;B M+2!R97-E='1I XM;F<* &%E)60Z(&-A;B=T(&AA;F1L92!A9B5D"@!)1E]%3E%5155%('IE<F\@ XM;6)U9@!A939I;G0Z("!I;G1E<G)U<'0@9G)O;2!S;&]T("5D"@!A939I;G0 XM864E9"!S<'5R:6]U<R!I;G1E<G)U<'0* &%E-E]I;G1R.B!296-E:79E(&]V XM97)F;&]W('=A<FYI;F<* &%E-FEN=#H@4F-V(&]V97)F;&]W+"!L;W-T("5D XM('!A8VME=',* &UG970 249?14Y1545512!Z97)O(&UB=68 ;6=E= XM% !T $0 "P ? !$ !( (0 1 ;@ 0 $0 '0 C XM !$ "2 '0 1 J@ "0 $0 ,8 8 !$ #6 ) 1 XM_ "0 $0 2( D !$ %4 '0 1 !E@ !T $0 :H $ XM !$ &V @ 1 !O@ ( $0 <8 " !$ '6 * 1 ! XMW ( $0 > J !$ (( '0 1 ")@ "P $0 FX M XM !$ *" ! 1 "O@ "X $0 M M !$ +: ! 1 " XMX ", $0 QP $ !$ ,D ! 1 #+ 0 $0 S0 $ XM !$ ,\ ! 1 #1 0 $0 TP $ !$ -4 ! 1 # XMC@ "T $0 [ = !$ /" + 1 $# "T $0 !" $ XM !$ 0F (P 1 $3 "T $0 !&P = !$ 4, ,@ 1 % XM(@ ( $0 !2@ T !$ 5, '0 1 %8@ 0 $0 !6@ C XM !$ 6: '0 1 &$@ #4 $0 !CH V !$ 9( -P 1 & XM5@ #8 $0 !FX X !$ :V .0 1 &Y 0 $0 !NH C XM !$ ;^ .@ 1 '#@ #H $0 !V0 L !$ >, +0 1 ' XME #H $0 !Z0 $ !$ >J .P 1 '_@ "T $0 "!( \ XM !$ @8 /0 1 (0@ !T $0 "&8 " !$ AL /P 1 ( XM@ "P $0 ")P M !$ C$ '0 1 )* !@ $0 "3P = XM !$ E@ ! 1 )9@ ", $0 "6X $ !$ ET .P 1 ) XMA 0 $0 "D0 $ !$ I* (P 1 *F 0 $0 "IX C XM !$ ON 20 1 ,&@ "P $0 #"0 * !$ PX ! 1 , XM/@ #L $0 #$X ) !$ Q4 "0 1 ,7@ H $0 #( !* XM !$ R0 +0 1 ,G@ #H $0 #-@ !+ !$ S> 3 1 , XMY@ P $0 #.X L !$ T4 .@ 1 -( 0 $0 #28 [ XM !$ UB +0 1 -< $T $0 #8@ $ !$ V4 ! 1 - XMK@ 0 $0 #;P $ !$ W" ! 1 -R 0 $0 #= !. XM !$ ]8 .@ 1 /F@ "P $0 #Z0 * !$ ^T ! 1 / XMN@ #L $0 #\8 ) !$ _, "0 1 /T@ H $0 #^P !* XM !$ _Z +0 1 0) #H $0 $$8 !0 !$ !%R '0 1 1 XM@ "P $0 $>@ !1 !$ !(< +0 1 2N %( $0 $N( !3 XM !$ !,\ .@ 1 32 ( $0 $TP " !$ !-4 &0 1+F9I XM;&4 __X &<!:69?864V+F, +G1E>'0 XM $ ,! 32 "$ +F1A=&$ !-( ( ,! ! XMR # +F)S<P !40 , ,! XM <V5L=V%I= $ ( ;6)S=&%T (* ( ;69R XM965P $ ( ;6-L9G)E90 $ ( :7!I;G1R<0 4 XM ( <F%W:6YT<G$ 4 ( :69N970 $ ( <G1H XM;W-T @ ( <G1N970 @ ( <G1S=&%T * XM ( <F%W8V( !6 ( 0 $ ( :7!S XM=&%T P ( :7!Q < ( :7!?:60 " XM ( X & ( "$ ! ( 864V XM:6YF;P 8 ( "L !-( ( ( #4 XM $ , #\ %\ $ , 864V 0@ ( 864V XM7VUA<@ !-8 ( ( 864V8VYT ( 864V7VUA< !^ XM $ , :6]C:&5C:P ( $H % $ , <')I XM;G1F ( 864V861D<@ ( 864V7VEN:70 'N XM $ , %0 !%4 $ , %X 6 $ , XM &D ( ', !)N $ ( 96YS=P XM ( 'X .6 $ ( <W!L:6UP ( <W!L XM> ( (P ( )P 12 XM $ , *8 BJ $ , 864V7W!U= ZP $ , =@ XM ( + 4R $ , =&EM96]U= XM ( +P ( :6Y?;&YA;V8 ( XM ,< ( ;5]C;W!Y ( ;5]G970 XM ( ;5]F<F5E;0 ( <&%N:6, ( ;&]I XM9@ ( ;&]O=71P=70 ( -0 @H XM $ , -X ( 864V7W)P:W0 JN $ , XM .@ Y, $ , /T X2 $ , 0\ W> XM $ , <F5D<W0 !-@ ( ( <F5S<F, !-P ( ( <F5P XM<F]T;P !. ( ( 864V:6YT D( $ , 864V7V=E= ]H XM $ , 2 ( ;5]M;W)E ( :7!I XM;G1R ( <V]F=&-A;&P ( 87)P:6YP=70 XM ( 2P ( =V]R9&-O<'D !(N $ , ;6-L XM9V5T ( 38 ( 8GIE<F\ XM ( 4 ( !3VEN7VEF861D<@!E=&AE<F)R XM;V%D8V%S=&%D9'( 864V7W1R86YS &%E-F1R:79E<@!A939?<')O8F4 864V XM7V%T=&%C: !A939?=6YM87 864V7VEO8W1L &%E-E]O=71P=70 :69?871T XM86-H ')E;E]O=71P=70 864V7V]V<F5C;W9E<@!S;&]T7V5T:&5R7V%D9'( XM864V7W-T87)T &%E-E]R:6YT<@!A939?=&EM96]U= !A<G!R97-O;'9E &EN XM7V)R;V%D8V%S= !A939?>&EN='( =6YT:6UE;W5T '5P9&%T95]B;W5N9&%R XM>5]P86=E &=E=%]B;W5N9&%R>5]P86=E &=E=%]C=7)R96YT7W!A9V4 <F5V XL87)P:6YP=70 <F%W7VEN<'5T &%R<'=H;VAA<P!I9F%?:69W:71H861D<@!V X Xend END_OF_FILE echo shar: NEWLINE appended to \"'ae6.uu'\" if test 12049 -ne `wc -c <'ae6.uu'`; then echo shar: \"'ae6.uu'\" unpacked with wrong size! fi # end of 'ae6.uu' fi if test -f 'ae6install' -a "${1}" != "-c" ; then echo shar: Will not clobber existing file \"'ae6install'\" else echo shar: Extracting \"'ae6install'\" \(1099 characters\) sed "s/^X//" >'ae6install' <<'END_OF_FILE' X#! /bin/csh X Xset UID = `whoami` X if ( $UID != "root" ) then X echo "" X echo "You must run this as root" X echo "" X exit 1 X endif X Xset DDIR = "/etc/install.d/boot.d" Xset BDIR = "/etc/boot.d" Xset TFILE = "/tmp/kctmp" X X# Backup the old driver X X echo "" X echo "Backing up the old enet driver, saving it as ae6.orig" X X cp $DDIR/ae6 $DDIR/ae6.orig X cp $BDIR/ae6 $BDIR/ae6.orig X X# Install the new driver X X echo "" X echo "Installing the new enet driver" X X cp ./ae6 $DDIR X cp ./ae6 $BDIR X X# Get kernel config params X X echo "" X echo "Saving the current kernel paramaters" X X /etc/kconfig -a -n /unix > $TFILE X X# Rebuild the kernel with the new enet driver. X X echo "" X echo "Rebuilding the kernel (/unix)" X X /etc/autoconfig X X# Reconfigure the kernel with the orig params. X X echo "" X echo "Reconfiguring the new kernels paramaters" X X /etc/kconfig -n /unix < $TFILE X X# Exit X X rm -f $TFILE X X echo "" X echo "The new ethernet driver is now installed." X echo "" X echo "******************** REBOOT YOUR SYSTEM AT THIS TIME **************************" X X exit 0 END_OF_FILE echo shar: NEWLINE appended to \"'ae6install'\" if test 1100 -ne `wc -c <'ae6install'`; then echo shar: \"'ae6install'\" unpacked with wrong size! fi chmod +x 'ae6install' # end of 'ae6install' fi echo shar: End of shell archive. exit 0 Kevin Brooks A/UX Specialist, Apple Computer UUCP: {mtxinu,sun,nsc,voder}!apple!brooks DOMAIN: brooks@apple.com APPLELINK: AUX.DUDE@applelink.apple.com ARPA: brooks%apple@csnet-relay.ARPA