Skip to contentSkip to conversation

recipes-bsp: tifs-lpm-stub: Introduce new recipe

PATCH In review Ryan Eatmon 3 participants 5 messages May 4, 2022 – May 5, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 recipes-bsp: tifs-lpm-stub: Introduce new recipe

This firmware stub is required by the TI foundational security software while transitioning to low power mode.

Add a recipe for this compatible with am62xx-evm

---
 recipes-bsp/ti-linux-fw/ti-linux-fw.inc       |  1 +
 .../tifs-lpm-stub/tifs-lpm-stub_git.bb        | 24 +++++++++++++++++++
 recipes-kernel/linux/kernel-rdepends.inc      |  4 ++++
 3 files changed, 29 insertions(+)
 create mode 100644 recipes-bsp/tifs-lpm-stub/tifs-lpm-stub_git.bb
recipes-bsp/ti-linux-fw/ti-linux-fw.inc +1 -0
index 3ebdae30..47e76347 100644
@@ -18,6 +18,7 @@ GOODIX_FW_VERSION = "1.0.0.0"
 CADENCE_MHDP_FW_VERSION = "1.2.17"
 IMG_DEC_FW_VERSION = "1.0"
 CNM_WAVE521_FW_VERSION = "1.0.00"
+TIFS_LPM_STUB_FW_VERSION = "08.03.02"
 
 TI_LINUX_FW_SRCREV ?= "917625c2721eef8677df9e47d919005b0d4f93aa"
 SRCREV = "${TI_LINUX_FW_SRCREV}"
recipes-bsp/tifs-lpm-stub/tifs-lpm-stub_git.bb new file +24 -0
new file mode 100644
index 00000000..642a8d3a
@@ -0,0 +1,24 @@
+SUMMARY = "TI Foundational security Low Power Management Stub"
+
+require recipes-bsp/ti-linux-fw/ti-linux-fw.inc
+
+PV = "${TIFS_LPM_STUB_FW_VERSION}"
+PR = "${INC_PR}.0"
+
+CLEANBROKEN = "1"
+
+COMPATIBLE_MACHINE = "am62xx-evm"
+
+PACKAGE_ARCH = "${MACHINE_ARCH}"
+
+S = "${WORKDIR}/git"
+
+TARGET = "ti-fs-stub-firmware-am62x-gp-signed.bin"
+
+do_install() {
+	install -d ${D}${base_libdir}/firmware/ti-sysfw/
+	install -m 0644 ${S}/ti-sysfw/${TARGET} ${D}${base_libdir}/firmware/ti-sysfw/${TARGET}
+}
+
+FILES_${PN} = "${base_libdir}/firmware"
+
recipes-kernel/linux/kernel-rdepends.inc +4 -0
index 522d9674..17aee4c2 100644
@@ -45,3 +45,7 @@ RDEPENDS_${KERNEL_PACKAGE_NAME}-base_append_j7 = " vxd-dec-fw"
 
 # Add run-time dependency for Chips&Media Wave521 firmware to the rootfs
 RDEPENDS_${KERNEL_PACKAGE_NAME}-base_append_j721s2-evm = " cnm-wave-fw"
+
+# Add run-time dependency for TIFS Low Power Module stub
+RDEPENDS_${KERNEL_PACKAGE_NAME}-base_append_am62xx-evm = " tifs-lpm-stub"
+
Signature · 1 line
2.17.1
#1 lore raw
Quoted 4 lines · Ryan Eatmon via lists.yoctoproject.org

This firmware stub is required by the TI foundational security software while transitioning to low power mode.

Add a recipe for this compatible with am62xx-evm

Is it GP only FW?

Quoted 65 lines
---
 recipes-bsp/ti-linux-fw/ti-linux-fw.inc       |  1 +
 .../tifs-lpm-stub/tifs-lpm-stub_git.bb        | 24 +++++++++++++++++++
 recipes-kernel/linux/kernel-rdepends.inc      |  4 ++++
 3 files changed, 29 insertions(+)
 create mode 100644 recipes-bsp/tifs-lpm-stub/tifs-lpm-stub_git.bb
recipes-bsp/ti-linux-fw/ti-linux-fw.inc +1 -0
index 3ebdae30..47e76347 100644
@@ -18,6 +18,7 @@ GOODIX_FW_VERSION = "1.0.0.0"
 CADENCE_MHDP_FW_VERSION = "1.2.17"
 IMG_DEC_FW_VERSION = "1.0"
 CNM_WAVE521_FW_VERSION = "1.0.00"
