Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revisionBoth sides next revision
toh:mikrotik:rb5009ug_s_in [2023/09/18 12:17] – [Installation] Link to updated 6.1 patch set borrominitoh:mikrotik:rb5009ug_s_in [2024/10/02 18:37] – [Photos] jannoke
Line 5: Line 5:
 {{: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,+
-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 currentstable 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 knowncomment 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    ModelVersionsCPUCPU MHz, CPU cores_, Flash MB_mbflashs, RAM MB_mbram, WLAN Hardware, Ethernet 100M ports_, Ethernet 1Gbit ports_, Ethernet 2.5Gbit ports_, SFP+ ports_,ModemUSB ports_ +  "source""json", 
-header  : ModelVersion,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$"} 
 +-->
  
  
Line 47: Line 49:
 /* stable release */ /* stable release */
 /* uncomment once stable release is available /* uncomment once stable release is available
----- datatable ---- +<!-- ToH: { 
-cols    ModelVersionsSupported Current RelFirmware OpenWrt Install URL_urlFirmware OpenWrt Upgrade URL_url, Firmware OEM Stock URL_url +  "source""json", 
-headers ModelVersionCurrent ReleaseFirmware OpenWrt InstallFirmware OpenWrt UpgradeFirmware 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""^$"} 
-----+-->
 */ */
  
Line 60: Line 62:
 /* snapshot */ /* snapshot */
 /* delete once stable release is available */ /* delete once stable release is available */
----- datatable ---- +<!-- ToH: { 
-cols    ModelVersionsSupported Current Rel, Firmware OpenWrt snapshot Install URL_url, Firmware OpenWrt snapshot Upgrade URL_urlFirmware OEM Stock URL_url +  "source""json", 
-headers ModelVersionCurrent ReleaseFirmware OpenWrt snapshot InstallFirmware OpenWrt snapshot UpgradeFirmware 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~ +-->
-----+
  
  
Line 78: Line 79:
 </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), support won't get merged as long as external binaries (the hacked RouterBOOT) are needed to introduce OpenWrt support. 
- 
-<color #ed1c24> 
-**A few things to note:**</color> 
-  * You can use your own sysupgrade image. The 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. 
- 
- 
-===Patch sets:=== 
-  * [[https://paste.debian.net/download/1243978/|22.03]] (last updated 2022-06-13) 
-  * [[https://0paste.com/475268-0502ec85|master (5.15) / 23.05]] (last updated 2023-08-26) 
-  * [[https://0paste.com/477965|master (6.1)]] (last updated 2023-09-18) <color #ed1c24>**Early stage patch set. Ethtool reports no 2.5GBASE-T capability for QCA8081 anymore.**</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 start diverging. 6.1 support will be added in due time. 
-==== 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 ====
Line 277: Line 233:
 </WRAP> </WRAP>
  
----- datatemplatelist dttpllist ---- +<!-- ToH: { 
-templatemeta:template_datatemplatelist +  "source""json", 
-cols    BrandModelVersionsDevice TypeAvailabilitySupported Since Commit_gitSupported since RelSupported current RelUnsupportedBootloaderCPUTargetCPU MHzFlash MBsRAM MBSwitchEthernet 100M ports_Ethernet Gbit ports_Comments network ports_ModemVLANWLAN 2.4GHzWLAN 5.0GHzWLAN HardwaresWLAN Comments_Detachable Antennas_USB ports_SATA ports_Comments USB SATA ports_SerialJTAGLED countButton countPower supplyDevice Techdata_pageidForum topic URL_urlwikidevi URL_urlOEM Device Homepage URL_urlFirmware OEM Stock URL_urlFirmware OpenWrt Install URL_urlFirmware OpenWrt Upgrade URL_urlComments_ +  "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 ====
Line 291: Line 248:
 /* 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**
  
Line 315: Line 276:
 -> [[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 ====
  • Last modified: 2024/10/02 18:43
  • by jannoke