iPhone iOS4 upgrade on Ubuntu 10.04

I upgraded an Apple iPhone 3GS today to iOS4. It took about 3 hours with a bit of time spent messing with USB.

The platform was Ubuntu 10.04 (Lucid Lynx) with VirtualBox 3.2.4 running Windows 7.

It actually might be a stretch to call the process an upgrade.

The first thing that happened after iTunes did a sync and started the process was the phone restarted and went into “recovery mode”. This is when a logo of iTunes and a USB cable appear.

Advertising iTunes, even when you are down? This made me nostalgic for the sad mac.

Which is more helpful? You be the judge.

So, it turns out that an iPhone in recovery mode must reconnect to the same iTunes that started the “upgrade”. That is because a new OS is not just an upgrade — the phone is wiped (although I have not yet done forensics to look for residue) and then restarted before the new OS is installed.

The problem with VirtualBox on Ubuntu at this critical point is that an iPhone in recovery mode may not appear to a guest. It appeared in the list of USB devices but was greyed out and Ubuntu was not able to mount it either.

Privileges necessary to mount a “recovery mode phone” are higher than a normally operating phone. This could be related to the /dev/bus/usb directories. The character special file (e.g. /dev/bus/usb/008/001) has 664 (crw-rw-r–) permissions and is owned by root:vboxusers. The fact that it works fine before the phone goes to recovery mode must have to do with how usbmuxd and libgpod operate.

To avoid this snafu you must verify correct permissions are set for VirtualBox. In a terminal edit /etc/group so your username is in vboxusers:

vboxusers:x:groupnumber:username1,username2

Here’s the graphical version to do the same thing:

Click on System –> Administration –> Users and Groups

Then click on the Manage Groups button

Scroll down to the vboxusers group. Select it and then click the Properties button.

Click the box next to the username to add to the group.

It also is recommended to add a USB filter in the settings for the guest OS. Set the Vendor ID to 05ac

With those settings in place the iPhone will be detected and iTunes will push the new iOS4 to it. Once it restarts it will ask you if you would like to recover your data.

My experience so far is that calls still drop often and battery life is poor. The upside is that email can be threaded and supposedly it is encrypted for real this time. More on that later.

Blue Balls in Italy

I can not wait to hear comedians comment on the news from Italy about suspicious cheese.

A batch of about 70,000 mozzarella balls which turned blue upon opening has been confiscated by food authorities in Italy, officials say.

Blue cheese? Apparently the Police are called in Italy when cheese goes blue. I would wager the cheese would get a completely difference reaction in England or France. Maybe the cheese was just shipped to the wrong market.

Some interesting facts in this incident:

  • 60% of Italians regularly eat mozzarella
  • The cheese in question was produced in Germany for “discount supermarkets”
  • The blue was by bacterium, not toxicity

Bacterium is essential to making cheese flavorful. The blue thus could be a good thing, or it could be bad. Control of bacterium is an interesting and ancient security issue, as an article from 1897 explains.

The food value of cheese is dependent upon the casein which is present. The market price, however, is controlled entirely by the flavour, and this flavour is a product of bacterial growth. Upon the action of bacteria, then, the cheese maker is absolutely dependent; and when our bacteriologists are able in the future to investigate this matter further, it seems to be at least possible that they may obtain some means of enabling the cheese maker to control the ripening accurately.

Italians outsource mozzarella to Germany? Engines and suspension, I can believe, but food? What were they thinking? Also notable that the police responded without any illness reported, just suspicion based on color.

Circumcision Deaths in SA

The Times reports that botched circumcisions performed on young boys in the Pondoland area of South Africa by unregistered “traditional” doctors have continued to cause complications that lead to death. The province law says only boys older than 17 can be circumcised but younger boys are exposed to risk.

Since the start of the winter circumcision season, boys had been brought into health facilities in “terrible condition”, most were dehydrated and some faced gangrene setting into their wounds.

Gangrene, let alone dehydration, should be giant clues here. In other words, the causes of death after surgery seem to be known and preventable.

Better regulation of the medical practices comes to mind as a step. I say better because it actually could be the strict enforcement of the post-17 law that leads to young boys circumcised without simple and effective medical procedures.

Circumcision of newborns that are already in a clean and healthy environment would remove the demand for the practice later. Education and training might also be a crucial area, especially when you consider who is allowed (hired?) to perform surgery, and the reference to tradition:

A 14-year-old boy was arrested in the Ngqeleni area of Transkei after performing illegal circumcisions on six youths, says the Eastern Cape health department.

[…]

“This really calls for community members, traditionalists, to re-look at this thing, because it’s no longer a customary ritual, it’s something else: boys just doing as they wish.”

I agree. I doubt tradition or custom is really what is at stake here. Since demand for circumcision is high, why not provide it earlier with a safe environment and remove the risk of these illegal and dangerous procedures later? The articles do not say.