image: wine screenshot
Use wine to install the Windows setup program
R E L A T E D   C O N T E N T
ADVERTISEMENT

Update iPod firmware with your Linux distribution

Keep the music playing on your iPod with new firmware

Barry Shilliday, Personal Computer World 17 Oct 2006
ADVERTISEMENT

Over the past few months we have concentrated on exploring Ubuntu Linux, the distribution that continues to grow in popularity, especially with the use of Linux on the desktop.

We’ve also seen the excellent music management application Amarok and its impressive capabilities with handling iPods and other audio players.

Reader Stefan Hoefler writes: “I have switched to Kubuntu and want to take Windows off my machine. I use Amarok exclusively, but how can I update the firmware on my iPod without Windows?”

Fortunately it is possible to do this, but it’s not as simple as running an update program, since Apple doesn’t supply any utilities for Linux.

This month we will look at updating the firmware on an iPod or restoring its factory settings without using Windows or OSX.

First steps

Let’s start by updating the iPod to the latest firmware. Go to www.apple.com/ ipod/download to get hold of the latest Windows executable. The file in question should be called iPodSetup.exe and will be about 40MB. If you want to use an earlier firmware, run a search with Google to find a copy – the process is identical.

With the firmware downloaded, you will need two extra packages before you can proceed. These are ‘wine’, the application that lets you run Windows software, and ‘icoutils’, a utility to extract the firmware from the Windows binary. Install these two packages via Synaptic, or perhaps more quickly, at the command line

$ sudo apt-get install wine icoutils

The version of wine in the Ubuntu Dapper repositories is rather old, but sufficient for this purpose. Next, run the installer and accept all the defaults to the questions asked:

$ wine iPodSetup.exe

The installer may take a minute to complete, so don’t worry if nothing appears to be happening.

Once finished, wine will have created a ‘fake’ Windows environment under ‘.wine/drive_c’ in your home directory. This reflects a C: drive on a Windows machine, and under ‘Program Files’ you will find the files the iPodSetup program installed.

Inside the iPod directory there will be another directory stamped with the date of the firmware, and an ‘exe’ file within. This executable is the file you need, as it contains all the firmware images. Copy this file to somewhere more convenient, such as your home directory.

You may wish to rename it to something simpler, ‘ipodfw.exe’, for example – the original file name in this case is ‘iPod Updater 2006-03-23.exe’.

The last step of this stage is to extract the firmware images from the executable file. Create a directory for the images and use ‘wrestool’, which is part of ‘icoutils’ installed earlier. The command to do this is rather obtuse, so copy it carefully:

$ mkdir ipod_fw
$ wrestool -x —raw -o ~/ipod_ fw -t +FIRM ipodfw.exe

If successful the command should return no messages, but inside the ipod_fw directory you will find several firmware images, each prefixed with the executable name (ipodfw.exe) and ending ‘FIRMWARE-x.y.z’.

Refer to www.ipodwizard.net/wiki/index.php/IPod_Firmware to confirm which image is suitable for your model of iPod. For example, the iPod Nano series all begin with 14.5.x – and in this firmware set 14.5.1.1. Rename the appropriate file for your model to something simpler if you wish, such as newfirm.bin. That’s the hard work over.

Firmware installation
Now that the firmware image for your iPod is extracted you are ready to install it. Plug the iPod into the computer and wait for Ubuntu to recognise it. Close any applications that might start up as a result and head back to the terminal window.

We now need to know the device name Linux has assigned the iPod. One way is to run ‘dmesg’ and look towards the end of the output. The device name will always begin /dev/sdX and may well be something other than ‘sda’, for example, if you have Serial ATA hard drives or USB sticks inserted.

Alternatively, run the ‘mount’ command and look for the device mounted under /media/ipod (or something similar). From now on we will assume the device to be /dev/sda, but it is vital that you use the correct device name for any further steps. Run:

fdisk -l /dev/sda

and you will see that there are two partitions on the iPod: /dev/sda1 and /dev/sda2. The first partition, marked as empty, holds the firmware, and the second the Fat32 filesystem where your music and files are stored.

There is no need to touch the second partition for a firmware update; this process will leave all your music and files intact. We are interested in the first. Before installing the new firmware make a backup of the current one with the ‘dd’ command:

$ cd ipod_fw
$ dd if=/dev/sda1 of=firm.bak


All Open Source and Linux
Tags: Linux and Unix

Like this story? Spread the news by clicking below:

Post this to Delicious del.icio.us    Post this to Digg Digg this    Post this to reddit reddit!

Permalink for this story
R E A D E R   C O M M E N T S
M A R K E T P L A C E
Get your free demo of Numara Track-It! 8 - the leading help desk solution for IT related issues.
Make presentations, review documents & share your entire desktop. 30-day free trial! (cc required).
Discover how remote support can fuel your IT business in ways you've never thought of before.
Apply ITIL best practices at your service desk while eliminating integration cost. Learn more here.
WAN based, automated, daily vulnerability assessments. Click here to try and request our whitepapers.
Have your product or service listed here >   
Sponsored links
F E A T U R E D   J O B S
Aylesbury, Buckinghamshire, United Kingdom | Grass Roots
Business Analyst - £35,000 - £50,000 + benefits - Aylesbury    Grass Roots are one of the Sunday Times Top 100 companies to work for (2007 and 2008). Established in 1980, we're part of the ... more >
London, United Kingdom | The Crown Estate
 EDM Administrator - London - £22,300 to £24,200pa The Crown Estate is a unique organisation that manages a vast and varied property portfolio, comprising commercial, agricultural and marine interests throughout Britain. We are looking for an ... more >
London, United Kingdom | City of London
ICT Project Officer - Guildhall, London EC2 18-month fixed-term contract Bring your project management expertise to one of the country's most prestigious institutions. The City of London is the local authority for the Square Mile, ... more >
Central London, United Kingdom | MI5 Security Service
Communications Centre Engineer - Competitive salaries + excellent benefits - Central London Getting the best out of technology is critical to helping us protect the UK. Join MI5 and use your skills and experience to ... more >
More job opportunities