+TIFS_LPM_STUB_FW_VERSION = "08.03.02"
 
 TI_LINUX_FW_SRCREV ?= "917625c2721eef8677df9e47d919005b0d4f93aa"
 SRCREV = "${TI_LINUX_FW_SRCREV}"
recipes-bsp/tifs-lpm-stub/tifs-lpm-stub_git.bb new file +24 -0
new file mode 100644
index 00000000..642a8d3a
@@ -0,0 +1,24 @@
+SUMMARY = "TI Foundational security Low Power Management Stub"
+
+require recipes-bsp/ti-linux-fw/ti-linux-fw.inc
+
+PV = "${TIFS_LPM_STUB_FW_VERSION}"
+PR = "${INC_PR}.0"
+
+CLEANBROKEN = "1"
+
+COMPATIBLE_MACHINE = "am62xx-evm"
+
+PACKAGE_ARCH = "${MACHINE_ARCH}"
+
+S = "${WORKDIR}/git"
+
+TARGET = "ti-fs-stub-firmware-am62x-gp-signed.bin"
+
+do_install() {
+	install -d ${D}${base_libdir}/firmware/ti-sysfw/
+	install -m 0644 ${S}/ti-sysfw/${TARGET} ${D}${base_libdir}/firmware/ti-sysfw/${TARGET}
+}
+
+FILES_${PN} = "${base_libdir}/firmware"
+
recipes-kernel/linux/kernel-rdepends.inc +4 -0
index 522d9674..17aee4c2 100644
@@ -45,3 +45,7 @@ RDEPENDS_${KERNEL_PACKAGE_NAME}-base_append_j7 = " vxd-dec-fw"
 
 # Add run-time dependency for Chips&Media Wave521 firmware to the rootfs
 RDEPENDS_${KERNEL_PACKAGE_NAME}-base_append_j721s2-evm = " cnm-wave-fw"
+
+# Add run-time dependency for TIFS Low Power Module stub
+RDEPENDS_${KERNEL_PACKAGE_NAME}-base_append_am62xx-evm = " tifs-lpm-stub"
+
Signature · 1 line
2.17.1
#2 lore raw
Quoted 7 lines · Denys Dmytriyenko
Quoted 4 lines · Ryan Eatmon via lists.yoctoproject.org

This firmware stub is required by the TI foundational security software while transitioning to low power mode.

Add a recipe for this compatible with am62xx-evm

Is it GP only FW?

Not sure how to answer that. I was just told to pick up this change for the release and I cleaned it up to match a more consistent style.

Quoted 66 lines
Quoted 66 lines
---
  recipes-bsp/ti-linux-fw/ti-linux-fw.inc       |  1 +
  .../tifs-lpm-stub/tifs-lpm-stub_git.bb        | 24 +++++++++++++++++++
  recipes-kernel/linux/kernel-rdepends.inc      |  4 ++++
  3 files changed, 29 insertions(+)

create mode 100644 recipes-bsp/tifs-lpm-stub/tifs-lpm-stub_git.bb

recipes-bsp/ti-linux-fw/ti-linux-fw.inc +1 -0
index 3ebdae30..47e76347 100644
@@ -18,6 +18,7 @@ GOODIX_FW_VERSION = "1.0.0.0"
  CADENCE_MHDP_FW_VERSION = "1.2.17"
  IMG_DEC_FW_VERSION = "1.0"
  CNM_WAVE521_FW_VERSION = "1.0.00"
+TIFS_LPM_STUB_FW_VERSION = "08.03.02"
 
  TI_LINUX_FW_SRCREV ?= "917625c2721eef8677df9e47d919005b0d4f93aa"
  SRCREV = "${TI_LINUX_FW_SRCREV}"
