Trying Manual Firmware install on Photon

I have a photon that has been working fine but after we played around with changing accounts and wifi credentials I have been unable to run the setup.

The android app sees the device but freezes when it tries connecting with it.

Tried to run setup via USB to an Ubuntu PC but it got stuck on obtaining device information. See log below.

So I tried to put it into DFU mode and manually update via USB as per Releases · particle-iot/device-os · GitHub and still no go.

Does anyone have any ideas?

>                   _   _      _        _
>  _ __   __ _ _ __| |_(_) ___| | ___  (_) ___
> | '_ \ / _` | '__| __| |/ __| |/ _ \ | |/ _ \
> | |_) | (_| | |  | |_| | (__| |  __/_| | (_) |
> | .__/ \__,_|_|   \__|_|\___|_|\___(_)_|\___/
> |_|                     https://particle.io/

Setup is easy! Let's get started...
It appears as though you are already logged in as justin@hha.co.nz
> ? Would you like to log in with a different account? No

> ! PROTIP: Hold the MODE/SETUP button on your device until it blinks blue!
> ! PROTIP: Please make sure you are connected to the internet. 

I have detected a Photon connected via USB.
> ? Would you like to continue with this one? Yes
> ! The Photon supports secure Wi-Fi setup. We'll try that first.

> ! PROTIP: Wireless setup of Photons works like a wizard!
> ! PROTIP: We will automagically change the Wi-Fi network to which your computer is connected.
> ! PROTIP: You will lose your connection to the internet periodically.

> ! PROTIP: Some computers may require Administrator permissions for my automagical Wi-Fi scanning capabilities.

> ! OOPS: I was unable to scan for nearby Wi-Fi networks (-___-)

> ? We can still proceed in 'manual' mode. Would you like to continue? Yes

> ! PROTIP: Manual mode will prompt you to manage the Wi-Fi connection of your computer when it's necessary.
> ! PROTIP: To proceed, you will need to be able to manually change the Wi-Fi connectivity of your computer.
> ! PROTIP: Your Photon will appear in your computer's list of Wi-Fi networks with a name like, Photon-XXXX
> ! PROTIP: Where XXXX is a string of random letters and/or numbers unique to that specific Photon.

> ! PROTIP: You will need to know the password for your Wi-Fi network (if any) to proceed.
> ! PROTIP: You can press ctrl + C to quit setup at any time.

Obtained magical secure claim code.

> ? Please connect to the Photon's Wi-Fi network now. Press enter when ready. 

Now to configure our precious Photon

> ! PROTIP: If you want to skip scanning, or your network is configured as a
> ! PROTIP: non-broadcast network, please enter manual mode to proceed...

> ? Would you like to manually enter your Wi-Fi network configuration? Yes
> ? Please enter the SSID of your Wi-Fi network: HHA_PUBLIC
> ? Please select the security used by your Wi-Fi network: WPA2 TKIP
> ? Please enter your Wi-Fi network password: 1qaz2wsx3edc
Here's what we're going to send to the Photon:

Wi-Fi Network: HHA_PUBLIC
Security: WPA2 TKIP
Password: xxxxxxxxxxx

> ? Would you like to continue with the information shown above? Yes

Obtaining device information...

Obtaining device information...

Obtaining device information...

Obtaining device information...

waited about 20 mins

Tried firmware update

jubbs@speed-demon120:~$ sudo dfu-util -d 2b04:d006 -a 0 -s 0x8020000 -D system-part1-0.4.9-photon.bin
dfu-util 0.5

(C) 2005-2008 by Weston Schmidt, Harald Welte and OpenMoko Inc.
(C) 2010-2011 Tormod Volden (DfuSe support)
This program is Free Software and has ABSOLUTELY NO WARRANTY

dfu-util does currently only support DFU version 1.0

Filter on vendor = 0x2b04 product = 0xd006
Opening DFU USB device... ID 2b04:d006
Run-time device DFU version 011a
Found DFU: [2b04:d006] devnum=0, cfg=1, intf=0, alt=0, name="@Internal Flash /0x08000000/03016Ka,01016Kg,01064Kg,07128Kg"
Claiming USB DFU Interface...
Setting Alternate Setting #0 ...
Determining device status: state = dfuDNLOAD-IDLE, status = 0
aborting previous incomplete transfer
Determining device status: state = dfuIDLE, status = 0
dfuIDLE, continuing
DFU mode device DFU version 011a
Device returned transfer size 4096
No valid DFU suffix signature
Warning: File has no DFU suffix
DfuSe interface name: "Internal Flash "

jubbs@speed-demon120:~$ sudo dfu-util -d 2b04:d006 -a 0 -s 0x8060000:leave -D system-part2-0.4.9-photon.bin
invalid dfuse address: 0x8060000:leave

jubbs@speed-demon120:~$ sudo dfu-util -d 2b04:d006 -a 0 -s 0x8060000 -D system-part2-0.4.9-photon.bin
dfu-util 0.5

(C) 2005-2008 by Weston Schmidt, Harald Welte and OpenMoko Inc.
(C) 2010-2011 Tormod Volden (DfuSe support)
This program is Free Software and has ABSOLUTELY NO WARRANTY

dfu-util does currently only support DFU version 1.0

Filter on vendor = 0x2b04 product = 0xd006
Opening DFU USB device... ID 2b04:d006
Run-time device DFU version 011a
Found DFU: [2b04:d006] devnum=0, cfg=1, intf=0, alt=0, name="@Internal Flash /0x08000000/03016Ka,01016Kg,01064Kg,07128Kg"
Claiming USB DFU Interface...
Setting Alternate Setting #0 ...
Determining device status: state = dfuDNLOAD-IDLE, status = 0
aborting previous incomplete transfer
Determining device status: state = dfuIDLE, status = 0
dfuIDLE, continuing
DFU mode device DFU version 011a
Device returned transfer size 4096
No valid DFU suffix signature
Warning: File has no DFU suffix
DfuSe interface name: "Internal Flash "
jubbs@speed-demon120:~$ sudo dfu-util -d 2b04:d006 -a 0 -s 0x80A0000:leave -D tinker-v0.4.9-photon.bin
invalid dfuse address: 0x80A0000:leave
jubbs@speed-demon120:~$ sudo dfu-util -d 2b04:d006 -a 0 -s 0x80A0000 -D tinker-v0.4.9-photon.bin
dfu-util 0.5

(C) 2005-2008 by Weston Schmidt, Harald Welte and OpenMoko Inc.
(C) 2010-2011 Tormod Volden (DfuSe support)
This program is Free Software and has ABSOLUTELY NO WARRANTY

dfu-util does currently only support DFU version 1.0

Filter on vendor = 0x2b04 product = 0xd006
Opening DFU USB device... ID 2b04:d006
Run-time device DFU version 011a
Found DFU: [2b04:d006] devnum=0, cfg=1, intf=0, alt=0, name="@Internal Flash /0x08000000/03016Ka,01016Kg,01064Kg,07128Kg"
Claiming USB DFU Interface...
Setting Alternate Setting #0 ...
Determining device status: state = dfuDNLOAD-IDLE, status = 0
aborting previous incomplete transfer
Determining device status: state = dfuIDLE, status = 0
dfuIDLE, continuing
DFU mode device DFU version 011a
Device returned transfer size 4096
No valid DFU suffix signature
Warning: File has no DFU suffix
DfuSe interface name: "Internal Flash "
jubbs@speed-demon120:~$

I sorted this buy installing the cli software on a win 7 machine and it took a few attempts but I managed to recalaim them by putting them in safe mode and getting the id

particle identify

putting it in listening mode and manually setting the WIFI.

particle setup wifi

then putting it in safe mode again and claiming it using the id

particle device add XXXXXXXXXXXX<-id

You should upgrad your dfu-util to 0.8+