Reflashing Xavier / Factory reset

My Xavier device went in to a boot loop and I am trying to reflash it. I put the device in recovery mode and tried to reinstall the package. I get the following error.

What could be wrong? How can I reflash the device?

Also when I open jetpack 4.0, I do not see an option for Xavier. I installed default TX2.

###############################################################################

L4T BSP Information:

R28 (release), REVISION: 2.1, GCID: 11272647, BOARD: t186ref, EABI: aarch64,

DATE: Thu May 17 07:29:06 UTC 2018

###############################################################################

Target Board Information:

Name: jetson-tx2, Board Family: t186ref, SoC: Unknown,

OpMode: production, Boot Authentication: ,

###############################################################################
Error: The Actual SoC ID(0x80) mismatches intended jetson-tx2 SoC ID(0x18).

Hi Prush,
This is the reason :)

https://devtalk.nvidia.com/default/topic/1042402/jetson-agx-xavier/no-xavier-option-in-jetpack-4-0-installation/

We have updated with the latest JetPack 4.1 DP EA release, so it should work now if you re-download the installer from our site and try again.