OpenWrt

From Wikipedia, the free encyclopedia
  (Redirected from Openwrt)
Jump to navigation Jump to search
OpenWrt
Openwrt Logo.svg
Openwrt-15.05-login.svg
OpenWrt 15.05 ("Chaos Calmer") login screen
Developer OpenWrt Project
OS family Unix-like
Working state Current
Source model Open source
Initial release January 2004; 14 years ago (2004-01)
Latest release 15.05.1 (Chaos Calmer) Since remerging with LEDE, LEDE 17.01.4 is effectively the latest OpenWrt (March 16, 2016; 2 years ago (2016-03-16)) [±][1][2]
Latest preview 15.05-rc3 Chaos Calmer. (Since remerging with LEDE, OpenWrt 18.01 is the development branch of OpenWrt)[3] (15 July 2015; 2 years ago (2015-07-15)) [±][4]
Available in 22 languages[5]
Update method opkg
Package manager opkg
Platforms 50 different platforms using the following Instruction sets: AVR32, ARM, CRIS, m68k, MIPS, PowerPC, SPARC, SuperH, Ubicom32, x86, x86-64[6]
Kernel type Monolithic (Linux)
Userland BusyBox
Default user interface CLI, WebUIs
License Free software (GPL and other licenses)
Official website www.openwrt.org

OpenWrt is an open source project for embedded operating system based on Linux, primarily used on embedded devices to route network traffic. The main components are Linux, util-linux, musl,[7] and BusyBox. All components have been optimized to be small enough to fit into the limited storage and memory available in home routers.

OpenWrt is configured using a command-line interface (ash shell), or a web interface (LuCI). There are about 3500 optional software packages available for installation via the opkg package management system.

OpenWrt can run on various types of devices, including CPE routers, residential gateways, smartphones, pocket computers (e.g. Ben NanoNote), and laptops. It is also possible to run OpenWrt on personal computers, which are most commonly based on the x86 architecture.

History[edit]

The project came into being because Linksys built the firmware for their WRT54G series of wireless routers from publicly available code licensed under the GPL.[8] Under the terms of that license, Linksys was required to make the source code of its modified version available under the same license,[9][10] which in turn enabled independent developers to create additional derivative versions. Support was originally limited to the WRT54G series, but has since been expanded to include many other chipsets, manufacturers and device types, including Plug Computers and Openmoko mobile phones.

Using this code as a base and later as a reference, developers created a Linux distribution that offers many features not previously found in consumer-level routers. Some features formerly required proprietary software. Before the introduction of OpenWrt 8.09, using Linux 2.6.25 and the b43 kernel module, WLAN for many Broadcom-based routers was only available through the proprietary wl.o module that was also provided for Linux 2.4.x only.

The code names of OpenWrt branches are named after alcoholic beverages, usually including their recipes in the MOTD as well, cf. White Russian, Kamikaze, Backfire, Attitude Adjustment, Barrier Breaker.

In May 2016, OpenWrt was forked by a group of core OpenWrt contributors due to disagreements on internal process.[11] The fork was dubbed Linux Embedded Development Environment (LEDE). The schism was reconciled a year later.[12] Following the remerger, announced in January 2018,[13] the OpenWrt branding is preserved, with many of the LEDE processes and rules used. The LEDE project name was used for v17.01, with development versions of 18.01 branded OpenWrt.[14]


Releases[edit]

