Skip to contentSkip to conversation

Recipe initscript-debugfs: mount debugfs in the initscripts when linux starts up

PATCH In review [email protected] 3 participants 5 messages May 8, 2013 – May 14, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 Recipe initscript-debugfs: mount debugfs in the initscripts when linux starts up

From: Jingting Zhou <[email protected]>

needed by ti-multiprocmgr, when the mgm loads the dsp image, the system printf messages come from the debugfs

---
 .../initscript-debugfs/files/debugfs.sh            |   40 ++++++++++++++++++++
 .../initscript-debugfs/initscript-debugfs.bb       |   20 ++++++++++
 2 files changed, 60 insertions(+)
 create mode 100755 meta-arago-extras/recipes-bsp/initscript-debugfs/files/debugfs.sh
 create mode 100755 meta-arago-extras/recipes-bsp/initscript-debugfs/initscript-debugfs.bb
meta-arago-extras/recipes-bsp/initscript-debugfs/files/debugfs.sh new file +40 -0
new file mode 100755
index 0000000..9b26279
@@ -0,0 +1,40 @@
+#!/bin/sh
+
+#   Copyright 2012, Texas Instruments, Inc.
+#  
+#   Redistribution and use in source and binary forms, with or without 
+#   modification, are permitted provided that the following conditions 
+#   are met:
+# 
+#     Redistributions of source code must retain the above copyright 
+#     notice, this list of conditions and the following disclaimer.
+# 
+#     Redistributions in binary form must reproduce the above copyright
+#     notice, this list of conditions and the following disclaimer in the 
+#     documentation and/or other materials provided with the   
+#     distribution.
+# 
+#     Neither the name of Texas Instruments Incorporated nor the names of
+#     its contributors may be used to endorse or promote products derived
+#     from this software without specific prior written permission.
+# 
+#   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 
+#   "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 
+#   LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+#   A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 
+#   OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 
+#   SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 
+#   LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+#   DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+#   THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 
+#   (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 
+#   OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+# 
+
+
+if ! [ -e /debug ] ; then
+  mkdir -p /debug
+fi
+mount -t debugfs debugfs /debug
+
+exit 0
meta-arago-extras/recipes-bsp/initscript-debugfs/initscript-debugfs.bb new file +20 -0
new file mode 100755
index 0000000..f8145ba
@@ -0,0 +1,20 @@
+DESCRIPTION = "Initscripts for debugfs"
+LICENSE = "BSD"
+
+LIC_FILES_CHKSUM = "file://debugfs.sh;startline=3;endline=32;md5=4d96701a693bf321ad2d15026a285446"
+
+PR ="r0"
+
+SRC_URI = "file://debugfs.sh"
+		   
+INITSCRIPT_NAME = "debugfs.sh"
+INITSCRIPT_PARAMS = "start 09 S ."
+
+inherit update-rc.d
+
+S = "${WORKDIR}"
+
+do_install () {
+	install -d ${D}${sysconfdir}/init.d/ 
+	install -c -m 755 ${WORKDIR}/debugfs.sh ${D}${sysconfdir}/init.d/debugfs.sh 
+}
Signature · 1 line
1.7.9.5
#1 lore raw

PATCH 2/2 Added initscript-debugfs to the server-extra packagegroup list

From: Jingting Zhou <[email protected]>

---
 .../packagegroup-arago-base-tisdk-server-extra.bb  |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-base-tisdk-server-extra.bb +2 -1
index 46db7c2..dfc78c2 100755
@@ -1,7 +1,7 @@
 DESCRIPTION = "Additional packages beyond console packages shared by TI SDKs"
 LICENSE = "MIT"
 LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
-PR = "r7"
+PR = "r8"
 
 inherit packagegroup
 
@@ -95,4 +95,5 @@ RDEPENDS_${PN} = "\
     ti-netapi \
     ti-ipc \
     ebtables \
+    initscript-debugfs \
 	"
