Hi. You can read how it's done on NetBSD: http://www.wifibsd.org/support/netbsd-on-cf.txt We do similar things with FreeBSD, but in opposite to nanobsd, picobsd and such we dont do any crunching of binaries, we just use dynamically linked libraries. This makes live a lot of easier (ever tried to crunch openssl?). Also the rootfs on FreeBSD can be loaded as a module by loader or "inserted" into the kernel. PicoBSD and i guess NanoBSD use the second option. What's neat is you can actually use the same configs with freebsd and netbsd and replace your "firmare" (rootfs and kernel) on the fly. Cheers. On Tue, 21 Jun 2005 15:26:08 +0200 Jeremie Le Hen <jeremie_at_le-hen.org> wrote: > Hi Matthew, > > > I have to wonder if exclusion is a better route than inclusion. > > > > I've got several Soekris boxes (4501) out in production, running I > > think a 4.7ish FreeBSD. But I built up the images by including things > > in. I did a full normal buildworld, and a DESTDIR'd installworld. I > > didn't use any special options to trim out pieces of programs; just a > > few simple tweaks like -Os compiling Then I used a list of the > > programs, and used some ldd'ing and sed'ing in the Makefile to get all > > the libraries needed and copy everything over to another staging dir. > > > > Of course, manual tweaking for config files was needed. I handwrote > > the whole rc bootup process (independant scripts for ease of manual > > fiddling, but with a hardcoded sequence for the bootup process). > > Hand-trimmed passwd/group files. I had to pull some libraries > > manually (PAM was the major "offender" here). And so on; not stuff > > that would really fit in the NanoBSD schema. > > > > I built them rather more general than the project required, so I > > wouldn't have to carefully craft each future use; they had everything > > necessary to do most networking jobs you'd stick a 4501 in for. It > > still came in around around the 20 meg line. > > Is your work publishable ? In this case, I would be glad to have a > look at it. > > Thank you. > Regards, > -- > Jeremie Le Hen > < jeremie at le-hen dot org >< ttz at chchile dot org > > _______________________________________________ > freebsd-current_at_freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe_at_freebsd.org"Received on Tue Jun 21 2005 - 16:57:32 UTC
This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:37 UTC