? about kernel size..

hiren panchasara hiren at strugglingcoder.info
Wed Mar 9 02:22:52 UTC 2016


On 03/08/16 at 11:42P, Warner Losh wrote:
> On Tue, Mar 8, 2016 at 10:42 AM, Brad Walker <bwalker at musings.com> 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.
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.
> 
> 
> > 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
> 
> 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
> 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 603 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-embedded/attachments/20160308/67d134eb/attachment.sig>


More information about the freebsd-embedded mailing list