diff options
author | Grigory Kletsko <grigory.kletsko@cogentembedded.com> | 2016-11-02 17:44:02 +0300 |
---|---|---|
committer | Harunobu Kurokawa <harunobu.kurokawa.dn@renesas.com> | 2016-11-10 14:30:27 +0900 |
commit | 3a9a34c592d654faec9feb337d1808ca0770fa13 (patch) | |
tree | 0abd5118fdb74bf66c062d2adac6c4fbf1f031a5 /meta-rcar-gen2/recipes-multimedia | |
parent | 8fe88dafa3271cadd7dba492ee98d613e8a87c39 (diff) |
Add multimedia kernel modules autostart scriptsandbox/harunobu.kurokawa/CES_2017_F2F
Change-Id: I9c87cf5efadecfea12129c59fcfa01c40fb30a5b
Signed-off-by: Grigory Kletsko <grigory.kletsko@cogentembedded.com>
Diffstat (limited to 'meta-rcar-gen2/recipes-multimedia')
-rw-r--r-- | meta-rcar-gen2/recipes-multimedia/mm-init/mm-init.bb | 16 | ||||
-rw-r--r-- | meta-rcar-gen2/recipes-multimedia/mm-init/mm-init/init | 28 |
2 files changed, 44 insertions, 0 deletions
diff --git a/meta-rcar-gen2/recipes-multimedia/mm-init/mm-init.bb b/meta-rcar-gen2/recipes-multimedia/mm-init/mm-init.bb new file mode 100644 index 0000000..3781a76 --- /dev/null +++ b/meta-rcar-gen2/recipes-multimedia/mm-init/mm-init.bb @@ -0,0 +1,16 @@ +SUMMARY = "Startup script for Renesas MM modules" +LICENSE = "CLOSED" + +SRC_URI = "file://init" + +S = "${WORKDIR}" + +do_install() { + install -d ${D}/${sysconfdir}/init.d + install -m755 ${WORKDIR}/init ${D}/${sysconfdir}/init.d/rc.mm +} + +inherit allarch update-rc.d + +INITSCRIPT_NAME = "rc.mm" +INITSCRIPT_PARAMS = "start 8 5 2 . stop 21 0 1 6 ." diff --git a/meta-rcar-gen2/recipes-multimedia/mm-init/mm-init/init b/meta-rcar-gen2/recipes-multimedia/mm-init/mm-init/init new file mode 100644 index 0000000..da32499 --- /dev/null +++ b/meta-rcar-gen2/recipes-multimedia/mm-init/mm-init/init @@ -0,0 +1,28 @@ +#!/bin/sh +# +### BEGIN INIT INFO +# Provides: mm +# Required-Start: $local_fs $remote_fs +# Required-Stop: $local_fs $remote_fs +# Default-Start: 2 5 +# Default-Stop: 0 1 6 +### END INIT INFO + +case "$1" in +"start") + # insert multimedia modules + /sbin/modprobe -q -a mmngr mmngrbuf s3ctl uvcs_cmn vspm fdpm + ;; +stop) + # remove multimedia modules + /sbin/modprobe -q -r -a mmngr mmngrbuf s3ctl uvcs_cmn vspm fdpm + ;; +reload|restart) + $0 stop + sleep 1 + $0 start + ;; +*) + echo "usage: $0 { start | stop | restart }" + ;; +esac |