Author Topic: Hack tools fail to download firmware issue  (Read 8313 times)

0 Members and 4 Guests are viewing this topic.

Offline GlenH

  • Newbie
  • Posts: 3
Hack tools fail to download firmware issue
« on: October 28, 2007, 11:49:33 pm »
Downloaded 2.8. Ran Setup. Started it up. Clicked on the Run Hack Wizard. It stopped at Step 5. Can't load PhatSig.dll because it isn't found. :(

Offline VorTechS

  • Administrator
  • Veteran.
  • *****
  • Posts: 1678
  • PhatHack Media Manager & DMS Tools Wizard Author
Hack tools fail to download firmware issue
« Reply #1 on: October 29, 2007, 07:41:22 am »
My apologies, not sure how that one has slipped through.  I've re-uploaded v2.8 with the additional DLL in the installer.
Please re-install and try again.  Thanks for the report!
Kenwood KDC-W7031 | Kenwood KHD-CX910 | 250GB DMS | PhatHack Media Manager v1.1.4 (Alpha) | VIOT

Catch me weekdays 8am-4pm GMT on IRC @ irc.freenode.net on channel #phathack (aka the chat link!!)

Offline GlenH

  • Newbie
  • Posts: 3
Hack tools fail to download firmware issue
« Reply #2 on: October 29, 2007, 11:03:54 pm »
That fixed that. This is definitely an easier way to hack the box. Even got the nice voice telling me the box had been unlocked. Thank you.

Tried the create new DMS function. It partitions and formats the drive. That is all. No firmware files copied. Nothing at all on the partitions. Tried with and without the reflash option checked.  ??? Should there be more?

Message at lower right says "DMS firware update completed successfully" but the log shows...
Drive preparation successful.  Downloading firmware files...
...downloading and installing firmware for:Volkswagen (v7.02)
...download failed, unable to continue.
Completion time: 18:45:43

Offline VorTechS

  • Administrator
  • Veteran.
  • *****
  • Posts: 1678
  • PhatHack Media Manager & DMS Tools Wizard Author
Hack tools fail to download firmware issue
« Reply #3 on: October 30, 2007, 07:22:20 am »
Thanks for confirming the fix Glen.  I'm aware of the download issue and am working closely with someone on this one offline.  The problem is the firmware is failing to download. 

I now have the reason for the failure:

Code: [Select]
...downloading and installing firmware for:Volkswagen (v7.02)
Setting download source to: http://downloads.phathack.com/firmware/headunit_0x3950_7_02.zip
Downloading file as: C:\Program Files\PhatHack\PhatHack DMS Tools\Downloads\Volkswagen\headunit_0x3950_7_02.zip
Error occurred downloading: Unable to cast object of type 'System.Net.HttpWebRequest' to type 'System.Net.FileWebRequest'.
Setting download source to: http://downloads.phathack.com/firmware/systemfiles2004_11_01.zip
Downloading file as: C:\Program Files\PhatHack\PhatHack DMS Tools\Downloads\Volkswagen\systemfiles2004_11_01.zip
Error occurred downloading: Unable to cast object of type 'System.Net.HttpWebRequest' to type 'System.Net.FileWebRequest'.
Setting download source to: http://downloads.phathack.com/firmware/daemonfiles_2004_11_01.zip
Downloading file as: C:\Program Files\PhatHack\PhatHack DMS Tools\Downloads\Volkswagen\daemonfiles_2004_11_01.zip
Error occurred downloading: Unable to cast object of type 'System.Net.HttpWebRequest' to type 'System.Net.FileWebRequest'.
Setting download source to: http://downloads.phathack.com/firmware/playerfiles_2004_11_01.zip
Downloading file as: C:\Program Files\PhatHack\PhatHack DMS Tools\Downloads\Volkswagen\playerfiles_2004_11_01.zip
Error occurred downloading: Unable to cast object of type 'System.Net.HttpWebRequest' to type 'System.Net.FileWebRequest'.
...download failed, unable to continue.
Completion time: 23:57:18

Not quite sure what is going on here, as far as the code is concerned this should be being coped with:

Code: [Select]
            Try
                wr = CType(FileWebRequest.Create(_sourceURL), FileWebRequest)
                resp = CType(wr.GetResponse(), FileWebResponse)
            Catch ex As Exception
                wr = CType(FileWebRequest.Create(_sourceURL), HttpWebRequest)
                resp = CType(wr.GetResponse(), HttpWebResponse)
            End Try

I guess it could be:

Code: [Select]
wr = CType(FileWebRequest.Create(_sourceURL), HttpWebRequest)
...performing an incorrect typecast - but why I'm not seeing that in the dev. environment is beyond me!

I'm going to try changing it to:

Code: [Select]
wr = CType(HttpWebRequest.Create(_sourceURL), HttpWebRequest)
and if it doesn't break in the dev. environment then I'll throw it back for testing.
« Last Edit: October 30, 2007, 07:34:41 am by VorTechS »
Kenwood KDC-W7031 | Kenwood KHD-CX910 | 250GB DMS | PhatHack Media Manager v1.1.4 (Alpha) | VIOT

Catch me weekdays 8am-4pm GMT on IRC @ irc.freenode.net on channel #phathack (aka the chat link!!)

Offline VorTechS

  • Administrator
  • Veteran.
  • *****
  • Posts: 1678
  • PhatHack Media Manager & DMS Tools Wizard Author
Re: Hack tools fail to download firmware issue
« Reply #4 on: October 30, 2007, 01:30:45 pm »
I managed to reproduce this on a virtual machine, and turns out it was the wrong version of DMS.dll in the installer.

(I should have paid more attention to the 'duplicate exists' warnings ;))

Subject to the two people I've sent debug version links to, 2.9 will be available soon (also fixes an issue with 'Update Firmware')....
Kenwood KDC-W7031 | Kenwood KHD-CX910 | 250GB DMS | PhatHack Media Manager v1.1.4 (Alpha) | VIOT

Catch me weekdays 8am-4pm GMT on IRC @ irc.freenode.net on channel #phathack (aka the chat link!!)