Gumstix Development

Serial Port Communication:

Configuration Settings:
Baud Rate: 115,200
Data Bits: 8
Parity: None
Stop Bits: 1

Using Ubuntu to connect to serial port on Gumstix:

Install Serial Port Terminal (gtkterm)

sudo apt-get install gtkterm

Start up gtkterm:

gtkterm

Enter the serial port config settings from above.
Apply power to the Gumstix.

 

Generate an Ubuntu Image:

Mostly from:
http://www.ros.org/wiki/Ubuntu%20Natty,%20ROS%20Diamondback,%20and%20Gumstix%20Overo

Here is the exact call that I used to generate my image for the Gumstix:


rootstock --fqdn overo --login robot --password temppasswd --imagesize 8G --seed wget,vim,emacs,linux-firmware,wireless-tools,wpasupplicant,usbutils,build-essential,tmux,openssh-server,lynx,python-yaml,cmake,subversion,wget,python-setuptools,pkg-config,python-dev,ntp,libboost-dev,libboost-all-dev,libapr1,libapr1-dev,libaprutil1,libaprutil1-dev,liblog4cxx10,liblog4cxx10-dev --dist lucid --serial ttyS2

Create Bootable SD card

Using instructions from:
http://gumstix.org/create-a-bootable-microsd-card.html

Assuming your SD card gets mounted to /dev/sdb


sudo fdisk -l /dev/sdb
sudo dd if=/dev/zero of=/dev/sdb bs=1024 count=1024

# the second time i tried this, I used the Heads, sectors, and cylinders
# i got from fdisk

sudo sfdisk --force -D -uS -H 247 -S 62 -C 1021 /dev/sdb

/dev/sdb1 : 128,130944,0x0C,*
/dev/sdb2 : 131072,,,-
HIT <ENTER>
HIT <ENTER>
sudo mkfs.vfat -F 32 /dev/sdb1 -n boot
sudo mke2fs -j -L rootfs /dev/sdb2

Mount the SD card and copy appropriate files:

sudo mkdir /media/{boot,rootfs}
sudo mount -t vfat /dev/sdb1 /media/boot
sudo mount -t ext3 /dev/sdb2 /media/rootfs
---
sudo cp MLO /media/boot/MLO                ----overo only
sudo cp u-boot.bin /media/boot/u-boot.bin
sudo cp uImage /media/boot/uImage
sudo tar xaf armel-rootfs-201109301047.tgz -C /media/rootfs
sync
sudo umount /media/boot
sudo umount /media/rootfs

————————-
rootstock login/password doesn’t work, so you have to enable root login without a password:
With the SD card in the laptop, edit
sudo gedit /path/to/second/partition/etc/shadow
by removing the * near “root”

Setup networking…

sudo gedit /path/to/second/partition/etc/network/interfaces

Add…

auto eth0
iface eth0 inet dhcp

————-
Put the SD card into the gumstix and start it up…
login is as root (no password, sometimes password is root)


sudo adduser syllogismrxs
sudo adduser syllogismrxs sudo

—–
Emulation:

sudo qemu-system-arm -M overo -clock unix -serial stdio -device usb-kbd -sd /dev/sdb -monitor null -nographic -m 289

Safe Shutdown

Never remove power from the Gumstix without first shutting down the system correctly:


sudo shutdown -h now

Wait until the system stops spitting out characters and only then, disconnect power.