Signature · 1 line
1.7.9.5
Acked-by on v1 2/2
#2 lore raw

Re: [PATCH 2/2] Added initscript-debugfs to the server-extra packagegroup list

Sincerely,
Chase Maupin
Integration Team Manager
Linux Core Product Development
e-mail: [email protected]
phone: (214) 567-2950

For support:
Forums - http://community.ti.com/forums/
Wiki - http://wiki.davincidsp.com/

Quoted 50 lines

-----Original Message-----
From: [email protected] [mailto:meta-arago- [email protected]] On Behalf Of Zhou, Jingting
Sent: Wednesday, May 08, 2013 5:30 PM
To: [email protected]
Cc: Zhou, Jingting
Subject: [meta-arago] [PATCH 2/2] Added initscript-debugfs to the server-extra packagegroup list

From: Jingting Zhou <[email protected]>

---
 .../packagegroup-arago-base-tisdk-server-extra.bb  |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
(quoted diff) +0 -0

core/packagegroups/packagegroup-arago-base-tisdk-server-extra.bb b/meta-arago-distro/recipes-core/packagegroups/packagegroup- arago-base-tisdk-server-extra.bb
index 46db7c2..dfc78c2 100755
--- a/meta-arago-distro/recipes-core/packagegroups/packagegroup- arago-base-tisdk-server-extra.bb
+++ b/meta-arago-distro/recipes-core/packagegroups/packagegroup- arago-base-tisdk-server-extra.bb

(quoted diff) +0 -0
@@ -1,7 +1,7 @@
 DESCRIPTION = "Additional packages beyond console packages

shared by TI SDKs"
LICENSE = "MIT"
LIC_FILES_CHKSUM =
"file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b 4de20420"

meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-base-tisdk-server-extra.bb +2 -2
-PR = "r7"
+PR = "r8"
 
 inherit packagegroup
@@ -95,4 +95,5 @@ RDEPENDS_${PN} = "\
     ti-netapi \
     ti-ipc \
     ebtables \
+    initscript-debugfs \
 	"
--

1.7.9.5

_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago

#3 lore raw

Re: [PATCH 2/2] Added initscript-debugfs to the server-extra packagegroup list

In reply to [email protected]

meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-base-tisdk-server-extra.bb

Quoted 11 lines · On Wed, May 08, 2013 at 06:30:02PM -0400, [email protected] wrote:

From: Jingting Zhou <[email protected]>

---
 .../packagegroup-arago-base-tisdk-server-extra.bb  |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-base-tisdk-server-extra.bb +0 -0
index 46db7c2..dfc78c2 100755

^^^^^^ There is no such file in meta-arago...

Quoted 23 lines
meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-base-tisdk-server-extra.bb +2 -1
@@ -1,7 +1,7 @@
 DESCRIPTION = "Additional packages beyond console packages shared by TI SDKs"
 LICENSE = "MIT"
 LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
-PR = "r7"
+PR = "r8"
 
 inherit packagegroup
 
@@ -95,4 +95,5 @@ RDEPENDS_${PN} = "\
     ti-netapi \
     ti-ipc \
     ebtables \
+    initscript-debugfs \
 	"
Signature · 6 lines
1.7.9.5

_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago
Acked-by on v1 1/2
#4 lore raw
In reply to [email protected]

Sincerely,
Chase Maupin
Integration Team Manager
Linux Core Product Development
e-mail: [email protected]
phone: (214) 567-2950

For support:
Forums - http://community.ti.com/forums/
Wiki - http://wiki.davincidsp.com/

Quoted 134 lines

-----Original Message-----
From: [email protected] [mailto:meta-arago- [email protected]] On Behalf Of Zhou, Jingting
Sent: Wednesday, May 08, 2013 5:30 PM
To: [email protected]
Cc: Zhou, Jingting
Subject: [meta-arago] [PATCH 1/2] Recipe initscript-debugfs:
mount debugfs in the initscripts when linux starts up

