All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] PowerVR init script
@ 2009-05-26 19:57 John Faith
  2009-05-26 21:13 ` Koen Kooi
  2009-05-27  9:11 ` John Willis
  0 siblings, 2 replies; 6+ messages in thread
From: John Faith @ 2009-05-26 19:57 UTC (permalink / raw)
  To: openembedded-devel

[-- Attachment #1: Type: text/plain, Size: 130 bytes --]

Hello,
Please review the attached patch which lets the PowerVR init script 
handle start, stop and restart.

Thanks,
John


[-- Attachment #2: 0001-OMAP35x-PowerVR-init-script-allow-start-stop-rest.patch --]
[-- Type: text/x-diff, Size: 1422 bytes --]

From d57fb40126807a028f4dd66505c1739c77aa1e9b Mon Sep 17 00:00:00 2001
From: John Faith <jfaith@dr-laptop.(none)>
Date: Tue, 26 May 2009 11:53:39 -0700
Subject: [PATCH] OMAP35x PowerVR init script: allow start, stop, restart

Init scripts should handle start, stop and restart.  Also ignore stderr on
rmmod.

Signed-off-by: john@soundmetrics.com
---
 recipes/powervr-drivers/libgles-omap3/rc.pvr |   22 ++++++++++++++++++----
 1 files changed, 18 insertions(+), 4 deletions(-)

diff --git a/recipes/powervr-drivers/libgles-omap3/rc.pvr b/recipes/powervr-drivers/libgles-omap3/rc.pvr
index 244f480..6964c7d 100755
--- a/recipes/powervr-drivers/libgles-omap3/rc.pvr
+++ b/recipes/powervr-drivers/libgles-omap3/rc.pvr
@@ -1,12 +1,26 @@
 #!/bin/sh
 
-#rmmod bc_example
-rmmod omaplfb
-rmmod pvrsrvkm
+if [ "$1" = "" ]; then
+	echo PVR-INIT: Please use start, stop, or restart.
+	exit 1
+fi
+
+if [ "$1" = "stop" -o  "$1" = "restart" ]; then
+	echo Stopping PVR
+	#rmmod bc_example
+	rmmod omaplfb 2>/dev/null
+	rmmod pvrsrvkm 2>/dev/null
+fi
+
+if [ "$1" = "stop" ]; then
+	exit 0
+fi
 
+echo Starting PVR
 insmod $(busybox find /lib/modules/$(uname -r) -name "pvrsrvkm.ko")
 #modprobe bc_example
-modprobe omaplfb
+#modprobe omaplfb
+insmod $(busybox find /lib/modules/$(uname -r) -name "omaplfb.ko")
 
 pvr_maj=`grep "pvrsrvkm$" /proc/devices | cut -b1,2,3`
 
-- 
1.5.4.3


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2009-05-27 19:41 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-05-26 19:57 [PATCH] PowerVR init script John Faith
2009-05-26 21:13 ` Koen Kooi
2009-05-26 21:55   ` John Faith
2009-05-27  9:11 ` John Willis
2009-05-27 15:28   ` John Faith
2009-05-27 18:19     ` Denys Dmytriyenko

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.