From: drew@caesar.cs.colorado.edu (Drew Eckhardt) Subject: Re: BOOT PROBLEM ---- NEED AS86 SOURCE TO FIX Date: Mon, 1 Jun 1992 22:11:09 GMT
In article <1992Jun01.162257.28148@watson.ibm.com> lpickup@vnet.ibm.com writes:
>In article <22103@castle.ed.ac.uk>, gaa@castle.ed.ac.uk (Gerard A. Allan) writes:
>|> Since nobody seems to be able to solve my boot problem (see below )I'd like to
>|> fix it myself. I believe I can compile up linux using the djgpp version of
>|> gcc, but I connot compile the bootsect.S etc without as86(and ld86).
>...
>Gerard,
>
> Let me know how you use djgpp. I had no luck with it. I think it's
>because it assumes it's loaded at a different place than the Linux
>loader loads it at.
>
> As a workaround to not being able to compile bootsect.S, I simply
>extracted the first n (can't remember off-hand what n is) sectors
>of the boot image to extract the object code. I also had to modify
>the image builder program to handle raw code instead of .o files.
>This of course doesn't help you if need to significantly change the
>boot loader, but you can do simple patches using DEBUG.
>
It's pretty easy to write a perl script to massage the bootsector
output between MASM and the Linux 8086 real mode assembler format.
I had one, but obliterated it in a fit of mad deleting...
This is probably the least tedious way to go, and you will learn
something in the process.