Error installing CyanogenMod: Unsupported bootloader I am trying to install CyanogenMod 12 on my Moto G 4G XT1040 Peregrine by following this guide from the Cyanogen Wiki.

I have:


Unlocked my bootloader
Installed a custom compatible recovery (TWRP v2.8.7.0)
Downloaded the nightly into a SD card


When I try to install the custom ROM using the recovery, I get the following error:


  This package supports bootloader(s) 0x411A; this device has bootloader
  0x4113.


If I try to use the official Cyanogen recovery present in the image page, I get a similar error message containing the same line above.

I found this tool for upgrading the bootloader, but it's a very unofficial tool and I'm afraid to install a random bootloader found on some forum; I don't know what kind of malicious consequences it could have in terms of security.
Looks like the bootloader can be upgraded using this post and tool from XDA:  Bootloader Upgrader Tool [Falcon] [Peregrine] [41.18] [41.19] [41.1A]