<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Ivan Kuznetsov &#187; iPhone</title>
	<atom:link href="http://www.ivankuznetsov.com/category/iphone/feed" rel="self" type="application/rss+xml" />
	<link>http://www.ivankuznetsov.com</link>
	<description>Entrepreneur, Ruby on Rails and Ubuntu fanatic, consultant</description>
	<lastBuildDate>Tue, 18 May 2010 18:39:50 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Upgrading iPhone firmware using VMWare and Ubuntu 9.04</title>
		<link>http://www.ivankuznetsov.com/2009/10/upgrading-iphone-firmware-using-vmware-and-ubuntu-9-04.html</link>
		<comments>http://www.ivankuznetsov.com/2009/10/upgrading-iphone-firmware-using-vmware-and-ubuntu-9-04.html#comments</comments>
		<pubDate>Wed, 14 Oct 2009 07:35:10 +0000</pubDate>
		<dc:creator>Ivan Kuznetsov</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[iPhone]]></category>

		<guid isPermaLink="false">http://www.ivankuznetsov.com/?p=210</guid>
		<description><![CDATA[This was the second time I upgrade firmware on my iPhone, and second time I ran into the same problem.  In the middle of the update iTunes reports &#8220;Unknown error&#8221; and iPhone dies (well, goes into recovery mode, but it is not much help). If that happened to you, don&#8217;t panic! To make this geeky [...]]]></description>
			<content:encoded><![CDATA[<p>This was the second time I upgrade firmware on my iPhone, and second time I ran into the same problem.  In the middle of the update iTunes reports &#8220;Unknown error&#8221; and iPhone dies (well, goes into recovery mode, but it is not much help). If that happened to you, don&#8217;t panic! To make this geeky combination (Ubuntu 9.04, VMware, iTunes and iPhone software update) work, there&#8217;s a little trick you need to do.<span id="more-210"></span>My setup:</p>
<p>- iPhone 3G 8Gb Sonera<br />
- Ubuntu Linux 9.04 (Jaunty) on Lenovo T61 laptop, kernel 2.6.28-15<br />
- VMware player 2.5.3<br />
- guest OS: WinXP Home SP3 with iTunes 9.0.1.8</p>
<p>goal: upgrading firmware to 3.1.2</p>
<p>I used instructions on <a href="http://freshfoo.com/blog/iphone_upgrade_with_vmware" target="_blank">Menno Smits&#8217; blog</a>. Here&#8217;s the summary:</p>
<p>1. Create a file /etc/modprobe.d/blacklist-usb</p>
<blockquote><p>sudo vim /etc/modprobe.d/blacklist-usb</p></blockquote>
<p>2. Add usb modules not to be loaded into that file</p>
<blockquote><p>blacklist snd_usb_audio<br />
blacklist usbhid</p></blockquote>
<p>I didn&#8217;t list ehci_hcd, and it still worked. By the way, USB HID stands for USB Human Interface Device, and blacklisting it might disable your USB mouse and keyboard as well. See a link in the end of the post how to work around it.</p>
<p>3. Unload blacklisted modules manually, in case if they have been loaded already</p>
<blockquote><p>sudo /sbin/modprobe -r snd_usb_audio<br />
sudo /sbin/modprobe -r usbhid</p></blockquote>
<p>4. Reload kernel event manager for the changes to take effect</p>
<blockquote><p>sudo /etc/init.t/udev reload</p></blockquote>
<p>5. Restart VMware and make sure you also restart Windows in VMware (it took me seveal attempts to figure that this was the problem)</p>
<p>6. Now start iPhone software update in iTunes or &#8220;restore and update&#8221;, if you already tried without disabling usbhid and got your iPhone into recovery mode.</p>
<p>7. After update is complete, remove the blacklist file and restart kernel event manager again</p>
<blockquote><p>sudo rm /etc/modprobe.d/blacklist-usb<br />
sudo /etc/init.t/udev reload</p></blockquote>
<p>If iTunes in WMware do not see iPhone, make sure that it is connected in VMware removable devices menu. Note that during firmware update iPhone might get disconnected &#8211; just connect it again using VMware removable devices menu.</p>
<p>I tried to verify suggestion from <a href="http://teknofire.net/articles/2009/01/08/using-linux-and-vmware-to-update-iphone-firmware/" target="_blank">Will</a> to disable only iPhone in ubuntu, using its USB ID, but don&#8217;t actually know if it worked, because I didn&#8217;t restart Windows in WMware and restore and update failed. Here&#8217;s what I did:</p>
<p>- connected iPhone and checked its USB ID:</p>
<blockquote><p>$ lsusb</p>
<p>Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub<br />
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub<br />
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub<br />
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub<br />
Bus 001 Device 024: ID 05ac:1292 Apple, Inc.<br />
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub<br />
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub<br />
Bus 003 Device 004: ID 0a5c:2110 Broadcom Corp. Bluetooth Controller<br />
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub</p></blockquote>
<p>- created a file /etc/modprobe.d/usbhid</p>
<blockquote><p>sudo vim /etc/modprobe.d/usbhid</p></blockquote>
<p>with the following content</p>
<blockquote><p>options usbhid quirks=0×05ac:0×1292:0×04</p></blockquote>
<p>where 0&#215;1292 is the USB ID displayed by lsusb command, and 0&#215;04 is the instruction to ignore device with specified USB ID.</p>
<p>- did everything as isteps 1-7 except that I didn&#8217;t blacklist usbhid and didn&#8217;t unload it manually.</p>
<p>It would be interesting to know if anyone succeeds with iPhone firmware update on Ubuntu without blacklisting usbhid module completely.</p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fwww.ivankuznetsov.com%2F2009%2F10%2Fupgrading-iphone-firmware-using-vmware-and-ubuntu-9-04.html&amp;linkname=Upgrading%20iPhone%20firmware%20using%20VMWare%20and%20Ubuntu%209.04"><img src="http://www.ivankuznetsov.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://www.ivankuznetsov.com/2009/10/upgrading-iphone-firmware-using-vmware-and-ubuntu-9-04.html/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
