Re: Boot loader too large with Aug-11 FreeBSD/i386 11-CURRENT snapshot

2014-08-24 Thread Joel Dahl

23 aug 2014 kl. 20:45 skrev Adrian Chadd adr...@freebsd.org:

 I thought there was a recent discussion about this.
 
 Would you mind filing a bug so this gets looked at?

Done. See Bug 192962.

Joel

___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: Boot loader too large with Aug-11 FreeBSD/i386 11-CURRENT snapshot

2014-08-24 Thread Adrian Chadd
Thanks!


-a


On 24 August 2014 02:21, Joel Dahl j...@vnode.se wrote:

 23 aug 2014 kl. 20:45 skrev Adrian Chadd adr...@freebsd.org:

 I thought there was a recent discussion about this.

 Would you mind filing a bug so this gets looked at?

 Done. See Bug 192962.

 Joel

___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Boot loader too large with Aug-11 FreeBSD/i386 11-CURRENT snapshot

2014-08-23 Thread Joel Dahl
Hi,

Today I installed 11-CURRENT from the 20140811 FreeBSD/i386 snapshot on my IBM 
T43 laptop but encountered some problems. The memstick installation went fine 
and I pretty much used default values everywhere, but upon reboot I got ”Boot 
loader too large”. Nothing more. Any ideas?

Joel
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: Boot loader too large with Aug-11 FreeBSD/i386 11-CURRENT snapshot

2014-08-23 Thread Matthew D. Fuller
On Sat, Aug 23, 2014 at 09:02:10AM +0200 I heard the voice of
Joel Dahl, and lo! it spake thus:
 
 Today I installed 11-CURRENT from the 20140811 FreeBSD/i386 snapshot
 on my IBM T43 laptop but encountered some problems. The memstick
 installation went fine and I pretty much used default values
 everywhere, but upon reboot I got ”Boot loader too large”. Nothing
 more. Any ideas?

The freebsd-boot partition is bigger than five hundred twenty-mumble
k.  It'll be OK if you squeeze it down to 512.  Somthing like 'gpart
resize -i 1 -s 512k ada23' (untested, sub your disk).


-- 
Matthew Fuller (MF4839)   |  fulle...@over-yonder.net
Systems/Network Administrator |  http://www.over-yonder.net/~fullermd/
   On the Internet, nobody can hear you scream.
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org

Re: Boot loader too large with Aug-11 FreeBSD/i386 11-CURRENT snapshot

2014-08-23 Thread Joel Dahl

23 aug 2014 kl. 09:17 skrev Matthew D. Fuller fulle...@over-yonder.net:

 On Sat, Aug 23, 2014 at 09:02:10AM +0200 I heard the voice of
 Joel Dahl, and lo! it spake thus:
 
 Today I installed 11-CURRENT from the 20140811 FreeBSD/i386 snapshot
 on my IBM T43 laptop but encountered some problems. The memstick
 installation went fine and I pretty much used default values
 everywhere, but upon reboot I got ”Boot loader too large”. Nothing
 more. Any ideas?
 
 The freebsd-boot partition is bigger than five hundred twenty-mumble
 k.  It'll be OK if you squeeze it down to 512.  Somthing like 'gpart
 resize -i 1 -s 512k ada23' (untested, sub your disk).

Yes, gpart fixed it. Thanks.

But it’s annoying. Why is manual tinkering required here? Why isn’t it set to 
512k by default?

I checked the handbook (2.6.3), and it says ”the freebsd-boot partition should 
be no larger than 512K due to current boot code limitations” ...

Joel
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: Boot loader too large with Aug-11 FreeBSD/i386 11-CURRENT snapshot

2014-08-23 Thread Adrian Chadd
I thought there was a recent discussion about this.

Would you mind filing a bug so this gets looked at?


-a


On 23 August 2014 02:42, Joel Dahl j...@vnode.se wrote:

 23 aug 2014 kl. 09:17 skrev Matthew D. Fuller fulle...@over-yonder.net:

 On Sat, Aug 23, 2014 at 09:02:10AM +0200 I heard the voice of
 Joel Dahl, and lo! it spake thus:

 Today I installed 11-CURRENT from the 20140811 FreeBSD/i386 snapshot
 on my IBM T43 laptop but encountered some problems. The memstick
 installation went fine and I pretty much used default values
 everywhere, but upon reboot I got ”Boot loader too large”. Nothing
 more. Any ideas?

 The freebsd-boot partition is bigger than five hundred twenty-mumble
 k.  It'll be OK if you squeeze it down to 512.  Somthing like 'gpart
 resize -i 1 -s 512k ada23' (untested, sub your disk).

 Yes, gpart fixed it. Thanks.

 But it’s annoying. Why is manual tinkering required here? Why isn’t it set to 
 512k by default?

 I checked the handbook (2.6.3), and it says ”the freebsd-boot partition 
 should be no larger than 512K due to current boot code limitations” ...

 Joel
 ___
 freebsd-current@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-current
 To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org

Re: Boot loader too large

