db845c: qcom: Add init.qcom.rc to start up remoteproc services/wifi
Adds the init.qcom.rc file to the build so the qcom remoteproc
userland code can be started and wifi can be initialized.
This pach was split out from earlier patch by Amit Pundir
<amit.pundir@linaro.org>
Change-Id: I2032e7c2d3d5d3a10b7afd387f97a93235a908cf
Signed-off-by: John Stultz <john.stultz@linaro.org>
diff --git a/db845c/device.mk b/db845c/device.mk
index f141081..5cdd38d 100644
--- a/db845c/device.mk
+++ b/db845c/device.mk
@@ -41,5 +41,8 @@
rmtfs \
tqftpserv
+PRODUCT_COPY_FILES += \
+ device/linaro/dragonboard/qcom/init.qcom.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/init.qcom.rc
+
# Copy firmware files
$(call inherit-product-if-exists, $(LOCAL_PATH)/firmware/device.mk)
diff --git a/qcom/init.qcom.rc b/qcom/init.qcom.rc
new file mode 100644
index 0000000..303fc9a
--- /dev/null
+++ b/qcom/init.qcom.rc
@@ -0,0 +1,43 @@
+service qrtr-ns /vendor/bin/qrtr-ns -f 1
+ class core
+ user root
+ group system
+ disabled
+ oneshot
+
+service pd_mapper /vendor/bin/pd-mapper
+ class core
+ user root
+ group system
+ disabled
+ oneshot
+
+service tqftpserv /vendor/bin/tqftpserv
+ class core
+ user root
+ group system
+ disabled
+ oneshot
+
+service rmtfs /vendor/bin/rmtfs -o /dev/block/platform/soc@0/1d84000.ufshc/by-name -P -r -s
+ class core
+ user root
+ group system
+ disabled
+ oneshot
+
+on early-init
+ exec - root -- /vendor/bin/qrtr-cfg 1
+ start qrtr-ns
+ start pd_mapper
+
+on post-fs-data
+ mkdir /data/vendor
+ mkdir /data/vendor/tmp
+ mkdir /data/vendor/readwrite
+ mkdir /data/vendor/readonly
+ mkdir /data/vendor/readonly/firmware
+ mkdir /data/vendor/readonly/firmware/image
+ write /sys/class/firmware/timeout 1
+ start tqftpserv
+ start rmtfs