summaryrefslogtreecommitdiff
path: root/recipes-core
diff options
context:
space:
mode:
authorMykyta Dorokhin <mykyta.dorokhin@globallogic.com>2016-08-31 12:41:03 +0300
committerMykyta Dorokhin <mykyta.dorokhin@globallogic.com>2016-08-31 12:41:03 +0300
commit8e0866632da9b6a12d44ccde718bed0dde3af9c5 (patch)
tree993eb3042c646d7365f225126d786efcfa86e84e /recipes-core
parentca697c01ef93c2a08493684b02656d3f93ca1a9d (diff)
downloadmeta-mlinux-8e0866632da9b6a12d44ccde718bed0dde3af9c5.tar.gz
meta-mlinux-8e0866632da9b6a12d44ccde718bed0dde3af9c5.tar.bz2
meta-mlinux-8e0866632da9b6a12d44ccde718bed0dde3af9c5.zip
mtp: Add initial support for the new pico machine type.
Build: MACHINE=mtp bitbake mlinux-picocell-image
Diffstat (limited to 'recipes-core')
-rw-r--r--recipes-core/base-files/base-files/mtp/fstab9
-rw-r--r--recipes-core/images/mlinux-picocell-image.bb7
-rw-r--r--recipes-core/udev/udev-182/mtp/mtp.rules8
3 files changed, 24 insertions, 0 deletions
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"