2014-07-15 Thread John Baldwin
On Friday, July 11, 2014 6:50:43 pm Matthew D. Fuller wrote:
 On Fri, Jul 11, 2014 at 03:38:56PM -0700 I heard the voice of
 Nathan Whitehorn, and lo! it spake thus:
 
  I don't honestly remember where that number came from. It's at line
  72 of usr.sbin/bsdinstall/partedit/partedit_x86.c. If 128 works
  better, I'm happy to change it, but it would be nice to know what
  the actual bounds here are before putting in a new arbitrary number.
 
 src/sys/boot/i386/pmbr/pmbr.s says
 
 -
 next_boot:. incl (%si). .   .   # Next LBA
 .   .   adcl $0,4(%si)
 .   .   mov %es,%ax..   .   # Adjust segment for next
 .   .   addw $SECSIZE/16,%ax.   .   #  sector
 .   .   cmp $0x9000,%ax..   .   # Don't load past 0x9,
 .   .   jae err_big..   .   #  545k should be enough for
 .   .   mov %ax,%es..   .   #  any boot code. :)
 -
 
 (err_big being printing the Boot loader too large message).  Though
 0x9 is actually 576k, not 545, but presumably there's some other
 adjustment lopping off bits somewhere; that's 62 sectors diff.

The boot code is not loaded at offset 0, it is loaded at offset 0x7c00 (the
same address the BIOS loads boot loaders):

