We had this problem after a MXE upgrade with 5312 and 5324 phones. In the end they sent us a custom firmware for our TFTP and they ended up releasing a patch for the problem afterwards. I don't have the file anymore, but you should open a ticket with Mitel for this.