RouterBOOT
CLI reference:/system/routerboard/settings/system/routerboard/upgrade/system/routerboard
RouterBOOT is the boot loader of MikroTik hardware (routers, switches, access points and other devices). It starts RouterOS, and it can start the device from the network for Netinstall. The term RouterBOARD on this page means all MikroTik hardware that runs RouterOS. RouterBOOT is not used on x86 computers and Cloud Hosted Router.
The RouterBOOT version is separate from the RouterOS version. /system/routerboard/print shows both
the running RouterBOOT version and the version included in the installed RouterOS; see "Check the
RouterBOOT version".
Main and backup loaders
A RouterBOARD device has two boot loaders: the main (regular) loader, which is used by default, and a backup loader for the case that the main loader does not work. To start the backup loader on every boot, set it in RouterOS:
/system/routerboard/settings/set force-backup-booter=yes
The backup loader also starts when you power on the device with the reset button pressed. Only the main RouterBOOT can be upgraded, so if an upgrade fails, start the device with the backup loader and downgrade the main loader. For the upgrade steps, see Upgrading RouterBOOT.
Reset button
The reset button has three functions while the device starts:
- Hold the button until the LED starts flashing, then release it to reset the RouterOS configuration (about 5 seconds).
- Keep holding for about 5 more seconds until the LED turns solid, then release it to turn on CAPs mode (about 10 seconds).
- Keep holding for about 5 more seconds until the LED turns off, then release it to make the device look for Netinstall servers.
If you hold the button before you apply power, the backup RouterBOOT is used in addition to the actions above. To do the actions without loading the backup loader, press the button right after you apply power to the device.
See RouterOS configuration reset for the reset button in detail, Reset the password, and the video reset sequence.
Configuration reset on Wireless Wire kits
The reset button works as on other devices, with these hold times while the device starts:
- 5 seconds (the USR LED starts flashing): resets to a password-protected state.
- 10 seconds (the USR LED turns solid after flashing): removes the configuration completely.
RouterBOOT setup menu
On RouterBOARD devices with a serial console port, you can open the RouterBOOT setup menu. The cable is described in Serial Console. The serial port is configured to 115200 bit/s, 8 data bits, 1 stop bit and no parity. Disabling hardware flow control is recommended.
While the device starts, RouterBOOT prints its version and the board information, and then waits 2 seconds (the default boot delay) for a key that opens the setup menu. Control+E starts Etherboot mode instead.
An example of the setup menu on a CRS328-24P-4S+:
RouterBOOT booter 7.4beta4
CRS328-24P-4S+
built by build at 2022-06-15 11:34:09 from revision 73B4521C
CPU frequency: 800 MHz
Memory size: 512 MiB
Storage size: 16 MiB
Press Ctrl+E to enter etherboot mode
Press any key within 2 seconds to enter setup
RouterBOOT-7.4beta4
What do you want to configure?
d - boot delay
k - boot key
s - serial console
n - silent boot
o - boot device
z - extra kernel parameters
r - reset booter configuration
e - format storage
w - repartition nand
g - upgrade firmware
i - board info
p - boot protocol
b - booter options
j - boot os
t - hardware tests
l - erase license
x - exit setup
your choice:
The menu options:
| Key | Option | Description |
|---|---|---|
| d | boot delay | Delays starting of RouterOS to allow an interface to initialize |
| k | boot key | The key that opens the setup menu: any key or only Delete |
| s | serial console | Sets the baud rate of the serial port |
| n | silent boot | Suppresses all output on the serial port, for example when a device such as a GPS receiver or a temperature monitor is connected to it |
| o | boot device | Where to start RouterOS from: the storage, Ethernet (Netinstall) or a combination, see the options below |
| z | extra kernel parameters | |
| r | reset booter configuration | Resets the settings in this menu. There is no confirmation. |
| e | format storage | Destroys all data on the storage, including the RouterOS configuration and the license. Asks for confirmation (type yes). |
| w | repartition nand | Sets the number of partitions, see Partitions |
| y | active partition | The partition from which RouterOS is loaded (on devices with partitions) |
| g | upgrade firmware | Upgrades RouterBOOT over Ethernet or over the serial port (XModem) |
| i | board info | Shows the board type, serial number, firmware version, CPU, memory, storage and MAC addresses |
| p | boot protocol | The protocol for network boot: BOOTP (default) or DHCP |
| b | booter options | Which boot loader to load: the regular booter (default) or the backup booter |
| t | hardware tests | Starts the built-in memory test |
| j | boot os | |
| l | erase license | |
| x | exit setup | Leaves the setup menu and continues the start of the device |
Each key opens a list of further options. The default value is marked with *:
# d - boot delay:
Select boot delay:
1 - 1s
* 2 - 2s
3 - 3s
4 - 4s
5 - 5s
6 - 6s
7 - 7s
8 - 8s
9 - 9s
# k - boot key:
Select key which will enter setup on boot:
* 1 - any key
2 - <Delete> key only
# s - serial console:
Select baud rate for serial console:
* 1 - 115200
2 - 57600
3 - 38400
4 - 19200
5 - 9600
6 - 4800
7 - 2400
8 - 1200
9 - off
# n - silent boot:
Silent boot:
0 - off
* 1 - on
# o - boot device:
Select boot device:
e - boot over Ethernet
* n - boot from NAND, if fail then Ethernet
1 - boot Ethernet once, then NAND
o - boot from NAND only
b - boot chosen device
f - boot Flash Configure Mode
3 - boot Flash Configure Mode once, then NAND
# f - cpu frequency:
Select CPU frequency:
a - 200MHz
b - 400MHz
c - 600MHz
d - 800MHz
e - 1000MHz
* f - 1200MHz
# r - reset booter configuration:
# e - format nand:
Do you really want to format your storage device?
that would result in losing all your data
type "yes" to confirm:
# w - repartition nand:
Select partition count:
1 - partition
* 2 - partitions
3 - partitions
4 - partitions
# y - active partition:
Select active partition:
* 0 - partition
1 - partition
# g - upgrade firmware:
Upgrade firmware options:
e - upgrade firmware over ethernet
s - upgrade firmware over serial port
# i - board info:
Board Info:
Board type: CCR1009-8G-1S-1S+
Serial number: 48FF01DDE6FD
Firmware version: 3.19
CPU frequency: 1200 MHz
Memory size: 2048 MiB
NAND size: 128 MiB
Build time: 2014-09-23 15:02:34
eth1 MAC address: 00:0C:42:00:BE:4A
eth2 MAC address: 00:0C:42:00:BE:4B
eth3 MAC address: 00:0C:42:00:BE:4C
eth4 MAC address: 00:0C:42:00:BE:4D
eth5 MAC address: 00:0C:42:00:BE:4E
eth6 MAC address: 00:0C:42:00:BE:4F
eth7 MAC address: 00:0C:42:00:BE:50
eth8 MAC address: 00:0C:42:00:BE:51
eth9 MAC address: 00:0C:42:00:BE:52
eth10 MAC address: 00:0C:42:00:BE:53
# p - boot protocol:
Choose which boot protocol to use:
* 1 - bootp protocol
2 - dhcp protocol
# b - booter options:
Select which booter you want to load:
* 1 - load regular booter
2 - force backup-booter loading
#t - do memory testing:
launches built in memory test!
# x - exit setup:
Exit bios configuration menu and continues with system startup.
Check the RouterBOOT version
/system/routerboard/print shows the running RouterBOOT version (current-firmware) and the version
available for an upgrade (upgrade-firmware). The upgrade version comes with the installed
routeros package, or from an uploaded .fwf file for the device model:
[admin@MikroTik] > /system/routerboard/print
routerboard: yes
board-name: hAP ac^3
model: RBD53iG-5HacD2HnD
serial-number: HE20812AB3C4
firmware-type: ipq4000
minimum-firmware: 6.46.6
current-firmware: 7.26beta7
upgrade-firmware: 7.26beta7
Here current-firmware and upgrade-firmware are the same, so no upgrade is needed. When
upgrade-firmware is newer, run /system/routerboard/upgrade. After the upgrade, the print shows
the note Firmware upgraded successfully, please reboot for changes to take effect! until the
router is rebooted.
A downgrade is also possible by uploading an .fwf file with an older version. MikroTik support may
ask for this when troubleshooting.
Simple upgrade
To upgrade RouterBOOT from RouterOS:
- Run
/system/routerboard/upgradeand confirm. - Reboot the router (
/system/reboot) to apply the upgrade.
[admin@MikroTik] > /system/routerboard/upgrade
Do you really want to upgrade firmware? [y/n]
Each RouterOS version includes a RouterBOOT version. After a RouterOS upgrade, upgrade RouterBOOT as
well. To do it automatically, set auto-upgrade=yes in
/system/routerboard/settings.