recipes-bsp/tifs-lpm-stub/tifs-lpm-stub_git.bb new file +24 -0
new file mode 100644
index 00000000..642a8d3a
@@ -0,0 +1,24 @@
+SUMMARY = "TI Foundational security Low Power Management Stub"
+
+require recipes-bsp/ti-linux-fw/ti-linux-fw.inc
+
+PV = "${TIFS_LPM_STUB_FW_VERSION}"
+PR = "${INC_PR}.0"
+
+CLEANBROKEN = "1"
+
+COMPATIBLE_MACHINE = "am62xx-evm"
+
+PACKAGE_ARCH = "${MACHINE_ARCH}"
+
+S = "${WORKDIR}/git"
+
+TARGET = "ti-fs-stub-firmware-am62x-gp-signed.bin"
+
+do_install() {
+	install -d ${D}${base_libdir}/firmware/ti-sysfw/
+	install -m 0644 ${S}/ti-sysfw/${TARGET} ${D}${base_libdir}/firmware/ti-sysfw/${TARGET}
+}
+
+FILES_${PN} = "${base_libdir}/firmware"
+
recipes-kernel/linux/kernel-rdepends.inc +4 -0
index 522d9674..17aee4c2 100644
@@ -45,3 +45,7 @@ RDEPENDS_${KERNEL_PACKAGE_NAME}-base_append_j7 = " vxd-dec-fw"
 
  # Add run-time dependency for Chips&Media Wave521 firmware to the rootfs
  RDEPENDS_${KERNEL_PACKAGE_NAME}-base_append_j721s2-evm = " cnm-wave-fw"
+
+# Add run-time dependency for TIFS Low Power Module stub
+RDEPENDS_${KERNEL_PACKAGE_NAME}-base_append_am62xx-evm = " tifs-lpm-stub"
+
Signature · 1 line
2.17.1
Signature · 3 lines
Ryan Eatmon                [email protected]
-----------------------------------------
Texas Instruments, Inc.  -  LCPD  -  MGTS
#3 lore raw
Quoted 7 lines · Ryan Eatmon
Quoted 4 lines · Denys Dmytriyenko
Quoted 3 lines · Ryan Eatmon via lists.yoctoproject.org

This firmware stub is required by the TI foundational security software while transitioning to low power mode.

Quoted 7 lines
Quoted 3 lines
Quoted 1 line

Add a recipe for this compatible with am62xx-evm

Is it GP only FW?

Not sure how to answer that. I was just told to pick up this change for the release and I cleaned it up to match a more consistent style.

Adding Nikhil to direct recipients.

The reason I'm asking - the change is specific to am62xx-evm and not a more generic am62xx family (GP, HS, custom(er) boards).

Plus the FW name is "ti-fs-stub-firmware-am62x-gp-signed.bin" with GP in the name, hence the question.

Quoted 63 lines
Quoted 63 lines
Quoted 63 lines
---
 recipes-bsp/ti-linux-fw/ti-linux-fw.inc       |  1 +
 .../tifs-lpm-stub/tifs-lpm-stub_git.bb        | 24 +++++++++++++++++++
 recipes-kernel/linux/kernel-rdepends.inc      |  4 ++++
 3 files changed, 29 insertions(+)
 create mode 100644 recipes-bsp/tifs-lpm-stub/tifs-lpm-stub_git.bb
recipes-bsp/ti-linux-fw/ti-linux-fw.inc +1 -0
index 3ebdae30..47e76347 100644
@@ -18,6 +18,7 @@ GOODIX_FW_VERSION = "1.0.0.0"
 CADENCE_MHDP_FW_VERSION = "1.2.17"
 IMG_DEC_FW_VERSION = "1.0"
 CNM_WAVE521_FW_VERSION = "1.0.00"
+TIFS_LPM_STUB_FW_VERSION = "08.03.02"
 TI_LINUX_FW_SRCREV ?= "917625c2721eef8677df9e47d919005b0d4f93aa"
 SRCREV = "${TI_LINUX_FW_SRCREV}"
recipes-bsp/tifs-lpm-stub/tifs-lpm-stub_git.bb new file +24 -0
new file mode 100644
index 00000000..642a8d3a
@@ -0,0 +1,24 @@
+SUMMARY = "TI Foundational security Low Power Management Stub"
+
+require recipes-bsp/ti-linux-fw/ti-linux-fw.inc
+
+PV = "${TIFS_LPM_STUB_FW_VERSION}"
+PR = "${INC_PR}.0"
+
+CLEANBROKEN = "1"
+
+COMPATIBLE_MACHINE = "am62xx-evm"
+
+PACKAGE_ARCH = "${MACHINE_ARCH}"
+
+S = "${WORKDIR}/git"
+
+TARGET = "ti-fs-stub-firmware-am62x-gp-signed.bin"
+
+do_install() {
+	install -d ${D}${base_libdir}/firmware/ti-sysfw/
+	install -m 0644 ${S}/ti-sysfw/${TARGET} ${D}${base_libdir}/firmware/ti-sysfw/${TARGET}
+}
+
+FILES_${PN} = "${base_libdir}/firmware"
+
recipes-kernel/linux/kernel-rdepends.inc +4 -0
index 522d9674..17aee4c2 100644
@@ -45,3 +45,7 @@ RDEPENDS_${KERNEL_PACKAGE_NAME}-base_append_j7 = " vxd-dec-fw"
 # Add run-time dependency for Chips&Media Wave521 firmware to the rootfs
 RDEPENDS_${KERNEL_PACKAGE_NAME}-base_append_j721s2-evm = " cnm-wave-fw"
