Why I jailbroke (unlocked) an iPhone and How

First, the mini <rant>: F-U Apple & AT&T.    You pissed me off this weekend, and I’m a bloody self-admitted Apple fanboy!  Why on earth can’t I take an iPhone and yank the SIM chip and have an effective iPod Touch?  Why doesn’t this work?  Why do you force me to sign up for AT&T or brick the phone?  Why would you both do such a stupid, shortsighted, retarded, AT&T monopolistic thing.   It’s time for the federal government to once again break AT&T up into little bitty pieces that actually serve customers.     While I’m at it, WHY THE F@#& can’t I forward text messages from one phone to another???  I can auto-forward my phone calls, why can’t I forward text messages!  ARGH.  </rant>

Which brings me to the post.  Disclaimer….if you are from AT&T or Apple Legal, then be advised that this entire post is a work of fan fiction from one hell of an angry ‘fan’.


So I have this extra 2G iPhone lying around that was gathering dust (reason #1).   We like to keep it around as a backup, so selling it off on eBay was not an option.    Dagny is cute (reason #2) and always tries to play with our phones (reason #3).  In fact, Dagny has learned how to unlock an iPhone without missing a beat.  She’s so good at manipulating our iPhones that we can no longer let her near them (reason #4) (deleted apps, random dialed calls, removed contacts, etc).

I figured I would simply back up, then do a factory restore on this old 2G iPhone and hand the new baby rattle over.  Without a SIM card, Dagny couldn’t dial out, and who cares what else she did, ’cause I could just restore it over and over.    But that’s where AT&T and Apple screwed me and my toddler over.

AT&T Executives:  “Sorry, consumer.  That phone that you paid $200 for a few years ago is a stupid glass monolithic brick.  You don’t reallly own it…think of it more like an extended $60/month lease with a big down payment.  In it’s current state, it wouldn’t even interest a 6 month old.  Would you like to buy a data plan and a hefty 2 year contract?”

Me: “Screw you, AT&T and Apple.   I’m jailbreaking this thing so that my toddler can play with it the way Geek intended.  After all, the iPhone 2G is a marvelous baby rattle and a baby rattle needs no cell tower access!”

How I did it

Disclaimer:  This post is for informational purposes only….and might even be a work of fiction. Any instructions in here are merely illustrative of what one could do if one lived in a realm free of retarded government regulations, Bristol Palin and AT&T.  Don’t do anything illegal, okay, even if you own the device outright and want it to just f’ing work without needing a 2 year contract to a horrible service provider.

As of November 2010, unlocking a 2G iPhone took about a day of dedication, as the jailbreakers out there don’t actively support the older phones (e.g. the 2G iPhone).  I had to piece some things togther, but managed to get it done with a few tidbits of luck.   Those sneaky details are below.

Step 1:  Gather ye tools

You will need PwnageTool 3.1.5 (the 4.1 line doesn’t support the 2G).    I am told that google has said links to said torrents.  On the mac, Transmission.app is seemingly decent at getting ahold of torrent files.

You are also going to want a copy of the iPhone1,1_3.1.2_7D11_Restore.ipsw file.   The IPSW (iPhone SoftWare) file can also be found around the net.  You could use 3.1.3, but I stuck with 3.1.2 out of blind luck and stubborness.  PwnageTool will take this off-the-shelf .ipsw file and create a custom one capable of unlocking your iPhone.

Step 2: Create your custom .ipsw file

I then followed a great post on iClarified on how to use pwnagetool to unlock your 2G iPhone. The most important step here is to use the Expert setting and make sure that openSSH is installed with Cydia.   We’re going to need this later to fix some Cydia crap.   I eventually learned that Cydia is like the AppStore for unlocked iPhones, there’s a lot of cool free and paid stuff in there, and it serves as a sort of central distribution point for getting things on and off the unlocked phone.

While I was at it, I installed some other packages. However, not all packages work with 3.1.x and they won’t tell you this until too late, so be careful here.

Now, finish up and create your custom .ipsw file and save it where you can find it.

Step 3: Load your custom .ipsw file

Follow pwnagetools guide for getting your iPhone into DFU mode.  In this mode, iTunes will ask to restore the software, and that’s exactly what we want.   Once again, we’re following iClarified and their sweet post.

So, you’ll launch iTunes and it will ask you to restore the phone.  The little trick here is to hold the option (or “alt”) key down when you click the restore button.   This will get iTunes to ask you for the location to your custom .ipsw file.   Thanks for loading my hacked file onto the phone, iTunes.  You’re like a free piece of music software to me.

Step 4:  Allow your phone to do its thing

This isn’t really a step, but your phone will get all the bits onto it, then it will reboot (with the hacked pineapple logo from pwnagetool) and then it will upgrade stuff for a few minutes and then it will reboot again and you will have an unlocked phone in less time than it took to read this long runon and poorly structured sentence.

Step 5:  Now the fun begins

This is where the instructions leave off, and my possibly fictional help leads you to unlocked bliss.

First, get your wifi connection up and running (just as you normally would).

Second, launch the Cydia app that is on your phone.  It’s slow as a dog, but eventually should show something.    But when I tried to apply it’s upgrades or install packages, I would keep getting error messages, and this is where it got interesting. (If your Cydia app works fine at this point, then there is no reason to read further…)

After much stumbling, re-installing of the .ipsw file, re-tweaking of the installed packages, etc….I pieced together some posts and figured out a sequence of events that mostly worked.

Step 6: Getting Cydia and installed packages to work

First, SSH into your device.  (Under your iPhone settings, to to WiFi and figure out your iPhone’s IP address).  On your mac, launch Terminal.app and type ssh root@my.ip.add.ress

Your terminal will freeze for minutes as the iPhone generates a series of ssh keys.   Eventually you will be asked to accept the fingerprint of the iPhone, and you obviously agree.

The password for this version of pwnagetool/cydia is alpine.  (You can change it from your iPhone’s command line by using the passwd command).

Wow…..you’re in!   If you’re a geek, you are excited by the fact that you are on the command line of your iPhone.   If you’re not a geek, you may never get this far, or are pissed off at having to type commands to get simple things to actually happen

On the command line of the iPhone:

  • su to get to root access
  • dpkg –configure -a to fix the messed up package system
  • apt-get update
  • apt-get install cydia (or  apt-get install cydia –fix-missing)
  • apt-get upgrade

But that didn’t seem to work completely for me.  I kept getting errors from other packages.  The super secret trick.

  • cd /usr/sbin
  • ls -a check to see if there is a file “nvram”.  Most likely it isn’t there
  • touch nvram create a file that apparently was missing in the first place
  • apt-get -f install
  • apt-get -f update
  • apt-get -f upgrade

That did it.   By creating the nvram file, I was able to re-run the other commands and get them to work.  If the “dpkg –configure -a” command still doesn’t work, you may have to remove some packages that aren’t compatible.  At this point, “apt-get install cydia” should work as well.

Step 7:  Final tweaks

I was still getting some Cydia issues when starting the app.  It would get stuck on some repositories, and make the app almost unusable (Dear Cydia, your timeouts are too long.)   First, try to figure out what repositories are not responding (Cydia will typically pop up an error message with the link names that failed).

Now, fire up Terminal.app and SSH into your iPhone.  On the iPhone’s command line:

  • cd /etc/apt/sources.list.d/
  • Depending on the version of Cydia, you will either see one file (“Cydia.list”) or several files.  I had to go through each of the files (using either “more” or “less”) to find the repository in question.
  • rm name-of-file to get rid of it.

Once you re-open/re-launch Cydia, it should no longer look for the repository you just removed.

Living with the jailbroken Baby Rattle

Dagny just loves her new phone.  However, we learned two things quickly.

  1. We desperately needed a soft case on the phone to keep her from chewing on the metal/glass.
  2. Once we give the phone to her to play with….. we don’t get it back!

Making the baby rattle better

I immediately signed Dagny up (using a junk email address) for an iTunes account without a secured credit card).  That enabled us/her to download free apps, like Animal Sounds Free and other age appropriate tidbits.

