iPhone OS 4.0 just released and now has multitasking (sort of). So I jump on the laptop download the latest iTunes update and watched the status bar in anticipation as I tried to apply the new OS to my iPhone. The iPhone OS update failed and I am prompted to restore the iPhone which also fails with an error code of 37. There is an option to view the update log and I notice several errors (bits snipped from the log)
2010-06-23 06:37:18.972 [3052:524]: unable to open device_map.txt: No such file or directory
…
void AppleUSBDeviceMux::handleConnectResult(BulkUSBMuxSession*, errno_t) new session to port 12345 failed: 61
void AppleUSBDeviceMux::handleConnectResult(BulkUSBMuxSession*, errno_t) new session to port 12345 failed: 61
…
AppleBCMWLAN::handleIOKitBusyWatchdogTimeout(): Error, no successful firmware download after 60000 ms!! Giving up…
…
disk0s2s1: ioctl(_IOW,’d',24,4) is unsupported.
…
2010-06-23 06:40:53.028 [3052:ddc]: <Restore Device 06C11C20>: Restore failed (result = 37)
2010-06-23 06:40:53.113 [3052:d84]: iTunes: Restore error 37
Quick search on the net yields some fixes.
One fix is to delete and redownload the update file (My laptop is running Vista btw) C:\Users\<username>\AppData\Roaming\Apple Computer\iTunes\iPhone Software Updates\iPhone2,1_4.0_8A293_Restore
This didn’t work and I really wanted to avoid uninstalling iTunes altogether which is another suggested fix. I had another PC to try and it had a really old version of iTunes. I remembered that I skipped updating Safari on my laptop so I decided to update Safari too along with the new iTunes version. I had previously allowed all of the Apple services through the firewall and decided to shut that down as well just for the iPhone update (probably unnecessary).
The update worked on the PC and am now able to sync back all of my stuff through iTunes on my laptop.
What was the root problem/fix? Possibly the old Safari 4.0 version, or maybe just reinstalling all of iTunes + Safari to latest versions. Some people also reported having problems contacting Apple’s servers because of the overload and just retrying the update several times. At any rate Good Luck with your updates!