summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Stultz <john.stultz@linaro.org>2020-02-26 20:23:14 +0000
committerJohn Stultz <john.stultz@linaro.org>2020-03-17 04:10:56 +0000
commit590ccad6562b46d75a2eb61ebecc13dd0a0a02dc (patch)
tree295be7cffcdc2ea55ba7e648150a5ad113196df3
parentbc945f07855c7e36eb610d6231fd76dd920291b8 (diff)
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>
-rw-r--r--db845c/device.mk3
-rw-r--r--qcom/init.qcom.rc43
2 files changed, 46 insertions, 0 deletions
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 @@ PRODUCT_PACKAGES += \
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