I also took a little Daddy time and played with Cydia and some of the nice apps out there.  After all, if I can be interested enough to play with a baby rattle, it’s a pretty fun baby rattle.  Note that there are some Cydia apps that supposedly enable backups of unlocked apps to be downloaded through iTunes — this should make restoring a bit easier should something go awry.

Keeping the rattle jailbroken

Once I had Cydia fixed and things stable, I immediately made a backup through iTunes.   Hopefully this will provide a parachute for when Dagny inevitably messes up some key setting.

That said, I also plan to never allow iTunes to upgrade the firmware on the iPhone. This is key to keep things unlocked.

Wrapping it up

Sorry if this wasn’t the most complete tutorial, and I hope soembody finds the last few command line tidbits useful.   After all (1) this isn’t a bad way to get some utility out of an older backup phone that you might have lying around and (2) it was kind of a fun side project.

Great Balls of Tea — Details of Spherification


A recent order to the Spice House (www.thespicehouse.com) had me excited.  Not only did they have some smoked paprika and powdered sumac (good on top of humus), they also had odds and ends for molecular gastronomy.   In case you don’t know what that means, it’s the hoity-toity way of saying doing a little chemistry with your food to create unusual effects.  Candy making is molecular gastronomy based around sugar and it’s behavior at certain temperatures.

