Archive for category Handhelds

Guile on a Ben NanoNote

Received a Ben NanoNote today. It is a really natty little device with a lot of potential.

My standard test on how hackable a device is involves getting Guile running. Anyway, it was pretty easy to accomplish this despite not using openWrt before.


root@BenNanoNote:~#
root@BenNanoNote:~# guile
guile> (map (lambda (x) (+ x 1)) '(1 2 3 4 5))
(2 3 4 5 6)
guile>

To install get the 3 xburst packages from here.

Happy Scheming!

Tags: ,

Scripting with Guile on Openmoko

Having Guile running on an embedded device is very powerful. You can add scripting capabilities to a C program and avoid some of the cross compilation -> deploy cycles by simply editing the script to change some functionality. As an example I have taken the code from the excellent introductory article Scripting with Guile. I packaged the code so that if you install the tarball or the ipk it will install both the binary and script to a suitable place.

Tarball: http://zedstar.org/tarballs/square-0.1.tar.gz

ipk: http://zedstar.org/ipk/square_0.1-r0_armv4t.ipk

After installing Guile do:

root@om-gta02 ~/ipks $ opkg install square_0.1-r0_armv4t.ipk
Installing square (0.1-r0) to root...
Configuring square
root@om-gta02 ~/ipks $ square
result of square is 49
result of square2 is 81

Tags: , ,

Guile on an Openmoko Freerunner

I recently got hold of a bunch of Openmoko Freerunners. I needed a distribution which installs to Flash (NAND) so I chose SHR.

I am very impressed how things have progressed especially in terms of being a phone!

Anyway, this gave me a chance to try out some Guile packages I built. If you have a recent version of SHR unstable the following should work:

http://zedstar.org/guile/

Happy Scheming!

Tags: , ,

Simple example of accessing gpsd from C code

Code:

http://zedstar.org/tarballs/gpstest-0.1.tar.gz

From the README:

A simple GLib based program which periodically reads coordinates from gpsd.

The logs directory contains a sample gps log which can be fed to gpsfake:

gpsfake 1334-N-20071129-GTA01-A3.log

Make sure gpsd is not running before attempting to run gpsfake.

The data was taken from a Neo 1973 in central London. It will take a moment
to start showing coordinates.

Tags: , ,

iPhone local search video

I made a video of searching my iPhone loaded with over 2000 PDFs from MIT’s OpenCourseWare. The search engine, Hyper Estraier,  is the same one used on gnu.org but running locally on the iPhone together with a local lighttpd web server. It performs very well and provides a nice way of accessing or iPhone when on your daily commute!

http://www.youtube.com/watch?v=MKKlkcZ6vYo

Tags: ,

Hyper Estraier + Xpdf tarball for the iPhone

I have not had time to look at packaging this but here is a tarball of the build which you can untar in the root directory. It will place everything in /opt/iphone

http://zedstar.org/tarballs/hyperestraier+xpdf.tgz

Tags:

Hyper Estraier on the iPhone

I managed to get Hyper Estraier running with lighttpd on my iPhone. This provides a nice way to load the device with documents and have a simple search interface for accessing them. It is part of a larger project I am working on. I will try and package it soon or simply release a tarball of the build.

Tags:

Hello world on the iPhone

I built the dev tools on my Ubuntu (Gutsy) machine and managed to get the classic “hello world” running. I need to build some autotools projects but this is a start!

packaging lighttpd for maemo the quick way

I needed to install lighttpd on my N810 but could not find a packaged version. I wanted to find the least painful way of solving this. I noticed that the OpenEmbedded (OE) project had a bitbake receipe for lighttpd. I already have OE running on my desktop so in theory I could edit local.conf to specify the correct machine and distribution and build the package. It sounded to good too be true but did in fact work. I replaced some OpenMoko specific settings in local.conf with the following:

MACHINE = "nokia800"
DISTRO = "chinook-compat"

and then simply issued the command “bitbake lighttpd” to generate a bunch of debs. Depending on how you configure lighttpd you will require a selection of modules. Everything is available here. Note, installing the debs gives some post install type errors relating to update-rc.d but everything will still run.

Poky Linux

I dug out my Sharp Zaurus and flashed it with Poky Linux. It has a really clean interface. I prefer it to OpenMoko in terms of simplicity. I was close to getting my wireless card talking to my Airport Extreme BS but gave up in the end. I need to read up on WPA.