From 8e0866632da9b6a12d44ccde718bed0dde3af9c5 Mon Sep 17 00:00:00 2001 From: Mykyta Dorokhin Date: Wed, 31 Aug 2016 12:41:03 +0300 Subject: mtp: Add initial support for the new pico machine type. Build: MACHINE=mtp bitbake mlinux-picocell-image --- recipes-core/base-files/base-files/mtp/fstab | 9 +++++++++ recipes-core/images/mlinux-picocell-image.bb | 7 +++++++ recipes-core/udev/udev-182/mtp/mtp.rules | 8 ++++++++ 3 files changed, 24 insertions(+) create mode 100644 recipes-core/base-files/base-files/mtp/fstab create mode 100644 recipes-core/images/mlinux-picocell-image.bb create mode 100644 recipes-core/udev/udev-182/mtp/mtp.rules diff --git a/recipes-core/base-files/base-files/mtp/fstab b/recipes-core/base-files/base-files/mtp/fstab new file mode 100644 index 0000000..01b5f38 --- /dev/null +++ b/recipes-core/base-files/base-files/mtp/fstab @@ -0,0 +1,9 @@ +rootfs / auto defaults 1 1 +proc /proc proc defaults 0 0 +devpts /dev/pts devpts mode=0620,gid=5 0 0 +usbdevfs /proc/bus/usb usbdevfs noauto 0 0 +tmpfs /run tmpfs mode=0755,nodev,nosuid,strictatime 0 0 +tmpfs /var/volatile tmpfs defaults 0 0 + +/dev/mtdblock6 /var/config jffs2 defaults 0 0 +/dev/mtdblock7 /var/oem jffs2 defaults,ro 0 0 diff --git a/recipes-core/images/mlinux-picocell-image.bb b/recipes-core/images/mlinux-picocell-image.bb new file mode 100644 index 0000000..09e0fd6 --- /dev/null +++ b/recipes-core/images/mlinux-picocell-image.bb @@ -0,0 +1,7 @@ +require mlinux-base-image.bb + +# Multi-Tech SMS Utility (see http://git.multitech.net) +IMAGE_INSTALL += "sms-utils" + +# MQTT server +IMAGE_INSTALL += "mosquitto mosquitto-clients" diff --git a/recipes-core/udev/udev-182/mtp/mtp.rules b/recipes-core/udev/udev-182/mtp/mtp.rules new file mode 100644 index 0000000..a0dc9fb --- /dev/null +++ b/recipes-core/udev/udev-182/mtp/mtp.rules @@ -0,0 +1,8 @@ +ACTION=="remove", GOTO="mlinux_end" +SUBSYSTEM!="tty", GOTO="mlinux_end" +KERNEL!="ttyXRUSB[0-9]*", GOTO="mlinux_end" + +SUBSYSTEMS=="usb", ENV{ID_IFACE}="$attr{bInterfaceNumber}" +ENV{ID_IFACE}=="", GOTO="mlinux_end" + +LABEL="mlinux_end" -- cgit v1.2.3