| Both sides previous revision Previous revision Next revision | Previous revision Next revisionBoth sides next revision |
| toh:mikrotik:rb5009ug_s_in [2022/05/29 18:48] – [OpenWrt bootlog] Added boot log borromini | toh:mikrotik:rb5009ug_s_in [2024/10/02 18:37] – [Photos] jannoke |
|---|
| ====== MikroTik RB5009UG+S+IN ====== | ====== MikroTik RB5009UG+S+IN ====== |
| |
| The MikroTik RB5009UG+S+IN is a compact multigig router based on Marvell's Armada 7040 ARM64 SoC. It comes with an SFP+ port, one 2.5 GbE port (with PoE+ in) and 7 GbE ports. | The MikroTik RB5009UG+S+IN is a compact multigig router based on Marvell's Armada 7040 ARM64 SoC. It comes with an SFP+ port, one 2.5 GbE port (with PoE+ in) and 7 GbE ports. It can be wall mounted or rack mounted with the [[https://mikrotik.com/product/rb5009_mount|MikroTik K-79 rackmount kit]]. |
| |
| {{:media:mikrotik:rb5009ug_s_in:mikrotik_rb5009ug_s_in.png?500|RB5009UG+S+IN}} | {{:media:mikrotik:rb5009ug_s_in:mikrotik_rb5009ug_s_in.png?500|RB5009UG+S+IN}} |
| |
| <WRAP BOX> | <WRAP center round box important 600px> |
| FIXME | **WARNING:** |
| ===== Getting started with a new Device Page ===== | |
| - This is an empty template that suggests the information that should be present on a well-constructed Device Page. This means, that **you have to fill it with life and information.** | |
| - There are several "fixme" tags with text on a light background (like this text) throughout this template. As you fill in the page, remove those tags so that people can judge its completeness. | |
| - When there are no more "fixme" tags left, delete this one too, along with the ''<nowiki><WRAP></nowiki>'' that encloses it. | |
| |
| ===== Keep the articles modular ===== | Support has been merged into main with commit [[commit>?p=openwrt/openwrt.git;a=commit;h=85d9fd6f0ec776d334871c052f4e15903238d9b4|85d9fd6f0ec7]]. Please follow the installation instructions in the commit message until this page has been fully updated to reflect it. |
| * Please include only model specific information, omit bla,bla and put everything generic into separate articles | |
| * If you have no time to write certain stuff, link to [[docs:start]] | **Do not sysupgrade from previous out of tree builds directly to the official OpenWrt images; the flash layout between both differs.** |
| * [[docs:guide-user:base-system:start]] should lead the way, do not explain this again | |
| * DO NOT provide a complete howto here! Instead //groom// the [[docs:start|general documentation]]. | |
| </WRAP> | </WRAP> |
| | |
| |
| ===== Supported Versions ===== | ===== Supported Versions ===== |
| |
| ---- datatable ---- | <!-- ToH: { |
| cols : Brand, Model, Versions, Supported Current Rel, OEM device homepage URL_url, Forum Search_search-forums, Device Techdata_pageid | "source": "json", |
| headers : Brand, Model, Version, Current Release, OEM Info, Forum Search, Technical Data | "dom": "t", |
| align : c,c,c,c,c,c,c | "paging": false, |
| filter : Brand=MikroTik | "rotate": true, |
| filter : Model=RB5009UG+S+IN | "shownColumns": ["brand", "model", "version", "supportedsincecommit", "supportedcurrentrel", "oemdevicehomepageurl", "forumsearch", "deviceid"], |
| ---- | "filterColumns": {"brand": "^MikroTik$", "model": "^RB5009UG\\+S\\+IN$"} |
| | } --> |
| |
| /* If no unsupported functions known, comment out the following datatable or delete it. */ | /* If no unsupported functions known, comment out the following datatable or delete it. */ |
| ---- datatable ---- | <!-- ToH: { |
| cols : Unsupported Functions_unsupporteds | "source": "json", |
| filter : Brand=MikroTik | "dom": "t", |
| filter : Model=RB5009UG+S+IN | "paging": false, |
| ---- | "shownColumns": ["unsupported_functions"], |
| | "filterColumns": {"brand": "^MikroTik$", "model": "^RB5009UG\\+S\\+IN$"} |
| ===== Experimental Versions ===== | } --> |
| | |
| /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * | |
| * The official Table of Hardware only lists current, stable versions of OpenWrt. * | |
| * Use this space to describe any on-going efforts to create a newer version * | |
| * of the firmware for this device. Provide links to firmware images, * | |
| * active threads on the forum, or other sources of information. * | |
| * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ | |
| |
| //None at this time.// | |
| |
| ===== Hardware Highlights ===== | ===== Hardware Highlights ===== |
| ---- datatable ---- | <!-- ToH: { |
| cols : Model, Versions, CPU, CPU MHz, Flash MB_mbflashs, RAM MB_mbram, WLAN Hardware, WLAN 2.4GHz, WLAN 5.0GHz, Ethernet 100M ports_, Ethernet Gbit ports_, Modem, USB ports_ | "source": "json", |
| header : Model, Version,SoC,CPU MHz,Flash MB,RAM MB,WLAN Hardware,WLAN2.4,WLAN5.0,100M ports,Gbit ports,Modem,USB | "dom": "t", |
| align : c,c,c,c,c,c,c,c,c,c,c,c,c | "paging": false, |
| filter : Brand=MikroTik | "rotate": true, |
| filter : Model=RB5009UG+S+IN | "shownColumns": ["model", "version", "cpu", "cpumhz", "cpucores", "flashmb", "rammb", "wlanhardware", "ethernet100mports", "ethernet1gports", "ethernet2_5gports", "sfp_plus_ports", "modem", "usbports"], |
| ---- | "filterColumns": {"brand": "^MikroTik$", "model": "^RB5009UG\\+S\\+IN$"} |
| | } --> |
| |
| |
| /* stable release */ | /* stable release */ |
| /* uncomment once stable release is available | /* uncomment once stable release is available |
| ---- datatable ---- | <!-- ToH: { |
| cols : Model, Versions, Supported Current Rel, Firmware OpenWrt Install URL_url, Firmware OpenWrt Upgrade URL_url, Firmware OEM Stock URL_url | "source": "json", |
| headers : Model, Version, Current Release, Firmware OpenWrt Install, Firmware OpenWrt Upgrade, Firmware OEM Stock | "dom": "t", |
| align : c,c,c | "paging": false, |
| filter : Brand=MikroTik | "rotate": true, |
| filter : Model=RB5009UG+S+IN | "shownColumns": ["model", "version", "supportedcurrentrel", "firmwareopenwrtinstallurl", "firmwareopenwrtupgradeurl", "firmwareoemstockurl"], |
| filter : Versions~ | "filterColumns": {"brand": "^MikroTik$", "model": "^RB5009UG\\+S\\+IN$", "version": "^$"} |
| ---- | } --> |
| */ | */ |
| |
| /* snapshot */ | /* snapshot */ |
| /* delete once stable release is available */ | /* delete once stable release is available */ |
| ---- datatable ---- | <!-- ToH: { |
| cols : Model, Versions, Supported Current Rel, Firmware OpenWrt snapshot Install URL_url, Firmware OpenWrt snapshot Upgrade URL_url, Firmware OEM Stock URL_url | "source": "json", |
| headers : Model, Version, Current Release, Firmware OpenWrt snapshot Install, Firmware OpenWrt snapshot Upgrade, Firmware OEM Stock | "dom": "t", |
| align : c,c,c | "paging": false, |
| filter : Brand=MikroTik | "shownColumns": ["model", "version", "supportedcurrentrel", "firmwareopenwrtsnapshotinstallurl", "firmwareopenwrtsnapshotupgradeurl", "firmwareoemstockurl"], |
| filter : Model=RB5009UG+S+IN | "filterColumns": {"brand": "^MikroTik$", "model": "^RB5009UG\\+S\\+IN$", "version": "^$"} |
| filter : Versions~ | } --> |
| ---- | |
| |
| |
| </WRAP> | </WRAP> |
| |
| | For installation, follow the instructions in the commit that added support for the RB5009. Do *not* cross-upgrade from an existing OpenWrt build, revert to RouterOS before installing an official OpenWrt image. |
| |
| The instructions lean heavily on the external binaries and instructions adron-s kindly provides on his [[https://github.com/adron-s/openwrt-rb5009|RB5009UG+S+IN GitHub page]]. You will need the following binaries: | |
| * The [[https://github.com/adron-s/aux-loader2/raw/main/releases/2.xx-latest/rbt-with-aux-for-mtd5.bin|modified RouterBOOT]] that allows you to boot OpenWrt and enables serial access as well, which MikroTik disabled by default. | |
| * The [[https://github.com/adron-s/openwrt-rb5009/releases/download/rb5009-20220209/openwrt-mvebu-cortexa72-mikrotik_rb5009-initramfs-fit-uImage.elf|initramfs image]]. | |
| * The [[https://github.com/adron-s/openwrt-rb5009/releases/download/rb5009-20220209/openwrt-mvebu-cortexa72-mikrotik_rb5009-squashfs-sysupgrade.bin|sysupgrade image]]. | |
| |
| Although support is mature (only 2,5 GbE PHY is not fully functional), support won't get merged as long as external binaries (the hacked RouterBOOT) are needed to introduce OpenWrt support. | ==== Flash Layout ==== |
| |
| <color #ed1c24> | The RB5009UG has both a 16 MiB NOR flash chip and a 1 GiB NAND one. For now the NOR is used to store the OpenWrt kernel; rootfs and rootfs_data are stored on the NAND. The UBI device is registered as mtd0, so counting on the NOR chip starts from **mtd1**. |
| **A few things to note:**</color> | |
| * You can use your own sysupgrade image. The [[https://paste.debian.net/1242330|patch set adding RB5009UG support]] to OpenWrt should still apply rather cleanly to 22.03 HEAD and master as of writing (May 2022), but it's recommended to stick to the provided (and known working) initramfs image for the installation procedure. | |
| * Even though the modified RouterBOOT re-enables serial access, one still needs to solder wires or connectors to actually use it. | |
| |
| | ^ MikroTik RB5009UG+S+IN NOR Flash Layout ^^^^^^^^^ |
| ==== Installation instructions with modified RouterBOOT ==== | ^ Layer0 | raw NOR flash memory chip (w25q128jv [[wp>Serial Peripheral Interface Bus|spi]]0.0: w25q128jv) 16384 KiB |||||||| |
| * Pull the power plug from the RB5009UG. | ^ Layer1 | mtd9 **//first_1M//** 1024 KiB ||||||| mtd8 **//kernel//** 15360 KiB | |
| * Set up dnsmasq as documented in the [[:toh:mikrotik:common#run_a_dhcpbootptftp_netboot_server|common MikroTik instructions]] and make it serve [[https://github.com/adron-s/openwrt-rb5009/releases/download/rb5009-20220209/openwrt-mvebu-cortexa72-mikrotik_rb5009-initramfs-fit-uImage.elf|openwrt-mvebu-cortexa72-mikrotik_rb5009-initramfs-fit-uImage.elf]]. | ^ Layer2 | mtd1 **//ATF//** 599 KiB | mtd2 **//backup_RouterBOOT//** 101 KiB | mtd3 **//hard_config//** 4 KiB | mtd4 **//RouterBOOT//** 64 KiB | mtd5 **//soft_config//** 64 KiB | mtd6 **//DTS//** 64 KiB | mtd7 **//free_space//** 128 KiB | | |
| * Plug the cable into port 1 (so the 2,5G port), keep the RESET button pressed, power up the router. | |
| * You'll see the green LED at the bottom right of the SFP+ port light up at some point and then blink. As soon as the light goes out (about 20 seconds after powering up the router), let go of the RESET button. | |
| * After a few seconds you should see the image getting loaded by the router with the following message: | |
| | |
| dnsmasq-tftp: sent /srv/tftp/openwrt-mvebu-cortexa72-mikrotik_rb5009-initramfs-fit-uImage.elf to 192.168.88.163 | |
| | |
| * Unplug the network cable from the router, and stop dnsmasq on your computer. | |
| * Plug the network cable into one of the 'LAN' ports (2-8), and have some patience until OpenWrt is booted. If you set your computer to acquire an address by DHCP, that helps (it won't work until OpenWrt is fully booted). | |
| | |
| | |
| Once you are logged into OpenWrt you can follow the instructions lined out in adron-s's [[https://github.com/adron-s/openwrt-rb5009#readme|README]]: | |
| * Replace the RouterBOOT binary | |
| | |
| wget https://github.com/adron-s/aux-loader2/raw/main/releases/2.xx-latest/rbt-with-aux-for-mtd5.bin -O- | mtd write - RouterBOOT | |
| | |
| * Set RouterBOOT to boot from the NOR flash | |
| | |
| echo cfg > /sys/firmware/mikrotik/soft_config/boot_device | |
| echo 1 > /sys/firmware/mikrotik/soft_config/commit | |
| | |
| | |
| <color #ed1c24>**Only after that**</color> you can flash the sysupgrade image: | |
| | |
| # sysupgrade -n /tmp/openwrt-mvebu-cortexa72-mikrotik_rb5009-squashfs-sysupgrade.bin | |
| | |
| ==== Flash Layout ==== | |
| <WRAP BOX> | |
| FIXME //[[:docs:techref:flash.layout#discovery_how_to_find_out|Find out flash layout]], then add the flash layout table here (copy, paste, modify the [[docs:techref:flash.layout#partitioning_of_the_flash|example]]).// | |
| | |
| Please check out the article [[docs:techref:flash.layout|Flash layout]]. It contains examples and explanations that describe how to document the flash layout. | |
| </WRAP> | |
| |
| ==== OEM easy installation ==== | ==== OEM easy installation ==== |
| |
| ===== Specific Configuration ===== | ===== Specific Configuration ===== |
| | Below configuration is as configured on OpenWrt; there is no dedicated WAN port, all available ports are connected to the Marvell switch. One can set any port as WAN (e.g. p8). |
| <WRAP BOX> | |
| FIXME Please fill in real values for this device, then remove the EXAMPLEs | |
| |
| ==== Network interfaces ==== | ==== Network interfaces ==== |
| The default network configuration is: | The default network configuration is: |
| ^ Interface Name ^ Description ^ Default configuration ^ | ^ Interface Name ^ Description ^ Default configuration ^ |
| | br-lan | EXAMPLE LAN & WiFi | EXAMPLE 192.168.1.1/24 | | | br-lan | Ethernet 2-8 & SFP + | 192.168.1.1/24 | |
| | vlan0 (eth0.0) | EXAMPLE LAN ports (1 to 4) | EXAMPLE None | | | p1 | 2,5 GbE configured as WAN port | DHCP (default) | |
| | vlan1 (eth0.1) | EXAMPLE WAN port | EXAMPLE DHCP | | |
| | wl0 | EXAMPLE WiFi | EXAMPLE Disabled | | |
| | |
| </WRAP> | |
| ==== Switch Ports (for VLANs) ==== | ==== Switch Ports (for VLANs) ==== |
| <WRAP BOX> | <WRAP BOX> |
| </WRAP> | </WRAP> |
| |
| ---- datatemplatelist dttpllist ---- | <!-- ToH: { |
| template: meta:template_datatemplatelist | "source": "json", |
| cols : Brand, Model, Versions, Device Type, Availability, Supported Since Commit_git, Supported since Rel, Supported current Rel, Unsupported, Bootloader, CPU, Target, CPU MHz, Flash MBs, RAM MB, Switch, Ethernet 100M ports_, Ethernet Gbit ports_, Comments network ports_, Modem, VLAN, WLAN 2.4GHz, WLAN 5.0GHz, WLAN Hardwares, WLAN Comments_, Detachable Antennas_, USB ports_, SATA ports_, Comments USB SATA ports_, Serial, JTAG, LED count, Button count, Power supply, Device Techdata_pageid, Forum topic URL_url, wikidevi URL_url, OEM Device Homepage URL_url, Firmware OEM Stock URL_url, Firmware OpenWrt Install URL_url, Firmware OpenWrt Upgrade URL_url, Comments_ | "dom": "t", |
| filter : Brand=MikroTik | "paging": false, |
| filter : Model=RB5009UG+S+IN | "rotate": true, |
| filter : Versions= | "shownColumns": ["brand", "model", "version", "devicetype", "availability", "supportedsincecommit", "supportedsincerel", "supportedcurrentrel", "unsupported_functions", "bootloader", "cpu", "target", "cpumhz", "flashmb", "rammb", "switch", "ethernet100mports", "ethernet1gports", "commentsnetworkports", "modem", "vlan", "wlan24ghz", "wlan50ghz", "wlanhardware", "wlancomments", "detachableantennas", "usbports", "sataports", "commentsusbsataports", "serial", "jtag", "ledcount", "buttoncount", "powersupply", "deviceid", "owrt_forum_topic_url", "wikideviurl", "oemdevicehomepageurl", "firmwareoemstockurl", "firmwareopenwrtinstallurl", "firmwareopenwrtupgradeurl", "comments"], |
| ---- | "filterColumns": {"brand": "^MikroTik$", "model": "^RB5009UG\\+S\\+IN$", "version": "^$"} |
| | } --> |
| |
| ==== Photos ==== | ==== Photos ==== |
| /* Thanks, your wiki administration - Oct. 2015 */ | /* Thanks, your wiki administration - Oct. 2015 */ |
| |
| //Front://\\ | **Top View of PCB** |
| **Insert photo of front of the casing** | |
| |
| //Back://\\ | {{:media:mikrotik:rb5009ug_s_in:rb5009_s_in_top.jpg?400|}} |
| | |
| | **Bottom View of PCB** |
| | |
| | {{:media:mikrotik:rb5009ug_s_in:rb5009_s_in_bottom.jpg?400|}} |
| | *Back://\\ |
| **Insert photo of back of the casing** | **Insert photo of back of the casing** |
| |
| -> [[docs:techref:hardware:port.serial]] general information about the serial port, serial port cable, etc. | -> [[docs:techref:hardware:port.serial]] general information about the serial port, serial port cable, etc. |
| |
| How to connect to the Serial Port of this specific device:\\ | There is a MikroTik 16 pin header they commonly use and the pinout is: |
| **Insert photo of PCB with markings for serial port** | |
| |
| <WRAP BOX> | <code> |
| FIXME //Replace EXAMPLE by real values.// | 1 GND Vcc RX ? GND |
| </WRAP> | #--------------------# |
| | |.-. .-. .-. .-. .-. | |
| | |'-' '-' '-' '-' '-' | |
| | |.-. .-. .-. .-. .-. | |
| | |'-' '-' '-' '-' '-' | |
| | #--------------------# |
| | 2 CLK DO /CS TX DI |
| | </code> |
| |
| ^ Serial connection parameters\\ for MikroTik RB5009UG+S+IN @@Version@@ | EXAMPLE 115200, 8N1 | | ^ Serial connection parameters\\ for MikroTik RB5009UG+S+IN @@Version@@ | 115200,8N1 | |
| |
| ==== JTAG ==== | ==== JTAG ==== |
| -> [[docs:techref:bootloader]] | -> [[docs:techref:bootloader]] |
| |
| | Use adron-s's hacked RouterBOOT (see [[:toh:mikrotik:rb5009ug_s_in#installation_instructions_with_modified_routerboot|installation section]]) to boot OpenWrt images. The default RouterBOOT only supports MikroTik's own images. |
| ===== Hardware mods ===== | ===== Hardware mods ===== |
| |
| ===== Tags ===== | ===== Tags ===== |
| [[meta:tags|How to add tags]] | [[meta:tags|How to add tags]] |
| {{tag>mvebu armv8 cortexa72 4core 9port 16flash 1024NAND 1024RAM PoE 2.5gbit sfp_plus}} | {{tag>mvebu armada7040 1024NAND 1024RAM 9port gigabitethernet 2.5gigabitethernet 4core 16flash PoE sfp_plus usb3.0 armv8 cortexa72 rackmount wip}} |