SConnector: Oceana Sensor Technologies' ICHM

From SCInterface Wiki

Jump to: navigation, search

The follow article discusses how to use Oceana Sensor Technology, Inc's (OST) Serial ICHM® with Gumstix board.

  • Set gumstix x-compiler platform up (gumstix-buildroot) : http://www.gumstix.org/tikiwiki/tiki-index.php
  • Before doing the initial build, you need to add support for C++ by modifying the make.config file appropriately.
  • Copy our scontroller.mk file into the make folder of the gumstix-buildroot. This is available under contrib./gumstix section in source code repository
  • Make SController by running “make SController” from the gumstix-buildroot folder (the one where the make folder is located)
  • Copy or make the SController and it’s dependencies available to the gumstix
  • Unless you have the gumstix with 16MB flash storage, the SController and its requirements won’t fit on the gumstix. One solution we’ve used was to store it on an nfs server that was available on the same network as the gumstix.
  • The requirements for the gumstix platform should be compiled automatically, but here’s the list just in case : zlib xml2 openssl
  • Run the SController from your gumstix as you would on other platforms
  • If you aren't able to get sudo working, here’s a quick fix:
    • Have the SController run as root and create a sudo script that translates into a su call.
    • if you’re not root, it would ask you for the target user’s pword, which is no good for us.
  • Here’s a script that should do: (just copy+paste into /bin/sudo without the a. and b. bullets and make sure the second line is on one line
 #!/bin/sh
 exec su `echo $* | sed 's/ *sudo *//' | sed 's/-H *//' | sed 's/"/\\"/g' | sed 's/-u *\([^ ]*\) *\(.*\)/-m \1 -c \2/'`;

Related Links:

Personal tools