Tagged Code Name Version Release date Linux kernel C standard library Binary packages Source packages Notes
(default) (available)
N/A Old version, no longer supported: pre Buildroot-NG 0.x N/A N/A uClibc 474 ≈ 310 N/A
r6268 Old version, no longer supported: White Russian 0.9 January 2006 2.4.30 ≈ 360 ≈ 140 NVRAM-based, nas, wl. Supported platform: brcm-2.4.
r7428 Old version, no longer supported: Kamikaze 7.06 June 2007 2.6.19 ≈ 750 ≈ 450 Using opkg. Supported platforms: atheros-2.6, au1000-2.6, brcm-2.4, brcm47xx-2.6, ixp4xx-2.6, imagicbox-2.6, rb532-2.6 and x86-2.6.
r7832 Old version, no longer supported: Kamikaze 7.07 July 2007 2.6.21 ≈ 790 ≈ 475 New platform: amcc-2.6.
r8679 Old version, no longer supported: Kamikaze 7.09 September 2007 ≈ 630 ≈ 500 N/A
r14547 Old version, no longer supported: Kamikaze 8.09 September 2008 2.6.26 ≈ 1,400 ≈ 875 New platform: ar71xx.
r16279 Old version, no longer supported: Kamikaze 8.09.1 June 2009 ≈ 1,400 ≈ 875 N/A
r18961 Old version, no longer supported: Kamikaze 8.09.2 January 10, 2010[15] ≈ 1,400 ≈ 875 N/A
r20742 Old version, no longer supported: Backfire 10.03 April 7, 2010[16] 2.6.32 ≈ 2,350 ≈ 1,050 Supported platforms: adm5120_mips, adm5120_mipsel, ar7, ar71xx, atheros, au1000, avr32, brcm-2.4, brcm47xx, brcm63xx, cobalt, ep80579, ifxmips, ixp4xx, kirkwood, octeon, orion, ppc40x, ppc44x, rb532, rdc, x86 and xburst.
r29594 Old version, no longer supported: Backfire 10.03.1 December 21, 2011[17] eglibc
glibc
≈ 2,950 ≈ 1,175 N/A
r36088 Old version, no longer supported: Attitude Adjustment 12.09 April 25, 2013[18] 3.3 eglibc ≈ 3,450 ≈ 1,150 CoDel (network scheduler) backported from Linux 3.5 to 3.3. New platforms: ramips, bcm2708 (Raspberry Pi) and others.
r42625 Old version, no longer supported: Barrier Breaker 14.07 October 2, 2014[19] 3.10.49[20] musl
eglibc
? ? New platforms: i.MX23, i.MX6[21] and mvebu.
r46767 Old version, no longer supported: Chaos Calmer 15.05 September 11, 2015[22] 3.18.20[23] musl
glibc[24]
? ? nftables (available since Linux kernel 3.12); New platforms: TBA if any
r49022 Older version, yet still supported: Chaos Calmer 15.05.1 March 16, 2016[25] 3.18.23[26] musl
eglibc
? ? N/A
v17.01.4[27] Current stable version: Reboot (LEDE) 17.01.4 October 18, 2017[28] 4.4.92[29] musl[30] uClibc-ng
glibc
? ? N/A
git-tree Latest preview version of a future release: - development N/A 4.9/4.14 uClibc-ng
glibc
? ? N/A
Legend:
Old version
Older version, still supported
Latest version
Latest preview version
Future release

Hardware incompatibilities[edit]

With the Attitude Adjustment (12.09) release of OpenWrt, all hardware devices with 16 MB or less RAM are no longer supported as they can run out of memory easily. Older Backfire (10.03) is recommended instead for bcm47xx devices, as issues for those devices came from dropping support for the legacy Broadcom target brcm-2.4.[31][32]

Features[edit]

OpenWrt follows the bazaar-philosophy and is known for an abundance of options. Features include:

Web interface[edit]

Before release 8.09, OpenWrt had a minimal web interface. In OpenWrt releases 8.09 and newer, a more capable web interface is included.[39] This interface is based on LuCI, an MVC framework written in the Lua programming language.[38]

The X-Wrt project provides an alternative web interface, named webif² in the package repositories, for the current and previous versions of OpenWrt.

The Gargoyle Router Management Utility is a web interface for OpenWrt with a strong emphasis on usability. It was originally available as a set of packages for OpenWrt. As the author of Gargoyle started to make modifications to the base system layout of OpenWrt, the package system was dropped and only complete firmware images are now[when?] available for download. Gargoyle makes extensive use of JavaScript to offload as much work as possible to the client computer, and is focused on ease of use, striving to reach a level comparable to the appliance feeling of commercial router firmware.

LuCI 
X-Wrt 
Gargoyle 

Development[edit]

OpenWrt's development environment and build system, known together as OpenWrt Buildroot, are based on a heavily modified Buildroot system. OpenWrt Buildroot is a set of Makefiles and patches that automates the process of building a complete Linux-based OpenWrt system for an embedded device, by building and using an appropriate cross-compilation toolchain.[40][41]

Embedded devices usually use a different processor than the one found in host computers used for building their OpenWrt system images, requiring a cross-compilation toolchain. Such a compilation toolchain runs on a host system, but generates code for a targeted embedded device and its processor's instruction set architecture (ISA). For example, if a host system uses x86 and a target system uses MIPS32, the regular compilation toolchain of the host runs on x86 and generates code for x86 architecture, while the cross-compilation toolchain runs on x86 and generates code for the MIPS32 architecture. OpenWrt Buildroot automates this whole process to work on the instruction set architectures of most embedded devices and host systems.[40][42]

OpenWrt Buildroot provides the following features:[40][42]

  • Makes it easy to port software across architectures
  • Uses kconfig (Linux kernel menuconfig) for the configuration of all options
  • Provides an integrated cross-compiler toolchain (gcc, ld, uClibc etc.)
  • Provides an abstraction for autotools (automake, autoconf), cmake and SCons
  • Handles standard OpenWrt image build workflow: downloading, patching, configuration, compilation and packaging
  • Provides a number of common fixes for known badly behaving packages

