From owner-freebsd-embedded@freebsd.org Tue Mar 8 18:42:32 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 B2B13AC78CB for ; Tue, 8 Mar 2016 18:42:32 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-ig0-x22b.google.com (mail-ig0-x22b.google.com [IPv6:2607:f8b0:4001:c05::22b]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 86EEAA19 for ; Tue, 8 Mar 2016 18:42:32 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mail-ig0-x22b.google.com with SMTP id ig19so59043534igb.0 for ; Tue, 08 Mar 2016 10:42:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20150623.gappssmtp.com; s=20150623; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc; bh=QxDoskg4qJO4AvwO4yLH2BKEMgi+hmwu/Of6bE99ccM=; b=qHVonhVfRLwLor9OEx1idpNzkPsxEwMAz1zXrLVlZ3TfzpdC3YIbKDE1WnB5t7Yf+N xrVBW8BEX7vgFTmUsUByCfwzt0cJmY1CI2Rl8U7QAOy7qJMWueUVLAVg8Fj3ZBvdQZZK ABiXbT31WlxKofps8TLrYkj3NWE8GB2TEHf8FtPEfm2IR6fBVzsF64vfdoZFkOpZ/esK wbhUZ00MOsjmCBe+pBRVnMx0dd00OWr7JpNDzrC/HScNe6OqaY0IL3z3I6yp21Al0+JY 71xJvixfK2BQ9CwphGl6rjjH46fXpbLzq9+IwQcYSpg7bmbzEOVWGLP7e8f7oYhqk2IM eQeQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:date :message-id:subject:from:to:cc; bh=QxDoskg4qJO4AvwO4yLH2BKEMgi+hmwu/Of6bE99ccM=; b=LVwM0EVCbt2P/8pnucIllUwEbXCv+i66C4pIyUAwJByyb3e248DqghsEG5wzfef/w0 6hz0QFIlmGUd2umCsyagpE4rQwB+Ijndctz/eXgRPg/7SQ7fbl61Eyo8ofbvK6TFnnOi /M30aYRQjWzfgTW7UrEZl8qYxwbbso7+7lYXcLN0rbvch7IQ/gQRFk/fWpC7rbHCTFBE a447fORLHBKmmlX5UXzd5ffJtH0ZYiB6d+glfQZ7dF1J6bmszUWFyydJg78pzUoJB72w w4R8T9Cli5DgV7nlaUGhqBm83XsEy+2LdSvWAREjJS9ROf0xOLHlZYLzoFgVYpQ6p3/q mIkg== X-Gm-Message-State: AD7BkJJ9UAFg5YSVgxWnbO8inLUm+HuiAcyg+jjTcIY9BSpM1kqVO6lzoY99dLFBswKRDxAIU5bGFs3VD6QhXA== MIME-Version: 1.0 X-Received: by 10.50.50.134 with SMTP id c6mr19305722igo.57.1457462551756; Tue, 08 Mar 2016 10:42:31 -0800 (PST) Sender: wlosh@bsdimp.com Received: by 10.36.65.167 with HTTP; Tue, 8 Mar 2016 10:42:31 -0800 (PST) X-Originating-IP: [75.144.23.245] In-Reply-To: References: Date: Tue, 8 Mar 2016 11:42:31 -0700 X-Google-Sender-Auth: y1jxEt3fYXjxe0ZdrMZVNBsM77Q Message-ID: Subject: Re: ? about kernel size.. From: Warner Losh To: Brad Walker Cc: "freebsd-embedded@freebsd.org" Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.21 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: Tue, 08 Mar 2016 18:42:32 -0000 On Tue, Mar 8, 2016 at 10:42 AM, Brad Walker wrote: > I'm looking at working on a new project that will use the FreeBSD kernel. 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 attached > 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 configure > the FreeBSD kernel out of the box? Could I get the size to be less than > 10MB, 5MB, 2MB, or etc.? > I've managed to get this down to about 2MB or a bit smaller. Compressed this can be a little smaller. It takes a fair amount of work, but it can be done. > 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. > How big a chip do you have? NanoBSD currently needs at least 64MB (and ideally 128MB) of storage. PicoBSD can be a bit smaller. Warner > Thanks for any insight/help. Also, if you response, please include me on > the CC line as I'm not a member of the freebsd-embedded alias. >