OpenMoko Wiki Face + Late OM Indoctrination

Updated September 10, 2007 @ 3:12 am

NOTE: I’m writing this post as I go through updating my OpenMoko, so it is a bit of a narrative journey…please bear with me…

I’ve spent some time helping to advocate OpenMoko, pushing on some various projects like liblicense at Creative Commons, which is to help get licensing into the desktop for devices like the OLPC and OpenMoko, and believe it or not, I’ve stayed out of the down-n-dirty software hacking of either OLPC or OpenMoko. Today though I got an itch to burn some time (that I don’t have) on getting my OpenMoko up to date…I’ve had it with my crappy T-Mobile Dash!!!

First thing is I went to the OpenMoko wikit and first ran into the nastay web of information, and got stuck there first to clean up the main wiki page with a nice clean table approach that Ryan Lerch has done on Open Clip Art Library and Inkscape, and I have copied lots of places since.

I next went to the Getting Started page, which led me to where I needed to be, the USB Networking page. From here, I found that I needed to setup iptables on my gentoo box (I call it futurebox…) and just use ScaredyCat’s gta01 connection script. So, that is simple and everything. After all this, I can now just run ./gta01 on my system, then boot up the OpenMoko (GTA01B_V4), and then ssh root@192.168.0.202 and just hit enter once the password is asked, since there is none!

Then, I expected to get my OpenMoko all up to speed, since I met a nice OpenMoko dev in Taiwan who flashed my phone to a semi-new OpenMoko image. I ran:

ipkg update && ipkg upgrade

And, rebooted the device and bam, looks ike the distro dies on starting up matchbox on the neo daemon and some other problems with the recent package updates :(

So, I hopped over into the #openmoko chat channel and asked around for some questions, which Rod Whitby so graciously answered. While it seems that the OpenMoko-specific code in the distribution, Angstrom, has some broken code committed to it, from the likes of my update, I’m not convinced of this (and didn’t look deep enough to talk about this affirmatively).

Regardless, the status update of how to get your OpenMoko working as a phone with the latest builds, seems to be these steps outlined by Rod Whitby:

Here’s my recipe for current image boot and gsm registration success:

1) Get into u-boot console by stopping the bootloader with the AUX
button and using ttyACM0 on the host. Remove “console=ttyACM0,115200″
from bootargs_base

(This tip from Harald in http ://bugzilla.openmoko.org/cgi-bin/bugzilla/show_bug.cgi?id=788#c10)

2) ipkg upgrade from buildhost to the latest versions of all packages.
(You might need to ipkg remove -force-depends libmokojournal2 and ipkg
install libmokojournal2-0 if your starting from a very old rootfs)

3) Build and install from SVN revision 2946 for openmoko-dialer2 (this
revision fixes a bug which stops you from being able to dial).

4) Restart gsmd in /etc/matchbox/session

5) You can also comment out the “load-sample startup” line from
/etc/pulse/session if you need to not have the reboot wake up your 2yr
old daughter …

Yes, that’s the current state of the GTA01 software – you have to go
through all these hoops just to be able to reliably make a phone call
after boot.

– Rod

I’m not writing this to complain, but am hopeful that the OpenMoko team and any contributors have their sites locked on these key ideas:

  • Never commit broken code to the development tree, esp. don’t pull this into a distribution. Make this the law.
  • Get the key goal of your project accomplished as fast as possible. For OpenMoko I would say this is to make a phone call (Yes, could argue that just getting ssh access is key, but I think getting this thing to be a useful phone is key to integrating into all developers and peoples lives…the more people using it as a phone, the more people who will hack on it)

Ok, I didn’t have enough time to do Rod’s method to get my Moko working, so that means I’m back up to my neck in more CC work and not more time on all my other projects for a few. Hopefully though when I come up for air again, I’ll get my OpenMoko working as a phone and chuck all these other junk phones out the window.

9 Comments »

  1. [...] Share This Originally from OpenMoko Wiki Face + Late OM Indoctrination (1 votes, average: 5 out of 5) [...]

    Pingback by Overlap.org » OpenMoko Wiki Face + Late OM Indoctrination — September 10, 2007 @ 3:26 am

  2. Yeah, it is pretty spectacular that they haven’t made it usable as a phone yet, so the bit about committing broken code (sadly) doesn’t surprise me. Lots of promise there- shame they seem to be missing out on some of the basics of good engineering practice and good community-building practice.

    Comment by Luis Villa — September 10, 2007 @ 6:45 am

  3. Yeah, I’m hopeful that they will adopt open company policies to help build the community up…I fear that there is too much noise right now, and there really needs to be some clarity gained to fix up things…simple things like how to make a phone call and just not committing borked code is a start, albeit a small one…

    I just don’t want to be negative because I want mine to really really work :)

    Comment by jon — September 11, 2007 @ 2:04 am

  4. Come on guys; the sky is not falling. The OpenMoko distro was only broken for a day or so. Turns out the problem was in the muxing of GSM and console on one serial port, as the Harald link above pointed out. Simple changes in /etc/init.d/gsm circumvent it. The new gsm script is checked in, and “ipkg update && ipkg upgrade” will pull it in.

    To get the “ipkg upgrade” to not hang the system as it tries to shut down the old gsm daemon before upgrading, you may want to manually edit /etc/init.d/gsm by adding:

    stty -F /dev/ttySAC0 -crtscts
    [ -n "$GSM_POW" ] && echo “0″ >$GSM_POW

    before the echo gsm in the “stop” section. Then upgrade. Then your openmoko will be fine (mine is).

    The software isn’t finished — but the team DOES understand software engineering.

    Comment by John Gilmore — September 13, 2007 @ 2:13 am

  5. Cool and thanks John for the pointer..yes, this did update everything, but now I can’t get the dialer to work…this is a most definite improvement…are there any tricks on getting the dialer to work? I”m just using my tmobile sim from my normal phone…

    Comment by jon — September 15, 2007 @ 1:11 pm

  6. [...] bit of time today trying to get my OpenMoko working, especially after prodding from some from my previous post and some inspiration from this great [...]

    Pingback by My OpenMoko Dialed! at rejon.org — September 16, 2007 @ 5:09 pm

  7. Thanks for the feedback, Jon, and without wanting to look like a nitpicker I would like to encourage you to separate the software distribution (OpenMoko) and the pieces of hardware that OpenMoko is designed for (Neo 1973 & Co).
    Constructions like “to get my Moko working” just sound a little odd in this light.

    Also, Angstrom is the part of the distribution that is *not* specific to OpenMoko but that’s just being nitty gritty now, I know. ;)

    Have a great day!

    Comment by Abraxa — September 27, 2007 @ 3:30 am

  8. Heya Abraxa, I will try to be separate, but to be honest, I think its more important that I shoot from the hip and try to represent what the common developer/user sees and understands. Branding wise, most will be even less picky than I, right? I personally think the distinction between openmoko and the neo 1973 is complicated…probably best to use similar branding across the board and or have study conducted to find out what ppl think, although I already have a grasp on that if someone wants to pay me to say ;) Cheers!

    Comment by jon — September 27, 2007 @ 12:44 pm

  9. Just did ipkg upgrade and noticed that step #3 shouldn’t be necessary anymore; openmoko-dialer2 r2976 is now available.

    Comment by Gabriel — October 8, 2007 @ 6:45 pm

RSS feed for comments on this post. TrackBack URL

Leave a comment

OR