Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 20 Sep 2011 16:09:06 -0500
From:      "Matthew D. Fuller" <fullermd@over-yonder.net>
To:        Peter Jeremy <peterjeremy@acm.org>
Cc:        Bruce Cran <bruce@cran.org.uk>, freebsd-current@freebsd.org
Subject:   Re: 9.0 beta2 & the new bsdinstaller
Message-ID:  <20110920210906.GG14862@over-yonder.net>
In-Reply-To: <20110920062349.GA84006@server.vk2pj.dyndns.org>
References:  <20110918095526.D866D1065670@hub.freebsd.org> <4E7734B7.8030507@cran.org.uk> <20110920062349.GA84006@server.vk2pj.dyndns.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Sep 20, 2011 at 04:23:49PM +1000 I heard the voice of
Peter Jeremy, and lo! it spake thus:
> On 2011-Sep-19 13:25:27 +0100, Bruce Cran <bruce@cran.org.uk> wrote:
> >Will 64 kB be enough for 9.x?
> 
> At least for x86 architectures, it seems adequate.  [...]
> 
> As for size, I'd suggest that if the default freebsd-boot size is
> going to be changed, it should be adjusted so that the following
> partition is aligned to a reasonably sized power of 2 - 128KB or
> 256KB.

I've been meaning to mention this, but we really should document
somewhere that it has a _MAXIMUM_ size.

I setup a system a few weeks back with GPT, and figured I'd just make
the first 'real' partition start at the 1 meg mark.  And make
everything before that (1 meg - the however many sectors for the pmbr)
the freebsd-boot partition.

It worked fine, up 'till the point that I tried to boot, and it
completely failed to, complaining that the boot code was too big.  I
had to track around in pmbr to find

.   .   cmp $0x9000,%ax..   .   # Don't load past 0x90000,
.   .   jae err_big..   .   #  545k should be enough for
.   .   mov %ax,%es..   .   #  any boot code. :)

and redo the partition to 512k (leaving a few hundred k unused before
the next partition started) before it would boot.  That's a little
nerve-wracking to hit on a critical system...


-- 
Matthew Fuller     (MF4839)   |  fullermd@over-yonder.net
Systems/Network Administrator |  http://www.over-yonder.net/~fullermd/
           On the Internet, nobody can hear you scream.



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