Adds support for Turris MOX, a modular router extendable by board modules (MOX B-G). You can explore the idea behind the modules at: https://mox-configurator.turris.cz/ More information about Turris MOX can be found here: https://docs.turris.cz/hw/mox/intro/ Also works with Turris Shield (Turris MOX A and C with a simplified OS UI). Specifications: ----------------------- MOX A - SoC: Marvell Armada 3720 - RAM: 512/1024 MB, DDR3 - Memory: - 8 MB SPI NOR Flash for U-Boot and rescue system - SD card slot - 1x RJ-45, 1Gbps - 1x USB 3.0 - 1x activity LED - 1x reset button - SDIO header - misc pin header (UART, GPIO, JTAG, ...) MOX B, G - 1x mPCIe slot - 1x SIM slot MOX C - 4x RJ-45, 1Gbps MOX D - SFP, 2.5Gbps MOX E - 8x RJ-45, 1Gbps MOX F - 4x USB 3.0 Module support: ----------------------- Additional packages are needed for some modules. MOX A (core) - works as is MOX B, G (mPCIe, mPCIe passthrough) - works as is MOX C, E (4x, 8x RJ-45) - kmod-dsa - kmod-dsa-mv88e6xxx MOX D (SFP) - kmod-sfp - kmod-phy-marvell-10g MOX F (4x USB 3.0) - works as is Wi-Fi 5, 3x3 card (WLE900VX) - kmod-ath10k - ath10k-board-qca988x - ath10k-firmware-qca988x Wi-Fi 6, DBDC, 2x2 card (MT7915DAN) - kmod-mt7915e - kmod-mt7915-firmware Interface naming: ----------------------- - MOX A's RJ-45 is assigned to `eth0`. - MOX C, E (4x, 8x RJ-45) are assigned to `lan<number>@eth1` - If MOX D (SFP) is connected directly to MOX A, the resulting interface is `eth1`. If it's connected through MOX E (8x RJ-45), the resulting interface is `sfp@eth1`. Quirks: ----------------------- - MOX is sensitive to the order of connected modules. Verify that the confguration is valid at: https://mox-configurator.turris.cz/ - `CONFIG_MOXTET` and `CONFIG_GPIO_MOXTET` need to be enabled in kernel config. Moxtet is a bus protocol needed to discover and configure MOX modules. It must be compiled into the kernel for the modules to work. Though it's very small so it won't bloat up the kernel image. Flashing instructions: ----------------------- 1. Download `openwrt-*-ext4-sdcard.img.gz` and `gunzip` it. 2. Insert an SD card and flash the image to it using dd: dd if=openwrt-*-ext4-sdcard.img.gz of=/dev/mmcblk0 bs=4096 conv=fsync 3. Plug the SD card into MOX. Troubleshooting: ----------------------- - https://docs.turris.cz/hw/serial/#turris-mox - https://docs.turris.cz/hw/mox/rescue-modes/ Signed-off-by: Tomáš Macholda <tomas.macholda@nic.cz> Link: https://github.com/openwrt/openwrt/pull/20356 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
OpenWrt Project is a Linux operating system targeting embedded devices. Instead of trying to create a single, static firmware, OpenWrt provides a fully writable filesystem with package management. This frees you from the application selection and configuration provided by the vendor and allows you to customize the device through the use of packages to suit any application. For developers, OpenWrt is the framework to build an application without having to build a complete firmware around it; for users this means the ability for full customization, to use the device in ways never envisioned.
Sunshine!
Download
Built firmware images are available for many architectures and come with a package selection to be used as WiFi home router. To quickly find a factory image usable to migrate from a vendor stock firmware to OpenWrt, try the Firmware Selector.
If your device is supported, please follow the Info link to see install instructions or consult the support resources listed below.
An advanced user may require additional or specific package. (Toolchain, SDK, ...) For everything else than simple firmware download, try the wiki download page:
Development
To build your own firmware you need a GNU/Linux, BSD or macOS system (case sensitive filesystem required). Cygwin is unsupported because of the lack of a case sensitive file system.
Requirements
You need the following tools to compile OpenWrt, the package names vary between distributions. A complete list with distribution specific packages is found in the Build System Setup documentation.
binutils bzip2 diff find flex gawk gcc-6+ getopt grep install libc-dev libz-dev
make4.1+ perl python3.7+ rsync subversion unzip which
Quickstart
-
Run
./scripts/feeds update -ato obtain all the latest package definitions defined in feeds.conf / feeds.conf.default -
Run
./scripts/feeds install -ato install symlinks for all obtained packages into package/feeds/ -
Run
make menuconfigto select your preferred configuration for the toolchain, target system & firmware packages. -
Run
maketo build your firmware. This will download all sources, build the cross-compile toolchain and then cross-compile the GNU/Linux kernel & all chosen applications for your target system.
Related Repositories
The main repository uses multiple sub-repositories to manage packages of
different categories. All packages are installed via the OpenWrt package
manager called opkg. If you're looking to develop the web interface or port
packages to OpenWrt, please find the fitting repository below.
-
LuCI Web Interface: Modern and modular interface to control the device via a web browser.
-
OpenWrt Packages: Community repository of ported packages.
-
OpenWrt Routing: Packages specifically focused on (mesh) routing.
-
OpenWrt Video: Packages specifically focused on display servers and clients (Xorg and Wayland).
Support Information
For a list of supported devices see the OpenWrt Hardware Database
Documentation
Support Community
- Forum: For usage, projects, discussions and hardware advise.
- Support Chat: Channel
#openwrton oftc.net.
Developer Community
- Bug Reports: Report bugs in OpenWrt
- Dev Mailing List: Send patches
- Dev Chat: Channel
#openwrt-develon oftc.net.
License
OpenWrt is licensed under GPL-2.0
