|Developer||The NetBSD Foundation|
|OS family||Unix-like (BSD)|
|Source model||Open source|
|Latest release||7.1.2 / 15 March 2018|
|Latest preview||8.0 RC1 / 23 April 2018|
|Platforms||Alpha, ARM, PA-RISC, 68k, MIPS, PowerPC, SH3, SPARC, RISC-V, VAX and x86|
|Kernel type||Modular Monolithic Anykernel|
|Default user interface||Command-line interface|
|License||2-clause BSD license|
NetBSD is a free and open source Unix-like operating system that descends from Berkeley Software Distribution (BSD), a Research Unix derivative developed at the University of California, Berkeley. It was the first open-source BSD descendant formally released after it was forked from 386BSD. It continues to be actively developed and is available for many platforms, including large-scale server systems, desktop systems, and handheld devices, and is often used in embedded systems.
- 1 History
- 2 Features
- 3 Licensing
- 4 Releases
- 5 Logo
- 6 The NetBSD Foundation
- 7 Examples of use
- 8 Hosting
- 9 See also
- 10 References
- 11 External links
NetBSD was originally derived from the 4.3BSD-Reno release of the Berkeley Software Distribution from the Computer Systems Research Group of the University of California, Berkeley, via their Net/2 source code release and the 386BSD project. The NetBSD project began as a result of frustration within the 386BSD developer community with the pace and direction of the operating system's development. The four founders of the NetBSD project, Chris Demetriou, Theo de Raadt, Adam Glass, and Charles Hannum, felt that a more open development model would benefit the project: one centered on portable, clean, correct code. They aimed to produce a unified, multi-platform, production-quality, BSD-based operating system. The name "NetBSD" was suggested by de Raadt, based on the importance and growth of networks such as the Internet at that time, and the distributed, collaborative nature of its development.
The NetBSD source code repository was established on 21 March 1993 and the first official release, NetBSD 0.8, was made in April, 1993. This was derived from 386BSD 0.1 plus the version 0.2.2 unofficial patchkit, with several programs from the Net/2 release missing from 386BSD re-integrated, and various other improvements. The first multi-platform release, NetBSD 1.0, was made in October 1994, and being updated with 4.4BSD-Lite sources, it was free of all legally encumbered 4.3BSD Net/2 code. Also in 1994, for disputed reasons, one of the founders, Theo de Raadt, was removed from the project. He later founded a new project, OpenBSD, from a forked version of NetBSD 1.0 near the end of 1995. In 1998, NetBSD 1.3 introduced the pkgsrc packages collection.
Until 2004, NetBSD 1.x releases were made at roughly annual intervals, with minor "patch" releases in between. From release 2.0 onwards, NetBSD uses semantic versioning, and each major NetBSD release corresponds to an incremented major version number, i.e. the major releases following 2.0 are 3.0, 4.0 and so on. The previous minor releases are now divided into two categories: x.y "stable" maintenance releases and x.y.z releases containing only security and critical fixes.
As the project's motto ("Of course it runs NetBSD" ) suggests, NetBSD has been ported to a large number of 32- and 64-bit architectures. These range from VAX minicomputers to Pocket PC PDAs. As of 2009, NetBSD supports 57 hardware platforms (across 15 different instruction sets). The kernel and userland for these platforms are all built from a central unified source-code tree managed by CVS. Currently, unlike other kernels such as μClinux, the NetBSD kernel requires the presence of an MMU in any given target architecture.
NetBSD's portability is aided by the use of hardware abstraction layer interfaces for low-level hardware access such as bus input/output or DMA. Using this portability layer, device drivers can be split into "machine-independent" and "machine-dependent" components. This makes a single driver easily usable on several platforms by hiding hardware access details, and reduces the work to port it to a new system.
This permits a particular device driver for a PCI card to work without modifications, whether it is in a PCI slot on an IA-32, Alpha, PowerPC, SPARC, or other architecture with a PCI bus. Also, a single driver for a specific device can operate via several different buses, like ISA, PCI, or PC Card.
In comparison, Linux device driver code often must be reworked for each new architecture. As a consequence, in porting efforts by NetBSD and Linux developers, NetBSD has taken much less time to port to new hardware.[better source needed]
This platform independence aids the development of embedded systems, particularly since NetBSD 1.6, when the entire toolchain of compilers, assemblers, linkers, and other tools fully support cross-compiling.
In 2005, as a demonstration of NetBSD's portability and suitability for embedded applications, Technologic Systems, a vendor of embedded systems hardware, designed and demonstrated a NetBSD-powered kitchen toaster.
Commercial ports to embedded platforms, including the AMD Geode LX800, Freescale PowerQUICC processors, Marvell Orion, AMCC 405 family of PowerPC processors, Intel XScale IOP and IXP series, were available from and supported by Wasabi Systems.
Portable build framework
The NetBSD cross-compiling framework (also known as "build.sh") lets a developer build a complete NetBSD system for an architecture from a more powerful system of different architecture (cross-compiling), including on a different operating system (the framework supports most POSIX-compliant systems). Several embedded systems using NetBSD have required no additional software development other than toolchain and target rehost.
The pkgsrc packages collection
NetBSD features pkgsrc (short for "package source"), a framework for building and managing third-party application software packages. The pkgsrc collection consists of more than 18,000 packages as of April 2018[update]. Building and installing packages such as KDE, GNOME, the Apache HTTP Server or Perl is performed through the use of a system of makefiles. This can automatically fetch the source code, unpack, patch, configure, build and install the package such that it can be removed again later. An alternative to compiling from source is to use a precompiled binary package. In either case, any prerequisites/dependencies will be installed automatically by the package system, without need for manual intervention.
pkgsrc supports not only NetBSD, but also several other BSD variants like FreeBSD and Darwin/Mac OS X, and other Unix-like operating systems such as Linux, Solaris, IRIX, and others, as well as Interix. pkgsrc was previously adopted as the official package management system for DragonFly BSD.
NetBSD has supported SMP since the NetBSD 2.0 release in 2004, which was initially implemented using the giant lock approach. During the development cycle of the NetBSD 5 release, major work was done to improve SMP support; most of the kernel subsystems were modified to be MP safe and use the fine-grained locking approach. New synchronization primitives were implemented and scheduler activations was replaced with a 1:1 threading model in February 2007. A scalable M2 thread scheduler was implemented, though the old 4.4BSD scheduler still remains the default but was modified to scale with SMP. Threaded software interrupts were implemented to improve synchronization. The virtual memory system, memory allocator and trap handling were made MP safe. The file system framework, including the VFS and major file systems were modified to be MP safe. Since April, 2008 the only subsystems running with a giant lock are the network protocols and most device drivers.
NetBSD provides various features in the security area. The Kernel Authorization framework (or Kauth) is a subsystem managing all authorization requests inside the kernel, and used as system-wide security policy. It allows external modules to plug-in the authorization process. NetBSD also incorporates exploit mitigation features, ASLR , KASLR, restricted mprotect() and Segvguard from the PaX project, and GCC Stack Smashing Protection (SSP, or also known as ProPolice, enabled by default since NetBSD 6.0) compiler extensions. Verified Executables (or Veriexec) is an in-kernel file integrity subsystem in NetBSD. It allows the user to set digital fingerprints (hashes) of files, and take a number of different actions if files do not match their fingerprints. For example, one can allow Perl to run only scripts that match their fingerprints. The cryptographic device driver (CGD) allows using disks or partitions (including CDs and DVDs) for encrypted storage.
The Xen virtual-machine monitor has been supported in NetBSD since release 3.0. The use of Xen requires a special pre-kernel boot environment that loads a Xen-specialized kernel as the "host OS" (Dom0). Any number of "guest OSes" (DomU) virtualized computers, with or without specific Xen/DomU support, can be run in parallel with the appropriate hardware resources.
The need for a third-party boot manager, such as GRUB, was eliminated with NetBSD 5's Xen-compatible boot manager. NetBSD 6 as a Dom0 has been benchmarked comparably to Linux, with better performance than Linux in some tests.
NetBSD 5.0 introduced the rump kernel, an architecture to run drivers in user-space by emulating kernel-space calls. This anykernel architecture allows adding support of NetBSD drivers to other kernel architectures, ranging from exokernels to monolithic kernels.
The WAPBL journaling filesystem, an extension of the BSD FFS filesystem, was contributed by Wasabi Systems in 2008.
The NetBSD Logical Volume Manager is based on a BSD reimplementation of a device-mapper driver and a port of the Linux Logical Volume Manager tools. It was mostly written during the Google Summer of Code 2008.
The CHFS Flash memory filesystem was imported into NetBSD in November 2011. CHFS is a file system developed at the Department of Software Engineering, University of Szeged, Hungary, and is the first open source Flash-specific file system written for NetBSD.
Compatibility with other operating systems
At the source code level, NetBSD is very nearly entirely compliant with POSIX.1 (IEEE 1003.1-1990) standard and mostly compliant with POSIX.2 (IEEE 1003.2-1992).
NetBSD provides system call-level binary compatibility on the appropriate processor architectures with its previous releases, but also with several other UNIX-derived and UNIX-like operating systems, including illumos/Solaris, Linux, other BSD variants like FreeBSD and SunOS 4. This allows NetBSD users to run many applications that are only distributed in binary form for other operating systems, usually with no significant loss of performance.
A variety of "foreign" disk filesystem formats are also supported in NetBSD, including FAT, NTFS, Linux ext2fs, OS X UFS, RISC OS FileCore/ADFS, AmigaOS Fast File System, IRIX EFS and many more through FUSE.
Kernel-space scripting with the Lua programming language is a relatively new feature in NetBSD; it is available as of NetBSD 7.0. The Lua language (i.e., its interpreter and standard libraries) was initially ported to the NetBSD kernel during Google Summer of Code 2010 and has undergone several improvements since then. There are two main differences between user and kernel space Lua: kernel Lua does not support floating-point numbers; as such, only Lua integers are available. It also does not have full support to user space libraries that rely on the operating system (e.g., io and os).
All of the NetBSD kernel and most of the core userland source code is released under the terms of the BSD License (two, three, and four-clause variants). This essentially allows everyone to use, modify, redistribute or sell it as they wish, as long as they do not remove the copyright notice and license text (the four-clause variants also include terms relating to publicity material). Thus, the development of products based on NetBSD is possible without having to make modifications to the source code public. In contrast, the GPL, which does not apply to NetBSD, stipulates that changes to source code of a product must be released to the product recipient when products derived from those changes are released.
On 20 June 2008, the NetBSD Foundation announced a transition to the two clause BSD license, citing concerns with UCB support of clause 3 and industry applicability of clause 4.
NetBSD also includes the GNU development tools and other packages, which are covered by the GPL and other open source licenses. As with other BSD projects, NetBSD separates those in its base source tree to make it easier to remove code that is under more restrictive licenses. As for packages, the installed software licenses may be controlled by modifying the list of allowed licenses in the pkgsrc configuration file (
The following table lists major NetBSD releases and their notable features in reverse chronological order. Minor and patch releases are not included.
|Legend:||Old version||Older version, still supported||Current stable version||Latest preview version||Future release|
|Major releases||Release date||Notable features and changes|
|Latest preview version of a future release: 8.0||23 April 2018|
|Current stable version: 7.1||11 March 2017||
|Current stable version: 7.0||8 October 2015||
|Current stable version: 6.1||18 May 2013|
|Current stable version: 6.0||17 October 2012||
|Old version, no longer supported: 5.0||29 April 2009||
|Old version, no longer supported: 4.0||19 December 2007|
|Old version, no longer supported: 3.0||23 December 2005|
|Old version, no longer supported: 2.0||9 December 2004|
|Old version, no longer supported: 1.6||14 September 2002||
|Old version, no longer supported: 1.5||6 December 2000||
|Old version, no longer supported: 1.4||12 May 1999||
|Old version, no longer supported: 1.3||9 March 1998|
|Old version, no longer supported: 1.2||4 October 1996|
|Old version, no longer supported: 1.1||26 November 1995|
|Old version, no longer supported: 1.0||26 October 1994||
|Old version, no longer supported: 0.9||20 August 1993|
|Old version, no longer supported: 0.8||20 April 1993|
The NetBSD "flag" logo, designed by Grant Bissett, was introduced in 2004 and is an abstraction of their older logo, designed by Shawn Mueller in 1994. Mueller's version was based on the famous World War II photograph Raising the Flag on Iwo Jima, which some perceived as culturally insensitive and inappropriate for an international project.
The NetBSD Foundation
The NetBSD Foundation is the legal entity that owns the intellectual property and trademarks associated with NetBSD, and on 22 January 2004, became a 501(c)3 tax-exempt non-profit organization. The members of the foundation are developers who have CVS commit access. The NetBSD Foundation has a Board of Directors, elected by the voting of members for two years.
Examples of use
NetBSD's clean design, high performance, scalability, and support for many architectures has led to its use in embedded devices and servers, especially in networking applications.
Dell Force10 uses NetBSD as the underlying operating system that powers FTOS (the Force10 Operating System), which is used in high scalability switch/routers. Force10 also made a donation to the NetBSD Foundation in 2007 to help further research and the open development community.
Wasabi Systems provides a commercial Wasabi Certified BSD product based on NetBSD with proprietary enterprise features and extensions, which are focused on embedded, server and storage applications.
NetBSD is also used in Apple's AirPort Extreme and Time Capsule products, instead of their own OS X (most of whose Unix-level userland code is derived from FreeBSD code but some is derived from NetBSD code).
Hosting for the project is provided primarily by Columbia University, and Western Washington University. Mirrors for the project are spread around the world and provided by volunteers and supporters of the project.
- "NetBSD 7.1.2 released".
- NetBSD 8.0 Release Candidate 1 available
- "Twenty Years of Berkeley Unix: From AT&T-Owned to Freely Redistributable". Open Sources: Voices from the Open Source Revolution. O'Reilly Media. January 1999. ISBN 1-56592-582-3.
- "About NetBSD". Retrieved 7 June 2014.
NetBSD is a fork of the 386/BSD branch of the Berkley Software Distribution (or BSD) operating system.
- "Get to know NetBSD: An operating system that travels". ibm.org.
- Ganssle, Jack G; Noergaard, Tammy; Eady, Fred; Edwards, Lewin; Katz, David J (14 September 2007). Embedded Hardware. ISBN 978-0-7506-8584-9. pp. 291–292.
- "NetBSD features list". The NetBSD Foundation, Inc. Retrieved 7 June 2014.
NetBSD focuses on clean design and well architected solutions.
- Love, Robert (2005). "Chapter 19". Linux Kernel development (2. ed.). Sams Publishing. ISBN 0-672-32720-1. Retrieved 7 June 2014.
Some examples of highly portable operating systems are Minix, NetBSD, and many research systems.
- "The History of the NetBSD Project". www.netbsd.org. The NetBSD Foundation. Retrieved 29 November 2009.
- Chris G. Demetriou (19 April 1993). "So you say you want an interim release of 386bsd?". Newsgroup: comp.os.386bsd.announce. Usenet: email@example.com. Retrieved 12 May 2010.
- "Information about NetBSD 0.8".
- "Information about NetBSD 1.0".
- de Raadt, Theo (29 March 2009). "Archive of the mail conversation leading to Theo de Raadt's departure". Retrieved 15 January 2010.
- "Platforms supported by pkgsrc". www.netbsd.org. The NetBSD Foundation. Retrieved 10 January 2010.
- "NetBSD release glossary and graphs". The NetBSD Project. 13 January 2010. Retrieved 15 January 2010.
- "Portability and supported hardware platforms". www.netbsd.org. The NetBSD Foundation. Retrieved 29 November 2009.
- "BSD or Linux: Which Unix is better for embedded applications?" (PDF). Wasabi Systems Inc. 2003. Archived from the original (PDF) on 30 December 2006. Retrieved 11 June 2007.
- "Technologic Systems Designs NetBSD Controlled Toaster" (Press release). August 2005. Retrieved 11 June 2007.
- The NetBSD Foundation (10 January 2010). "Chapter 31. Crosscompiling NetBSD with build.sh". The NetBSD Guide. Retrieved 15 January 2010.
- "The pkgsrc-2018Q1 Release".
- Dillon, Matthew (31 August 2005). "PKGSRC will be officially supported as of the next release". DragonFly users List (Mailing list). Retrieved 15 January 2010.
- "NetBSD 2.0 release notes".
- "Significant changes from NetBSD 4.0 to 5.0". 23 December 2009. Retrieved 15 January 2010.
- "NetBSD security(8) manual page".
- "kauth(9)". NetBSD Manual Pages. 10 August 2009. Retrieved 15 January 2010.
- "NetBSD paxctl(8) manual page".
- "Chapter 19. NetBSD Veriexec subsystem".
- "Chapter 14. The cryptographic device driver (CGD)".
- "boot(8)". NetBSD Manual Pages. 4 September 2009. Retrieved 15 January 2010.
- Matthew, Cherry G.; Monné, Roger Pau (August 2012). "(Free and Net) BSD Xen Roadmap". Retrieved 29 December 2012.
- "The Anykernel and Rump Kernels".
- Burge, Simon (2 March 2008). "Patches for journalling support". tech-kern@NetBSD.org (Mailing list). Retrieved 15 January 2010.
- Hamsik, Adam (29 August 2008). "HEADS UP NetBSD lvm support". tech-kern@NetBSD.org (Mailing list). Retrieved 15 January 2010.
- "NetBSD Binary Emulation". 13 January 2010. Retrieved 15 January 2010.
- "Scriptable Operating Systems with Lua" (PDF).
- "NetBSD Licensing and Redistribution" (Press release). June 2008. Retrieved 20 June 2008.
- "Distro description". Licensing Section: Free Penguin. Retrieved 7 June 2014.
NetBSD separates those in its base source tree, in order to make removal of code under more restrictive licenses easier.
- "Announcing NetBSD 7.1".
- "Announcing NetBSD 7.0".
- DistroWatch Weekly, Issue 638, 30 November 2015
- "Announcing NetBSD 6.1".
- "Announcing NetBSD 6.0".
- "Announcing NetBSD 5.0".
- Distributions [LWN.net]
- DistroWatch Weekly, Issue 386, 3 January 2011
- Sonnenberger, Jörg (2012-01-19). "Status of NetBSD and LLVM". Retrieved 2015-03-26.
- "Announcing NetBSD 4.0".
- "Announcing NetBSD 3.0".
- "Announcing NetBSD 2.0".
- "Announcing NetBSD 1.6".
- OS Review: NetBSD 1.6.2 on SPARC64, OSNews
- "Announcing NetBSD 1.5".
- "NetBSD 1.4 Release Announcement".
- "Information about NetBSD 1.3".
- "Information about NetBSD 1.2".
- "Information about NetBSD 1.1".
- "NetBSD 1.0 release announcement".
- "NetBSD 0.9 available for anon-ftp..."
- "Installation notes for NetBSD 0.8".
- Old NetBSD logo
- "NetBSD logo design competition".
- The NetBSD Foundation, Inc.
- "NetBSD Developers". 7 January 2010. Retrieved 15 January 2010.
- "Bylaws of The NetBSD Foundation, Constitution of The NetBSD Foundation". p. Section 5.4. Retrieved 7 June 2014.
Each Director shall serve for two years
- "Foundry27: Project Networking – Driver wiki page". QNX Software Systems. Retrieved 27 December 2011.
- "Third Party Open Source License Terms Guide". QNX Software Systems. Retrieved 27 December 2011.
- "Core Networking 6.4: Neutrino's Next Gen Networking Stack and Foundry27" (PDF). QNX Software Systems. (registration required)
- "Force10 Networks uses NetBSD to build software scalability into operating system". Dell (Press release). 13 February 2007. Archived from the original on 15 November 2011. Retrieved 27 December 2011.
- "Force10 Networks introduces unified operating system across product portfolio to lower total cost of owning and operating networks". Dell (Press release). 28 January 2008. Archived from the original on 15 November 2011. Retrieved 27 December 2011.
- "Wasabi Systems". Retrieved 16 February 2018.
- Duc, Hiep Nguyen (2016-06-21). "NetBSD Introduction by Siju Oommen George - BSD MAG". BSD MAG. Retrieved 2017-11-09.
- Rivett, Mary (12 April 1997). "Re: NetBSD/i386 and single board computers". port-i386 (Mailing list).
- Duc, Hiep Nguyen (2016-06-21). "NetBSD Introduction by Siju Oommen George - BSD MAG". BSD MAG. Retrieved 2017-11-09.
- Kruse, Hans; Allman, Mark; Griner, Jim & Tran, Diepchi (5 March 1998). "HTTP Page Transfer Rates over Geo-Stationary Satellite Links" (PDF). Archived from the original (PDF) on 20 July 2009. Retrieved 27 December 2011.
- Josefsson, Börje (14 April 2004). "SUNET Internet2 Land Speed Record: 69.073 Pbmps". SUNET. Retrieved 27 December 2011.
- "How to jailbreak an Apple Time Capsule?". superuser.com. Retrieved 27 December 2009.
- Fleishman, Glenn (16 February 2007). "AirPort Extreme: Apple Breaks 90 Mbps". wifinetnews.com. Retrieved 28 December 2009.
- "Myths about FreeBSD". Retrieved 7 June 2014.
The two operating systems do share a lot of code, for example most userland utilities and the C library on OS X are derived from FreeBSD versions.
- "Overview of OS X". Apple Inc. June 11, 2012.
- "Sidekick LX 2009 / Blade Will Run NetBSD". www.hiptop3.com. 30 January 2009. Retrieved 5 February 2009.
- "Minix Gets a NetBSD Code Infusion". pcworld.com. 29 February 2012. Retrieved 4 July 2012.
|Wikimedia Commons has media related to NetBSD.|