summaryrefslogtreecommitdiff
path: root/components/dlink_sms/README.md
blob: cc131c534c457053e2d688614b849a54d3026421 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
# Exosense Device - Jaguar Land Rover Tizen IVI HVAC control demo

# Building the Exosense JLR demo.

Follow the instructions under:

    `https://github.com/Feuerlabs/exosense_specs/blob/master/doc/exosense_demo_tutorial.pdf`

Replace meta-exodemo with meta-jlrdemo (the Yocto build layerfor this
demo). The meta-sbc6845 layer, mentioned in the tutorial, will not be
needed.

## Setting up configuration files
After setting up the basic environment, as described in the tutorial,
init the build environment with this command:

    `. oe-init-build-env ../build`

Copy `meta-jlrdemo/build_conf/*.conf` into the `conf` subdirectory of
the build directory you are currently in.

	cp ../meta-jlrdemo/build_conf/*.conf conf

## Build the RPM 
Since the demo is installed on Tizen, we will not create a complete
image, but rather a set of RPMs that can be installed on the standard
demo.

Build the RPMs with:

	
    bitbake erlang-jlrdemo

The rpms will be deposited in 

    build/tmp/deploy/rpm/i586

# Installing the Exosense JLR demo RPMs on the target system

All rpms to be copied over from the directory above to the target system are listed in

    https://github.com/Feuerlabs/jlrdemo/blob/master/tizen_rpm_list.txt

Once copied, install them all using a single `rpm -i` command


# Setting up automatic launch during boot

There is a start script for the Exosense JLR demo installed on the target under:

    /usr/lib/erlang/jlrdemo-???/priv/jlrdemo_ctl.sh

This script also installs the pcan driver kernel module (unless already loaded).

Copy this script to /usr/sbin

    /usr/lib/erlang/jlrdemo-*/priv/jlrdemo_ctl.sh /usr/sbin
	
Edit the uxlaunch systemd service in file:

     /etc/systemd/system/display-manager.service
	 
Edit the ExecStart= line so that it looks like this:

    ExecStart=/bin/sh /usr/sbin/tizenctl.sh start

**Note** The /usr/sbin/tizenctl.sh, which will start the dashboard UI,
  and the `/usr/sbin/jlrdemo.sh` script is not provided by the
  Exosense RPMs. Please see the Tizen documentation for details on
  where to source this.

# Upgrading the Exosense JLR demo

Be sure to remove the old package using `rpm -e` before installing the new version.
Also be sure to execute the following command to wipe any old setup data.

    rm -rf /root/setup