Slashdot Mirror


Piezo-Acoustic iPod Hack

jugander writes "nilss over at the iPodLinux Project (previously on /.) has performed one of the coolest and most bizzare hacks I've seen in a while. He was able to extract the bootloader from the 4G iPod by sounding out ticks with the iPod's squeaky piezo. With some tweaking and a makeshift recording studio, he was able to dump the 64 kb file at 5 bytes/sec. And yes, this means that 4G iPods can now boot linux!"

14 of 397 comments (clear)

  1. piezo? by puck01 · · Score: 5, Interesting

    I was curious was a piezo is. I found this explanation:


    Short for piezoelectricity or piezoelectric effect. Piezoelectricity is an electric charge that occurs in some substances when they are squeezed or otherwise subjected to mechanical stress. It is also possible to cause these materials to vibrate when a voltage is applied to them. Quartz is one of the better known piezoelectric materials, and is commonly fabricated into small pieces, called "crystals" that are used for frequency standards. A crystal of specific size and shape will vibrate at a predictable and very stable rate when a voltage is applied. This makes them ideal for use in things like watches or clocks for digital audio equipment. Piezoelectric elements have also been used various types of transducers such as phonograph cartridges, microphones and loudspeakers. Piezo microphones can be quite small and still have relatively high output at a low cost; however, their less than ideal frequency response prohibits use in critical applications. Piezo loudspeakers usually come in the form of tweeters, or very high frequency elements. They generally have very low distortion in the 5 kHz and above range, but haven't widely been used in sound reinforcement due in part to their relatively low output levels. It takes dozens of the average piezo tweeter to equal the output of one medium-sized compression driver



    I'm still confused (and I did RTFA) how the bits of the bootloader were translated to sound. Anyone care to explain?

  2. Clever hack by cyberfunk2 · · Score: 3, Interesting

    This is a truely clever hack, I'm glad I donated money to these guys for a new 4G ipod.. now my ipod can run linux !

    Sweetness !

  3. Hehee. Just like loading off a Cassette tape :) by MajorDick · · Score: 4, Interesting

    This is slick, everything old is new again ? Reminds me of loading Adventure on my Apple II

    Data transmission via acoustics is certainly nothing new, but getting something OUT thats not meant to be exposed on a MODERN device this way is just too cool.

    Right now there are MANY P'o'd execs at Apple, and a bunch of engineers going crap (but quietly thinking man is this cool)

    I wonder how many other things this can be applied to , for reverse engineering of bootloaders, roms, etc.

    I would have fried a dozen gamecubes 2 years ago trying this method had I been given the idea then, (Yeah I know all the goofy bootloader stuff NOW in the last 6 months ) for GC is out,

    KUDOS, now I might actually buy one.

    1. Re:Hehee. Just like loading off a Cassette tape :) by rcpitt · · Score: 2, Interesting
      The other way is to make the CPU and related circuitry "talk" via an AM radio sitting by the case. Of course back when the CPU was 2-4MHz this was easy as this was within only a few harmonics of the band - but at the near and beyond GHZ this might be a bit problematic.

      And then there was playing the 1812 on the chain printer... but that's a different story ;)

      --
      Been there, done that, paid for the T-shirt
      and didn't get it
    2. Re:Hehee. Just like loading off a Cassette tape :) by Catbeller · · Score: 2, Interesting

      "Why ? the beancounters and deadweight,,,, uhh managment for the most part have no clue what really make things tick. Now Jobs or the like are probably thee ones who would get it , and may be kind enough to run interference for the engineers...yeah right..."

      I've a feeling Jobs has been running interference for The Rest of Us for quite a long time now. He's playing the record industry, stockholders, and the movie industry in a carefully planned game that will break the way we used to do a lot of things. He's a sneaky one. Jobs is the ultimate Undercover Hippy -- a man who absorbed counterculture values when he was young, and has grown up looking and acting mainstream while plotting revolution :) He's the guy who's made friends with the Kings and Princes for decades, and when he finally gets to stand in back of the throne... in goes the knife...

  4. I did something like this.. by Tjoppen · · Score: 3, Interesting

    I have fiddled a little bit with similar stuff.. Transmitting data via sound.
    Basically I made a program that analyzes(FFT-ish) whatever comes in through the mic.
    The sent data was beeps at 375Hz(zero) and 1500Hz(one). I was able to recieve data from a range of ~5m at around 50bps. In real-time no less.

    As an added bonus it annoyed the hell out of my roommates(beepbeepboopboopbeep..)

  5. blindPod? by Doc+Ruby · · Score: 2, Interesting

    I read the Googlecached story, karmawhored into this thread. It seems he kept the Apple bootloader, but rewrote the iPod "OS" with Linux. Then wrote a program to cat the stored bootloader to the piezo speaker, recorded that, then decoded the audio back to its bits - revealing the bootloader bit image.

    Clever, but necessary? Does iPod Linux not give HW access for sending data over the iPod Firewire? If he can strobe the speaker, can't he strobe the headphone jack, for better fidelity and bandwidth? I understand the esthetics of this goofy, clever hack - worth doing even if just for the sake of weirdness. But was it necessary?

    --

    --
    make install -not war

  6. Re:Does this mean? by ryanr · · Score: 2, Interesting

    The newer iPods (the ones in this article) have at least twice as much CPU power. So, the Ogg question may be worth revisiting.

  7. Something I'd like to see... by Announcer · · Score: 2, Interesting

    I'm sure plenty of users here have used WinAmp over the years. You've probably also used any number of different "plugins" for it. Some of my favorites are the ones that do "AGC" (Automatic Gain Control) on the playback audio. The better ones have settings for attack/release, min/max gain, etc. This process works to keep the playback volume relatively constant: Quiet passages are brought up, loud ones reduced.

    It would be cool if the iPod/Linux software could incorporate such functionality, along with some of the other features of WinAmp, like the M3U playlists, etc. Imagine dumping your entire MP3 library AND WinAmp playlist(s) into the thing, then calling up the WinAmp emulator in Linux, and enjoying the crossfaded,random,volume-equalized music until the batteries croak.

    --
    Willie...
  8. No iPod have been bricked, it's dual boot by Amgine007 · · Score: 5, Interesting

    is it worth 400$ and the possiblity of bricking it to get a less that ipod quality mp3 player?

    You can't see it now, but the iPod linunx site states clearly that, to their knowledge, no one has bricked an iPod due to installing iPodLinux on it -- even since the long-ago development days.

    In fact, iPodLinux's installer sets it up so you can dual boot into Linux and the Apple firmware, and you can make one the default. I installed this on my 1G and the other day, and it indeed works very, very easily. It is one of the more underrated hacks going on today, IMO.

    Its sweet but does it ahve a point?

    To satisfy your slashdotty interests: imagine you and a friend have iPods, and imagine you connect them with a firewire cable. You both boot into linux, transfer files, and reboot (back in to the Apple firmware). The use is left as an exercise to the hacker.

  9. Not really by darco · · Score: 2, Interesting

    Meh, not really because he isn't doing any modulation or demodulation. He is simply playing one sound if the bit is on, and another sound if the bit is off. This is very slow, but in this case it was the "The right tool for the job".

    A true modem encodes data somewhat differently.

    http://www.wikipedia.org/wiki/Modem

    --
    — darco
  10. Re:Yup by Xyrus · · Score: 5, Interesting

    Reminds of how I dumped the gameboy advance rom. You wouldn't access the rom memory directly no matter what you did. However, that didn't stop you from using the video interrupts with a pointer at location zero. :)

    And even more related, you could do the same thing with the sound registers, except that you could get a hardware buffer instead of interpreting the sounds.

    ~X~

    --
    ~X~
  11. Bizarre! HURMMPH! by smchris · · Score: 2, Interesting

    I'll have that young whippersnapper know that those of us who loaded up our home computers from cassette tape recorders could tell by the volume whether we would get a good load and even learn to tell when the load was about done for specific programs.

  12. Done something similar by wtarreau · · Score: 5, Interesting

    On an old computer 15 years ago (it was not really a PC yet), I had no sound output and wanted to experiment with sound processing. so I used the 5" floppy drive's LED which I could blink up to about 100 kHz, in front of which I put a photodiode connected to my amplifier's input. I had to turn of the lights to remove the 50 Hz background noise, but then I could hear the sounds really well. I even played using a PWM code to be able to output analogue levels.

    It was funny to do all this when computers were not as equipped as they are today. Now we're just users and nothing more.