All of lore.kernel.org
 help / color / mirror / Atom feed
From: John Faith <john@soundmetrics.com>
To: openembedded-devel@lists.openembedded.org
Subject: [PATCH] PowerVR init script
Date: Tue, 26 May 2009 12:57:42 -0700	[thread overview]
Message-ID: <4A1C49B6.5050108@soundmetrics.com> (raw)

[-- 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


             reply	other threads:[~2009-05-26 20:05 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-05-26 19:57 John Faith [this message]
2009-05-26 21:13 ` [PATCH] PowerVR init script 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4A1C49B6.5050108@soundmetrics.com \
    --to=john@soundmetrics.com \
    --cc=openembedded-devel@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.