Slashdot Mirror


CompactBSD for Embedded Projects

miggidy_mac writes "FatPort (a wireless Internet service provider in Vancouver, BC) just released CompactBSD. It's a set of tools that allow you to build your own customized, lightweight distribution of OpenBSD and then burns it onto compact flash (or similar) so that it can be run on an embedded PC platform (like FatPort's own FatPoint). CompactBSD takes the security and networking features of OpenBSD that we know and love, and combines them with ease-of-build and small footprint, which is great for embedded devices. Check out the project on SourceForge."

63 of 151 comments (clear)

  1. PicoBSD? by cliffy2000 · · Score: 4, Interesting

    I don't know. This seems awfully familiar to PicoBSD. I guess that any "new" implementation of old technology gets press. As the adage goes, everything old is new again.

    1. Re:PicoBSD? by homer_ca · · Score: 4, Informative

      There's a few mini-BSDs out there. PicoBSD and ClosedBSD are based on FreeBSD. EmBSD is based on OpenBSD.

    2. Re:PicoBSD? by friscolr · · Score: 4, Informative

      http://www.microbsd.net/ is based on OpenBSD and FreeBSD.

    3. Re:PicoBSD? by krusty_snart · · Score: 1
      emBSD is really not going anywhere...

      I've tried to use it and it's a manual job. I like this one since it automatically strips out stuff based on a config file. You can easily change it to take out more, or leave in more.

    4. Re:PicoBSD? by funky+womble · · Score: 2

      Seems more similar to this to me (:

  2. Let's hope... by Anonymous Coward · · Score: 1, Insightful

    ... the leave out the experimental sshd code
    that openbsd loves to run by default, and
    contributed to a remote root explote. Me, I'd
    prefer old 2.x era sshd.

  3. ooh, just what I was looking for by jasonditz · · Score: 2, Insightful

    Gotta get this bad boy running on all those Javastations in my back room.

  4. Perhaps in conjunction w/ one of this sweet ones.. by bsDaemon · · Score: 4, Informative

    Soekris Engineering PC104 sbcs designed specificaly for Free/Net/Open BSD and the occasional Linux. Very nice they be.

  5. Like... by bsDaemon · · Score: 2

    Debian?

  6. Security by Rupert · · Score: 4, Insightful

    I'm not sure you can claim that any given subset of OpenBSD has the same level of security as the real thing. Presumably they're only including code that's been through a security audit, but how tested is any given configuration going to be?

    --

    --
    E_NOSIG
    1. Re:Security by Taliban+Lecher · · Score: 1

      Neither can you claim it has not. By nature of complexity, bloat does rarely ADD security or correctness. Bloat is the correct term for all that stuff not needed in embedded world.

      And as for stripped OpenBSD by Henning Brauer I would be be damn sure it is even more secure than the real thing given the context it is made for (namely removing binaries which are supposed to not be run in a given config).

      The security audit got to the parts which remain the same no matter where other parts went. In fact Your point is only valid for the rare situation of actually removing stuff (e.g. from libs) that do extra checking or other "separation" work.

  7. Re:Perhaps in conjunction w/ one of this sweet one by modecx · · Score: 1

    Iv'e been looking for a sbc with almost the exact same specs as this, and have been totally frustrated with the fact that very few exist, and most of the ones that do are either super expensive in low volume orders, or don't have everything I need.

    Just wanted to thank ya, looks like a helluva nice peice of hardware, not too bad on the wallet either!

    --
    Constitutional rights may be respected, repealed, or modified; but they must never be ignored.
  8. BSD & smalll systems by Arctic+Fox · · Score: 1

    I'm looking for a PC104 or similar system for a project i'm working on. I'd like it to be BSD based (Open or Free is fine), a VGA or SVGA out. I'd like to be able to have digital ins/outs as well as analog inputs as well. Networking would be a plus, but not necessary. Ideally, i'd like to write a GUI for this application using QT (or similar toolkit). A tinyBSD like this is a good start. Has anyone else done or know how to do something similar? Thanks in advance...

    1. Re:BSD & smalll systems by AELinuxGuy · · Score: 2, Informative

      NevyOS is a full desktop distro built off of the QT/emb toolkit - preview release 1 was 8 MB total. It runs all out of the kernel framebuffer so it is wicked fast on even the slowest hardware. There were mailing list posts .saying they were going GPL in preview release 2, due in a matter of weeks. The site. has just went down for construction, so expect the big announcement soon. AE

  9. Wondering... by echophase · · Score: 1

    Anyone know if/how well this unit can do SSH tunneling?

    1. Re:Wondering... by krusty_snart · · Score: 2, Informative
      No problem...

      It's OpenBSD stripped down on what is essentially a 300MHz i386 PC. OpenSSH is on it by default, just like OpenBSD.

      Though you would probably want to upgrade it to OpenSSH 3.4 because of the recent security holes.

      So SSH tunnelling would be done exactly as it would on any other OpenSSH platform.

  10. Re:Perhaps in conjunction w/ one of this sweet one by Anonymous Coward · · Score: 1, Interesting

    PC104? really? You should call Soren and let him know....

  11. How do the tools compare to WinCE's? by ObviousGuy · · Score: 1, Troll

    Microsoft Platform Builder is a pretty good tool for configuring and building a Windows CE customized OS. It seems that CompactBSD's CLI environment is really a huge backstep in platform configuration tools.

    Leaving aside any arguments about BSD and WinCE, of course.

    --
    I have been pwned because my /. password was too easy to guess.
    1. Re:How do the tools compare to WinCE's? by philovivero · · Score: 5, Insightful
      Leaving aside any arguments about BSD and WinCE, of course.
      Leaving aside arguments about BSD and WinCE? Yeh, this is like talking about moving dirt from one place to another, and not arguing about the relative merits of the pooper scooper and the Bobcat Compact Excavator.

      (oh, lordy, when will I ever learn to stop fanning the flames???)

    2. Re:How do the tools compare to WinCE's? by messiertom · · Score: 1

      Well if this was talking about Linux and not OpenBSD... you might make some sense.

  12. Whew! These marketing guru's need a raise! by Negadin · · Score: 2, Funny

    Isnt FatPort releasing CompactBSD sorta like Tony Little selling Krispy Kremes?

  13. Re:What we can learn from BSD by akac · · Score: 1

    Though do remember that Jordan Hubbard now works for Apple on Darwin - a Mach based system with a BSD subsystem.

  14. Best operating system for the job? by DaRiachu · · Score: 1

    Knowing that BSD and other *nix systems usually don't like hard power-downs (this may have changed since the last time I used linux), would they really be the best things to be using in embedded devices? I mean, I know windows is the end-all be-all of EVIL(TM) operating systems, but hard-crashes and hard-rebooting them wouldn't damage them as badly as the horror stories I've heard about *nix systems. Just a question.

    1. Re:Best operating system for the job? by fanatic · · Score: 3, Insightful

      windows ... but hard-crashes and hard-rebooting them wouldn't damage them as badly as the horror stories I've heard about *nix systems.

      I think Windows is just quieter about what it does in recovering from hard crashes than *NIX systems, which give you options during recovery that most folks have no use for. In any event, the journaling filesystems under Linux (and the Soft Updates for BSDs) largely addresses this. Unscheduled powerdowns are usually not much of an issue with ext3.

      --
      "that's not encryption - it's a new perl script that I'm working on..." - from some Matrix parody
    2. Re:Best operating system for the job? by krusty_snart · · Score: 2, Interesting
      I've switched on/off embedded pc's such as the Soekris box with OpenBSD on a compact flash without any problems.

      It just fsck's it's drives, and goes on it's merry way.

    3. Re:Best operating system for the job? by Arandir · · Score: 1

      Knowing that BSD and other *nix systems usually don't like hard power-downs

      Correction. Most *nix file systems don't like hard power-downs. The OS itself figures you know what you're doing.

      But be that as it may, most embedded devices either have a RAM filesystem powered by battery, or don't really have a hard power-down at all.

      --
      A Government Is a Body of People, Usually Notably Ungoverned
    4. Re:Best operating system for the job? by jbynum · · Score: 2, Informative

      I don't believe it uses the CF except for loading the OS at boot time. It partitions off parts of memeory and mounts them as the filesystem. /usr, /var/ and /etc are kept in a file called /stand/mfs.tgz and loaded into those memory mount points at boot time.

    5. Re:Best operating system for the job? by shic · · Score: 2

      I can vouch for the argument about Windows just keeping quiet to reduce user angst.

      I've recently encountered a very unsavoury consequence with Windows 2000 and power loss (on a laptop running off mains without a battery.) While it has been argued that NTFS (a log based file system) doesn't need fsck (chkdsk) after a crash... I can assure you, from bitter experience, that sometimes it does! The good news is that I could boot from the CD to a console and run chkdsk which made an appropriate repair... not a pleasant experience.

      Whatever happened to the experimental transactional file system (Tux?)?

  15. Wind River? by Autonomous+Crowhard · · Score: 2

    One has to wonder if something like this can be taken from the PC to the embedded space in general. I'm sure Wind River (the owners of BSDi) would be annoyed by something like that.

    1. Re:Wind River? by ObviousGuy · · Score: 1

      More to the point, the customers of Wind River will be quite happy. Wind River isn't exactly known as a customer-friendly organization.

      This doesn't seem to have such a huge effect on WR because their main product is VxWorks, not BSD.

      --
      I have been pwned because my /. password was too easy to guess.
  16. Re:What we can learn from BSD by Shanep · · Score: 2

    I guess we can expect a dead Jaguar real soon then?

    And lots of banks and network security companies will just drop what has been working great for them for years now.

    --
    War crimes, torture, lies, illegal spying... Would someone give Bush a blowjob, already, so he can be impeached?
  17. Shame the embedded market is in the shape it's in by Anonymous Coward · · Score: 4, Interesting

    All the embedded devices that were supposed to take off have died a dotcom death. There's the Netpliance I-Opener, the... Oh nevermind, I forgot this is Slashdot and everybody already knows about every hackable I-Appliance loss-leader hackable goodie released prior to IPO $$$ drying up.

    I guess a nice small flashable *NIX distro would be great for making your own homebrew NAT box or router, but isn't there already a Linux distro (Linux router project? Must oogle google for that one later...) for this purpose? Oh well, diversity breeds creativity (according to a Disney employment ad, and the mouse never lies) so this has to be a GOOD THING.

    Seriously though, one of my friends runs FreeBSD on his NAT box/file server and keeps touting it as better/easier/faster/sex life improving/more robust than Linux. Since I've set up MY Linux NAT box/file server, I haven't had to mess with it much and I really just think of it as a steady workhorse that does its job day after day without much fanfare. The only thing I can imagine BSD could improve is my sex life, but it's not working for my friend either so I think he's a liar.

    In summary...

    Small specialized BSD, Beer and Linux = Good
    RIAA, DMCA, AOL and FIRE = BAD

  18. Re:Does it fit on a floppy? by Squidgee · · Score: 1, Informative
    It's been done!

    Check out this [freebsd.org] for a floppy based FreeBSD, known as PicoBSD. It includes a few nice little tools, as well; you can have a dialup version, router version or networking version. All in all it's a nice little system!

  19. Re:Perhaps in conjunction w/ one of this sweet one by metlin · · Score: 1

    Yeah, same here. They've got very neat boards indeed, and reasonable too.

    Thanks dude/ette(?) :-)

  20. Re:Elegy for *BSD by Eric_Cartman_South_P · · Score: 2, Insightful
    But then I realized,

    that your little poem,

    was nothing more,

    than *BSD trolling.

    http://www.apple.com/switch/

  21. Re:Shame the embedded market is in the shape it's by Inthewire · · Score: 5, Funny

    Your friend is obviously coming on to you in the hopes of improving *both* of your sex lives.

    --


    Writers imply. Readers infer.
  22. Working on something similar by MQBS · · Score: 1, Informative

    There are about a half dozen similar projects out and about at the moment. For one, there's the myBSD project that's creating a fifth BSD distro for very specialized projects. I personally am working on a customized version of FreeBSD, called PortoBSD, built to boot off of a CD directly into a complete OS (portable email station). This is by no means particularly special.

    --
    The dream reveals the reality which conception lags behind. That is the horror of life- the terror of art. -Franz Kafka
  23. Re:My Faith is Restored by hyperturbopete · · Score: 1

    who said BSD is dying? FreeBSD kicks ass, i've been using it for almost 4 years

  24. Re:What we can learn from BSD by Shanep · · Score: 4, Funny

    Research conducted at MIT found BSD's filesystem implementation to be "very poorly performing." Even BSD's acclaimed TCP/IP stack has lagged behind, according to this study.

    Quick, better tell this guy!

    From your MIT link... We have run benchmarks to measure filesystem performances. Benchmarks have been made on a middle-end PC, based on a i486DX2 processor, using 16 MB of memory and two 420 MB IDE disks. The tests were run on Ext2 fs and Xia fs (Linux 1.1.62) and on the BSD Fast filesystem in asynchronous and synchronous mode (FreeBSD 2.0 Alpha--based on the 4.4BSD Lite distribution).

    Hey! Way to beat us BSD fans senseless with modern benchmarks! You must have looked around a fair bit to come up with this golden oldie!

    I can't be bothered looking at the postscript if it's anything as compelling as you're first effort at this Troll disguised as information.

    --
    War crimes, torture, lies, illegal spying... Would someone give Bush a blowjob, already, so he can be impeached?
  25. Re:Does it fit on a floppy? by hyperturbopete · · Score: 1

    Interestingly, picobsd isn't nearly as cool as tomsrtbt.

    When it comes to floppies, stuff thats nice about BSD doesnt really matter much. (I use FreeBSD)...

    tomsrtbt is a 2.0 series linux floppy, and its really lives up to being the most linux (read: useful stuff) on a floppy. Except it doesnt support ufs by default :-(

  26. Why not just use emBSD? by draziw · · Score: 2, Informative

    emBSD has been around for a while, and is built on OpenBSD too. -Yes, it's targeted towards firewalls, but can be used for more.

    1. Re:Why not just use emBSD? by krusty_snart · · Score: 2, Informative
      emBSD has been stalled for quite some time now.

      I've tried to use it, but it's always revisions behind the main OpenBSD development. So security fixes never really seem to make it into emBSD very quickly.

      The nice thing about this version, is that it is always based on the newest version of OpenBSD.
      It essentially downloads the current version, hacks it up so it can fit onto embedded devices, and burns everything onto a bootable compact flash card.

      Very nice...

  27. Re:Fork or comb? by tigga · · Score: 1

    What are you talking about? This particular project made on OpenBSD kernel. It could be called "distro" in Linux speak, but it's not a fork in any way.

  28. Re:What we can learn from BSD by Elbereth · · Score: 2

    Hey, not that long ago, I ran a web server on an i486DX/33 with 20MB RAM (16MB + 4MB) and a 320MB hard drive. It served static pages through a 56k dial-up link. It worked just fine, even when half the hardware in the machine failed. It just enough to get the job done, and that's all you really need, right?

    Too bad that I had to throw all my 486s in the trash when I moved. They were great fun to play with.

  29. Re:Perhaps in conjunction w/ one of this sweet one by Bishop · · Score: 3, Informative

    It is also worth checking out IEI. Check out the embeded single board computers. Embeded SBC There is quite a variety of socket370, transmeta, and NS Geode boards. For ordering boards in Canada contact Tri-M. Not all boards are listed on the website but most are listed in the pdf price list(in USD). I have not ordered anything from these guys yet. I am considering a ISS-102R-300 board, with 3 ethernet, and NS Geode 300mhz, for $275 USD. Or possibly one of the compact socket 370 boards.

  30. How about by DeepZenPill · · Score: 1

    a port of *BSD or Linux to my digital camera?

    Is there any way that would ever be possible? Can you boot from flash ram on those babies?

    1. Re:How about by Stonent1 · · Score: 1

      Anything is possible. I mean MAME has been ported to digital cameras already. Digita Mame

    2. Re:How about by ffsnjb · · Score: 1

      Kodak DC 265 and NetBSD... have fun playing around.

      --
      "Why do you consent to live in ignorance and fear?" - Bad Religion
  31. GPL?!? by Stonent1 · · Score: 1

    If you click the link, the site says License "GPL" How can a "BSD" be GPL?

    1. Re:GPL?!? by dnaumov · · Score: 2, Informative

      BSD software can be re-released under the GPL license. It can even be re-released as a closed-source only binary. The BSD license permits that.

    2. Re:GPL?!? by krusty_snart · · Score: 3, Informative
      This isn't really a distribution, but a set of tools to create a distribution.

      So the tools themselves are GPL'd, while the BSD files are still under the BSD license.

    3. Re:GPL?!? by Stonent1 · · Score: 1

      Yeah I have since downloaded it and see that it is some .py files that copy files and stuff to make it smaller.

    4. Re:GPL?!? by funky+womble · · Score: 2

      CompactBSD uses the BSD license with the advertising clause which I understand is not GPL compatible..?

  32. Similar project for Linux by hazard · · Score: 2, Interesting

    WISP-Dist has similar targets, and runs on 8 Mb flash/16 Mb RAM.

  33. wireless with Debian by sebou · · Score: 2, Interesting

    The FatPoint is also known as OpenBrick in Europe. I made a Debian image wich can fit on a compact flash and wich can also do a wireless access point. That's really impressive all we can do with this little box.

  34. Any plan for a "Compact Linux" ? by Taco+Cowboy · · Score: 1, Troll



    I know that there are lots of "tiny" Linux distros. But is there any that match or exceed that of "compactBSD" ?

    --
    Muchas Gracias, Señor Edward Snowden !
  35. Re:Perhaps in conjunction w/ one of this sweet one by krusty_snart · · Score: 1
    This is exactly the kind of machine this was built for...

    If you take a look on the fatport site, they have a picture of something that looks very similar to a Soekris box.

    Anyone know what this is?

  36. Re:This is neat and all.. BUT by Nonesuch · · Score: 4, Interesting
    Anonymous coward writes:
    1. cvs.openbsd.org was compromised in December.
    OpenBSD 3.0 was released Dec 1, 2001.
    2. The entire OpenBSD tree was modified.
    ...
    There has been backdoors in the kernel, openssh, and numerous other areas since OpenBSD 3.0.
    I highly doubt the truth of these statements... Just another anti-BSD troll?

    This does bring up a good point... has anybody built a "meta-CVS", a mechanism where I can do a CVS checkout from a public repository, diff the checkout against the one I did yesterday, and then check-in to my own private CVS showing the date, the purported actual change/committer, and the real diff between the two code revs?

    If "the entire OpenBSD tree was modified", a simple DIFF would tell the story. I have every OpenBSD release set since 2.4, each of which includes a full source tree.

    It would be trivial to do a straight file-for-file diff between the Kernel sources for 2.9/3.0/3.1/current and see exactly what changed and approximately when, and compare this to what CVS claims was officially changed.

    I have migrated my entire network away from OpenBSD.
    Migrated "away" to what platform?
    I urge someone to take up the project and audit the code, and fork itoff. It's a great idea, a great package, and very lightweight, but it is no longer secure.
    Assuming you can find checkouts for the appropriate time range, doing Diff's for the core kernel code between November 2001 and January 2002 should not be a huge task. But I'm not going to put the effort in on the word of an "anonymous coward".
  37. Why would someone use this? by draziw · · Score: 1

    Is this just an add trying to sell hardware?
    Points us to the SourceForge page, where there are: 0 Bug listings, 0 Support Requests, 0 Patches, 0 Feature Requests. The Notes page is empty, there is no project home page, and it only has 5 downloads.
    Yes - let me rush to install this on my critical embedded systems. This story should not have been posted - on freshmeat, fine - on slashdot, it's stupid.

  38. Compact BSD is not a BSD at all. by Brett+Glass · · Score: 1

    Look at the SourceForge page: It's GPLed. This means it's not a BSD.

    1. Re:Compact BSD is not a BSD at all. by krusty_snart · · Score: 1
      As mentioned in a previous post, the actual OpenBSD files are still under a BSD license.

      This is a set of tools to hack up an original OpenBSD distribution, so it would work well with embedded devices.

      The tools to do this are GPL'd.

  39. Re:What we can learn from BSD by Strog · · Score: 1

    Hopefully you aren't considering it a mid-range machine still. ;-P

    486 can still get the low end going. I still have a couple old 486s around but I tend to use Pentiums for my low end stuff since I have a few around not doing much else anyway.

  40. Re:300MHz fan-less i386 processor ? by WECoyoteSooperGenius · · Score: 1

    It's a Nat. Semi. Geode GX-1 300MHz -- which is a Pentium MMX class SOC. Somebody was reading their compile flags and not their product info on this one.

    Fatpoint Info:

    http://www.fatport.com/pdf/fatpoint_specs

    GX-1 info:

    http://www.national.com/appinfo/solutions/0,2062 ,2 39,00.html