+
+# Add run-time dependency for TIFS Low Power Module stub
+RDEPENDS_${KERNEL_PACKAGE_NAME}-base_append_am62xx-evm = " tifs-lpm-stub"
+
Signature · 1 line
2.17.1
#4 lore raw
In reply to Ryan Eatmon
Quoted 4 lines · Ryan Eatmon
Quoted 1 line · Denys Dmytriyenko

On Wed, May 04, 2022 at 04:38:44PM -0500, Ryan Eatmon via lists.yoctoproject.org wrote:

Quoted 8 lines
Quoted 6 lines
Quoted 4 lines

This firmware stub is required by the TI foundational security software while transitioning to low power mode.

Add a recipe for this compatible with am62xx-evm

Is it GP only FW?

Not sure how to answer that.  I was just told to pick up this change for the release and I cleaned it up to match a more consistent style.

Yes, this signed firmware is applicable for GP only. We dont have a HS variant yet.

Quoted 69 lines
Quoted 68 lines
Quoted 68 lines

---
  recipes-bsp/ti-linux-fw/ti-linux-fw.inc       |  1 + .../tifs-lpm-stub/tifs-lpm-stub_git.bb        | 24 +++++++++++++++++++ recipes-kernel/linux/kernel-rdepends.inc      |  4 ++++

  3 files changed, 29 insertions(+)

  create mode 100644 recipes-bsp/tifs-lpm-stub/tifs-lpm-stub_git.bb

recipes-bsp/ti-linux-fw/ti-linux-fw.inc +0 -0
index 3ebdae30..47e76347 100644
@@ -18,6 +18,7 @@ GOODIX_FW_VERSION = "1.0.0.0"

  CADENCE_MHDP_FW_VERSION = "1.2.17"
  IMG_DEC_FW_VERSION = "1.0"
  CNM_WAVE521_FW_VERSION = "1.0.00" +TIFS_LPM_STUB_FW_VERSION = "08.03.02" TI_LINUX_FW_SRCREV ?= "917625c2721eef8677df9e47d919005b0d4f93aa" SRCREV = "${TI_LINUX_FW_SRCREV}"

recipes-bsp/tifs-lpm-stub/tifs-lpm-stub_git.bb new file +20 -0
new file mode 100644
index 00000000..642a8d3a
@@ -0,0 +1,24 @@
+SUMMARY = "TI Foundational security Low Power Management Stub"
+
+require recipes-bsp/ti-linux-fw/ti-linux-fw.inc
+
+PV = "${TIFS_LPM_STUB_FW_VERSION}"
+PR = "${INC_PR}.0"
+
+CLEANBROKEN = "1"
+
+COMPATIBLE_MACHINE = "am62xx-evm"
+
+PACKAGE_ARCH = "${MACHINE_ARCH}"
+
+S = "${WORKDIR}/git"
+
+TARGET = "ti-fs-stub-firmware-am62x-gp-signed.bin"
+
+do_install() {
+    install -d ${D}${base_libdir}/firmware/ti-sysfw/
+    install -m 0644 ${S}/ti-sysfw/${TARGET} 

${D}${base_libdir}/firmware/ti-sysfw/${TARGET}

recipes-bsp/tifs-lpm-stub/tifs-lpm-stub_git.bb new file +4 -0
+}
+
+FILES_${PN} = "${base_libdir}/firmware"
+
recipes-kernel/linux/kernel-rdepends.inc +0 -0
index 522d9674..17aee4c2 100644
@@ -45,3 +45,7 @@ RDEPENDS_${KERNEL_PACKAGE_NAME}-base_append_j7 = " 

vxd-dec-fw"
  # Add run-time dependency for Chips&Media Wave521 firmware to the rootfs RDEPENDS_${KERNEL_PACKAGE_NAME}-base_append_j721s2-evm = " cnm-wave-fw"

recipes-kernel/linux/kernel-rdepends.inc +3 -0
+
+# Add run-time dependency for TIFS Low Power Module stub
+RDEPENDS_${KERNEL_PACKAGE_NAME}-base_append_am62xx-evm = " 

tifs-lpm-stub"
+

Signature · 1 line
2.17.1