All of lore.kernel.org
 help / color / mirror / Atom feed
* Chase Maupin : am33x-cm3: use init script to load firmware
@ 2013-04-18 19:45 Arago Project git
  2013-04-19 16:15 ` Cooper Jr., Franklin
  0 siblings, 1 reply; 4+ messages in thread
From: Arago Project git @ 2013-04-18 19:45 UTC (permalink / raw)
  To: meta-ti

Module: meta-ti
Branch: master
Commit: 14a312f1e9d724d61d163d9872d7f6542ee180b9
URL:    http://arago-project.org/git/meta-ti.git?a=commit;h=14a312f1e9d724d61d163d9872d7f6542ee180b9

Author: Chase Maupin <Chase.Maupin@ti.com>
Date:   Thu Apr 18 13:10:00 2013 -0500

am33x-cm3: use init script to load firmware

* The PM firmware is now loaded using an init script so make
  the init script installation part of the firmware package.
* Fix up the SRC_URI to the proper format.

Signed-off-by: Chase Maupin <Chase.Maupin@ti.com>
Signed-off-by: Denys Dmytriyenko <denys@ti.com>

---

 recipes-bsp/ti/am33x-cm3/init-am33x-cm3 |    6 ++++++
 recipes-bsp/ti/am33x-cm3_git.bb         |   17 +++++++++++++++--
 2 files changed, 21 insertions(+), 2 deletions(-)

diff --git a/recipes-bsp/ti/am33x-cm3/init-am33x-cm3 b/recipes-bsp/ti/am33x-cm3/init-am33x-cm3
new file mode 100644
index 0000000..56c17b3
--- /dev/null
+++ b/recipes-bsp/ti/am33x-cm3/init-am33x-cm3
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+# Load the PM CM3 firmware
+echo 1 > /sys/devices/ocp.2/44d00000.wkup_m3/firmware/am335x-pm-firmware.bin/loading
+cat /lib/firmware/am335x-pm-firmware.bin > /sys/devices/ocp.2/44d00000.wkup_m3/firmware/am335x-pm-firmware.bin/data
+echo 0 > /sys/devices/ocp.2/44d00000.wkup_m3/firmware/am335x-pm-firmware.bin/loading
diff --git a/recipes-bsp/ti/am33x-cm3_git.bb b/recipes-bsp/ti/am33x-cm3_git.bb
index 247ba4d..169789e 100644
--- a/recipes-bsp/ti/am33x-cm3_git.bb
+++ b/recipes-bsp/ti/am33x-cm3_git.bb
@@ -4,9 +4,18 @@ LICENSE = "TI-BSD"
 LIC_FILES_CHKSUM = "file://License.txt;md5=858099c817e47ea63559fc6b67ae8d91"
 
 PV = "04.06.00.07"
+PR = "r1"
 SRCREV = "cf07b841d6e8c5e026eecb259d143f3dff412c8e"
+BRANCH ?= "master"
 
-SRC_URI = "git://arago-project.org/git/projects/am33x-cm3.git"
+INITSCRIPT_NAME = "am335x-pm-firmware-load"
+INITSCRIPT_PARAMS = "defaults 96"
+
+inherit update-rc.d
+
+SRC_URI = "git://arago-project.org/git/projects/am33x-cm3.git;protocol=git;branch=${BRANCH} \
+           file://init-am33x-cm3 \
+          "
 
 S = "${WORKDIR}/git"
 
@@ -17,7 +26,11 @@ do_compile() {
 do_install() {
 	install -d ${D}${base_libdir}/firmware
 	install -m 0644 bin/am335x-pm-firmware.bin ${D}${base_libdir}/firmware/
+
+	# Install the init script to load the PM firmware at boot
+	install -d ${D}${sysconfdir}/init.d
+	install -m 0755 ${WORKDIR}/init-am33x-cm3 ${D}${sysconfdir}/init.d/${INITSCRIPT_NAME}
 }
 
-FILES_${PN} = "${base_libdir}/firmware"
+FILES_${PN} += "${base_libdir}/firmware"
 



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

* Chase Maupin : am33x-cm3: use init script to load firmware
@ 2013-04-18 19:45 Arago Project git
  0 siblings, 0 replies; 4+ messages in thread
From: Arago Project git @ 2013-04-18 19:45 UTC (permalink / raw)
  To: meta-ti

Module: meta-ti
Branch: danny
Commit: 2ad1fd65b8cfc8b183bcaa4d28f2064aa4fa2229
URL:    http://arago-project.org/git/meta-ti.git?a=commit;h=2ad1fd65b8cfc8b183bcaa4d28f2064aa4fa2229

Author: Chase Maupin <Chase.Maupin@ti.com>
Date:   Thu Apr 18 13:10:00 2013 -0500

am33x-cm3: use init script to load firmware

* The PM firmware is now loaded using an init script so make
  the init script installation part of the firmware package.
* Fix up the SRC_URI to the proper format.

Signed-off-by: Chase Maupin <Chase.Maupin@ti.com>
Signed-off-by: Denys Dmytriyenko <denys@ti.com>

---

 recipes-bsp/ti/am33x-cm3/init-am33x-cm3 |    6 ++++++
 recipes-bsp/ti/am33x-cm3_git.bb         |   17 +++++++++++++++--
 2 files changed, 21 insertions(+), 2 deletions(-)

diff --git a/recipes-bsp/ti/am33x-cm3/init-am33x-cm3 b/recipes-bsp/ti/am33x-cm3/init-am33x-cm3
new file mode 100644
index 0000000..56c17b3
--- /dev/null
+++ b/recipes-bsp/ti/am33x-cm3/init-am33x-cm3
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+# Load the PM CM3 firmware
+echo 1 > /sys/devices/ocp.2/44d00000.wkup_m3/firmware/am335x-pm-firmware.bin/loading
+cat /lib/firmware/am335x-pm-firmware.bin > /sys/devices/ocp.2/44d00000.wkup_m3/firmware/am335x-pm-firmware.bin/data
+echo 0 > /sys/devices/ocp.2/44d00000.wkup_m3/firmware/am335x-pm-firmware.bin/loading
diff --git a/recipes-bsp/ti/am33x-cm3_git.bb b/recipes-bsp/ti/am33x-cm3_git.bb
index 247ba4d..169789e 100644
--- a/recipes-bsp/ti/am33x-cm3_git.bb
+++ b/recipes-bsp/ti/am33x-cm3_git.bb
@@ -4,9 +4,18 @@ LICENSE = "TI-BSD"
 LIC_FILES_CHKSUM = "file://License.txt;md5=858099c817e47ea63559fc6b67ae8d91"
 
 PV = "04.06.00.07"
+PR = "r1"
 SRCREV = "cf07b841d6e8c5e026eecb259d143f3dff412c8e"
+BRANCH ?= "master"
 
-SRC_URI = "git://arago-project.org/git/projects/am33x-cm3.git"
+INITSCRIPT_NAME = "am335x-pm-firmware-load"
+INITSCRIPT_PARAMS = "defaults 96"
+
+inherit update-rc.d
+
+SRC_URI = "git://arago-project.org/git/projects/am33x-cm3.git;protocol=git;branch=${BRANCH} \
+           file://init-am33x-cm3 \
+          "
 
 S = "${WORKDIR}/git"
 
@@ -17,7 +26,11 @@ do_compile() {
 do_install() {
 	install -d ${D}${base_libdir}/firmware
 	install -m 0644 bin/am335x-pm-firmware.bin ${D}${base_libdir}/firmware/
+
+	# Install the init script to load the PM firmware at boot
+	install -d ${D}${sysconfdir}/init.d
+	install -m 0755 ${WORKDIR}/init-am33x-cm3 ${D}${sysconfdir}/init.d/${INITSCRIPT_NAME}
 }
 
-FILES_${PN} = "${base_libdir}/firmware"
+FILES_${PN} += "${base_libdir}/firmware"
 



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

* Re: Chase Maupin : am33x-cm3: use init script to load firmware
  2013-04-18 19:45 Chase Maupin : am33x-cm3: use init script to load firmware Arago Project git
@ 2013-04-19 16:15 ` Cooper Jr., Franklin
  2013-04-19 17:44   ` Denys Dmytriyenko
  0 siblings, 1 reply; 4+ messages in thread
From: Cooper Jr., Franklin @ 2013-04-19 16:15 UTC (permalink / raw)
  To: Arago Project git, meta-ti@yoctoproject.org

Is this change related to the 3.8 kernel? The patch "linux-ti-staging: make cm3 firmware a run-time dependency" implies that this is indeed a 3.8 related change.
This makes things a bit tricky since this breaks the 3.2 kernel.




> -----Original Message-----
> From: meta-ti-bounces@yoctoproject.org [mailto:meta-ti-
> bounces@yoctoproject.org] On Behalf Of Arago Project git
> Sent: Thursday, April 18, 2013 2:46 PM
> To: meta-ti@yoctoproject.org
> Subject: [meta-ti] Chase Maupin : am33x-cm3: use init script to load
> firmware
> 
> Module: meta-ti
> Branch: master
> Commit: 14a312f1e9d724d61d163d9872d7f6542ee180b9
> URL:    http://arago-project.org/git/meta-
> ti.git?a=commit;h=14a312f1e9d724d61d163d9872d7f6542ee180b9
> 
> Author: Chase Maupin <Chase.Maupin@ti.com>
> Date:   Thu Apr 18 13:10:00 2013 -0500
> 
> am33x-cm3: use init script to load firmware
> 
> * The PM firmware is now loaded using an init script so make
>   the init script installation part of the firmware package.
> * Fix up the SRC_URI to the proper format.
> 
> Signed-off-by: Chase Maupin <Chase.Maupin@ti.com>
> Signed-off-by: Denys Dmytriyenko <denys@ti.com>
> 
> ---
> 
>  recipes-bsp/ti/am33x-cm3/init-am33x-cm3 |    6 ++++++
>  recipes-bsp/ti/am33x-cm3_git.bb         |   17 +++++++++++++++--
>  2 files changed, 21 insertions(+), 2 deletions(-)
> 
> diff --git a/recipes-bsp/ti/am33x-cm3/init-am33x-cm3 b/recipes-
> bsp/ti/am33x-cm3/init-am33x-cm3
> new file mode 100644
> index 0000000..56c17b3
> --- /dev/null
> +++ b/recipes-bsp/ti/am33x-cm3/init-am33x-cm3
> @@ -0,0 +1,6 @@
> +#!/bin/sh
> +
> +# Load the PM CM3 firmware
> +echo 1 >
> +/sys/devices/ocp.2/44d00000.wkup_m3/firmware/am335x-pm-
> firmware.bin/loa
> +ding cat /lib/firmware/am335x-pm-firmware.bin >
> +/sys/devices/ocp.2/44d00000.wkup_m3/firmware/am335x-pm-
> firmware.bin/dat
> +a echo 0 >
> +/sys/devices/ocp.2/44d00000.wkup_m3/firmware/am335x-pm-
> firmware.bin/loa
> +ding
> diff --git a/recipes-bsp/ti/am33x-cm3_git.bb b/recipes-bsp/ti/am33x-
> cm3_git.bb index 247ba4d..169789e 100644
> --- a/recipes-bsp/ti/am33x-cm3_git.bb
> +++ b/recipes-bsp/ti/am33x-cm3_git.bb
> @@ -4,9 +4,18 @@ LICENSE = "TI-BSD"
>  LIC_FILES_CHKSUM =
> "file://License.txt;md5=858099c817e47ea63559fc6b67ae8d91"
> 
>  PV = "04.06.00.07"
> +PR = "r1"
>  SRCREV = "cf07b841d6e8c5e026eecb259d143f3dff412c8e"
> +BRANCH ?= "master"
> 
> -SRC_URI = "git://arago-project.org/git/projects/am33x-cm3.git"
> +INITSCRIPT_NAME = "am335x-pm-firmware-load"
> +INITSCRIPT_PARAMS = "defaults 96"
> +
> +inherit update-rc.d
> +
> +SRC_URI = "git://arago-project.org/git/projects/am33x-
> cm3.git;protocol=git;branch=${BRANCH} \
> +           file://init-am33x-cm3 \
> +          "
> 
>  S = "${WORKDIR}/git"
> 
> @@ -17,7 +26,11 @@ do_compile() {
>  do_install() {
>  	install -d ${D}${base_libdir}/firmware
>  	install -m 0644 bin/am335x-pm-firmware.bin
> ${D}${base_libdir}/firmware/
> +
> +	# Install the init script to load the PM firmware at boot
> +	install -d ${D}${sysconfdir}/init.d
> +	install -m 0755 ${WORKDIR}/init-am33x-cm3
> +${D}${sysconfdir}/init.d/${INITSCRIPT_NAME}
>  }
> 
> -FILES_${PN} = "${base_libdir}/firmware"
> +FILES_${PN} += "${base_libdir}/firmware"
> 
> 
> _______________________________________________
> meta-ti mailing list
> meta-ti@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/meta-ti


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

* Re: Chase Maupin : am33x-cm3: use init script to load firmware
  2013-04-19 16:15 ` Cooper Jr., Franklin
