From owner-svn-src-head@freebsd.org Tue Mar 28 08:54:07 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D2592D22074; Tue, 28 Mar 2017 08:54:07 +0000 (UTC) (envelope-from brde@optusnet.com.au) Received: from mail104.syd.optusnet.com.au (mail104.syd.optusnet.com.au [211.29.132.246]) by mx1.freebsd.org (Postfix) with ESMTP id 9B9D63CB; Tue, 28 Mar 2017 08:54:07 +0000 (UTC) (envelope-from brde@optusnet.com.au) Received: from besplex.bde.org (c122-106-153-191.carlnfd1.nsw.optusnet.com.au [122.106.153.191]) by mail104.syd.optusnet.com.au (Postfix) with ESMTPS id D69C342668F; Tue, 28 Mar 2017 19:53:58 +1100 (AEDT) Date: Tue, 28 Mar 2017 19:53:54 +1100 (EST) From: Bruce Evans X-X-Sender: bde@besplex.bde.org To: Julian Elischer cc: Bruce Evans , Warner Losh , src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: Re: svn commit: r316064 - head/sys/boot/i386/boot2 In-Reply-To: Message-ID: <20170328192226.F1710@besplex.bde.org> References: <201703272253.v2RMra2L032487@repo.freebsd.org> <20170328141213.T927@besplex.bde.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Optus-CM-Score: 0 X-Optus-CM-Analysis: v=2.2 cv=VbSHBBh9 c=1 sm=1 tr=0 a=Tj3pCpwHnMupdyZSltBt7Q==:117 a=Tj3pCpwHnMupdyZSltBt7Q==:17 a=kj9zAlcOel0A:10 a=1pLQmm0RdxnPiy69pbYA:9 a=CjuIK1q_8ugA:10 X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Mar 2017 08:54:07 -0000 On Mon, 27 Mar 2017, Julian Elischer wrote: > On Tue, 28 Mar 2017, Bruce Evans wrote: > > [...] > >> they have to fit below 640K and a few multiples of 64K are already >> used for buffers). The limit on 8K is mainly a historical mistake. >> A limit of 7.5K simplified booting from 15-sector floppies. 18-sector > > My memory says that the limit of 7.5K is becuase there was only 8k left free > at the front of UFS1 and one sector was used for the boot0 code. That is only a limit if the boot code is in the ffs partition. This causes other problems. It was the default to start the 'a' partition at offset 0, but that was changed 10-15 years ago. I can't find exactly where it is changed. I use an offset of 8192 sectors or 4M on new and repartitioned hard disks. This is again affected by the existence of floppy disks. Floppy disks are usually not partitioned, and don't have space to spare for large boot blocks. Some version of the boot code has to work on small media, and FreeBSD uses the same boot code for all media. This allowed FreeBSD-1 to have a single boot.flp where IIRC Linux had about 100 variations. Small media is not as small as it used to be. Bruce