OpenMoko

From Cerebro Project

Jump to: navigation, search
OpenMoko
OpenMoko

This page is about work with the OpenMoko platform.

Thanks to [Stefanie Tellex] for contributing to these notes.

Contents

Python

I need several packages. Starting with an update:

opkg update

Then:

opkg install python-core python-pygtk python-pycairo python-pygobject python-crypt python-codecs

and finally dbus:

opkg install http://static.frimp.net/neo/python-dbus_0.81.1-ml1_armv4t.ipk

copy files from a regular python installation:

scp /usr/lib/python2.5/textwrap.py root@192.168.0.202:/usr/lib/python2.5/
scp /usr/lib/python2.5/optparse.py root@192.168.0.202:/usr/lib/python2.5/
scp /usr/lib/python2.5/urllib.py root@192.168.0.202:/usr/lib/python2.5/
scp /usr/lib/python2.5/urlparse.py root@192.168.0.202:/usr/lib/python2.5/
scp /usr/lib/python2.5/sha.py root@192.168.0.202:/usr/lib/python2.5/
scp /usr/lib/python2.5/hashlib.py root@192.168.0.202:/usr/lib/python2.5/
scp /usr/lib/python2.5/py_compile.py root@192.168.0.202:/usr/lib/python2.5/
scp /usr/lib/python2.5/unittest.py root@192.168.0.202:/usr/lib/python2.5/
scp /usr/lib/python2.5/codecs.py root@192.168.0.202:/usr/lib/python2.5/

Adding TK

opkg install python-tk tk python-etk

Getting json support

wget http://deron.meranda.us/python/demjson/demjson-1.3/demjson.py

Flashing

First I flashed it from this url:

http://buildhost.openmoko.org/snapshots/2007.11/images/neo1973/


USB networking

Then I did black magic to get the USB stuff working:

http://wiki.openmoko.org/wiki/USB_Networking


Install MicroSD

Then I installed the micro SD card and set up package management to go to the card

http://wiki.openmoko.org/wiki/Package_management


GPS

http://lists.openmoko.org/pipermail/community/2007-November/011916.html (When I got gllin working, I went outside and grabbed the GPS data, and came back and we looked at the results together.)


Then gpsd (pyroute talks to this):

ipkg install gpsd

And I put this line in /etc/default/gpsd: GPS_DEV="/tmp/nmeaNP"


Then when you run gllin, and /etc/init.d/gpsd start, gpspipe -r works.


Then I got gpscat working:

ipkg install -d card python-terminal
ipkg install -d card python-curses
ipkg install -d card python-pygps

But that wasn't very rewarding because it just showed the same stuff as "cat /tmp/nmeaNP"


Then I put the pyroute svn latest on the device (in /media/card/stefie10) http://wiki.openstreetmap.org/index.php/Pyroute

ipkg install -d card python-netclient
ipkg install -d card python-xml
ipkg install -d card python-html

I got the names of these packages by running python gui.py in pyroute and guessing. They might not all be necessary.


ipkg search should have been helpful but wasn't. I haven't yet gotten pyroute working.


Here are instructions for bluetooth http://wiki.openmoko.org/wiki/Manually_using_Bluetooth


You have to configure the server's network device *AFTER* the client connects. Their instructions were not clear about that. Also I had to mess with my firewall to make it work.


I had to run iptables explicitly rather than following the debian instructions.

iptables -I INPUT 1 -s 10.0.0.2 -j ACCEPT
iptables -I OUTPUT 1 -s 10.0.0.1 -j ACCEPT
iptables -A POSTROUTING -t nat -j MASQUERADE -s 10.0.0.0/24


Extra stuff in the micro SD card:

ipkg install -d card python-core

I also did the ipkg-link stuff described in the Package_management page. The instructions aren't clear about whether you have to redo ipkg_link when you install more packages to the card.


Finally I made a "/media/card/stefie10" as a scratch space.


Resources

Getting Started

Python

SMS

GSM

GPS

Personal tools