One of the most notable effects from this “rockstar” chef movement is Spherification.   I’ll warn you that I’m no expert and definitely not a historian on this manner.  In fact, apart from seeing it done on Iron Chef now and then, I’ve only been served spheres in a restaurant one time and it was not even that memorable.

But I wanted to give it a try — so I bought some stuff for making balls (er….spheres).

Spice House offers excellent small-sized bottles for spherification.

As I mentioned earlier, Spice House offers small-sized amounts of Calcium Salt and Sodium Alginate.  Quantities sized right to get started, and the ingredients are food grade (so not from some scary chemistry shop where they may be tainted with ferric chloride, cyanides and other nasty not-so-edible chemicals).

Why write a post about my balls?

My stuff showed up just in time for some weekend play — but now what?   I trolled the web, but couldn’t find any straightforward explanations or recipes.  How much do I mix in?  How do I make the drops?  What are some basic tell tale signs.   Give me some range of expectations a la Good Eats so that I can tune in my spheres and get this process working.

I gave up on the internets and started playing and making my own notes.  What follows are my experiences from a weekend day of playing around with little alginate balls.

The Process

I didn’t make that much of a matrix, as I was basically trying to dial it in (and my 9 month old can only handle being ignored for so long).   The great part, though, is that I was able to use things that are readily available to any home cook.  Oh, and I took lots of notes of both the successes and the failures.

The Solutions

To make spheres, you drop one solution into the other.  Typically, the flavored ingredient is mixed with Sodium Alginate and dropped into a solution of Calcium Salt.  Through some chemical magic, drops turn into little spheres with a harder outer coating and a soft liquid gel like inside.  Properly done, the little spheres pop in your mouth like caviar and release tastiness on your palette.

Ca:Salt Solution

The Calcium Salt solution is easy to make up.  In my case, I just used room temperature tap water (our tap water is tasty good) and whisked in a small amount of Ca to dissolve.

Sodium Alginate Solution

The sodium alginate solution is a little more tricky.   For this set of experiments, I made spheres using sweet tea (thanks, Steph).  I figured it was a good basic starting point, as it is failrly neutral in acidity and we plenty of it to work with.

The problem with the alginate lies in actually mixing it together (emulsifying).   I first tried room temperature sweet tea and a whisk.   This just made clumps, which don’t work and are not good eats.

The answer: I popped the clumpy mixture into the microwave for 30 seconds and took it just shy of a boil — voila, the sodium alginate clumps broke apart and a whisk finished the job.    The resulitng liquid was fairly bubble free and slightly thicker (think maple syrup).

Another method of emulsification that I have read about and tried is to use a hand stick blender.  This is an aggressive approach and definintely worked at emulsifying the liquid.  However, it also seemed to incorporate lots of bubles and it loosened up the liquid considerably.  Using the hand blender, I needed more alginate per liquid volume in order to achieve the desired thickness.  Also count on a period of rest (or hook up your shop vac and a home made bell jar) to de-air your mixture.

The Dropping methods

Everywhere I looked online people used various tools to create the drops that create the little spheres.  You can use a toothpick or a spoon or a syringe.   As I worked with the various methods, I quickly developed opinions — which I will share with you below:


Good for initial testing of your solutions to see if they will sphereize.   Terrible for creating large amounts of balls — 1 ball every 5 seconds is pretty maddening.   Also ends up creating somewhat inconsistent ball sizes, depending on how much the solution clings to the toothpick.


Very uncontrolled.  Pretty much useless for creating spheres.   You can create noodles and spermy looking shapes, however.

Here are the 3 dropping tools I attempted to use. A small eye-dropper type bottle on the left, a more expensive version on the right and a syringe front and center.


Maybe I had a low quality syringe, or too small a syringe.  I had a devil of a time creating consistent drop after drop.  Instead, the syringe would clog now and then and I would end up spraying out some alginate solution into a rats-nest in the calcium salt.   Taking in a little air into the syringe helped a little bit with constant pressure against the alginate solution.  Either way, I was not fond of the syringe method.    The best use of the syringe was to cleanly fill up the dropper bottles.

