[DEPRECATED] EdgeMAX EdgeRouter X/X-SFP bootloader update

by Previous Employee UBNT-ancheng on ‎02-03-2016 04:44 PM - last edited on ‎10-03-2018 12:46 AM by Ubiquiti Employee

UPDATE - October 3, 2018

This article is deprected since release of v1.10.7 EdgeOS firmware which contains latest bootloader and does not require any external upgrade scripts. Please refer to following article for bootloader upgrade instructions -> https://help.ubnt.com/hc/en-us/articles/360009932554-EdgeRouter-How-to-Update-Bootloader





As discussed on the forum (e.g., here), there is an initialization issue in the previous bootloader for the ER-X and ER-X-SFP models which causes all ports to act as a "switch" during a brief period of time when the router is booting up. An updated bootloader that fixes this issue is now available. To apply the update, please download/copy the following script to the router:



(SHA1: a830a4c95e7b0a222086b8f563312e3010f3ba14)


For example, "curl" can be used on the router:

curl -O https://dl.ubnt.com/firmwares/edgemax/v1.8.0/update-boot.sh

Then from the router CLI, go to the directory where the script is, and run the following command:

sudo bash update-boot.sh


UPDATE - September 18, 2018:

Using this command will show the hash to verify the bootloader version:

sudo md5sum /dev/mtdblock2

If the bootloader has not been updated the result will show:

dbce6273c8740383f84040e33f7fffe7  mtdblock2

If the bootloader has been updated the result will show:

7580ebd7ce9303243292f586ab7c6daf  /dev/mtdblock2


Devices manufactured after the date codes listed below include the bootloader update and no action is required.

ER-X - 1818G

ER-X-SFP - 1820G


If the device includes the updated bootloader from the factory, the result will show:

828a6788a539809103bd42d121634211  /dev/mtdblock2


The command should be pretty quick (e.g., a few seconds) and it is important that power cannot be disrupted during the command operation (otherwise the device can become "bricked"). Once the script is done, the update is complete so on the next reboot the "switch" issue should not happen during boot. Again this update is only for ER-X and ER-X-SFP and it will not update anything on the other ER models. Thanks to community members who helped test/verify the fix, including @olh @DStahl @MAKuser @spynappels @mak_ @zepanv @HarrySmith @TyShawn @Jonman409 @matthardeman @nmgeek @wlst @Ripv @phil_c @dpurgert @cwoldberg @iamkrillin @Powermage @mindseyex2 @magical22 @flashx @cfinley @Humandroid5000 @staze @kc0eqf @ZPrime @stumpy @PrettyFlyWiFi @eugeniu @JustPlainTed @RcRaCk2k @mwegner @rif314 @dremon @edong23 @kecko @jeremy1 @Isotopicgas @seekbt2 @jakbeatz @jquagga @AFlow, and let us know if you find any issues of course!