Status¶
Chikuma runs on the emulated machine and on a real iPod classic, and this page keeps the account of how far each part goes. Everything listed as working has a test or a measurement behind it, and what does not work sits right beside it.
Last updated 2026-11-16.
The target is the iPod classic 6G (S5L8702). The real unit is a late 6G, often called the 6.5G, and it is in daily use as a development unit. Nothing has been tried on any other model for the moment.
What fidelity means here¶
Chikuma aims to behave as close as possible to the original. It does not try to copy Apple's compiler output byte for byte.
Every line that is RetailOS's behaviour comes from the reverse: the archive's records, the firmware's own code, or a measurement on it. Where the firmware decides nothing, the choice is Chikuma's and the file says so. That covers how the port is laid out, what a file is called and where shared code lives.
A byte-match would forbid recompiling and changing anything, and Chikuma exists to be changed. Some screens compared by subtraction do come out byte-identical, and a reassembly of the boot chain matched Apple's modules byte for byte, which proved its disassembly was read correctly. Those results count as evidence. The target stays the behaviour.
What works¶
Each item below has a test or a measurement that fails if the behaviour changes. "On the device" means measured on the development unit.
Kernel¶
The kernel is the firmware's own RTXC design, with the pieces the image has:
- tasks, priorities and preemption
- mutexes with priority inheritance
- timers, slots and events
- a heap with boundary tags
- the service dispatch, with all 49 slots read and classified
The 34 tasks carry the firmware's own names, ids and priorities. 32 of the names come from the image's own strings, and two independent naming mechanisms agree on the 20 they share.
The boot chain¶
The mask boot ROM and Apple's EFI NOR bootloader (the ONB, 40 modules) are both C in this tree. They are built from source, signed with Chikuma's own certificate chain and booted on the emulated machine, through every stage:
The control is that the same chain boots Apple's own unmodified RetailOS to a working UI. See the boot chain, in C.
On a real iPod¶
The reproduced NOR bootloader is the one in the development unit's flash. It boots Chikuma from the disk's firmware partition, beside Apple's RetailOS, which it can still boot. The recovery stage is Chikuma's too, and so is the disk mode the bootloader starts when a host asks for one.
On the device describes the install path and its risks. Bring-up on a real iPod covers what the hardware showed along the way.
Storage¶
The storage stack is ATA (LBA28/48), a partition layer that reads the MBR first as the firmware does, then FAT16 and HFS+. It runs over the PATA drive or the CE-ATA one, whichever the board strap names.
The filesystem never calls the disk directly. It posts to a queue and blocks, because the image does
it that way with its ATAWorkLoopTask / ATAWorkLoopIRQTask pair. ATA reads wait on the completion
interrupt instead of polling the status register.
Disk writes are on by default. The drive in the development unit refuses any command that does not cover a whole 4 KiB physical sector. So a partial write becomes a read-modify-write of the whole sector, and aligned runs go through the firmware's own DMA write.
On the device, Preferences were rewritten in place and a new file was created in the HFS+ catalog.
fsck_hfs passed the volume before and after. Files created in the catalog carry the three date
fields the firmware stamps, and macOS judges them: the test mounts the volume and compares stat.
A create into a full catalog leaf splits the leaf and carries the new key up the tree. That split is Chikuma's own, since the firmware's half of the B-tree write has not been read.
48-bit addressing reaches past the 2^28-sector wall. A sparse 160 GiB image checks it, with one marker at the last sector and a different one where a 28-bit truncation would wrap. A 160 GB drive in the development unit confirms it too, sized from the drive's own identify words.
Display¶
The real LCD pipe runs with the firmware's own register values. That includes the panel's tear-effect interrupt and the second hardware window, which composites album art under a hole in the UI surface.
The compositor above it has its name back: Granite, with six layer slots and two backends (the display pipe and the hardware scaler). It pushes from its own thread, signalled by the tear-effect interrupt, rather than from whoever painted last. A Granite layer is one display window.
Transitions¶
Each slot of a screen, from the menu and the status bar to Now Playing, renders into a retained surface. The slots are composed the way the firmware composes them. A push slides, and the fade family runs through a slot's own alpha instead of being redrawn frame by frame.
The firmware goes one step further and lets the display pipe do the moving. A screen push slides two hardware windows, with the leaving screen's snapshot on one and the arriving screen on the other. Chikuma's push does the same in the emulator, checked against the original's pipe writes frame by frame. It is not on the device yet.
The Home preview's fade, the half-screen slides and the cover dissolve are still composed in software, where the firmware blends windows.
The interface, built from the archive¶
Screens are not constructed in code. The archive's records describe them:
| Record | Gives the screen |
|---|---|
SCST |
its controller |
ITEM, SORC |
its rows, labels and value properties |
CEVT, SEVT |
its key and event bindings |
All eight navigator verbs dispatch on the archive's own bindings, including the two dead bindings the device also ignores. Text renders through FreeType, taken from upstream.
English is the resource archive itself. A language is an override run keyed by resource id, which is how the firmware does it. Français and Japanese render from the image's own bytes, and the strings can be edited and repacked.
Menus¶
Home, Settings and Music navigate, and the media lists drill down from Artists to Albums to Songs to
Now Playing. The browse scope stays on the model, the way the firmware keeps it. MENU walks back
up, restores the level you left and puts the highlight back on the row you left.
Every distinct-value list opens with the device's own aggregate row ("All Songs", "All Albums"). That row names the level below and counts in that level's units, verified row for row against the original.
Songs, Albums, Artists, Genres and Composers come out in the order the database states, not in one Chikuma computes. The music database explains it. The order was verified against the original on the same disk, row for row.
Buttons¶
Apple's user guide lists the front-panel gestures. They were measured on the original, and nearly all of them now match.
A held key goes through the firmware's own per-key hold modes. A press-and-hold fires at 500 ms, and a long hold 1000 ms after that. For MENU, SELECT and Play, the release that follows a hold is not a tap.
What no screen binds falls to the application's own event table, as on the device:
| Held key | Effect |
|---|---|
| MENU | goes Home from any depth |
| SELECT | opens a list row's contextual menu, does nothing on Home or Settings |
| NEXT, PREV | scans (paused too), and the release does not skip |
| Play, long hold | asks for sleep: the Charging screen on external power, and on battery a pause with the backlight off. RetailOS goes to sleep there, Chikuma does not yet |
Genius¶
The whole Genius path works, from the Music menu row to the saved playlist.
The Music menu's Genius row pushes the Genius list once a Genius playlist exists, and the intro screen until then. That is the firmware's own test, and it does not look at whether the database is present. The list carries its own Refresh and Save Playlist command rows, with the row classes the archive names for them.
Now Playing's Genius layout runs the slider with the firmware's own gates. A wheel turn while the finger is down moves the switch and nothing else. The release starts the run or raises the matching error.
A run publishes its playlist as the playback source and lands on the list. Now Playing arrives over it once the firmware's 3000 ms floor expires, and that floor sits under the generator's work. It is not a timeout. Saving writes a real Genius playlist, seed included.
The generator is the firmware's own, read in full. It makes one pick per step, from a pool grown out of the tracks already picked, and applies the configuration's rules in order:
- genre
- three distance windows, redrawn after every pick
- skips
- jitter
Each retry relaxes one rule, so Refresh answers with a new list, as it does on the device. The
generator runs on the Extras.itdb graph and is tested against a real device's database.
Playlists¶
The Playlists screen lists what the device lists. A podcast playlist is not a music playlist, and the temporary On-The-Go list is always the last row, with the row class the archive names for it.
Each row has its own icon per kind (Genius, smart, podcast, ordinary) and the song count beneath the name. A Genius row is the exception, where the line beneath is the seed track's artist. That was measured on the original against a real library, because a small test library cannot tell the two strings apart.
On-The-Go survives a reboot. The file the device writes is reproduced byte for byte, and fsck_hfs
calls the volume it was written into clean.
Volume¶
The whole chain is recovered, from the wheel to the codec register:
- the wheel's two-per-notch step
- the object's 256-level domain, with the region ceiling a European unit ships with
- the limit rules behind the padlock
- the choice of codec chip, from the board's SysCfg
- each chip's curve: the Wolfson-style
0x3E + level * 0x3B / 0xF2into LOUT1/ROUT1, and the CS42L55's two-byte write from register 0x1A
It reproduces an earlier bus capture exactly, including why 255 levels fold onto 63 distinct codes. Pause works as the device's does, with one byte written and no DMA teardown.
The headphone remote¶
On a real iPod, the centre button of Apple EarPods plays, pauses and skips (single, double and triple click), and their volume buttons step the volume. Now Playing shows the same volume bar the wheel brings up and drops it 4 s after the last press, as the original does. Off Now Playing nothing is drawn, as the original draws nothing.
The bootloader leaves the jack-detect pin driven low, which holds the remote chip in reset, so the chip looks absent. The firmware's own pin table releases it. Unplugging and replugging is handled.
One part is OURS. On this unit the EarPods identify as a kind of headset the original reads no volume from, and they report a press but never its release. Chikuma takes each report as one click. See Accessories.
Audio¶
Music plays in the emulator, and on a real iPod classic through the dock line-out.
| Format | Path |
|---|---|
| AAC, MP3, ALAC | decoded on sm1 |
| WAV, AIFF | straight to the output, which is how the original plays uncompressed files too |
The sm1 block at 0x38500000 is a bus-mastering DSP. The CPU loads a codec program into SRAM, feeds
packets over a DRAM descriptor chain and collects PCM from slots in SRAM.
Everything the CPU does is reproduced, and so is the program. Chikuma's own clean-room AAC, MP3 and ALAC decoders, sosumi, are written for the DSP with x17 and play on the device in real time. How sm1 plays music has the whole path.
Track changes between files of the same sample rate join with no gap. A change of codec mid-track releases the old track's last buffer before reconfiguring, as the original does.
The output ring is refilled by its own task on every DMA completion and never stops, which is the original's shape. The feeder blocks on the DMA terminal count instead of spinning. That lets the window manager keep painting while a track plays, so Now Playing shows the title and album, the position and progress, and the cover with playback running.
Video¶
Both test films decode with zero errors, including the two-layer GOP. The emulator's model starts on the run-bit 0→1 edge, the way the hardware does.
The picture reaches the panel full screen. The backlight stays on the way the device holds it, by repeated assertion, measured off the original's own PMU traffic. When the film is left, the video window comes down, so the list behind it is clean.
On the device a feature-length film plays at its full 24 frames a second with its sound, one panel push per frame.
Cover Flow¶
The OpenGL ES in this image is Vincent with Apple's JIT turned on, a software rasteriser that generates ARM at run time. So the tilted, reflected covers are the CPU's work.
Chikuma runs on the same library, with the device's own 21-tile ring where a tile carries its texture as it travels. The fan's animations are timed to the firmware's own 3000 ms window, and the frame loop is paced at the firmware's three ticks.
Measured against retail on the same flick, Chikuma publishes frames a median 33 ms apart, against retail's 23. There is no spike over 60 ms in either direction.
Artwork¶
The ArtworkDB → .ithmb join runs on the device. Cells are cached, and album rows draw with the
correct split, separator and stride.
Podcasts¶
The Podcasts screen opens, and its rows drill into a show's episodes. It uses the same generic media-list machinery as the Videos family. The grouping is by album rather than by artist, because that is the field a podcast's own tracks carry it on.
The caption under Home's watermark is pixel-identical to the original, because the count is published on every highlight move rather than once at boot.
Photos¶
The photo library is read from its own database. Its records belong to the same family as the album art, so the artwork reader was extended instead of writing a new parser.
The Photos menu opens, and from it the albums and the thumbnail grid, down to the large photo. The slideshow runs too. Time Per Slide and Transitions are stored where the original stores them, and Home's preview pane shows photos on the Photos row. See Photos.
Extras¶
The Extras apps open. Each one is built from the archive and gated by a host test that reads the real records.
| App | What works |
|---|---|
| World Clock | the list face, the analog city clocks with the firmware's own sprite-mirrored hands, and the Add/Edit/Delete option bar with its selection pill |
| Calendars | the menu filled from the calendar files on the volume, the month grid, a day's events, an event's details and the To Do's, matched against the original on real calendars (Calendars) |
| Alarms | the app and the alarm-properties screen |
| Sleep Timer | borrowed from Now Playing, and it reaches expiry, but the sleep it would trigger is not reproduced |
| Stopwatch | Start/Stop/Lap, and the cap at the newest three laps |
| Notes | opens |
| Games | open, see below |
The wheel and keys route to whichever control the layout makes active. On the World Clock's edit layouts that is the option bar, not the list underneath.
The World Clock's saved clocks are the device's own file, read byte for byte and written back on an add, an edit or a delete. With none saved, it shows the one default city the firmware shows.
The click-wheel games¶
All three shipped titles (iPod Quiz, Klondike and Vortex) launch from the Games menu and run, in the emulator and on the device. The loader binds each one against the firmware's own eleven interfaces and 486 functions.
Sound effects go through the firmware's software mixer, and a game's music through the media player, as on the original. A game's saves go through the firmware's own save store. Its memory comes from the heap at launch and goes back when it stops.
On the device Vortex runs at about 55 frames a second. See click-wheel games.
USB¶
Chikuma's own USB stack, recovered from the firmware's, enumerates on the real iPod with the original's configuration layout:
| Configuration | Interfaces |
|---|---|
| first | mass storage |
| second | audio, and the HID accessory interface |
Plugged into a Mac, the running OS hands the data disk over the way the original does. The disk-mode screen, built from the archive, stays up while the host owns the disk, and the library reloads when it is ejected. The OS answers the INQUIRY pages and the device-information plist the way Apple's disk mode answers them.
The date and time a Mac sends on every attach set the clock, as they do on the original. The separate disk mode the bootloader starts is Chikuma's as well. See USB and disk mode.
Accessories¶
iAP 1 runs over the dock serial line and over USB HID. It covers identification, the Simple Remote buttons and the extended interface a car stereo uses to browse the library, pick a track and read Now Playing. The Simple Remote drives Chikuma's menus the way it drives the original's.
iAP 2, which this firmware never had, is Chikuma's own. Its link and control layers run end to end against Apple's own accessory code in the emulator, and a Mac app drives a real iPod over it in a development build. See Accessories.
Chikuma's own: a dark skin and Night Shift¶
These are the first features that belong to Chikuma rather than to Apple, and they are declared OURS throughout. Settings gains a Display screen, authored into the archive in all twenty languages rather than built in code. It holds two settings:
- Appearance: Light, Dark, or Auto by sunrise and sunset for the home city or a chosen latitude and longitude.
- Night Shift: a schedule and a warmth, applied through the display pipe's gamma table. It covers every screen, film and game at no cost per frame.
The dark skin is a section of dark twins keyed by colour. It takes Apple's own black half where the firmware ships one, such as the black status bar or Now Playing's dark set, and an inverted palette for pictures that have none. Chikuma's own features has the whole set.
Fidelity checking¶
The retail firmware and Chikuma boot the same disk on the same emulated machine, so screens are compared by subtraction. Several screens are byte-identical to the original. Where they are not, the differing pixel count is the number that gets quoted.
That only holds while the emulator refuses what the hardware refuses. The emulator against the hardware lists where the two differ.
Does not work yet¶
| Area | What is missing |
|---|---|
| Contacts, Screen Lock | Contacts is not served. Screen Lock is a dispatch branch rather than a full screen. |
| Extras stand-ins | Inside the built Extras apps, the Sleep Timer's actual sleep and the Stopwatch's Clear Logs are still stand-ins. |
| Unserved screens | A crawl of the real iPod's menus to depth three opens every branch of the main menu, and the dead ends it found are the ones in this table. A count across the whole archive's push targets dates from early September, before Photos, Calendars and the disk-mode screen were built, and is out of date. |
| Compilations, Audiobooks | Both are still unbound rows on the Music menu, and they say so instead of answering from a count Chikuma does not have. The library reader carries the compilation flag (it keeps compilation tracks out of Artists and Cover Flow, as on the device), so Compilations lacks only its own scope over the Albums screen. Audiobooks still wants the media-kind mask read out of its own handler. |
| Now-playing playlist icon | Three of the four kinds come from the database: Genius from the seed, smart from the rules, podcast from its flag. The now-playing one is no database field at all. The firmware's is the runtime list the player owns, so it waits on that. |
| Slideshow transitions | The slideshow runs and stores the chosen transition, but the transitions are not drawn yet. Photos are still decoded on the interface's own task. |
| The clicker | The wheel's tick was measured on the original in the emulator: a separate task driving two timers, chosen by board revision. Chikuma does not drive the piezo yet, so the Clicker setting has nothing to gate. |
| Sleep | A long-held Play asks for sleep the way the original does, but on battery the answer is still OURS (a pause and a dark backlight). Of the original's power saving, Chikuma has the idle wait, the backlight timeout, the per-block clock gates, the drive's power-down between reads and a two-level speed governor. Light sleep runs after two dark minutes on battery, with the original's whole sequence, and wakes on MENU, the hold switch or USB. Hibernation is not reproduced. Power has the inventory. |
| Gestures | The fast-scroll letter overlay a long list shows while the wheel spins is not built. The contextual menu's rows do not vary by row kind yet, as the original's do. PREV on the first item of the queue restarts the track, where the original goes back to the list. |
| Release | There is no installable release, see Installing it. |
Deliberately out of scope¶
- Byte-matching Apple's compiler output. See what fidelity means here.
- Re-typing published libraries. FreeType, SQLite, zlib and the Vincent OpenGL ES
implementation come from upstream. Which version to vendor is Chikuma's choice, not a fidelity
rule, and FreeType is vendored at 2.14.3 now. What Apple grew onto a library is still recovered,
Vincent's
GL_APPLE_binary_shaderfor instance, because that could have been different.
Why the dark skin is mostly data¶
The archive carries 84 named COLR records. They are semantic and keyed by id (Background_Color,
System_Text_Color, Genius_Background_Color), which makes them a single choke point for a colour
change.
The firmware also ships two skins already. It has no flag for them. They come as paired resources that the screen chooses between:
StatusBarWhite_*againstStatusBarBlack_*- the black option-bar caps
- the black transport glyphs, where property id
0x7F0Cis white and0x7F0Dblack, and the getter compares the id itself - Now Playing's dark colour set beside its light one
Apple's _White_ means "for the white skin", which is why NowPlaying_White_Text_Color is black.
In the resource names, 122 carry White against 44 that carry Black. The pairing covers the status
bar, the option bar and Now Playing, and not the menus.
So the dark skin asks for the black twin where the device has one, and declares the rest as OURS.
Installing it¶
There is no release. Chikuma is installed on one development unit with the project's own host tool. That path is exercised every day: the recovery stage, the bootloader in flash, and the OS planted in the firmware partition.
It stays developer plumbing. It touches flash on a device that is no longer manufactured, and a wrong step can need the case opened. On the device says what the path is and why to think twice.