Dropper Bottle

After getting frustrated with the syringe, I tried 2 different dropper bottles.  Both of these worked many times better than the syringe.  They created consistent sized drops and did so very very quickly.  The second dropper bottle was able to create 100’s of droplets in a minute!   A good dropper bottle is easy to fill and the nozzle won’t clog with alginate.   Too tight a nozzle and and the alginate eventually gums up the orifice and you can’t make spheres anymore.      In the end, I used a syringe to cleanly fill a dropper bottle and unleash a batch of droplets into the calcium salt solution.

Example dropper bottles that I tried:

  • (dropper bottle in picture on right) VWR International:  16354-400   $80 for qty 12
  • Low density VWR International 46300-592 or larger (46300-594 is 8oz),  $33 for qty 25

The other nice thing about the dropper bottles, is you can cap them and store your alginate solution for up-to-the-minute use.   One important note about spheres is to not keep them sitting around too long. After about 30 mintues or so they eventually go “stale” and harden up into solid balls — not nearly as texturally interesting as caviar-like spheres.

More Detailed Notes And Quantities

Alginate solution on the left and calcium salt solution on the right -- we're ready to make some balls.

Below are my notes on the solutions and mixes and results.  After trying to weigh out the ingredients on a precision scale, I gave up — how many of us actually have scales in our kitchen accurate enough to measure fractions of an ounce (or just a couple of grams).  In this case, volumetric measurement is going to be more reliable and more available to the standard home cook.

Sodium Alginate Solutions

Sodium Alginate was added to the room temperature sweet tea, but since it faield to dissolve, the mixture was heated in the microwave for 30s – 1 min (just shy of boiling) and whisked to emulsify.

Solution                  Sweet Tea                   Sodium Alginate

A                                   1 oz                                1/8 tsp

B                                   2 oz                                1/8 tsp

C                                   2 oz                                3/16 tsp

D                                  3 oz                                 1/4 tsp

Calcium Salt Solutions

Calcium Salt was added to cool tap water and dissolved with a whisk.

Solution                       Water                            Calcium Salt

1                                  8 oz                                 1/2 tsp

2                                  4 oz                                  1/2 tsp

3                                  8 oz                                  1/4 tsp

Results and Notes

In the following section, we’ll refer to the solutions above.   Obviously, “A1” means sodium alginate solution “A” dropped into calcium salt solution “1”

Red food coloring and simple syrup make these early spheres visually pop off the plate.

A1 Observations

  • Time in Solutions:
    • Drops 1 minute in solution were a little soft, but hardened up a little after sitting.
    • 3 minutes in solution was perfect
    • 4 minutes in solution was a little too hard
  • Solution Notes:
    • Use a little less alginate, the “A” solution was noticeably thicker — almost mayonaisse.
    • Probably could use some more calcium salt since it took so long in solution
    • There was not an excessive salt flavor from the calcium.
  • Syringe Notes:
    • I used the syringe + louver, and got about 3mm drops, but the syringe kept clogging
    • Once I got some air in the syringe behind the alginate solution and it helped with consistency.
  • After 30 minutes of standing by, the spheres were still edible

B2 Observations

  • Solutions Notes:
    • The Calcium saltwater was quite strong
    • Not enough alginate to form a ball
    • Very strong resigual Ca:Salt on spheres….must be rinsed well
  • Drop does not really penetrate surface of the water to make a sphere…instead it sits on surface and additional drops glom on.

A mound of perfectly popping prismatic sweet tea spheres sits on a white plate. Super tasty and sweet!

C2 Observations

  • This combination worked pretty well.
  • Some balls were solid however, way more than A1 — this is not as appetizing
  • Solution Notes
    • Required less soak time than A1
    • The #2 salt solution definitely needs a good rinse.
  • Dropper Notes:
    • Used the dropper bottle (“methonal bottle”)   VWR International:  16354-400
    • This was great for a consistent drop size, although if the alginate solution gets too thick it can sometimes clog.
    • Used the syringe to cleanly fill the dropper bottle.   This worked really well.

D3 Observations

  • Time in Solutions:
    • After 1 minute in the Ca:Salt solution, the spheres were nice and delicate with a good outer layer and  a snap when you bite into them.  Perfect mix for our sweet tea spheres.
  • Solution Notes:
    • Alginate needed to heat or brought to boil for faster/easier emulsification
  • The drops enter the water almost toroid shaped but did sphereize.
  • Dropper Notes:
    • Tried a different dropper bottle (like a visene eye-dropper). Although a little more difficult to fill, it did NOT clog.  It also generated dozens of spheres quickly — just squeeze.
  • Stayed good for 5 minutes (easily) after pulled out and rinsed and dried.

