Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 27 Feb 2004 10:56:54 -0500
From:      John Baldwin <jhb@FreeBSD.org>
To:        Ruslan Ermilov <ru@freebsd.org>
Cc:        cvs-all@freebsd.org
Subject:   Re: cvs commit: src/sys/boot/i386/loader Makefile
Message-ID:  <200402271056.54508.jhb@FreeBSD.org>
In-Reply-To: <20040227153941.GA3538@ip.net.ua>
References:  <200402271410.i1REA99f059346@repoman.freebsd.org> <200402271016.48893.jhb@FreeBSD.org> <20040227153941.GA3538@ip.net.ua>

next in thread | previous in thread | raw e-mail | index | archive | help
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@FreeBSD.org>  <><  http://www.FreeBSD.org/~jhb/
"Power Users Use the Power to Serve"  =  http://www.FreeBSD.org



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200402271056.54508.jhb>