Difference between revisions of "Gumstix"
(12 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
− | The gumstix | + | ===Hardware=== |
+ | (2)The gumstix [http://www.gumstix.com/store/catalog/product_info.php?products_id=210 motherboard] has a 600MHz Marvell XScale processor, 128MB of RAM, and 32MB of flash. | ||
<br/> | <br/> | ||
− | The | + | (2)The 80 pin expansion socket is attached to a [http://www.gumstix.com/store/catalog/product_info.php?products_id=207 network interface card] for TCP/IP networking. |
<br/> | <br/> | ||
− | The 60 pin expansion socket has a [http://gumstix.com/store/catalog/product_info.php?products_id=184 breakout-vx] card to allow access to the I2C signals, serial ports, and various other GPIO possibilities. | + | (2)The 60 pin expansion socket has a [http://www.gumstix.com/store/catalog/product_info.php?products_id=184 breakout-vx] card to allow access to the I2C signals, serial ports, and various other GPIO possibilities. |
+ | <br/> | ||
+ | (1)Additionally, [http://www.gumstix.com/store/catalog/product_info.php?products_id=148 4V power adapters] | ||
+ | <br/> | ||
+ | (3)[http://www.acroname.com/robotics/parts/S13-SERIAL-INT-CONN.html TTL to serial adapters] | ||
+ | |||
+ | ===Software=== | ||
+ | [http://docwiki.gumstix.org/Main_Page Gumstix Documentation Wiki]<br/> | ||
+ | |||
+ | ====I2C installation==== | ||
+ | |||
+ | ==== cgi-bin programs ==== | ||
+ | |||
+ | |||
+ | [http://www.boa.org Boa Webserver] is the webserver on the Gumstix.<br/> | ||
+ | [http://www.gnu.org/software/cgicc/ cgicc] is the C++ library used for handling web scripts.<br/> | ||
+ | |||
+ | ===Tutorials=== | ||
+ | [http://www.stlinux.com/docs/manual/distribution/distribution_guide6.php I2C Linux] from userspace.<br/> | ||
+ | [http://www.yolinux.com/TUTORIALS/LinuxTutorialC++CGI.html libcgicc | ||
+ | |||
+ | |||
+ | ==Misc== | ||
+ | ===Setting the date=== | ||
+ | The busybox '''date -s''' accepts a very limited format. Use it from another Linux box as follows: | ||
+ | <pre> | ||
+ | ssh root@134.50.203.56 "echo date -s `date +%m%d%H%M%Y`" | ||
+ | </pre> | ||
+ | |||
+ | ===Setting Static IP adress=== | ||
+ | |||
+ | In the LDS use the static method modifiy the file etc/network/interfaces so it says | ||
+ | |||
+ | <pre> | ||
+ | auto eth0 | ||
+ | iface eth0 inet static | ||
+ | #choose only one address line | ||
+ | #gumstick green ethernet cables #1 | ||
+ | address 134.50.3.93 | ||
+ | #gumstick blue ethernet cables #2 | ||
+ | address 134.50.3.175 | ||
+ | netmask 255.255.255.0 | ||
+ | network 134.50.3.0 | ||
+ | broadcast 134.50.3.255 | ||
+ | gateway 134.50.3.254 | ||
+ | </pre> | ||
+ | |||
+ | |||
+ | For JLab Use the static method modifiy the file etc/network/interfaces so it says | ||
+ | |||
+ | <pre> | ||
+ | |||
+ | # /etc/network/interfaces -- configuration file for ifup(8), ifdown(8) | ||
+ | |||
+ | # The loopback interface | ||
+ | # | ||
+ | auto lo | ||
+ | iface lo inet loopback | ||
+ | |||
+ | # | ||
+ | # Wired interfacesq | ||
+ | # | ||
+ | auto eth0 | ||
+ | iface eth0 inet static | ||
+ | address 129.57.36.61 | ||
+ | #network 129.57.1.0 | ||
+ | gateway 129.57.36.1 | ||
+ | netmask 255.255.252.0 | ||
+ | broadcast 129.57.39.255 | ||
+ | |||
+ | # if netduo attached uncomment lines below | ||
+ | #auto eth1 | ||
+ | #iface eth1 inet dhcp | ||
+ | |||
+ | # | ||
+ | |||
+ | |||
+ | </pre> | ||
+ | |||
+ | In Hall C we had | ||
+ | |||
+ | <pre> | ||
+ | auto eth0 | ||
+ | iface eth0 inet static | ||
+ | address 129.57.168.91 | ||
+ | netmask 255.255.252.0 | ||
+ | network 129.57.168.0 | ||
+ | broadcast 129.57.171.255 | ||
+ | </pre> | ||
+ | |||
+ | Then do commands | ||
+ | |||
+ | <pre> | ||
+ | ifdown | ||
+ | ifup eth0 | ||
+ | </pre> | ||
+ | |||
+ | Must check the if address of a machine which is connected to the same network by ifconfig and route -n | ||
+ | |||
+ | |||
+ | ifconfig interfaces | ||
+ | inet addr >>> address | ||
+ | Bcast >>> broadcast | ||
+ | |||
+ | route -n | ||
+ | Genmask >>> netmask | ||
+ | Gateway >>> gateway | ||
− | + | It seems to only use the first DNS entry in /etc/resolv.conf | |
+ | For ISU's network,one of the following addresses needs to be the first nameserver line in the file. | ||
+ | <pre> | ||
+ | search isu.edu | ||
+ | nameserver 134.50.57.57 | ||
+ | nameserver 134.50.254.5 | ||
+ | </pre> |
Latest revision as of 21:43, 12 November 2012
Hardware
(2)The gumstix motherboard has a 600MHz Marvell XScale processor, 128MB of RAM, and 32MB of flash.
(2)The 80 pin expansion socket is attached to a network interface card for TCP/IP networking.
(2)The 60 pin expansion socket has a breakout-vx card to allow access to the I2C signals, serial ports, and various other GPIO possibilities.
(1)Additionally, 4V power adapters
(3)TTL to serial adapters
Software
I2C installation
cgi-bin programs
Boa Webserver is the webserver on the Gumstix.
cgicc is the C++ library used for handling web scripts.
Tutorials
I2C Linux from userspace.
[http://www.yolinux.com/TUTORIALS/LinuxTutorialC++CGI.html libcgicc
Misc
Setting the date
The busybox date -s accepts a very limited format. Use it from another Linux box as follows:
ssh root@134.50.203.56 "echo date -s `date +%m%d%H%M%Y`"
Setting Static IP adress
In the LDS use the static method modifiy the file etc/network/interfaces so it says
auto eth0 iface eth0 inet static #choose only one address line #gumstick green ethernet cables #1 address 134.50.3.93 #gumstick blue ethernet cables #2 address 134.50.3.175 netmask 255.255.255.0 network 134.50.3.0 broadcast 134.50.3.255 gateway 134.50.3.254
For JLab Use the static method modifiy the file etc/network/interfaces so it says
# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8) # The loopback interface # auto lo iface lo inet loopback # # Wired interfacesq # auto eth0 iface eth0 inet static address 129.57.36.61 #network 129.57.1.0 gateway 129.57.36.1 netmask 255.255.252.0 broadcast 129.57.39.255 # if netduo attached uncomment lines below #auto eth1 #iface eth1 inet dhcp #
In Hall C we had
auto eth0 iface eth0 inet static address 129.57.168.91 netmask 255.255.252.0 network 129.57.168.0 broadcast 129.57.171.255
Then do commands
ifdown ifup eth0
Must check the if address of a machine which is connected to the same network by ifconfig and route -n
ifconfig interfaces
inet addr >>> address
Bcast >>> broadcast
route -n Genmask >>> netmask Gateway >>> gateway
It seems to only use the first DNS entry in /etc/resolv.conf
For ISU's network,one of the following addresses needs to be the first nameserver line in the file.
search isu.edu nameserver 134.50.57.57 nameserver 134.50.254.5