meta-agl-core: systemd: Disable `BitRate` setting for `can*` network for VIRTIO. 50/28150/2
authorVasyl Vavrychuk <vasyl.vavrychuk@opensynergy.com>
Wed, 2 Nov 2022 08:42:45 +0000 (09:42 +0100)
committerScott Murray <scott.murray@konsulko.com>
Thu, 1 Dec 2022 07:55:44 +0000 (07:55 +0000)
commita2aac05dd334465f72a954d0203a8c8c658a770c
tree1344e378fa02a82b0fc4dcef8e1328271d382c6e
parentbeed2f9459b68d9a5531bb36ed17bab16acc06c4
meta-agl-core: systemd: Disable `BitRate` setting for `can*` network for VIRTIO.

VIRTIO CAN [1] does not support bitrate configuration, it assumes
bitrate configuration is done on backend.

Fixes systemd-networkd failure:

    can0: Failed to set CAN interface configurations: Operation not supported

File `canbus-virtio-can.network` is copied from `canbus-can.network`
with `BitRate=` setting removed.

v2: rework patchset to use own systemd-conf-canbus package to
    avoid changes in main systemd package.

[1]: https://lists.oasis-open.org/archives/virtio-dev/202208/msg00159.html

Bug-AGL: SPEC-4597

Change-Id: Idb132203501bb99103e76098eea3bb6394b645da
Signed-off-by: Vasyl Vavrychuk <vasyl.vavrychuk@opensynergy.com>
Reviewed-on: https://gerrit.automotivelinux.org/gerrit/c/AGL/meta-agl/+/28104
Tested-by: Jenkins Job builder account
ci-image-build: Jenkins Job builder account
ci-image-boot-test: Jenkins Job builder account
Reviewed-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>
(cherry picked from commit e01f289d60c4f25b5483bc2a5e4d6887f50eb309)
Reviewed-on: https://gerrit.automotivelinux.org/gerrit/c/AGL/meta-agl/+/28150
Reviewed-by: Scott Murray <scott.murray@konsulko.com>
meta-agl-core/recipes-core/systemd/systemd-conf-canbus/canbus-can.network [moved from meta-agl-core/recipes-core/systemd/systemd/canbus-can.network with 100% similarity]
meta-agl-core/recipes-core/systemd/systemd-conf-canbus/canbus-virtio.network [new file with mode: 0644]
meta-agl-core/recipes-core/systemd/systemd-conf-canbus_1.0.bb [new file with mode: 0644]
meta-agl-core/recipes-core/systemd/systemd_aglcore.inc
meta-agl-core/recipes-platform/packagegroups/packagegroup-agl-core-connectivity.bb