cvs commit: src/sys/boot/i386/loader Makefile

John Baldwin jhb at FreeBSD.org
Fri Feb 27 07:55:38 PST 2004


On Friday 27 February 2004 10:39 am, Ruslan Ermilov wrote:
> On Fri, Feb 27, 2004 at 10:16:48AM -0500, John Baldwin wrote:
> > On Friday 27 February 2004 09:10 am, Ruslan Ermilov wrote:
> > > ru          2004/02/27 06:10:09 PST
> > >
> > >   FreeBSD src repository
> > >
> > >   Modified files:
> > >     sys/boot/i386/loader Makefile
> > >   Log:
> > >   For some reason crt0.o needs to be linked first for pxeboot(8) to
> > >   work.  This is odd because loader(8) doesn't suffer from this
> > > problem. Perhaps pxeboot bootstrap can be fixed to handle this better.
> > > Anyway, PXE booting should work again.
> >
> > pxeboot, cdboot, and btxldr all make the same assumptions about how the
> > a.out loader is laid out so they can extract BTX and use it to bootstrap
> > into the loader proper.
>
> Hmm, then how can you explain that /boot/loader worked with this
> change, but /boot/pxeboot didn't?

I do not know off the top of my head.  Note that boot2, cdboot, and pxeboot 
all have to relocate the loader after it is loaded, and perhaps boot2 has 
better a.out support (it is written in C rather than asm after all).  If 
pxeboot was broken, cdboot was likely broken, too.

-- 
John Baldwin <jhb at FreeBSD.org>  <><  http://www.FreeBSD.org/~jhb/
"Power Users Use the Power to Serve"  =  http://www.FreeBSD.org


More information about the cvs-src mailing list