Changes between Initial Version and Version 1 of TellStickInstallationSource


Ignore:
Timestamp:
Oct 22, 2009, 9:34:15 AM (15 years ago)
Author:
Micke Prag
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • TellStickInstallationSource

    v1 v1  
     1== TellStick installation - Linux ==
     2
     3The Linux installation of TellStick requires kernel version 2.6.14 or later. You will also need support for the driver  {{{ftdi_sio}}}.
     4
     5To find out which version of the kernel you are running, use this command:
     6{{{
     7#!sh
     8uname -r
     9}}}
     10
     11=== Using kernel 2.6.20 or earlier ===
     12
     13If you are using kernel version 2.6.14 to 2.6.20 you need the kernel driver compiled as a module. If it is compiled into the kernel it will not find TellStick.
     14{{{ftdi_sio}}} could be found under:
     15{{{
     16Device Drivers--->
     17  USB support--->
     18    USB Serial Converter support--->
     19      <M> USB FTDI Single Port Serial Driver (EXPERIMENTAL)
     20}}}
     21
     22Insert the module into the kernel by:
     23{{{
     24#!sh
     25modprobe ftdi_sio vendor=0x1781 product=0x0c30
     26}}}
     27
     28For Ubuntu, do the following changes to {{{/etc/modprobe.d/options}}}:
     29{{{
     30modprobe ftdi_sio vendor=0x1781 product=0x0c30
     31}}}
     32Then, update the module settings:
     33{{{
     34#!sh
     35update-modules
     36}}}
     37
     38After makeing this change, the module could be loaded without any extra parameters:
     39{{{
     40#!sh
     41modprobe ftdi_sio
     42}}}
     43
     44=== Installing the software ===
     45
     46To compile {{{telldus-core}}} you need cmake version 2.4.0 or later.
     47
     48Download the latest source code from Telldus and unpack it:
     49{{{
     50#!sh
     51cd /usr/src
     52gunzip telldus-core-{version}.tar.gz #Change {version} to the downloaded version
     53tar xvf telldus-core-{version}.tar
     54}}}
     55
     56This creates the directory /usr/src/telldus-core-{version} containing the files
     57from the archive. We only support the GNU version of tar archiving utility. Note
     58on some systems it is called gtar.
     59
     60Go to the new directory
     61{{{
     62#!sh
     63cd telldus-core
     64}}}
     65
     66==== Configuring ====
     67
     68Telldus Core is built using CMake (http://www.cmake.org), version 2.6.0 is the
     69minimum required version. This means there is no configure-script, but you
     70need to run cmake.
     71
     72To configure telldus-core for your machine type:
     73{{{
     74#!sh
     75cmake .
     76}}}
     77in the package directory.
     78
     79By default, Telldus Core is configured for installation in the /usr/local
     80directory, but this can be changed by using the -DCMAKE_INSTALL_PREFIX=/usr
     81option. Alternatively, the DESTDIR="/opt" option can be used to specify a "local"
     82installation within the source directory when running "make install".
     83
     84==== Building ====
     85To create the library and compile all the tools type:
     86
     87{{{
     88#!sh
     89make
     90}}}
     91
     92If you did not configure Telldus Core using the -DCMAKE_INSTALL_PREFIX=/usr
     93option, you need to install the library and tools in the appropriate place. To
     94do this, type:
     95
     96{{{
     97#!sh
     98su -c "make install"
     99}}}
     100
     101and enter the root password.
     102
     103If you want to install in another directory, type:
     104
     105{{{
     106#!sh
     107su -c "make DESTDIR=/opt install"
     108}}}
     109
     110Note that on some systems the make utility is named differently, e.g. {{{gmake}}}.
     111