.set LOAD,0x7c00# Load address
...
#
# We found a boot partition.  Load it into RAM starting at 0x7c00.
#
movw %bx,%di# Save partition pointer in %di
leaw PART_START_LBA(%di),%si
movw $LOAD/16,%bx

 Regardless, I settled on 512k for my boot partitions (after finding
 the above error when I previously decided it's a few dozen k, I'll
 just set aside a meg to be safe and then discovered the whole
 not-booting thing that caused.

512k should be fine even if it is a bit excessive.  Also, larger partitions
might actually increase boot time, but perhaps not noticably.

-- 
John Baldwin
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: Boot loader too large

2014-07-11 Thread John Baldwin
On Friday, July 04, 2014 7:07:20 am Alie Tan wrote:
 On Fri, Jul 4, 2014 at 5:57 PM, Alie Tan a...@afflemedialab.com wrote:
 
  Hi,
 
  I am getting Boot loader too large message while using
  FreeBSD-11.0-CURRENT-i386-20140701-r268111-disc1.iso
 
  Is there any way to solve this issue?
 
 Strange, resizing the freebsd-boot to 128k solved my issue. why default
 slice size making such issue?

Good question.  Perhaps Nathan (cc'd) knows?

-- 
John Baldwin
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: Boot loader too large

2014-07-11 Thread Benjamin Kaduk
On Fri, Jul 4, 2014 at 7:07 AM, Alie Tan a...@afflemedialab.com wrote:

 On Fri, Jul 4, 2014 at 5:57 PM, Alie Tan a...@afflemedialab.com wrote:

  Hi,
 
  I am getting Boot loader too large message while using
  FreeBSD-11.0-CURRENT-i386-20140701-r268111-disc1.iso
 
  Is there any way to solve this issue?
 
 Strange, resizing the freebsd-boot to 128k solved my issue. why default
 slice size making such issue?


Resizing to 128k from what value?

I seem to recall that having larger freebsd-boot partitions caused problems.

-Ben
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: Boot loader too large

2014-07-11 Thread Warren Block

On Fri, 11 Jul 2014, Benjamin Kaduk wrote:


On Fri, Jul 4, 2014 at 7:07 AM, Alie Tan a...@afflemedialab.com wrote:


On Fri, Jul 4, 2014 at 5:57 PM, Alie Tan a...@afflemedialab.com wrote:


Hi,

I am getting Boot loader too large message while using
FreeBSD-11.0-CURRENT-i386-20140701-r268111-disc1.iso

Is there any way to solve this issue?


Strange, resizing the freebsd-boot to 128k solved my issue. why default
slice size making such issue?



Resizing to 128k from what value?

I seem to recall that having larger freebsd-boot partitions caused problems.


Up to 512K is okay, but larger than that is a problem for the bootcode. 
I suggest always using 512K, it's not like using less saves an 
appreciable amount of space.  And bootcode grows sometimes.

___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: Boot loader too large

2014-07-11 Thread Nathan Whitehorn


On 07/11/14 10:45, John Baldwin wrote:

On Friday, July 04, 2014 7:07:20 am Alie Tan wrote:

On Fri, Jul 4, 2014 at 5:57 PM, Alie Tan a...@afflemedialab.com wrote:


Hi,

I am getting Boot loader too large message while using
FreeBSD-11.0-CURRENT-i386-20140701-r268111-disc1.iso

Is there any way to solve this issue?


Strange, resizing the freebsd-boot to 128k solved my issue. why default
slice size making such issue?

Good question.  Perhaps Nathan (cc'd) knows?



I don't honestly remember where that number came from. It's at line 72 
of usr.sbin/bsdinstall/partedit/partedit_x86.c. If 128 works better, I'm 
happy to change it, but it would be nice to know what the actual bounds 
here are before putting in a new arbitrary number.

-Nathan
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: Boot loader too large

2014-07-11 Thread Matthew D. Fuller
On Fri, Jul 11, 2014 at 03:38:56PM -0700 I heard the voice of
Nathan Whitehorn, and lo! it spake thus:

 I don't honestly remember where that number came from. It's at line
 72 of usr.sbin/bsdinstall/partedit/partedit_x86.c. If 128 works
 better, I'm happy to change it, but it would be nice to know what
 the actual bounds here are before putting in a new arbitrary number.

src/sys/boot/i386/pmbr/pmbr.s says

-
next_boot:. incl (%si). .   .   # Next LBA
.   .   adcl $0,4(%si)
.   .   mov %es,%ax..   .   # Adjust segment for next
.   .   addw $SECSIZE/16,%ax.   .   #  sector
.   .   cmp $0x9000,%ax..   .   # Don't load past 0x9,
.   .   jae err_big..   .   #  545k should be enough for
.   .   mov %ax,%es..   .   #  any boot code. :)
-

(err_big being printing the Boot loader too large message).  Though
0x9 is actually 576k, not 545, but presumably there's some other
adjustment lopping off bits somewhere; that's 62 sectors diff.

Regardless, I settled on 512k for my boot partitions (after finding
the above error when I previously decided it's a few dozen k, I'll
just set aside a meg to be safe and then discovered the whole
not-booting thing that caused.


-- 
Matthew Fuller (MF4839)   |  fulle...@over-yonder.net
Systems/Network Administrator |  http://www.over-yonder.net/~fullermd/
   On the Internet, nobody can hear you scream.
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: Boot loader too large

2014-07-11 Thread Nathan Whitehorn


On 07/11/14 15:50, Matthew D. Fuller wrote:

On Fri, Jul 11, 2014 at 03:38:56PM -0700 I heard the voice of
Nathan Whitehorn, and lo! it spake thus:

I don't honestly remember where that number came from. It's at line
72 of usr.sbin/bsdinstall/partedit/partedit_x86.c. If 128 works
better, I'm happy to change it, but it would be nice to know what
the actual bounds here are before putting in a new arbitrary number.

src/sys/boot/i386/pmbr/pmbr.s says

-
next_boot:. incl (%si). .   .   # Next LBA
.   .   adcl $0,4(%si)
.   .   mov %es,%ax..   .   # Adjust segment for next
.   .   addw $SECSIZE/16,%ax.   .   #  sector
.   .   cmp $0x9000,%ax..   .   # Don't load past 0x9,
.   .   jae err_big..   .   #  545k should be enough for
.   .   mov %ax,%es..   .   #  any boot code. :)
-

(err_big being printing the Boot loader too large message).  Though
0x9 is actually 576k, not 545, but presumably there's some other
adjustment lopping off bits somewhere; that's 62 sectors diff.

Regardless, I settled on 512k for my boot partitions (after finding
the above error when I previously decided it's a few dozen k, I'll
just set aside a meg to be safe and then discovered the whole
not-booting thing that caused.




I bumped it to 512K. Thanks!
-Nathan
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: Boot loader too large

2014-07-04 Thread Alie Tan
On Fri, Jul 4, 2014 at 5:57 PM, Alie Tan a...@afflemedialab.com wrote:

 Hi,

 I am getting Boot loader too large message while using
 FreeBSD-11.0-CURRENT-i386-20140701-r268111-disc1.iso

 Is there any way to solve this issue?

Strange, resizing the freebsd-boot to 128k solved my issue. why default
slice size making such issue?


 Thanks in advance

___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Boot loader too large

2014-07-04 Thread Alie Tan
Hi,

I am getting Boot loader too large message while using
FreeBSD-11.0-CURRENT-i386-20140701-r268111-disc1.iso

Is there any way to solve this issue?

Thanks in advance
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Fresh-install from -current snapshot: Boot loader too large

2014-05-08 Thread Jeremie Le Hen
Hi,

I installed FreeBSD-11.0-CURRENT-i386-20140428-r265054-disc1.iso to a
VirtualBox i386 VM.  I did the most straightforward install you can
possibly do (hit enter repeatedly, except for hostname and password).

On the first boot I get the following error message:
Boot loader too large


Note that FreeBSD-11.0-CURRENT-i386-20140423-r264794-disc1.iso does not
has the problem.

-- 
Jeremie Le Hen

Scientists say the world is made up of Protons, Neutrons and Electrons.
They forgot to mention Morons.
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: Fresh-install from -current snapshot: Boot loader too large

2014-05-08 Thread Matthew D. Fuller
On Thu, May 08, 2014 at 10:24:01AM +0200 I heard the voice of
Jeremie Le Hen, and lo! it spake thus:
 
 On the first boot I get the following error message:
 Boot loader too large

As I recall, this comes from the freebsd-boot partition being too big,
where too big is some unround number like 540k or something odd like
that.  Make sure that partition is 512k or something smaller.


-- 
Matthew Fuller (MF4839)   |  fulle...@over-yonder.net
Systems/Network Administrator |  http://www.over-yonder.net/~fullermd/
   On the Internet, nobody can hear you scream.
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org