@ 2013-04-19 17:44   ` Denys Dmytriyenko
  0 siblings, 0 replies; 4+ messages in thread
From: Denys Dmytriyenko @ 2013-04-19 17:44 UTC (permalink / raw)
  To: Cooper Jr., Franklin; +Cc: meta-ti@yoctoproject.org, Arago Project git

On Fri, Apr 19, 2013 at 04:15:05PM +0000, Cooper Jr., Franklin wrote:
> Is this change related to the 3.8 kernel? The patch "linux-ti-staging: make 
> cm3 firmware a run-time dependency" implies that this is indeed a 3.8 
> related change. This makes things a bit tricky since this breaks the 3.2 
> kernel.

Indeed. How long do you need to support 3.2 for after AM-SDK 5.07?

-- 
Denys

> > -----Original Message-----
> > From: meta-ti-bounces@yoctoproject.org [mailto:meta-ti-
> > bounces@yoctoproject.org] On Behalf Of Arago Project git
> > Sent: Thursday, April 18, 2013 2:46 PM
> > To: meta-ti@yoctoproject.org
> > Subject: [meta-ti] Chase Maupin : am33x-cm3: use init script to load
> > firmware
> > 
> > Module: meta-ti
> > Branch: master
> > Commit: 14a312f1e9d724d61d163d9872d7f6542ee180b9
> > URL:    http://arago-project.org/git/meta-
> > ti.git?a=commit;h=14a312f1e9d724d61d163d9872d7f6542ee180b9
> > 
> > Author: Chase Maupin <Chase.Maupin@ti.com>
> > Date:   Thu Apr 18 13:10:00 2013 -0500
> > 
> > am33x-cm3: use init script to load firmware
> > 
> > * The PM firmware is now loaded using an init script so make
> >   the init script installation part of the firmware package.
> > * Fix up the SRC_URI to the proper format.
> > 
> > Signed-off-by: Chase Maupin <Chase.Maupin@ti.com>
> > Signed-off-by: Denys Dmytriyenko <denys@ti.com>
> > 
> > ---
> > 
> >  recipes-bsp/ti/am33x-cm3/init-am33x-cm3 |    6 ++++++
> >  recipes-bsp/ti/am33x-cm3_git.bb         |   17 +++++++++++++++--
> >  2 files changed, 21 insertions(+), 2 deletions(-)
> > 
> > diff --git a/recipes-bsp/ti/am33x-cm3/init-am33x-cm3 b/recipes-
> > bsp/ti/am33x-cm3/init-am33x-cm3
> > new file mode 100644
> > index 0000000..56c17b3
> > --- /dev/null
> > +++ b/recipes-bsp/ti/am33x-cm3/init-am33x-cm3
> > @@ -0,0 +1,6 @@
> > +#!/bin/sh
> > +
> > +# Load the PM CM3 firmware
> > +echo 1 >
> > +/sys/devices/ocp.2/44d00000.wkup_m3/firmware/am335x-pm-
> > firmware.bin/loa
> > +ding cat /lib/firmware/am335x-pm-firmware.bin >
> > +/sys/devices/ocp.2/44d00000.wkup_m3/firmware/am335x-pm-
> > firmware.bin/dat
> > +a echo 0 >
> > +/sys/devices/ocp.2/44d00000.wkup_m3/firmware/am335x-pm-
> > firmware.bin/loa
> > +ding
> > diff --git a/recipes-bsp/ti/am33x-cm3_git.bb b/recipes-bsp/ti/am33x-
> > cm3_git.bb index 247ba4d..169789e 100644
> > --- a/recipes-bsp/ti/am33x-cm3_git.bb
> > +++ b/recipes-bsp/ti/am33x-cm3_git.bb
> > @@ -4,9 +4,18 @@ LICENSE = "TI-BSD"
> >  LIC_FILES_CHKSUM =
> > "file://License.txt;md5=858099c817e47ea63559fc6b67ae8d91"
> > 
> >  PV = "04.06.00.07"
> > +PR = "r1"
> >  SRCREV = "cf07b841d6e8c5e026eecb259d143f3dff412c8e"
> > +BRANCH ?= "master"
> > 
> > -SRC_URI = "git://arago-project.org/git/projects/am33x-cm3.git"
> > +INITSCRIPT_NAME = "am335x-pm-firmware-load"
> > +INITSCRIPT_PARAMS = "defaults 96"
> > +
> > +inherit update-rc.d
> > +
> > +SRC_URI = "git://arago-project.org/git/projects/am33x-
> > cm3.git;protocol=git;branch=${BRANCH} \
> > +           file://init-am33x-cm3 \
> > +          "
> > 
> >  S = "${WORKDIR}/git"
> > 
> > @@ -17,7 +26,11 @@ do_compile() {
> >  do_install() {
> >  	install -d ${D}${base_libdir}/firmware
> >  	install -m 0644 bin/am335x-pm-firmware.bin
> > ${D}${base_libdir}/firmware/
> > +
> > +	# Install the init script to load the PM firmware at boot
> > +	install -d ${D}${sysconfdir}/init.d
> > +	install -m 0755 ${WORKDIR}/init-am33x-cm3
> > +${D}${sysconfdir}/init.d/${INITSCRIPT_NAME}
> >  }
> > 
> > -FILES_${PN} = "${base_libdir}/firmware"
> > +FILES_${PN} += "${base_libdir}/firmware"
> > 
> > 
> > _______________________________________________
> > meta-ti mailing list
> > meta-ti@yoctoproject.org
> > https://lists.yoctoproject.org/listinfo/meta-ti
> _______________________________________________
> meta-ti mailing list
> meta-ti@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/meta-ti


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

end of thread, other threads:[~2013-04-19 17:44 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-18 19:45 Chase Maupin : am33x-cm3: use init script to load firmware Arago Project git
2013-04-19 16:15 ` Cooper Jr., Franklin
2013-04-19 17:44   ` Denys Dmytriyenko
  -- strict thread matches above, loose matches on Subject: below --
2013-04-18 19:45 Arago Project git

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.