To set up build environment
Executables for cross-compiling are stored in:
And the PATH can be set with:
arm-angstrom-linux-gnueabi-g++ cgi.cpp vfatregister.cpp vfatedit.cpp vfati2c.cpp -o vfat$i.cgi -lcgicc
And if you need to link against cgicc (for web interfaces) add both of the arguments
Flashing the gumstix
Serial Com using Macbook USB
I was able to use the USB port of my Macbook pro to communicate with the Gumstix using a USB to serial cable and a serial adapter plugged into the gumstix board.
Minicom and the Virtual comport driver were two pieces of software I needed to install on the Macbook.
The first software was a Virtual COM port dirver available at
after installing I restarted the Macbook and found the following file had been installed
bash-3.2$ ls /dev/tty.usb* /dev/tty.usbserial-FTC9IF6E
The next step was to install minicom. Minicom was easy if you have already install MacPorts. The command is
sudo port install Minicom
You now need to set the port driver location within minicom using the -s switch
speed baud parity and stop bit = 115200 8N1
- The driver only shows up if the USB-Serial cable is plugged in. You don't need something plugged into the serial port.
If the Gumstix won't boot, you can (rather slowly) flash the filesystem over serial.
If the gumstix will boot, then flashing from RAM disk over ssh is faster, but if the process fails or gets interrupted you'll have to fall back on the serial method. Remounting the filesystem read-only may not work, and the whole processed failed. Reflash over ssh
Changes necessary from the default image
Boa is a webserver designed for small/embedded platforms
In /etc/boa/boa.conf change the following lines:
|#ServerName www.your.org.here||ServerName gumstix|
|ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/||ScriptAlias /cgi-bin/ /var/www/cgi-bin/|
Stop and then start boa with:
/etc/init.d/boa stop /etc/init.d/boa start
Add the following files
These are the files for the cgicc (C++ cgi script) library. Copy from the bitbake to the /usr/lib/ directory
Install additional packages
ipkg install libstdc++6
Programs that run I2C directly need to be suid as root so they have permissions to make I2C system calls.
chown root ./vfat*.cgi chmod u+s ./vfat*.cgi
Add home PATH
Make a file in /etc/profile.d/ that contains the following:
#!/bin/sh export PATH=$PATH/home/root/bin: