demo: Add scripts for integrated cockpit demo
authorNikhil Devshatwar <nikhil.nd@ti.com>
Thu, 18 Jul 2019 18:23:00 +0000 (23:53 +0530)
committerNikhil Devshatwar <nikhil.nd@ti.com>
Thu, 18 Jul 2019 18:23:00 +0000 (23:53 +0530)
Signed-off-by: Nikhil Devshatwar <nikhil.nd@ti.com>
demo/cockpit-demo-cluster-VM.sh [new file with mode: 0755]
demo/cockpit-demo-infotainment-VM.sh [new file with mode: 0644]

diff --git a/demo/cockpit-demo-cluster-VM.sh b/demo/cockpit-demo-cluster-VM.sh
new file mode 100755 (executable)
index 0000000..9b500cd
--- /dev/null
@@ -0,0 +1,20 @@
+#!/bin/bash
+#Utility to run integrated cockpit on DRA8xx devices
+#This script needs to be run on the root cell (cluster VM)
+
+monitor_ivi_vm() {
+       sleep 100
+       ti-heartbeat-are-you-there
+}
+
+
+####### Start here
+##################
+
+/usr/share/jailhouse/linux-demo.sh
+
+cluster -d /dev/dri/card0 </dev/null  &
+
+monitor_ivi_vm &
+
+/usr/share/ti/util-scripts/demo/crash-VM.sh &
diff --git a/demo/cockpit-demo-infotainment-VM.sh b/demo/cockpit-demo-infotainment-VM.sh
new file mode 100644 (file)
index 0000000..926b3fd
--- /dev/null
@@ -0,0 +1,37 @@
+#!/bin/bash
+#Utility to run integrated cockpit on DRA8xx devices
+#This script needs to be run on the inmate cell (Infotainment VM)
+
+run_gfx_apps() {
+       DEMOLIST="OpenGLESImageBasedLighting OpenGLESDeferredShading OpenGLESIntroducingUIRenderer OpenGLESParticleSystem"
+       while true;
+       do
+               for i in $DEMOLIST;
+               do
+                       echo "                        Running $i...";
+                       timeout -t 12 -s 9 /usr/bin/SGX/demos/Wayland/$i -width=800 -height=600
+               done
+       done
+}
+
+run_multimedia() {
+       CLIPLIST="TearOfSteel-Short-1280x720.265"
+       while true;
+       do
+               for i in $CLIPLIST;
+               do
+                       gst-launch-1.0 filesrc location=/usr/share/ti/video/$i ! h265parse ! v4l2h265dec ! waylandsink
+               done
+       done
+}
+
+####### Start here
+##################
+
+/etc/init.d/matrix-gui-2.0 stop
+msleep 500
+. /etc/profile
+
+run_gfx_apps &
+
+run_multimedia &