User:Kronenpj
-=Xastir on OLPC=- !Introduction The OLPC is an AMD-powered laptop at 433MHz with 256MB memory and a 1GB flash drive. It has three USB ports, an integrated sound chip with microphone and headphone ports. It runs a modified version of Fedora Core Linux, currently at version 7.
This is plenty of computing power for running APRS. Since it's a Linux system, I've chosen my favorite APRS application: Xastir. However, satisfying the hardware prerequisites is one thing, making it run is another.
First a few prerequisite packages need to be installed, specifically:
^glib gtk+ libxml ))ImageMagick(( lesstif libXp shapelib lesstif-devel perl-GPS perl-XML-Simple and all associated dependencies.^ All these are available through yum install, e.g.: yum install glib gtk+ libxml ))ImageMagick(( lesstif libXp shapelib lesstif-devel perl-GPS perl-XML-Simple
Once installed, the RPM package I'm generating should install. This will have the capability to retrieve and display most maps Xastir supports, connect to the APRS-IS infrastructure. Most importantly, it will communicate with serial-port TNCs with a supported USB-to-Serial interface. If you already have a USB-to-serial adapter, support for it may or may not be included with the OLPC. Only three chipsets are enabled, CP2101, FTDI_SIO and PL2303. I, of course, don't have one of these but Linux does support many more. If you're in this boat, see the kernel parts of the next section.
However, one script will be missing: gpx2shape. The required Perl module is not available as an RPM and I haven't yet figured out how I want to work this problem. Also, because the resolution of the screen vs. the physical size of the screen is so large (200 dpi) text on Xastir is really really tiny. I haven't worked this one out either.
!Soundmodem as a TNC... Unfortunately, using the soundcard as an interface is much more difficult. And, of course, this was my intended use for the machine. So, I've started working out how this can be done as well. First, it involves modifying the kernel...
Steps I've worked out so far...
- Obtain a developer key.
- Obtain a suitable __OLPC__ kernel source RPM for your system. __NOTE: I have yet been unable to compile a kernel on the OLPC itself. Instead I've used a plain Fedore Core 7 system with good success.__
- Enable the following configuration options:
- CONFIG_HAMRADIO=y
- CONFIG_AX25=m
- CONFIG_AX25_DAMA_SLAVE=y
- CONFIG_MKISS=m
- Build the kernel RPMs.
- Install the kernel RPM.
- Enable the following configuration options:
- Obtain the source / binary RPMs for:
- libax25
- libax25-devel
- soundmodem
- ax25-tools (optional)
- ax25-apps (optional)
- Compile and/or install your selection of the above.
- Obtain the Xastir RPM (coming soon I hope) and install.
Now, while this sounds easy, it's wrought with difficulties. The kernel build is tricky because it should be done as an RPM, so the configuration file in the /usr/src/redhat/SOURCES directory must be modified. Then run rpmbuild -ba /usr/src/redhat/SPECS/olpc-2.6.spec.
The next bit is that soundmodem doesn't work properly. It crashes after decoding a packet. I haven't worked out why this occurs, mostly because I've been rebuilding the OS on my OLPC so much to get these directions correct.
More later & '73 -Paul N2KIQ