From owner-freebsd-embedded@freebsd.org Wed Mar 9 02:22:52 2016 Return-Path: Delivered-To: freebsd-embedded@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 0E750AC8D5E for ; Wed, 9 Mar 2016 02:22:52 +0000 (UTC) (envelope-from hiren@strugglingcoder.info) Received: from mail.strugglingcoder.info (strugglingcoder.info [104.236.146.68]) by mx1.freebsd.org (Postfix) with ESMTP id 0100F989 for ; Wed, 9 Mar 2016 02:22:51 +0000 (UTC) (envelope-from hiren@strugglingcoder.info) Received: from localhost (unknown [10.1.1.3]) (Authenticated sender: hiren@strugglingcoder.info) by mail.strugglingcoder.info (Postfix) with ESMTPA id 9C9EE17ACE; Tue, 8 Mar 2016 11:17:40 -0800 (PST) Date: Tue, 8 Mar 2016 11:17:40 -0800 From: hiren panchasara To: Warner Losh Cc: Brad Walker , "freebsd-embedded@freebsd.org" Subject: Re: ? about kernel size.. Message-ID: <20160308191740.GF49961@strugglingcoder.info> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="yH1ZJFh+qWm+VodA" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Mar 2016 02:22:52 -0000 --yH1ZJFh+qWm+VodA Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 03/08/16 at 11:42P, Warner Losh wrote: > On Tue, Mar 8, 2016 at 10:42 AM, Brad Walker wrote: >=20 > > I'm looking at working on a new project that will use the FreeBSD kerne= l. I > > would attempt to embed the kernel on a very small NXP Kinetis chip. I've > > previously done this using a Linux kernel but also had DDR memory attac= hed > > to the chip. This project would not have a DDR chip attached. > > > > So a couple of questions. 1 - What is the smallest size I could configu= re > > the FreeBSD kernel out of the box? Could I get the size to be less than > > 10MB, 5MB, 2MB, or etc.? > > >=20 > I've managed to get this down to about 2MB or a bit smaller. Warner, Is any of that work open-sourced? If so, can you share how to got to that small footprint? > Compressed > this can be a little smaller. It takes a fair amount of work, but it can = be > done. >=20 >=20 > > I did a little bit of research on the PicoBSD and NanoBSD but that still > > seem to be targeted to a little bit bigger chip than I have available. > > Brad, One thing you can look at is: https://github.com/freebsd/freebsd-wifi-build It has a bunch of mips and some arm configs. IIRC, it can build something that can be flashed on 8MB for sure. You may tweak that to get to probably even smaller image. Cheers, Hiren >=20 > How big a chip do you have? NanoBSD currently needs at least > 64MB (and ideally 128MB) of storage. PicoBSD can be a bit smaller. >=20 > Warner >=20 --yH1ZJFh+qWm+VodA Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQF8BAABCgBmBQJW3yVRXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXRBNEUyMEZBMUQ4Nzg4RjNGMTdFNjZGMDI4 QjkyNTBFMTU2M0VERkU1AAoJEIuSUOFWPt/lvoQH/20kYoUJCity79SEvxwWltJR In2F0YEj+Uy/9acQuizz1UEcOgappSI3sSCPKNjw34CGCCmhHAQEba3YPNJEngPL 0Vk0VpyE67BI3lJaCG8LbGQCEhCfYZnuGgotLxgcdI6Pwc+4BWzJxD1dRUyQNcDA k5ce9vzwa7xKsUWthzgQkHCI6VeGphwy5+Tmv7HK6osRRaEynuz8iEUhuHaBWGam bYXJUp+kmrM1XV5Y1LY5c6Ie2iddB2N+Tg0y5F/IsDrVJqWqh+gEkZi7/L2sdQ3R wWsCW56AdyGOttOaSOC4rhIgkkuhQWqFi4BdyuFxpQMZ0MV/0YKokveQNeWviA8= =x2e3 -----END PGP SIGNATURE----- --yH1ZJFh+qWm+VodA--