On Sun, Aug 25, 2024 at 4:23 AM Gordon Bergling <g...@freebsd.org> wrote:

> Hi Warner,
>
> On Sat, Aug 24, 2024 at 03:21:16PM -0600, Warner Losh wrote:
> > On Sat, Aug 24, 2024 at 1:39 PM Gordon Bergling <g...@freebsd.org> wrote:
> > > On Sat, Aug 24, 2024 at 01:29:55PM -0600, Warner Losh wrote:
> > > > On Sat, Aug 24, 2024, 1:14 PM Gordon Bergling <g...@freebsd.org>
> wrote:
> > > > > I got the following buildworld error a recent -CURRENT
> > > > >
> > > > > ===> stand/i386/pxeldr (all)
> > > > > `kldstat.o' is up to date.
> > > > > -14152 bytes available
> > > > >
> > > > > The same happens on stable/14:
> > > > >
> > > > > ===> stand/i386/pxeldr (all)
> > > > > -22344 bytes available
> > > > > ===> share/misc (all)
> > > > > --- loader ---
> > > > > *** [loader] Error code 1
> > > > >
> > > > > make[5]: stopped in
> /storage/freebsd/src/stable/14/stand/i386/pxeldr
> > > > > 1 error
> > > > >
> > > > > src.conf looks like the following:
> > > > > WITH_BEARSSL=1
> > > > > WITH_RETPOLINE=1
> > > > > WITHOUT_CLEAN=1
> > > > >
> > > > > I remove the whole obj directories and tried several full builds,
> but
> > > the
> > > > > error persists for a while.
> > > > >
> > > > > Has any one a clue how to solve this?
> > > >
> > > > Either disable pxe, raise the pxe limit (though it may not work), or
> > > select
> > > > the 4th loader for pxeboot.
> > > >
> > > > The loader is too big on BIOS to enable all the options.
> > >
> > > I looked at src.conf(5), but didn't found a switch to disable pxe.
> What I
> > > am
> > > wondering about is that no one is facing the problem, since this it is
> a
> > > pretty clean build without and special modifications, despite the ones
> > > mention
> > > above in the src.conf.
> > >
> > > Did you have a hint on how to disable pxe?
> > >
> >
> > I was sure that I'd documented everything, but it seems not:
> >
> > WITHOUT_LOADER_PXEBOOT=t
> > PXEBOOT_DEFAULT_INTERP=4th
> > PXEBOOTSIZE?=525000
> >
> > I'll look to make sure I don't have a commit stuck in a branch
> somewhere....
>
> with this values in the src.conf(5) the build finally finished. But I
> wonder
> why I am the only person, who hits that problem since it is a very plain
> -CURRENT build on a Hyper-V instance.
>
> Should these values be default values?
>

You've enabled some big ticket items. It's not at all clear what the default
should be when people grow the loader too big. These options exist because
PXEBOOT larger than about 500k is know to be flakey, though there's no
universally known good upper limit since it depends a lot on the BIOS, what
it does, etc. So upping that limit is off the table (though one can if one
tests
it and finds that works). Some other people don't use PXE at all, so for
them, disabling it makes the most sense. Still others can't up the PXE
limit high enough, and for them, using the 4th loader is a good path
forward.

The other option is for someone to go through /boot/loader and shaving
some additional space. I've found all the easy, low-hanging fruit, plus
turning off all the esoteric filesystems got us down to almost fitting.

Warner

Reply via email to