Pavel Machek wrote:
>
> > I removed the autoprobing from bootsect.S and fixed it to 1.44MB format
> > et voila, it worked perfectly.
>
> Do you have patch to do that?
I have a patch for 2.0.x only. But it should be enough to change the
disksizes table at the end of bootsect.S to:
disksizes: .byte 18,18,18,18
Ciao, ET.
--------------E4B8CE9ADBC36EB01B80FE59
Content-Type: text/plain; charset=us-ascii;
name="boot-diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="boot-diff"
--- /usr/src/2.0.36/arch/i386/boot/bootsect.S Sat Mar 9 12:31:42 1996
+++ /tmp/q/bootsect.S Thu Aug 23 21:42:20 2001
@@ -102,6 +102,7 @@
! cx contains 0 from rep movsw above
+#if 0 /* ET: let the DPT alone */
mov fs,cx
mov bx,#0x78 ! fs:bx is parameter table address
push ds
@@ -124,6 +125,7 @@
mov (bx),di
seg fs
mov 2(bx),es
+#endif
! load the setup-sectors directly after the bootblock.
! Note that 'es' is already set up.
@@ -170,6 +172,7 @@
! 36 sectors if sector 36 can be read, 18 sectors if sector 18 can be read,
! 15 if sector 15 can be read. Otherwise guess 9.
+#if 0 /* ET: no autoprobing. asume 1.44mb disk */
mov si,#disksizes ! table of sizes to try
probe_loop:
@@ -187,6 +190,7 @@
mov ax,#0x0201 ! service 2, 1 sector
int 0x13
jc probe_loop ! try next value
+#endif
#endif
@@ -438,10 +442,12 @@
ret
sectors:
- .word 0
+ .word 18
+#if 0 /* ET: no autoprobing. fixed at 18 sectors */
disksizes:
.byte 36,18,15,9
+#endif
msg1:
.byte 13,10
--------------E4B8CE9ADBC36EB01B80FE59--
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/