meta-digi-arm: rework udev extra rules
In Yocto 1.7 meta-fsl-arm replaced udev-extraconf bbappend with a new package (udev-rules-imx). So we need to adapt our own bbappend to these changes so all the needed udev rules are in place. https://jira.digi.com/browse/DEL-1336 Signed-off-by: Javier Viguera <javier.viguera@digi.com>
This commit is contained in:
parent
7031d2a53f
commit
1d3a359fba
|
|
@ -8,9 +8,13 @@ IMXBOOTLETS_MACHINE = "CCARDIMX28JS"
|
||||||
|
|
||||||
KERNEL_DEVICETREE = "imx28-${MACHINE}.dtb"
|
KERNEL_DEVICETREE = "imx28-${MACHINE}.dtb"
|
||||||
|
|
||||||
# Use standard serial port name and let device handlers (mdev, udev)
|
# Configure the serial console for kernel 2.x and 3.x and let the
|
||||||
# create a symlink to the correct device.
|
# post-installation script drop the not-supported one on first boot
|
||||||
SERIAL_CONSOLES = "115200;ttyS0"
|
SERIAL_CONSOLES ?= "115200;ttyAM0 115200;ttyAMA0"
|
||||||
|
SERIAL_CONSOLES_CHECK ?= "${SERIAL_CONSOLES}"
|
||||||
|
|
||||||
|
# Bluetooth tty
|
||||||
|
BT_TTY ?= "${@base_conditional('IS_KERNEL_2X', '1' , 'ttySP0', 'ttyAPP0', d)}"
|
||||||
|
|
||||||
# FLASH parameters
|
# FLASH parameters
|
||||||
MKUBIFS_ARGS ?= "-m 2048 -e 126976 -c 2047"
|
MKUBIFS_ARGS ?= "-m 2048 -e 126976 -c 2047"
|
||||||
|
|
|
||||||
|
|
@ -9,6 +9,9 @@ KERNEL_DEVICETREE = "imx6q-${MACHINE}.dtb"
|
||||||
|
|
||||||
SERIAL_CONSOLES = "115200;ttymxc3"
|
SERIAL_CONSOLES = "115200;ttymxc3"
|
||||||
|
|
||||||
|
# Bluetooth tty
|
||||||
|
BT_TTY ?= "ttymxc1"
|
||||||
|
|
||||||
# U-Boot script to be copied to the SD image
|
# U-Boot script to be copied to the SD image
|
||||||
BOOT_SCRIPTS = "boot-sd.scr:boot.scr"
|
BOOT_SCRIPTS = "boot-sd.scr:boot.scr"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -39,7 +39,7 @@ MACHINE_SOCARCH_FILTER_append_mx6 = " virtual/libopenvg virtual/libgles1 virtual
|
||||||
INHERIT += "fsl-dynamic-packagearch"
|
INHERIT += "fsl-dynamic-packagearch"
|
||||||
|
|
||||||
# Extra udev rules
|
# Extra udev rules
|
||||||
MACHINE_EXTRA_RRECOMMENDS += "udev-extraconf"
|
MACHINE_EXTRA_RRECOMMENDS += "udev-extraconf udev-rules-imx"
|
||||||
|
|
||||||
# GStreamer 0.10 plugins
|
# GStreamer 0.10 plugins
|
||||||
MACHINE_GSTREAMER_PLUGIN ?= "gst-fsl-plugin"
|
MACHINE_GSTREAMER_PLUGIN ?= "gst-fsl-plugin"
|
||||||
|
|
|
||||||
|
|
@ -1,33 +0,0 @@
|
||||||
# Create symlinks for i.mx keypads and touchscreens
|
|
||||||
#SUBSYSTEM=="input" KERNEL=="event*" ATTRS{name}=="mxckpd", SYMLINK+="input/keyboard0"
|
|
||||||
#SUBSYSTEM=="input" KERNEL=="event*" ATTRS{name}=="mxc_ts", SYMLINK+="input/ts0"
|
|
||||||
#SUBSYSTEM=="input" KERNEL=="event*" ATTRS{name}=="imx_adc_ts", SYMLINK+="input/ts0"
|
|
||||||
#SUBSYSTEM=="input" KERNEL=="event*" ATTRS{name}=="mpr084", SYMLINK+="input/keyboard0"
|
|
||||||
#SUBSYSTEM=="input" KERNEL=="event*" ATTRS{name}=="tsc2007", SYMLINK+="input/ts0"
|
|
||||||
#SUBSYSTEM=="input" KERNEL=="event*" ATTRS{name} =="STMP3XXX touchscreen", SYMLINK+="input/ts0"
|
|
||||||
#SUBSYSTEM=="input" KERNEL=="event*" ATTRS{name} =="MXS touchscreen", SYMLINK+="input/ts0"
|
|
||||||
#SUBSYSTEM=="input" KERNEL=="event*" ATTRS{name} =="HannStar P1003 Touchscreen", SYMLINK+="input/ts0"
|
|
||||||
#SUBSYSTEM=="input" KERNEL=="event*" ATTRS{name} =="eGalax Touch Screen", SYMLINK+="input/ts0"
|
|
||||||
|
|
||||||
# The long class name gets cut off to be mc13783_connectiv in
|
|
||||||
# /sys/class/mc13783_connectivity/mc13783_connectivit
|
|
||||||
KERNEL=="mc13783_connectiv*", NAME="mc13783_connectivity"
|
|
||||||
# Anyone has readonly permission to IIM device file
|
|
||||||
KERNEL=="mxc_iim", MODE="0444", SYMLINK+="mxc_mem"
|
|
||||||
KERNEL=="mxs_viim", MODE="0444", SYMLINK+="mxc_mem"
|
|
||||||
KERNEL=="mxc_ipu", MODE="0666"
|
|
||||||
KERNEL=="fb0", MODE="0666"
|
|
||||||
KERNEL=="fb1", MODE="0666"
|
|
||||||
KERNEL=="fb2", MODE="0666"
|
|
||||||
KERNEL=="mxc_vpu", MODE="0666"
|
|
||||||
SUBSYSTEM=="video", MODE="0666"
|
|
||||||
KERNEL=="gsl_kmod", MODE="0666"
|
|
||||||
|
|
||||||
# MXS serial port rules
|
|
||||||
KERNEL=="ttyAM0", MODE="0660", SYMLINK+="ttyS0"
|
|
||||||
KERNEL=="ttyAMA0", MODE="0660", SYMLINK+="ttyS0"
|
|
||||||
KERNEL=="ttySP0", MODE="0660", SYMLINK+="ttyBt"
|
|
||||||
KERNEL=="ttyAPP0", MODE="0660", SYMLINK+="ttyBt"
|
|
||||||
|
|
||||||
# i.MX6 serial port rules
|
|
||||||
KERNEL=="ttymxc1", MODE="0660", SYMLINK+="ttyBt"
|
|
||||||
|
|
@ -6,4 +6,14 @@ SRC_URI += "file://mount_bootparts.sh"
|
||||||
|
|
||||||
do_install_append() {
|
do_install_append() {
|
||||||
install -m 0755 ${WORKDIR}/mount_bootparts.sh ${D}${sysconfdir}/udev/scripts/
|
install -m 0755 ${WORKDIR}/mount_bootparts.sh ${D}${sysconfdir}/udev/scripts/
|
||||||
|
|
||||||
|
if [ -n "${BT_TTY}" ]; then
|
||||||
|
printf "%s\n%s\n" \
|
||||||
|
"# Symlink to the bluetooth tty" \
|
||||||
|
"KERNEL==\"${BT_TTY}\", MODE=\"0660\", GROUP=\"dialout\", SYMLINK+=\"ttyBt\"" \
|
||||||
|
>> ${D}${sysconfdir}/udev/rules.d/localextra.rules
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# BT_TTY is machine specific (defined in machine config file)
|
||||||
|
PACKAGE_ARCH = "${MACHINE_ARCH}"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue