To communicate with the device's baseband, you must enable the Diag port. Connect the phone to your PC.

Follow on-screen instructions to write the new IMEI.

If the first method doesn't work, you can try using Fastboot commands to repair the IMEI:

: If software fixes fail, the issue may be a physical disconnection or failure of the baseband chip. Professional repair requires removing the back cover (which is glued) and disconnecting the fingerprint scanner cable before accessing the mainboard.

Contact Motorola / authorized service center

These tools handle the MD5 hash check. If you write a bad HEX manually, the phone ignores the NVRAM block. Paid tools rebuild the entire partition structure.