summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrandon Bayer <bbayer@multitech.com>2016-09-01 16:24:58 -0500
committerBrandon Bayer <bbayer@multitech.com>2016-09-01 16:24:58 -0500
commit7c7f115424d07c226ec238980d2f33e02ba6414c (patch)
tree993eb3042c646d7365f225126d786efcfa86e84e
parentca697c01ef93c2a08493684b02656d3f93ca1a9d (diff)
parent8e0866632da9b6a12d44ccde718bed0dde3af9c5 (diff)
downloadmeta-mlinux-7c7f115424d07c226ec238980d2f33e02ba6414c.tar.gz
meta-mlinux-7c7f115424d07c226ec238980d2f33e02ba6414c.tar.bz2
meta-mlinux-7c7f115424d07c226ec238980d2f33e02ba6414c.zip
Merge branch 'dev-mtp' into 'internal-dev'
mtp: Add initial support for the new pico machine type. Build: MACHINE=mtp bitbake mlinux-picocell-image See merge request !1
-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"