Besides building system images, OpenWrt development environment also provides a mechanism for simplified cross-platform building of OpenWrt software packages. Source code for each software package is required to provide a Makefile-like set of building instructions, and an optional set of patches for bug fixes or footprint optimizations.[43]

Hardware compatibility[edit]

OpenWrt runs many different routers, and includes a table of compatible hardware on its website.[44] In its buyer's guide[45], it notes that users recommend devices equipped with wireless chips from either Qualcomm's Atheros or Ralink (now MediaTek).

Adoption[edit]

OpenWrt, especially its Buildroot build system, has been adopted many times:

  • Freifunk and other mesh network communities
  • Bufferbloat.net (Cerowrt)
  • SIMET Box, developed by NIC.br, is OpenWrt-based[46]
  • IETF IPv6 integration projects HIPnet and HomeNet are OpenWrt-based

Derivatives[edit]

  • LEDE was a fork of the OpenWrt project, the two projects reconciled and merged under the OpenWrt name[47].
  • CeroWrt – with a purpose to complement the debloat-testing kernel tree and provide a platform for real-world testing of bufferbloat fixes[48][49]
  • Coova chilli – OpenWrt-based with focus on wireless hotspots, a fork of chillifire with focus on wireless hotspot management
  • Gargoyle – a web interface for OpenWrt with a strong emphasis on usability that later forked into a separate distribution
  • Flukso – Wireless sensor nodes using an Atheros AR2317 chipset running a patched OpenWrt OS for communication. Sources and hardware schematics available on GitHub.
  • Fon – OpenWrt-based wireless routers acting as hotspots. Sources and toolchain available on fonosfera.org
  • Linino – OpenWrt-based distribution for the MIPS-based Arduino Yùn: GitHub Project
  • Midge Linux – an OpenWrt-based distribution for devices based on Infineon Technologies ADM-5120 SoCs, such as Edimax BR-6104K and BR-6104KP.
  • OpenSAN – iSCSI target Storage Area Network realization.
  • PacketProtector – OpenWrt-based security distribution that includes IDS, IPS, VPN, and web antivirus capabilities. Packages included Snort, Snort-inline, FreeRADIUS, OpenVPN, DansGuardian and ClamAV. These tools were accessible via the old web GUI management interface of OpenWrt, called X-Wrt or webif^2. Project ended on June 7, 2012.[50]
  • The Turris Omnia router runs on an OpenWrt derivative
  • Diverse grassroots projects for wireless community networks, including Freifunk, Libre-Mesh and qMp
  • libreCMC – OpenWrt-based distribution without non-free software or binary blobs, endorsed by the Free Software Foundation[51]

