home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / fj / os / 386bsd / 262 < prev    next >
Encoding:
Internet Message Format  |  1993-01-12  |  5.0 KB

  1. Path: sparky!uunet!spool.mu.edu!sgiblab!adagio.panasonic.com!chorus.mei!rdmei!sol01@okafuji
  2. From: okafuji@miln.mei.co.jp (MILN Kouji Okafuji)
  3. Newsgroups: fj.os.386bsd
  4. Subject: Re: Q: how to make Tiny 386bsd floppy [PS/55 note]
  5. Message-ID: <OKAFUJI.93Jan12132301@sol09.miln.mei.co.jp>
  6. Date: 12 Jan 93 04:23:01 GMT
  7. References: <1993Jan11.065243.6522@hsdlgw92.sdl.hitachi.co.jp>
  8.     <C0oq0K.E6z@msr.mei.co.jp>
  9.     <1993Jan12.002140.4424@hsdlgw92.sdl.hitachi.co.jp>
  10. Sender: news@sol01.miln.mei.co.jp
  11. Distribution: fj
  12. Organization: Matsusita Information Systems Reserch Lab.Nagoya
  13. Lines: 139
  14. In-reply-to: iseda@hsdlgw92.sdl.hitachi.co.jp's message of 12 Jan 93 00:21:40 GMT
  15.  
  16.  
  17. $@2,F#!wL>8E208&$G$9!#(J
  18.  
  19. In article <1993Jan12.002140.4424@hsdlgw92.sdl.hitachi.co.jp> iseda@hsdlgw92.sdl.hitachi.co.jp (Seiji Iseda) writes:
  20.  
  21.    >>$@$H$3$m$G$I$&$d$i(J PS/55 note $@$K$O!":#$N$H$3$m(J 386bsd $@$r$N$;$k$N$OL5M}$_$?(J
  22.    >>$@$$!"$H$$$&$3$H$,$o$+$j$^$7$?!#(J
  23.    >>$@!tL5M}(J$@$_$?$$$H$$$&$3$H$,$o$+$C$?$@$1$G$b;d$K$OBgJQ$J?JJb$G$9!"!"!"(J;_;)
  24. $@$G$O$J$/$F!"(J
  25.  
  26.    >>$@$O$8$a$^$7$F!"0kB<(J$@!w>>2<EE4o>p%7%9%F%`L>8E208&5f=j$G$9!#(J
  27.    >>$@;d$N#A#T495!$G$b;w$?>I>u$K$J$j!"%V!<%H%V%m%C%/$K%Q%C%A$rEv(J$@$F$F(J
  28.    >>$@F0$/MM$K$J$j$^$7$?!#$=$N>pJs$r(Jnifty$@$K=P$7$?J*$+$i$N0zMQ$G$9!#(J
  29. $@$G$9!#(J
  30. $@!t$&$A$O(JUUCP$@%5%$%H$N$?(J$@$a!"5-;v$,FO$/$N$,CY$$$h$&$G$9!#(J
  31.  
  32.    >>$@$G$9!#$3$N5-;v$N%O!<%I%3%T!<$7$+$J$/$F!"%a%C%;!<%8#I#D$,$o$+$j(J$@$^$;$s!#(J
  33. 0.0$@$N$3$m$N5-;v$J$N$G$9$,!"$9$08+$?$$?M$b$*$i$l$k$H$*$b$$$^$9!#(J
  34. $@$=$3$G!"4XO"5-;v$r#2$DE>:\$7(J$@$^$9!#(J
  35. -------------------------------------------------------------------------
  36. From: nasten@everyware.se (Hans Nasten)
  37. Newsgroups: comp.unix.bsd
  38. Subject: Booting 386BSD on a previously unbootable machine. (WD 386SX-LPX)
  39. Date: 21 Apr 92 16:37:53 GMT
  40. Organization: Everyware Mikrodata AB, Stockholm Sweden
  41.  
  42. The floppy bootstrap in 386BSD uses the interrupt controller in a somewhat
  43. unorthodox manner. Chipsets with a less than perfect emulation of the 8259
  44. interrupt controller will get into trouble. ( at least the WD chipset on
  45. my WD LPX motherboard ).
  46.  
  47. This is the offending code in the floppy boot module :
  48.  
  49. /* watch the icu looking for an interrupt signalling completion */
  50.  
  51.         xorl    %edx,%edx
  52.         movb    $0x20,%dl
  53.  2:     movb    $0xc,%al
  54.         outb    %al,%dx
  55.         NOP
  56.         inb     %dx,%al
  57.         NOP
  58.         andb    $0x7f,%al
  59.         cmpb    $6,%al
  60.         jne     2b
  61.  
  62.  
  63. Replacing the "jne 2b" instruction with 2 nop's made my SX boot the "0.0newer"
  64. distribution. Without this patch it never got past the initial bootstrap.
  65. I did the patch at offset 0xfa in the dist.fs file. The 0x75, 0xf0 bytes
  66. there was replaced by 0x90, 0x90 and the new file was transferred to a 3.5
  67. inch diskette.
  68.  
  69. The patch seems to work since the code tests the floppy controller directly
  70. further down.
  71.  
  72. --
  73.  
  74. -----
  75. Hans Nasten                     Palsundsgatan 3 B
  76. Everyware Mikrodata AB          S-117 31 STOCKHOLM
  77. Email : nasten@everyware.se
  78. ----------------------------------------------------------------------------
  79. ----------------------------------------------------------------------------
  80. From: ejh@slustl.uucp (Eric J. Haug)
  81. Newsgroups: comp.unix.bsd
  82. Subject: fix for /sys/i386/stand/srt0.c
  83. Date: 19 Apr 92 19:26:36 GMT
  84. Organization: St. Louis Univ.
  85.  
  86. This patch fixes the symptom of booting from a floppy
  87. and having the kernel mount the hard drive root and swap.
  88.  
  89. *** srt0.c      Sun Apr 19 14:21:14 1992
  90. --- srt0.c~     Sat Apr 18 07:28:09 1992
  91. ***************
  92. *** 87,91 ****
  93.   #ifdef REL
  94. !       leal    0(%esp) ,%eax   /* old pc popped by ret in XXbootblk */
  95.         /* copy down boot parameters */
  96. -       movl    $ RELOC -4*4,%esp
  97.         movl    %esp,%ebx
  98. --- 87,91 ----
  99.   #ifdef REL
  100. !       leal    4(%esp),%eax    /* ignore old pc */
  101. !       movl    $ RELOC-4*4,%esp
  102.         /* copy down boot parameters */
  103.         movl    %esp,%ebx
  104. ***************
  105. *** 95,97 ****
  106.         call    _bcopy
  107. !       addl    $12, %esp
  108.   #else
  109. --- 95,97 ----
  110.         call    _bcopy
  111. !       movl    %ebx,%esp
  112.   #else
  113. ***************
  114. *** 105,106 ****
  115. --- 105,107 ----
  116.  
  117. +       movl    %esp,%esi
  118.   #ifdef        REL
  119. ***************
  120. *** 117,119 ****
  121.         call    _bzero
  122. -       addl    $8, %esp
  123.  
  124. --- 118,119 ----
  125. ***************
  126. *** 122,127 ****
  127.          */
  128. !       movl    $64*1024,%ebx
  129. !       movl    %esp,%eax
  130.         subl    %ebx,%eax
  131. !       subl    $6*4,%ebx       # save three boot items, 2 params and return
  132.         pushl   %ebx
  133. --- 122,126 ----
  134.          */
  135. !       movl    %esi,%eax
  136.         subl    %ebx,%eax
  137. !       subl    $5*4,%ebx
  138.         pushl   %ebx
  139. ***************
  140. *** 129,131 ****
  141.         call    _bzero
  142. -       addl    $8, %esp
  143.   #else
  144. --- 128,129 ----
  145. ***************
  146. *** 138,139 ****
  147. --- 136,138 ----
  148.   #endif
  149. +       /*movl  %esi,%esp*/
  150. --------------------------------------------------------------------------
  151. --
  152.      Matsusita Information Systems Research Laboratory Nagoya Co.,Ltd.
  153.       Development Division   Koji Okafuji   okafuji@miln.mei.co.jp
  154.          Tel +81-52-232-0058  Fax +81-52-232-0028 JE2EGZ
  155.