From: Jingting Zhou <[email protected]>

needed by ti-multiprocmgr, when the mgm loads the dsp image, the system printf messages come from the debugfs

---
 .../initscript-debugfs/files/debugfs.sh            |   40
++++++++++++++++++++
 .../initscript-debugfs/initscript-debugfs.bb       |   20
++++++++++
 2 files changed, 60 insertions(+)
 create mode 100755 meta-arago-extras/recipes-bsp/initscript-
debugfs/files/debugfs.sh
 create mode 100755 meta-arago-extras/recipes-bsp/initscript-

debugfs/initscript-debugfs.bb

(quoted diff) +0 -0

debugfs/files/debugfs.sh b/meta-arago-extras/recipes- bsp/initscript-debugfs/files/debugfs.sh
new file mode 100755
index 0000000..9b26279

meta-arago-extras/recipes-bsp/initscript- new file +0 -0

debugfs/files/debugfs.sh

meta-arago-extras/recipes-bsp/initscript- new file +5 -0
@@ -0,0 +1,40 @@
+#!/bin/sh
+
+#   Copyright 2012, Texas Instruments, Inc.
+#
+#   Redistribution and use in source and binary forms, with or

without
+# modification, are permitted provided that the following
conditions

meta-arago-extras/recipes-bsp/initscript- new file +3 -0
+#   are met:
+#
+#     Redistributions of source code must retain the above

copyright
+# notice, this list of conditions and the following
disclaimer.

meta-arago-extras/recipes-bsp/initscript- new file +2 -0
+#
+#     Redistributions in binary form must reproduce the above

copyright
+# notice, this list of conditions and the following
disclaimer in the

meta-arago-extras/recipes-bsp/initscript- new file +4 -0
+#     documentation and/or other materials provided with the
+#     distribution.
+#
+#     Neither the name of Texas Instruments Incorporated nor the

names of
+# its contributors may be used to endorse or promote
products derived
+# from this software without specific prior written
permission.

meta-arago-extras/recipes-bsp/initscript- new file +2 -0
+#
+#   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND

CONTRIBUTORS
+# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING,
BUT NOT
+# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
FITNESS FOR
+# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
COPYRIGHT
+# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
INCIDENTAL,
+# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
NOT
+# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE,
+# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
AND ON ANY
+# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT
+# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
OF THE USE
+# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
DAMAGE.

meta-arago-extras/recipes-bsp/initscript- new file +9 -0
+#
+
+
+if ! [ -e /debug ] ; then
+  mkdir -p /debug
+fi
+mount -t debugfs debugfs /debug
+
+exit 0
(quoted diff) +0 -0

debugfs/initscript-debugfs.bb b/meta-arago-extras/recipes- bsp/initscript-debugfs/initscript-debugfs.bb
new file mode 100755
index 0000000..f8145ba

meta-arago-extras/recipes-bsp/initscript- new file +0 -0

debugfs/initscript-debugfs.bb

meta-arago-extras/recipes-bsp/initscript- new file +4 -0
@@ -0,0 +1,20 @@
+DESCRIPTION = "Initscripts for debugfs"
+LICENSE = "BSD"
+
+LIC_FILES_CHKSUM =

"file://debugfs.sh;startline=3;endline=32;md5=4d96701a693bf321ad2 d15026a285446"

meta-arago-extras/recipes-bsp/initscript- new file +15 -0
+
+PR ="r0"
+
+SRC_URI = "file://debugfs.sh"
+
+INITSCRIPT_NAME = "debugfs.sh"
+INITSCRIPT_PARAMS = "start 09 S ."
+
+inherit update-rc.d
+
+S = "${WORKDIR}"
+
+do_install () {
+	install -d ${D}${sysconfdir}/init.d/
+	install -c -m 755 ${WORKDIR}/debugfs.sh

${D}${sysconfdir}/init.d/debugfs.sh
+}
--
1.7.9.5

_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago