I had a Zune way back when they first released and was part of the hacking community at the time. Was never able to fully crack the thing open software-wise (Rockbox) and always kind of dreamed of it. Recently had some time in my life to pursue some personal projects, so 20 years later, I looped back around to take a look.
I've reverse-engineered every released/available boot loader for the first and second generation Zune's, and gotten the source to 1:1 match byte for byte. I used AI(!), Ghidra, and Platform Builder for Windows CE 5.0. A report detailing the boot process for all versions on all the devices is linked here (https://zune-eboot.pages.dev/). You can select the device and boot loader release you are interested in, and will be presented a detailed accounting of how everything works that will take about an hour to read. You can also view just the changes (delta) between two different releases if you want to see just what changed.
I dug through the retail boot loaders for the Zune 30 and was unable to find any obvious security issues, oversights, or vulnerabilities. However, there were also released/leaked "TEST" firmware versions used at the Toshiba factory that actually produced the units to test them. With the boot loader logic mapped out, what I can see is that, for the "TEST" firmware:
- Any boot loader will boot any OS/recovery image.
- The "TEST" boot loader will boot any OS/recovery image that has a valid PKCS7 region with a certificate chain that ends at the Microsoft Root CA -> it doesn't actually care about the catalog'ed hashes.
So, if you take one of the PKCS7 blocks from a retail image and slap it onto a... well... anything, the "TEST" boot loader will load and boot that, no questions asked.
Here are links to mirrors of those firmware:
1.0 (186) TEST:
- https://archive.org/download/zune-30-keel-firmware/Asian%20Character%20Hacks/Zune01050485test.cab
- https://ia802801.us.archive.org/0/items/zune-30-keel-firmware/Asian%20Character%20Hacks/Zune01050485test.cab
- https://ia902801.us.archive.org/0/items/zune-30-keel-firmware/Asian%20Character%20Hacks/Zune01050485test.cab
2.1(4) TEST
So what now?
Well, now my life is getting busy again and I don't have any time to continue working on this stuff. But basically, given the above, getting Rockbox or any other OS you want up and running on a Zune 30 is fairly trivial. Not quick - work is still work - but trivial.
What someone needs to do:
- Finally make a standalone firmware updater for the Zune which can transfer user-selectable versions of eboot.bin, nk,bin, and recovery.bin to the device. Here is documentation on the MTPZ communication protocol which outlines how to do that. (That is all extracted from the Zune client binaries on PC, and is likely helpful to the Xune folks as well since it outlines how all the different media types get transferred.)
- Port Rockbox (or whatever OS you want) to the Zune 30. The Zune 30 is pretty much a Gigabeat S clone, which already has a working Rockbox build. There should only be a handful of differences between the two.
- Author a chain loader which will load the alternate OS into the Zune's RAM, or a packaging script which will patch a valid PKCS7 region onto the nk.bin binary blob for whatever OS you are attempting to load. Really not too hard.
I really want to continue working on this myself, but life has come up and I just don't have the time. But it is pretty cool and exciting that there is a legitimate path forward now for the Zune 30 - one that I've been interested in identifying for like 20 years and finally here we are.
Random thoughts:
- The Zune 30 was hilariously rushed to market - the firmware even still has references to the Gigabeat in it.
- I am not sharing the source code publicly because a lot of it is legitimately copy/paste of the Freescale iMX31 BSP code, and I'm not sure the copyright/distribution restrictions on that. There's also the "bypassing Microsoft security" side of things. I'm not looking for any lawsuits.
- I didn't get a chance at all to look through any of the gen 2 (xray) Zune code. Bonus points to anyone who can find any opportunities there!
4.life cam eup again and i cant even finish this post but that should be enough info to get yall started
=== EDIT ===
Please see https://www.reddit.com/r/Zune/s/owrhqP3AZb for why I am mistaken here, but that the opportunity is still there, just different than I thought. Again, lack of time on my part leads to half finished work, ideas, posts, and yes, checking!