Dumping the nano bootloader – A quick summary

The Notes' bug

On February, 14th 2009, Taylor (n00b81) first found a bug in the 'Notes' application (see here). This bug was indeed a buffer-overflow, presumably because the filesystem of the iPod Nano cannot handle files with very long names and crash if one is encountered. The way to reproduce it is the following:

  1. On your computer, create an HTML file with only the following code: <a href="A<267 times>">Crash!</a>
  2. Plug your iPod Nano and copy this file onto your iPod's 'Notes' application.

Once this is done, your iPod should reboot endlessly...

To get out of this, first set your iPod to 'Disk-mode' (press simultaneously 'Play/Pause' and 'Select' for a while). Then, plug your iPod on your computer and remove the HTML file. Finally, reboot your iPod (hold simultaneously 'Menu' and 'Select' for a while).

This bug seems to have been confirmed on iPod Nano 2G/3G/4G.

Reaching the debug mode of the Samsung S5L8701

Once this bug has been found, exploitation of it was extremely hazardous without any knowledge of what happen in memory. Efforts have been focused on a way to enable the debug mode on the CPU of the iPod Nano (an ARM Samsung S5L8701). Here is a quick sum up of the events in chronological order: