RouterBOARD Firmware and Boot Settings
RouterBOARD Firmware and Boot Settings
Section titled âRouterBOARD Firmware and Boot SettingsâTL;DR (Quick Start)
Section titled âTL;DR (Quick Start)âFor the impatient: check if your firmware needs upgrading and upgrade it.
# Check firmware versions/system/routerboard/print
# If upgrade-firmware differs from current-firmware:/system/routerboard/upgrade# Confirm with 'y', then reboot:/system/rebootVerify after reboot:
/system/routerboard/print# current-firmware should now match the previous upgrade-firmwareOverview
Section titled âOverviewâWhat this does: The RouterBOARD menu (/system/routerboard) manages your deviceâs bootloader firmware (RouterBOOT), boot device selection, serial console settings, hardware button behaviors, and security features.
When to use this:
- After RouterOS upgrades (to update bootloader firmware)
- Configuring boot behavior for recovery scenarios
- Enabling protected boot mode for high-security deployments
- Customizing reset/mode button actions
- Troubleshooting boot issues or performing Netinstall recovery
Prerequisites:
- Physical RouterBOARD hardware (not CHR or x86)
- RouterOS installed and accessible
- Physical access recommended for recovery scenarios
Hardware Only
This feature applies only to MikroTik RouterBOARD hardware. Cloud Hosted Router (CHR) and x86 installations do not have RouterBOARD settings.
Configuration Steps
Section titled âConfiguration StepsâStep 1: Check Firmware Status
Section titled âStep 1: Check Firmware StatusâView current device information and firmware versions:
/system/routerboard/printExpected output:
routerboard: yes model: RB5009UG+S+IN serial-number: XXXXXXXXXXXXXX firmware-type: ipq8070 current-firmware: 7.15 upgrade-firmware: 7.16Key indicators:
current-firmware: Active bootloader versionupgrade-firmware: Latest available (from RouterOS package)- If they differ, an upgrade is available
Step 2: Upgrade Firmware (If Needed)
Section titled âStep 2: Upgrade Firmware (If Needed)âIf upgrade-firmware shows a newer version:
/system/routerboard/upgradeWhen prompted, confirm with y.
Critical: The upgrade is staged but not applied until you reboot:
/system/rebootStep 3: Verify Upgrade
Section titled âStep 3: Verify UpgradeâAfter reboot, confirm the upgrade succeeded:
/system/routerboard/printExpected: current-firmware now matches the previous upgrade-firmware value.
Step 4: Enable Auto-Upgrade (Optional)
Section titled âStep 4: Enable Auto-Upgrade (Optional)âAutomatically upgrade RouterBOOT firmware after each RouterOS upgrade:
/system/routerboard/settings/set auto-upgrade=yesCommon Scenarios
Section titled âCommon ScenariosâScenario: View Boot and Hardware Settings
Section titled âScenario: View Boot and Hardware Settingsâ/system/routerboard/settings/printShows boot device, delays, serial settings, and protection status.
Scenario: Configure Mode Button for Custom Script
Section titled âScenario: Configure Mode Button for Custom ScriptâCreate a script that toggles WiFi when the mode button is pressed:
Step 1: Create the script
/system/script/add name=toggle-wifi source={ :local wlan [/interface/wireless/find name=wlan1] :if ([/interface/wireless/get $wlan disabled]) do={ /interface/wireless/enable $wlan :log info "WiFi enabled via mode button" } else={ /interface/wireless/disable $wlan :log info "WiFi disabled via mode button" }}Step 2: Assign to mode button
/system/routerboard/mode-button/set enabled=yes hold-time=3s..5s on-event=toggle-wifiThe button must be held 3-5 seconds to trigger the script.
Scenario: Enter Netinstall/Etherboot Mode
Section titled âScenario: Enter Netinstall/Etherboot ModeâFor device recovery or reinstallation:
Method 1: Reset Button (Most Common)
- Disconnect power
- Hold reset button
- Apply power while holding
- Release when LED indicates Etherboot mode (usually solid or flashing pattern)
Method 2: RouterOS Command (Pre-configured)
/system/routerboard/settings/set boot-device=try-ethernet-once-then-nand/system/rebootMethod 3: Serial Console
- Connect serial cable (115200 baud default)
- Power on device
- Press
Ctrl+Erepeatedly until âtrying bootp protocolâ appears
Scenario: Enable Protected RouterBOOT
Section titled âScenario: Enable Protected RouterBOOTâHigh-security mode that disables Netinstall and RouterBOOT console access:
/system/routerboard/settings/set protected-routerboot=enabledStarting v7.1: You must press the reset or mode button within 60 seconds to confirm.
Scenario: Customize Reset Timing (Anti-Attack)
Section titled âScenario: Customize Reset Timing (Anti-Attack)âMake the emergency reformat timing difficult to guess:
/system/routerboard/settings/set reformat-hold-button=60s reformat-hold-button-max=65sThis requires holding the reset button exactly 60-65 seconds for emergency reset.
Scenario: Configure Pre-boot Etherboot (v7.9+)
Section titled âScenario: Configure Pre-boot Etherboot (v7.9+)âAllow Netinstall without physical button press:
/system/routerboard/settings/set preboot-etherboot=10s preboot-etherboot-server=192.168.88.2The device will search for Netinstall for 10 seconds at each boot, only accepting from the specified server.
Scenario: Adjust Serial Console Speed
Section titled âScenario: Adjust Serial Console SpeedâChange baud rate for serial console access:
/system/routerboard/settings/set baud-rate=9600Common rates: 9600, 19200, 38400, 57600, 115200 (default)
Scenario: Disable Reset Button Scripts
Section titled âScenario: Disable Reset Button ScriptsâPrevent custom scripts from running on reset button (keeps factory reset):
/system/routerboard/reset-button/set enabled=no hold-time=0s..1m on-event=""Verification
Section titled âVerificationâConfirm your RouterBOARD configuration is correct:
Check 1: Verify Hardware and Firmware
Section titled âCheck 1: Verify Hardware and Firmwareâ/system/routerboard/printExpected: routerboard: yes, correct model, firmware versions displayed.
Check 2: Verify Boot Settings
Section titled âCheck 2: Verify Boot Settingsâ/system/routerboard/settings/printExpected: Boot device, protection status, and serial settings as configured.
Check 3: Verify Button Configuration
Section titled âCheck 3: Verify Button Configurationâ/system/routerboard/mode-button/print/system/routerboard/reset-button/printExpected: Enabled status and assigned scripts if configured.
Check 4: Verify Serial Console Access
Section titled âCheck 4: Verify Serial Console AccessâConnect via serial (115200 8N1) and confirm console responds.
Troubleshooting
Section titled âTroubleshootingâ| Symptom | Cause | Solution |
|---|---|---|
| Firmware shows upgraded but current-firmware unchanged | Reboot not performed after upgrade | Reboot with /system/reboot |
| Device unresponsive after remote firmware upgrade | Some devices hang during bootloader update | Wait several minutes; have physical access for recovery |
| Cannot access device after enabling protected RouterBOOT | Forgot RouterOS password | Only option is emergency reformat (destroys config) |
| Netinstall not detecting device | Multiple causes | See Netinstall troubleshooting below |
| Device always tries network boot | boot-device set to ethernet | Use serial console to change boot-device setting |
| Device extremely slow after firmware upgrade | CPU frequency reset to minimum | Restore cpu-frequency: /system/routerboard/settings/set cpu-frequency=<nominal> |
| Firmware upgrade fails or shows old version | Old firmware files in /file | Delete old firmware files before upgrade |
| No RouterBOARD menu | Not physical RouterBOARD hardware | CHR and x86 donât have RouterBOARD settings |
Netinstall Troubleshooting
Section titled âNetinstall TroubleshootingâIf Netinstall doesnât detect your device:
- Disable other network interfaces on PC - Only the interface connected to the router should be active
- Connect directly - No switches between PC and router
- Verify Etherboot mode - Check LED pattern matches documentation
- Check protected RouterBOOT - If enabled, Netinstall wonât work
- Disable DHCP clients - Other DHCP clients on the network can interfere
- Try different USB adapter - Some USB network adapters cause link flap issues
Debug: Check Firmware Upgrade Status
Section titled âDebug: Check Firmware Upgrade StatusâAfter upgrade command, before reboot:
/system/routerboard/print# upgrade-firmware should show the new version stagedCommon Mistakes
- Forgetting to reboot after firmware upgrade - The upgrade isnât applied until reboot
- Remote firmware upgrades without physical access - If something goes wrong, you need physical access to recover
- Enabling protected RouterBOOT without documenting password - No password = bricked device
- Setting boot-device to ethernet permanently - Device wonât boot from NAND; use
try-ethernet-once-then-nandinstead - Upgrading firmware before RouterOS - Always upgrade RouterOS first, then firmware
- Overclocking beyond nominal values - May void warranty and cause instability
Boot Device Options Reference
Section titled âBoot Device Options Referenceâ| Value | Description |
|---|---|
nand-if-fail-then-ethernet | Boot from NAND, fallback to Etherboot if NAND fails |
nand-only | Boot from NAND exclusively, no network fallback |
try-ethernet-once-then-nand | Single Etherboot attempt, then boot from NAND |
ethernet | Network boot (Etherboot) only |
flash-boot | Flashfig configuration mode |
flash-boot-once-then-nand | Single Flashfig boot, then NAND |
Related Topics
Section titled âRelated TopicsâSystem Management
Section titled âSystem Managementâ- Reset Configuration - factory reset options
- Package Installation - package management including firmware
- Resources - view CPU, memory, storage information
Automation
Section titled âAutomationâ- Scheduler - automated tasks triggered by buttons
- System Backup - backup before firmware updates
Hardware
Section titled âHardwareâ- Health Monitoring - temperature and voltage sensors
- LEDs - LED behavior configuration
Reference
Section titled âReferenceâ- MikroTik RouterBOARD Documentation
- MikroTik Netinstall Documentation
- Version changes:
- v7.19.3: Protected RouterBOOT support for older hardware
- v7.9: preboot-etherboot feature added
- v7.1: Physical button confirmation for protected RouterBOOT
- v6.47: Button hold-time option added
Key Properties Reference
Section titled âKey Properties ReferenceâRead-Only Properties (/system/routerboard/print)
Section titled âRead-Only Properties (/system/routerboard/print)â| Property | Type | Description |
|---|---|---|
routerboard | yes/no | Whether device is genuine RouterBOARD hardware |
model | string | Device model name |
serial-number | string | Unique device identifier |
current-firmware | string | Currently active RouterBOOT version |
factory-firmware | string | RouterBOOT version shipped with device |
upgrade-firmware | string | Latest available RouterBOOT (from RouterOS package) |
firmware-type | string | Device-specific firmware type identifier |
Boot Settings (/system/routerboard/settings)
Section titled âBoot Settings (/system/routerboard/settings)â| Property | Type | Default | Description |
|---|---|---|---|
auto-upgrade | yes/no | no | Auto-upgrade firmware after RouterOS upgrade |
boot-delay | time | 2s | Time to wait for keypress during boot |
boot-device | enum | nand-if-fail-then-ethernet | Primary boot source selection |
boot-protocol | bootp/dhcp | bootp | Protocol for network boot |
baud-rate | integer | 115200 | Serial console speed (bits/sec) |
silent-boot | yes/no | no | Disable boot beep sounds |
protected-routerboot | enabled/disabled | disabled | Disable Etherboot and console access |
reformat-hold-button | time | 20s | Button hold time for emergency reset (5s-300s) |
reformat-hold-button-max | time | 10m | Maximum hold time window (15s-600s) |
preboot-etherboot | time/disabled | disabled | Pre-boot Netinstall search window (v7.9+) |
cpu-frequency | integer | model-dependent | CPU clock speed (MHz) |
memory-frequency | integer | model-dependent | RAM clock speed (MHz) |
Button Properties (/system/routerboard/mode-button, /system/routerboard/reset-button)
Section titled âButton Properties (/system/routerboard/mode-button, /system/routerboard/reset-button)â| Property | Type | Default | Description |
|---|---|---|---|
enabled | yes/no | no | Enable custom button behavior |
hold-time | min..max | - | Required press duration (e.g., 3s..5s) |
on-event | script name | - | Script to execute on button press |
Hardware Availability
Section titled âHardware Availabilityâ| Button | Available On |
|---|---|
| Mode button | cAP, hEX, CRS3xx, CCR, hAP series |
| Reset button | Most RouterBOARD devices |
| WPS button | D53, C53, S53, H53 series only |