| Both sides previous revision Previous revision Next revision | Previous revision Next revisionBoth sides next revision |
| toh:mikrotik:rb5009ug_s_in [2023/12/28 20:14] – Updated notes borromini | toh:mikrotik:rb5009ug_s_in [2024/10/02 18:37] – [Photos] jannoke |
|---|
| {{: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 center round box important 600px> |
| | **WARNING:** |
| |
| ===== Supported Versions ===== | 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. |
| |
| ---- datatable ---- | **Do not sysupgrade from previous out of tree builds directly to the official OpenWrt images; the flash layout between both differs.** |
| cols : Brand, Model, Versions, Supported Current Rel, OEM device homepage URL_url, Forum Search_search-forums, Device Techdata_pageid | </WRAP> |
| headers : Brand, Model, Version, Current Release, OEM Info, Forum Search, Technical Data | |
| align : c,c,c,c,c,c,c | |
| filter : Brand=MikroTik | |
| filter : Model=RB5009UG+S+IN | |
| ---- | |
| |
| /* If no unsupported functions known, comment out the following datatable or delete it. */ | |
| ---- datatable ---- | |
| cols : Unsupported Functions_unsupporteds | |
| filter : Brand=MikroTik | |
| filter : Model=RB5009UG+S+IN | |
| ---- | |
| |
| ===== Experimental Versions ===== | ===== Supported Versions ===== |
| |
| /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * | <!-- ToH: { |
| * The official Table of Hardware only lists current, stable versions of OpenWrt. * | "source": "json", |
| * Use this space to describe any on-going efforts to create a newer version * | "dom": "t", |
| * of the firmware for this device. Provide links to firmware images, * | "paging": false, |
| * active threads on the forum, or other sources of information. * | "rotate": true, |
| * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ | "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. */ |
| | <!-- ToH: { |
| | "source": "json", |
| | "dom": "t", |
| | "paging": false, |
| | "shownColumns": ["unsupported_functions"], |
| | "filterColumns": {"brand": "^MikroTik$", "model": "^RB5009UG\\+S\\+IN$"} |
| | } --> |
| |
| //None at this time.// | |
| |
| ===== Hardware Highlights ===== | ===== Hardware Highlights ===== |
| ---- datatable ---- | <!-- ToH: { |
| cols : Model, Versions, CPU, CPU MHz, CPU cores_, Flash MB_mbflashs, RAM MB_mbram, WLAN Hardware, Ethernet 100M ports_, Ethernet 1Gbit ports_, Ethernet 2.5Gbit ports_, SFP+ ports_,Modem, USB ports_ | "source": "json", |
| header : Model, Version,SoC,CPU MHz,CPU cores,Flash MB,RAM MB,WLAN Hardware,100M ports,1Gbit ports,2.5Gbit ports,SFP+ 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 on kernel 5.10 / OpenWrt 22.03, with a regression introduced with 6.1 (main)), support won't get merged as long as external binaries (the hacked RouterBOOT) are needed to introduce OpenWrt support. **23.05 has full support for the QCA8081 2.5 GbE PHY.** | |
| |
| <color #ed1c24> | |
| **A few things to note:**</color> | |
| * You can use your own sysupgrade image instead of the one that adrons provides. The patch set adding RB5009UG support to OpenWrt should still apply rather cleanly to 22.03 HEAD / 23.05 HEAD and master (December 2023), 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. | |
| |
| |
| ===Patch sets:=== | |
| * [[https://paste.debian.net/download/1243978/|22.03]] (last updated 2022-06-13) | |
| * [[https://paste.myconan.net/482114|master (5.15) / 23.05]] (last updated 2023-10-18) | |
| * [[https://paste.myconan.net/482115|master (6.1)]] (last updated 2023-10-18) <color #ed1c24>**Early stage patch set. Ethtool reports no 2.5GBASE-T capability for QCA8081 anymore.**</color> | |
| |
| <color #ed1c24>**Master patch sets for 5.15 and 6.1 cannot be combined; pick one.**</color> | |
| |
| Note that 23.05 was //branched// (not released!) recently; for now the master patch set still applies to 23.05 as well. A separate patch set will be linked once 23.05 and master start diverging. | |
| ==== Installation instructions with modified RouterBOOT ==== | |
| * Pull the power plug from the RB5009UG. | |
| * 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]]. Make sure to **use the default MikroTik subnet - 192.168.88.x** and verify your firewall allows traffic on it. | |
| * Plug the cable into port 1 (so the 2,5 GbE 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 ==== | ==== Flash Layout ==== |
| </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 ==== |