Add virtual sllin support and LIN bridging to CAN for demos 93/23493/1
authorScott Murray <scott.murray@konsulko.com>
Sun, 29 Dec 2019 23:36:48 +0000 (18:36 -0500)
committerScott Murray <scott.murray@konsulko.com>
Sun, 29 Dec 2019 23:46:56 +0000 (18:46 -0500)
commit0be8a1ddb505354f6ab028f2af359674211c0273
tree087d9b1df1377c361a35ce2d0e1319ebe376a272
parent1007e85d17d9b86aa82ed41872d207da1eba69e1
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: I527763176ce0f8b4d50cc472ec2343a6596286e2
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