Gumstix-setup

Version 6 (Anthony Rowe, 10/19/2008 12:54 am)

1 6 Anthony Rowe
== Connecting Gumstix to FireFly Node ==
2 6 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.
3 6 Anthony Rowe
4 6 Anthony Rowe
[[Image(cut.jpg,400)]]
5 6 Anthony Rowe
6 6 Anthony Rowe
Next wire up the power and serial lines as shown below:
7 6 Anthony Rowe
8 6 Anthony Rowe
[[Image(gumstix-bottom.jpg,400)]]
9 6 Anthony Rowe
10 6 Anthony Rowe
[[Image(gumstix-top.jpg,400)]]
11 6 Anthony Rowe
12 6 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:
13 6 Anthony Rowe
{{{
14 6 Anthony Rowe
::respawn:/sbin/getty -L ttyS0 115200 vt100
15 6 Anthony Rowe
}}}
16 6 Anthony Rowe
17 1 Anthony Rowe
18 4 Anthony Rowe
== Sensor Andrew Gateway Testbed Setup Notes ==
19 1 Anthony Rowe
20 1 Anthony Rowe
1) gumstix build r1161
21 1 Anthony Rowe
 * svn co -r1161 http://svn.gumstix.com/gumstix-buildroot/trunk gumstix-buildroot
22 1 Anthony Rowe
23 1 Anthony Rowe
2) Add the following files:
24 1 Anthony Rowe
 * avrdude
25 1 Anthony Rowe
 * avrdude.conf
26 1 Anthony Rowe
 * dump.sh
27 1 Anthony Rowe
 * eeprom-config
28 1 Anthony Rowe
 * ff-set-fuses
29 1 Anthony Rowe
 * prg-node.sh
30 1 Anthony Rowe
 * slipstream_server
31 1 Anthony Rowe
32 1 Anthony Rowe
3) Add Sensor Andrew User:
33 1 Anthony Rowe
 * login as root
34 1 Anthony Rowe
{{{
35 1 Anthony Rowe
adduser sauser
36 1 Anthony Rowe
}}}
37 1 Anthony Rowe
 * add permission for serial port etc (this is a total hack)
38 1 Anthony Rowe
{{{
39 1 Anthony Rowe
vi /etc/passwd
40 1 Anthony Rowe
change:
41 1 Anthony Rowe
sauser:x:1001:1001:Linux User,,,:/home/sauser:/bin/sh
42 1 Anthony Rowe
to
43 1 Anthony Rowe
sauser:x:1001:0:Linux User,,,:/home/sauser:/bin/sh
44 1 Anthony Rowe
}}}
45 2 Anthony Rowe
46 2 Anthony Rowe
4) remove serial console
47 2 Anthony Rowe
 * edit /etc/inittab
48 2 Anthony Rowe
 * comment out
49 2 Anthony Rowe
{{{
50 2 Anthony Rowe
::respawn:/sbin/getty -L ttyS0 115200 vt100
51 2 Anthony Rowe
}}}
52 3 Anthony Rowe
53 3 Anthony Rowe
5) setup ssh
54 3 Anthony Rowe
 * make .ssh dir on gumstix node
55 3 Anthony Rowe
 * On desktop server run (if key doesn't already exist)
56 3 Anthony Rowe
{{{
57 3 Anthony Rowe
ssh-keygen -t dsa -f .ssh/id_dsa
58 3 Anthony Rowe
// generates id_dsa and id_dsa.pub
59 3 Anthony Rowe
scp id_dsa.pub user@remote:~/.ssh/id_dsa.pub
60 3 Anthony Rowe
// copy the file to the .ssh dir of the gumstix
61 3 Anthony Rowe
}}}
62 3 Anthony Rowe
 * Set it up on the gumstix
63 3 Anthony Rowe
{{{
64 3 Anthony Rowe
local> ssh user@remote
65 3 Anthony Rowe
remote> cd .ssh
66 5 Anthony Rowe
remote> cat id_dsa.pub >> authorized_keys
67 5 Anthony Rowe
remote> chmod 640 authorized_keys
68 3 Anthony Rowe
remote> rm id_dsa.pub
69 3 Anthony Rowe
remote> exit
70 3 Anthony Rowe
}}}