GumStix Software Development with MacOS

From HBMobile
Revision as of 22:33, 10 April 2007 by Msh (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Talk With Your GumStix

The first thing you're going to want to do is setup a channel to talk with your Stix. I'm using a WaySmall 200 something-or-other running build 773. Before doing anything here, consider reading the Setting up USBnet on Mac OS X hosted at the GumStix.Org page.

Step 1 : Download and install AJZaurusUSB as described on the GumStix wiki. If for whatever reason their site got nuked, what you want to do is this:

  • Download the package
  • Start installing the package, but before rebooting, edit the file /System/Library/Extensions/AJZaurusUSB.kext/Contents/Info.plist, adding the lines:

<key>Gumstix</key>
 <dict>
  <key>CFBundleIdentifier</key>
  <string>org.lucidcake.driver.AJZaurusUSB</string>
  <key>IOClass</key>
  <string>org_lucidcake_driver_AJZaurusUSB</string>
  <key>IOProviderClass</key>
  <string>IOUSBDevice</string>
  <key>idProduct</key>
  <integer>42146</integer>
  <key>idVendor</key>
  <integer>1317</integer>
 </dict>

after the lines:

<key>IOKitPersonalities</key>
<dict>

I got these instructions from the GumStix page, so if it tells you to do something different, you probably should do something different.

Step 2 : Download and install the DHCP Server from isc.org. If you're running MacOS X Server, you may not have to do this. But... I don't have MacOS X Server, so I don't know how to configure it to serve an IP address to the Stix. This is how I got the DHCP Server:

wget ftp://ftp.isc.org/isc/dhcp/dhcp-latest.tar.gz

If you don't have wget, you can use a plain 'ol ftp like so:

longinus:~/Projects mhamrick$ ftp ftp.isc.org
Connected to ftp.isc.org.
220 Welcome to ftp.isc.org.
Name (ftp.isc.org:mhamrick): anonymous
331 Please specify the password.
Password:
230-
230-You have reached ISC's FTP SERVER (ftp.isc.org)
230-
230-<insert some funky ASCII art here>
230-
230-Here you will find the official releases of ISC BIND, ISC DHCP, and ISC
230-INN software packages.  These sections of the FTP server are mirrored
230-globaly, a list can be found under isc/MIRRORS.
230-
230-Additionally, ISC houses the Usenet newsgroup list and control message
230-archive (from 1991), that can be found under the usenet/ directory.
230-
230-NOTE: On May 28th, 2004, recursive ls support (ls -lR) was turned off.
230-To compensate, we have made available a static recursive directory
230-listing at ftp://ftp.isc.org/ls-lR.gz, which is regenerated daily.
230-
230-Questions regarding this service should be sent to webmaster@isc.org.
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> hash
Hash mark printing on (1024 bytes/hash mark).
ftp> bin
200 Switching to Binary mode.
ftp> prompt
Interactive mode off.
ftp> cd /isc/dhcp
250 Directory successfully changed.
ftp> get dhcp-latest.tar.gz

And now you're ready to unpack and build:

longinus:~/Projects mhamrick$ tar xzvf dhcp-latest.tar.gz
longinus:~/Projects mhamrick$ cd dhcp-3.0.5/
longinus:~/Projects mhamrick$ ./configure
longinus:~/Projects mhamrick$ make

SU to root and create the /etc/dhcpd.conf and /var/db/dhcpd.leases files:

longinus:~/Projects mhamrick$ sudo /bin/bash
longinus:~ root# touch /var/db/dhcpd.leases
longinus:~ root# cat > /etc/dhcpd.conf
ddns-update-style ad-hoc;
subnet 192.168.0.0 netmask 255.255.255.0 { range 192.168.0.10 192.168.0.100;}
^D
longinus:~ root# dhcpd -d -f

And you should now be able to SSH over to your GumStix.

ssh -l root 192.168.0.100

Get Buildroot Working

  1. Download Subversion from http://subversion.tigris.org/project_packages.html. If you're lazy, they have platform specific binary builds (including one for MacOS without FINK.)
  2. Download and install

http://docwiki.gumstix.org/Buildroot_on_MacOSX