modemmanager: add udev rules for XBee cellular
These rules are needed so the modem is detected. https://jira.digi.com/browse/DEL-3841 Signed-off-by: Javier Viguera <javier.viguera@digi.com>
This commit is contained in:
parent
a774da80be
commit
f67e7e949b
|
|
@ -0,0 +1,12 @@
|
||||||
|
ACTION!="add|change|move", GOTO="mm_digi_xbee_cellular_modem_end"
|
||||||
|
|
||||||
|
# By default, ModemManager expects a default baudrate of 57600bps. Different
|
||||||
|
# baudrates may be used by setting the ID_MM_TTY_BAUDRATE udev tag.
|
||||||
|
|
||||||
|
# ConnectCore 6 SBC
|
||||||
|
DEVPATH=="/devices/soc0/soc.0/2100000.aips-bus/21f4000.serial/tty/ttymxc4", ENV{ID_MM_PLATFORM_DRIVER_PROBE}="1"
|
||||||
|
|
||||||
|
# ConnectCore 6UL SBC Pro
|
||||||
|
DEVPATH=="/devices/platform/soc/2100000.aips-bus/21e8000.serial/tty/ttymxc1", ENV{ID_MM_PLATFORM_DRIVER_PROBE}="1"
|
||||||
|
|
||||||
|
LABEL="mm_digi_xbee_cellular_modem_end"
|
||||||
|
|
@ -4,6 +4,7 @@ FILESEXTRAPATHS_prepend := "${THISDIR}/${BPN}:"
|
||||||
|
|
||||||
SRC_URI += " \
|
SRC_URI += " \
|
||||||
file://cellularifupdown \
|
file://cellularifupdown \
|
||||||
|
file://78-mm-digi-xbee-cellular.rules \
|
||||||
"
|
"
|
||||||
|
|
||||||
# 'polkit' depends on 'consolekit', and this requires 'x11' distro feature. So
|
# 'polkit' depends on 'consolekit', and this requires 'x11' distro feature. So
|
||||||
|
|
@ -16,4 +17,8 @@ do_install_append() {
|
||||||
install -d ${D}${sysconfdir}/network/if-pre-up.d/ ${D}${sysconfdir}/network/if-post-down.d/
|
install -d ${D}${sysconfdir}/network/if-pre-up.d/ ${D}${sysconfdir}/network/if-post-down.d/
|
||||||
install -m 0755 ${WORKDIR}/cellularifupdown ${D}${sysconfdir}/network/if-pre-up.d/
|
install -m 0755 ${WORKDIR}/cellularifupdown ${D}${sysconfdir}/network/if-pre-up.d/
|
||||||
ln -sf ../if-pre-up.d/cellularifupdown ${D}${sysconfdir}/network/if-post-down.d/cellularifupdown
|
ln -sf ../if-pre-up.d/cellularifupdown ${D}${sysconfdir}/network/if-post-down.d/cellularifupdown
|
||||||
|
|
||||||
|
# Install udev rules for XBee cellular
|
||||||
|
install -d ${D}${nonarch_base_libdir}/udev/rules.d
|
||||||
|
install -m 0644 ${WORKDIR}/78-mm-digi-xbee-cellular.rules ${D}${nonarch_base_libdir}/udev/rules.d/
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue