| 
View
 

what files are relevant on the gumstix (file structure)

Page history last edited by Sukandar Kartadinata 16 years, 9 months ago

for the user

 

After logging in you are initially in the /root directory (and should probably stay there).

You can list all files by typing the ls command at the prompt.

Here's an example output:

# ls

8osc.pd file2udp pd-only srs-s5.pd

_gumstix2.pd gps2udp pd-run srs.pd

_gumstix2Max.pd nmea.txt pd-watchdog srs1.pd

_gumstix2a.pd pd pd.tk srs1osc.pd

_gumstixMax.pd pd-boot pdreceive srs2.pd

_gumstixa.pd pd-file pdsend

#

 

NOTE: this output is not the same for all gumstix, as some have additional unused files.

 

Or type ls -l to get a more descriptive list:

# ls -l

-rw-r--r-- 1 root root 1142 Feb 24 2008 8osc.pd

-rw------- 1 root root 55272 Feb 26 2008 _gumstix2.pd

-rw------- 1 root root 64628 Feb 26 2008 _gumstix2Max.pd

-rw------- 1 root root 55698 Feb 26 2008 _gumstix2a.pd

-rw------- 1 root root 50101 Feb 26 2008 _gumstixMax.pd

-rw------- 1 root root 56116 Feb 26 2008 _gumstixa.pd

-rwxr-xr-x 1 root root 10533 Jan 30 2008 file2udp

-rwxr-xr-x 1 root root 10533 Jan 30 2008 gps2udp

-rwx------ 1 root root 270642 Dec 31 16:15 nmea.txt

-rwx------ 1 root root 1390764 Jun 15 2007 pd

-rwxr--r-- 1 root root 54 Dec 31 16:16 pd-boot

-rwx------ 1 root root 55 Dec 31 16:18 pd-file

-rwxr--r-- 1 root root 37 Dec 31 16:18 pd-only

-rwxr--r-- 1 root root 50 Dec 31 16:17 pd-run

-rwx------ 1 root root 5293 Jun 15 2007 pd-watchdog

-rw------- 1 root root 112776 Jun 15 2007 pd.tk

-rwx------ 1 root root 10647 Jun 15 2007 pdreceive

-rwx------ 1 root root 7417 Jun 15 2007 pdsend

-rw-r--r-- 1 root root 48123 Jan 29 2008 srs-s5.pd

-rwx------ 1 root root 55290 Dec 31 16:04 srs.pd

-rwx------ 1 root root 54922 Feb 25 2008 srs1.pd

-rw-r--r-- 1 root root 54992 Feb 25 2008 srs1osc.pd

-rwx------ 1 root root 54503 Feb 25 2008 srs2.pd

#

 

In the above example there's quite a few pd files (ending in .pd).

The most (only) important one is srs.pd

This is the pd patch that is being loaded after boot-up.

All the other pd files are from earlier tests and can be ignored.

If preferred you could actually upload a number of pd patches and then rename them to srs.pd using the cp or mv command which is a tiny bit faster than uploading e.g. if you're switching often between 2 different files. But normally it's probably easier to stick to that one srs.pd file and just keep uploading newer (or older) versions as you refine the patch. This means that you're versioning should reside on your Mac.

 

Forgot how to upload? ->connecting to the gumstix

 

These 5 files are the pd installation. You don't need to touch them:

(on the original 400MHz board these are inside a subfolder called PDa_OK. But that's irrelevant from a user point of view)

-rwx------ 1 root root 1390764 Jun 15 2007 pd

-rwx------ 1 root root 5293 Jun 15 2007 pd-watchdog

-rw------- 1 root root 112776 Jun 15 2007 pd.tk

-rwx------ 1 root root 10647 Jun 15 2007 pdreceive

-rwx------ 1 root root 7417 Jun 15 2007 pdsend

 

This file is the GPS parser:

(on the original 400MHz board this is inside a subfolder called sun. But that's irrelevant from a user point of view)

-rwxr-xr-x 1 root root 10533 Jan 30 2008 gps2udp

 

This program forwards NMEA data stored in a file rather than realtime GPS data like the above:

-rwxr-xr-x 1 root root 10533 Jan 30 2008 file2udp

 

And this is the text file with the pre-recorded GPS data:

-rwxr-xr-x 1 root root 10533 Jan 30 2008 nmea.txt

 

The following 4 files are small scripts that you use to start pd (with or without the parser):

pd-boot: executed w/o arguments. Starts pd as well as the GPS parser and loads the srs.pd patch. Executed after boot-up. This is probably the most relevant script as you should execute it after uploading a new srs.pd patch.

pd-run: here you can tell pd to run a different patch, e.g. by typing pd-run srs1osc.pd. It also starts the parser.

pd-only: like pd-run, but w/o starting the parser

pd-file: loads srs.pd like pd-boot, but starts file2udp instead of the parser (gps2udp) to send pre-recorded GPS data to the patch. This is useful indoors when you want to test your patch but have no realtime satellite data.

 

 

for the developer

the following files have been modified/added to the system

/etc/modules: here 3 lines have been added to enable sound

/etc/profile: here the search path was extended to include /root

/etc/init.d/S99srs: this file was added to start things after boot-up. Mainly sets volume to maximum and calls pd-boot

 

source files for gps2udp and file2udp will be uploaded as soon as we agreed on location, license, etc.

Comments (0)

You don't have permission to comment on this page.