HOW TO DO CROSS-COMPILE ON THE GARCIA STARGATE BOARD A better tutorial is at http://www.pages.drexel.edu/~ttl28/tutorials/stargate-tutorial.html

Connect to the Garcia board

To do that, firs connect Garcia starboard to a computer through serial port. The serial cable is special for it has two female heads. Do this while both your computer and Garcia are off or you will damage the port hardware.

Establish the console

Next thing is start up your computer (say A). For linux users, please type "minicom -s" (this may requires root power), and set the parameters to:

  • A /dev/ttyS0
  • B /var/lock
  • C
  • D
  • E 115200 8N1
  • F NO
  • G NO
  • Quit and restart minicom, at this point, power on the Garcia. You can see linux booting information of Garcia displayed on your minicom application. Now use minicom as a normal terminal.

    Setup the Wifi

    the root password for Stargate is "rootme". The wifi for each robot is already setup. But if you like, you can change the wifi SSID (the name for the robot you see when you do searching the wifi network) as well as the ip address for the robot when connecting through wifi. please ref to here on how to config it.

    Use wifi to connect to the robot

    You can use another computer (say B) with Wifi device to connect to the robot. Make sure that this computer's IP is configured as follows:

  • IP: 192.168.3.x netmask=255.255.255.0
  • x should not equal to the robot's ip address. Also don't set x to 1 or 255. After the wifi connection is established, this IP address configuration will be enough for you to talk with the Garcia through Wifi.

    Cross compile a program

    More to come.

    Upload the program

    Set up a ftp server on the Wifi computer B connected to the Garcia robot. Use "wget" command to download the compiled program from B. You can either input the "wget" command from A through serial port, or just use ssh to the IP address of the Garcia robot to start a new terminal on computer B.

    Run

    You can change the /etc/rc.local script to add a line like
  • /root/startme
  • Every time the robot starts up, the program /root/startme will run automatically.