References[edit]

  1. ^ "Chaos Calmer 15.05.1". 16 March 2016. Retrieved 21 March 2016. 
  2. ^ "Welcome to the OpenWrt Project (OpenWrt Project)". OpenWrt. January 2018. Retrieved 16 February 2018. As of January 2018, the current Stable OpenWrt release [17.01.4] was built from the LEDE 17.01 source code, and branded with the LEDE project name. Development versions of OpenWrt are currently branded with the OpenWrt name, and have a version number of 18.01  "
  3. ^ "Welcome to the OpenWrt Project (OpenWrt Project)". OpenWrt. January 2018. Retrieved 16 February 2018. As of January 2018, the current Stable OpenWrt release [17.01.4] was built from the LEDE 17.01 source code, and branded with the LEDE project name. Development versions of OpenWrt are currently branded with the OpenWrt name, and have a version number of 18.01  "
  4. ^ "Chaos Calmer 15.05-rc3". OpenWrt Forum. 13 June 2015. Retrieved 13 June 2015. 
  5. ^ "LuCI Translation Portal". September 1, 2004. Archived from the original on November 19, 2010. Retrieved December 31, 2010. 
  6. ^ "Config.in in trunk/target – OpenWrt". Dev.OpenWrt.org. 2013-11-22. Retrieved 2014-02-13. 
  7. ^ Fietkau, Felix (16 June 2015). "OpenWrt switches to musl by default". Retrieved 16 June 2015. 
  8. ^ Linksys WRT54G and the GPL on lkml (7 Jun 2003)
  9. ^ The Open Source WRT54G Story By Aaron Weiss (November 08, 2005)
  10. ^ Linksys Releases GPLed Code for WRT54G on slashdot (July 2003)
  11. ^ Willis, Nathan (May 11, 2016). "LEDE and OpenWrt". LWN.net. Retrieved 2017-08-31. 
  12. ^ Sharwood, Simon (10 May 2017). "OpenWRT and LEDE agree on Linux-for-routers peace plan". theregister.co.uk. Retrieved 2017-08-31. 
  13. ^ Wich, Jo-Philipp (Jan 2, 2018). "Announcing the OpenWrt/LEDE merge". LEDE Project Forum. Retrieved 2018-01-10. 
  14. ^ "Welcome to the OpenWrt Project (OpenWrt Project)". OpenWrt. January 2018. Retrieved 16 February 2018. As of January 2018, the current Stable OpenWrt release [17.01.4] was built from the LEDE 17.01 source code, and branded with the LEDE project name. Development versions of OpenWrt are currently branded with the OpenWrt name, and have a version number of 18.01  "
  15. ^ "Release Notes Kamikaze 8.09.2". openwrt.org. 2010-01-10. Retrieved 2013-04-26. 
  16. ^ "Release Notes Backfire 10.03". openwrt.org. 2010-04-07. Retrieved 2013-04-26. 
  17. ^ "Release Notes Backfire 10.03.1". openwrt.org. 2011-12-21. Retrieved 2013-04-26. 
  18. ^ "Release Notes Attitude Adjustment 12.09". openwrt.org. 2013-04-25. Retrieved 2013-04-26. 
  19. ^ "OpenWrt BarrierBreaker 14.07". openwrt.org. October 2014. 
  20. ^ "kernel: update to 3.10.49 – OpenWrt". dev.openwrt.org. 2014-07-20. 
  21. ^ Freescale i.MX support
  22. ^ "OpenWrt Chaos Calmer 15.05". openwrt.org. September 2015. 
  23. ^ "[OpenWrt-Devel] Chaos Calmer 15.05-rc3". 2015-07-16. 
  24. ^ "[OpenWrt-Devel] [PATCH 1/2] toolchain: The glorious return of glibc, ver 2.21". 2015-03-11. 
  25. ^ "Chaos Calmer 15.05.1". 16 March 2016. Retrieved 21 March 2016. 
  26. ^ "Chaos Calmer 15.05.1". 16 March 2016. Retrieved 21 March 2016. 
  27. ^ "v17.01.4 Tag". 18 October 2017. Retrieved 26 April 2018. 
  28. ^ "LEDE Project Releases". Retrieved 26 April 2018. 
  29. ^ "LEDE 17.01.4 - Fourth Service Release". 18 October 2017. Retrieved 26 April 2018. 
  30. ^ "[OpenWrt-Devel] OpenWrt switches to musl by default". 2015-06-16. 
  31. ^ "Release Notes for Attitude Adjustment (12.09 final)". openwrt.org. 2013-04-25. Retrieved 2013-09-26. 
  32. ^ "OpenWrt: Table of Hardware". openwrt.org. Retrieved 2013-09-26. 
  33. ^ "Debating overlayfs". June 15, 2011. 
  34. ^ "OpenWrt partition layout". 
  35. ^ "OpenWrt Unified Configuration Interface". 
  36. ^ freecwmp is a CWMP client for OpenWrt
  37. ^ "Changeset 31756 – OpenWrt". Dev.OpenWrt.org. 2012-05-16. Retrieved 2014-02-13. 
  38. ^ a b "LuCI project". Retrieved February 28, 2009. 
  39. ^ "OpenWrt 8.09 release notes". Retrieved February 23, 2009. 
  40. ^ a b c "OpenWrt Buildroot – About". openwrt.org. Retrieved 2013-10-21. 
  41. ^ "OpenWrt Buildroot - Usage and documentation". openwrt.org. 2006-01-08. Retrieved 2013-10-21. 
  42. ^ a b Tao Jin (2012-02-13). "OpenWrt Development Guide" (PDF). Wireless Networks Lab, CCIS, NEU. Retrieved 2013-10-21. 
  43. ^ "Creating packages". openwrt.org. Retrieved 2013-10-21. 
  44. ^ "Table of Hardware [OpenWrt Wiki]". openwrt.org. Retrieved 2018-05-25. 
  45. ^ "Buyers' Guide [OpenWrt Wiki]". openwrt.org. Retrieved 2018-05-25. 
  46. ^ "Simet Box". Retrieved 2017-09-14. 
  47. ^ "Announcing the OpenWrt/LEDE merge". Linux Weekly News. Retrieved 8 June 2018. 
  48. ^ "CeroWrt Wiki". Retrieved 2015-09-16. 
  49. ^ "ANNOUNCE: debloat-testing kernel git tree". LWN.net. Retrieved 2014-02-13. 
  50. ^ ""closing time" message from author on PacketProtector forum". Archived from the original on April 21, 2013. 
  51. ^ "Free Software Foundation adds libreCMC to its list of endorsed distributions". FSF.org. 2014-09-04. Retrieved 2014-12-21. 

External links[edit]