Other Notes and Findings


Drying these little buggers is in itself an art.   I tried a couple of ways, but by far the easiest was to spread them out on a paper towel in a single layer and cover with a paper towel and slowly roll the balls between the two layers.   The other method is to creeate a “sling” out of a few paper towels and kind of toss the balls around inside the sling.

Spheres, balls, everywhere. Watch out -- these guys know how to roll!

Balls Everywhere

Expect to find and lose balls everywhere.  Once loose, they roll….and because of their size and transparent quality, they can be extremely difficult to find.


Serve as a presenation note on the side.   I’ve served in leiue of sauce on top of fish (think parsley puree spheres with a good touch of salt as a high note on top of salmon).    Concentrated flavors and colors work well.

Tastes for Serving

For saucing or as a side note, think big bold flavors.  The spheres are small and you want them to pop and release bundles of joy.   I made a nice parsley sauce which, when over-salted, produced a wonderful topping for fist.   Blueberry juice is a little weak, but blueberry preserves thinned with water carries a good punch of flavor.

Other Hints

Mix up your alginate and drop all of your balls at once into the Ca:Salt.  Insead of trying to fish spheres out of the Ca:Salt, just pour the entire Ca:Salt solution out and into a strainer.

3oz of alginate solution is a LOT of spheres.   Easily enough as a side note on plates for 4 people.

I tried using a scale to measure ingredients, but this proved frustrating, as most scales simply cannot handle small fractions of an ounce (or gram) quantitiies accurately.


If the drops sit on top and do not sphereize, then there is a likelihood that you don’ thave enough soldium alginate.   If, after a minute, the balls are still too fragile, up the calcium salt solution.

Next Steps

So what next?

Well, I’ve made some great spheres using a celery salty sauce and put this on broiled salmon – but I used the hand stick blender to emulsify the alginate and it took far more alginate than expected.   So clearly, there are some variables at play.   Perhaps I need to buy a pH meter and do some work with acidity and quantity other variables.

The metric that seems key, but is the hardest to quantitatively measure, is the viscosity of the alginate solution.  This is definitely a case where having some experience regarding what to expect and mixing it by eye may be easier.

January, 2005 Updates


Just cranking on the site. I hope to have My Night In The Hospital up really soon…(it’s next). I figure I’d post it in the rants section.


Attendance was 7,000…good game, some great fights (I miss hockey!!!). The Stealth ended up losing, but the good news was that the Spy Girls weren’t around to belittle the sport of lacrosse.


Added the Firmware Code today. Going to see the San Jose Stealth tonight for their opening night. With no more NHL, Lacrosse is a good second fix. Trouble is, I don’t think Lacrosse is here to stay. Opening night and there are PLENTY of available tickets….heck, they aren’t even opening up the upper level yet. Looks like it’s going to be an empty arena.

Wedding Board Update

Here’s an awesome photo of an open board with 7 pegs in each of the 7 color modes. And here is another picture showing the top and the power switch.

The Pegs for The Wedding Board were quite the work. To this date, over 100 Pegs have been constructed in various forms. They turned out to be quite the development board for the Atmel ATTiny12 microcontroller. Here is a closeup of the microcontroller side of the Peg. This PCB is small enough to fit inside an RCA plug and still have room on the back side for an ISP connector.

The Pegs are “programmed” through power cycling numerous times at a fairly rapid rate. Although possible to do by hand, a “Programmer Board” was included with The Wedding Board. In addition to being able to simultaneously program 3 pegs, there’s a mode-chart, a mode selection switch and a push-to-program button. Here is the “Programmer Board” photo.

Still confused what this all does??? I put together several videos. Head to the Wedding Board area, or go directly to the Movies section.

Cribbage Board #10 Completed!

I am pleased to announce the completion of Cribbage Board #10. It has taken 3.5 years of hard work and dedication.

The first completed Wedding Board was “shipped” on 4/16. The second was “shipped” on 6/12. Documentation was assembled and completed on 6/25 (for a design contest).

Check back soon for more pictures and documents and videos of the completed Wedding Boards.

Thanks to all those that have helped and offered support along the way (especially Steph…for thousands of reasons).

Special thanks to:

  • Shannon Gomes (firmware)
  • Stan Haladus (CNC metalwork).