Gumstix-setup

Version 8 (Anthony Rowe, 10/19/2008 12:55 am)

1 1 Anthony Rowe
2 8 Anthony Rowe
h2. Connecting a [[FireFly]] node to a Gumstix board
3 8 Anthony Rowe
4 8 Anthony Rowe
First, cut the RX trace's connection to the level shifter chip.  The level shifter chip is normally pulling the RX line and this needs to be released so that the [[FireFly]] board can override it.
5 8 Anthony Rowe
6 6 Anthony Rowe
[[Image(cut.jpg,400)]]
7 6 Anthony Rowe
8 6 Anthony Rowe
Next wire up the power and serial lines as shown below:
9 6 Anthony Rowe
10 1 Anthony Rowe
[[Image(gumstix-bottom.jpg,400)]]
11 1 Anthony Rowe
12 1 Anthony Rowe
[[Image(gumstix-top.jpg,400)]]
13 6 Anthony Rowe
14 8 Anthony Rowe
Finally, you might want to remove the serial console from ttyS0 since now the [[FireFly]] board is connected to it.  Be sure you have an alternative way of communicating.  For example set it to communicate using ttyS1 or have a network connection working.  To disable the console on ttyS0, edit /etc/inittab and comment out:
15 8 Anthony Rowe
<pre>
16 1 Anthony Rowe
::respawn:/sbin/getty -L ttyS0 115200 vt100
17 8 Anthony Rowe
</pre>
18 1 Anthony Rowe
19 1 Anthony Rowe
20 1 Anthony Rowe
21 8 Anthony Rowe
h2. Sensor Andrew Gateway Testbed Setup Notes
22 8 Anthony Rowe
23 8 Anthony Rowe
24 1 Anthony Rowe
1) gumstix build r1161
25 8 Anthony Rowe
* svn co -r1161 http://svn.gumstix.com/gumstix-buildroot/trunk gumstix-buildroot
26 1 Anthony Rowe
27 1 Anthony Rowe
2) Add the following files:
28 8 Anthony Rowe
* avrdude
29 8 Anthony Rowe
* avrdude.conf
30 8 Anthony Rowe
* dump.sh
31 8 Anthony Rowe
* eeprom-config
32 8 Anthony Rowe
* ff-set-fuses
33 8 Anthony Rowe
* prg-node.sh
34 8 Anthony Rowe
* slipstream_server
35 1 Anthony Rowe
36 1 Anthony Rowe
3) Add Sensor Andrew User:
37 8 Anthony Rowe
* login as root
38 8 Anthony Rowe
<pre>
39 1 Anthony Rowe
adduser sauser
40 8 Anthony Rowe
</pre>
41 8 Anthony Rowe
* add permission for serial port etc (this is a total hack)
42 8 Anthony Rowe
<pre>
43 2 Anthony Rowe
vi /etc/passwd
44 2 Anthony Rowe
change:
45 8 Anthony Rowe
sauser:x:1001:1001:Linux User~,:/home/sauser:/bin/sh
46 2 Anthony Rowe
to
47 8 Anthony Rowe
sauser:x:1001:0:Linux User~,:/home/sauser:/bin/sh
48 8 Anthony Rowe
</pre>
49 3 Anthony Rowe
50 3 Anthony Rowe
4) remove serial console
51 8 Anthony Rowe
* edit /etc/inittab
52 8 Anthony Rowe
* comment out
53 8 Anthony Rowe
<pre>
54 3 Anthony Rowe
::respawn:/sbin/getty -L ttyS0 115200 vt100
55 8 Anthony Rowe
</pre>
56 3 Anthony Rowe
57 3 Anthony Rowe
5) setup ssh
58 8 Anthony Rowe
* make .ssh dir on gumstix node
59 8 Anthony Rowe
* On desktop server run (if key doesn't already exist)
60 8 Anthony Rowe
<pre>
61 3 Anthony Rowe
ssh-keygen -t dsa -f .ssh/id_dsa
62 3 Anthony Rowe
// generates id_dsa and id_dsa.pub
63 5 Anthony Rowe
scp id_dsa.pub user@remote:~/.ssh/id_dsa.pub
64 5 Anthony Rowe
// copy the file to the .ssh dir of the gumstix
65 8 Anthony Rowe
</pre>
66 8 Anthony Rowe
* Set it up on the gumstix
67 8 Anthony Rowe
<pre>
68 1 Anthony Rowe
local> ssh user@remote
69 1 Anthony Rowe
remote> cd .ssh
70 1 Anthony Rowe
remote> cat id_dsa.pub >> authorized_keys
71 1 Anthony Rowe
remote> chmod 640 authorized_keys
72 1 Anthony Rowe
remote> rm id_dsa.pub
73 1 Anthony Rowe
remote> exit
74 8 Anthony Rowe
</pre>