Add virtual sllin support and LIN bridging to CAN for demos 01/23501/1
authorScott Murray <scott.murray@konsulko.com>
Sun, 29 Dec 2019 23:36:48 +0000 (18:36 -0500)
committerScott Murray <scott.murray@konsulko.com>
Mon, 30 Dec 2019 01:01:49 +0000 (20:01 -0500)
commitfb407cc3cbb66df0a154ef400294d209fb681b22
tree1e819555033a69625d1e2cd43cad92d2285f49db
parenta3690396cceb937fbc29aa774dbdeea54283f924
Add virtual sllin support and LIN bridging to CAN for demos

To enable seeing the steering wheel LIN messages on the cluster board
for the planned CES demo, a systemd unit that wraps the use of candump
in bridging mode is added when the agl-cluster-support feature is
enabled.  To make sure that the sllin0 interface is always available
for testing without the specific demo LIN hardware, a vcan interface
is set up as sllin0 when the ttyUSB0 device representing the serial
adapter for the LIN transceiver is not present.  Since this virtual
sllin0 interface is very useful for general testing of the steering
wheel event support up through the low-can and signal-composer stack,
it has not been hidden behind agl-cluster-demo-support.

Bug-AGL: SPEC-3049

Change-Id: Idb478e3fe4085859e8704ab0329a341b1a11e0ef
Signed-off-by: Scott Murray <scott.murray@konsulko.com>
recipes-config/cluster-lin-bridging-config/cluster-lin-bridging-config.bb [new file with mode: 0644]
recipes-config/cluster-lin-bridging-config/files/cluster-lin-bridging.service [new file with mode: 0644]
recipes-kernel/sllin/files/sllin-demo-virtual.service [new file with mode: 0644]
recipes-kernel/sllin/files/start_lin_demo.sh [changed mode: 0644->0755]
recipes-kernel/sllin/sllin.bb
recipes-platform/packagegroups/packagegroup-agl-demo-platform.bb
recipes-platform/packagegroups/packagegroup-agl-demo.bb