lkml.org 
[lkml]   [2001]   [Sep]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectRe: Booting linux using Novell NetWare Remote Program Loader
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.--- /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
\
 
 \ /
  Last update: 2005-03-22 13:17    [W:0.079 / U:0.136 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site