Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!gatech!udel!mmdf From: Peter_Van_Epp@cc.sfu.ca Newsgroups: comp.os.minix Subject: ADAPTEC ACB-2070A mod to xt_wini.c (long!) Message-ID: <21027@louie.udel.EDU> Date: 3 Aug 89 23:28:46 GMT Sender: mmdf@udel.EDU Lines: 226 Included here is a uuencoded (I'm on a Bitnet host!) cdif of xt_wini.c which provides support for drives other than /dev/hd1 on the Adaptec ACB-2070A, there have been a few postings of the changed the number of sectors to 25 and it mostly works variety, and in fact that worked for me until I tried to use /hd6 which died a sad and terrible death. The reason is that the parameter selection (at least for my configuration which is a 60 meg drive split by the controller into 2 30meg drives (C: and D: to MSDOS) is different than the standard drive. Instead of getting the parameters from the controller ROM, this setup reads it from somewhere on the disk (but not as far as I can see from the boot sector like the Western Digital controllers!). I disassembled the DOS support on the boot rom to figure out what it did to set the parameters and then hacked xt_wini.c to do teh same. It seems to work for me, I have been running minix from /hd6 for some time now with no problems. I assume that this drive is running in user defined drive parameters mode (there is a jumper between posts A and B which my documentation says is "reserved" which also may affect this). In any case maybe someone else with a 2070A can try this out and see if it works for them. ---------------- Cut here ---------------------------------------- begin 666 xt_wini.c.cdif M*BHJ('AT7W=I;FDN8PE3=6X@2G5L(" R(#$R.C P.C$S(#$Y.#D*+2TM('=I M;FDN8PE4:'4@075G(" S(# Q.C0P.C4V(#$Y.#D**BHJ*BHJ*BHJ*BHJ*BHJ M"BHJ*B S,RPT,2 J*BHJ"B @(VEN8VQU9&4@(G!R;V,N:"(*(" *(" O*B-D M969I;F4@05543U("24(3(" @(" @(%12544)+RH@5%)513H@=7-E(%=E#!A"2[J(&-O M;6UA;F0@9F(R('1H92!D$9#"2[J($-O;6UA;F0@=&[@71E#$Q"2[J(&YU;6)E71E#$Q"2[J(&YU;6)E2@Q+" F<&%R86TQ*2 A/2!/ M2RDI"B$@"7)E='5R;BA%4E(I.PHA( H@( H@(" @9F(R("AI/3 ](&D[;G)? M9')I=F5S.R!I*RL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