Skip to contentSkip to conversation

prueth-fw: add firmware images for PRU Ethernet on AM57xx

PATCH New Denys Dmytriyenko 1 participant 2 messages Feb 22, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 prueth-fw: add firmware images for PRU Ethernet on AM57xx

From: Denys Dmytriyenko <[email protected]>

---
 recipes-bsp/prueth-fw/prueth-fw_git.bb | 33 +++++++++++++++++++++++++++++++++
 1 file changed, 33 insertions(+)
 create mode 100644 recipes-bsp/prueth-fw/prueth-fw_git.bb
recipes-bsp/prueth-fw/prueth-fw_git.bb new file +33 -0
new file mode 100644
index 0000000..3b760ac
@@ -0,0 +1,33 @@
+DESCRIPTION = "PRU Ethernet firmware for AM57xx"
+
+LICENSE = "TI-TFL"
+LIC_FILES_CHKSUM = "file://LICENSE.ti;md5=b5aebf0668bdf95621259288c4a46d76"
+
+PV = "1.0.0"
+PR = "r0"
+
+CLEANBROKEN = "1"
+
+COMPATIBLE_MACHINE = "am57xx-evm"
+
+PACKAGE_ARCH = "${MACHINE_ARCH}"
+
+SRCREV = "4ead3b8c189f217ee2c01ea3c56ef08d6a517f28"
+BRANCH ?= "ti-linux-firmware-4.1.y"
+
+SRC_URI = "git://git.ti.com/processor-firmware/ti-linux-firmware.git;protocol=git;branch=${BRANCH}"
+
+S = "${WORKDIR}/git"
+
+TARGET = "am57xx-pru0-prueth-fw.elf am57xx-pru1-prueth-fw.elf"
+
+do_install() {
+	install -d ${D}${base_libdir}/firmware/ti-pruss
+	for f in ${TARGET}; do
+		install -m 0644 ${S}/ti-pruss/$f ${D}${base_libdir}/firmware/ti-pruss/$f
+	done
+}
+
+FILES_${PN} = "${base_libdir}/firmware"
+
+INSANE_SKIP_${PN} = "arch"
Signature · 1 line
2.2.0
#1 lore raw

PATCH 2/2 linux-ti-staging: rdepends on prueth-fw

From: Denys Dmytriyenko <[email protected]>

---
 recipes-kernel/linux/linux-ti-staging_4.1.bb | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
recipes-kernel/linux/linux-ti-staging_4.1.bb +4 -1
index 76838f2..8b1ee59 100644
@@ -39,6 +39,9 @@ RDEPENDS_kernel-base_append_k2hk-evm = " netcp-pa-fw"
 RDEPENDS_kernel-base_append_k2e-evm = " netcp-pa-fw"
 RDEPENDS_kernel-base_append_k2l-evm = " netcp-pa-fw"
 
+# Add run-time dependency for PRU Ethernet firmware to the rootfs
+RDEPENDS_kernel-base_append_am57xx-evm = " prueth-fw"
+
 # Default is to package all dtb files for ti33x devices unless building
 # for the specific beaglebone machine.
 KERNEL_DEVICETREE_ti33x = "am335x-evm.dtb am335x-evmsk.dtb am335x-bone.dtb am335x-boneblack.dtb"
@@ -69,7 +72,7 @@ SRCREV = "f5caecb092f6e8c642101f8c56c3fbb136de7052"
 PV = "4.1.18+git${SRCPV}"
 
 # Append to the MACHINE_KERNEL_PR so that a new SRCREV will cause a rebuild
-MACHINE_KERNEL_PR_append = "b"
+MACHINE_KERNEL_PR_append = "c"
 PR = "${MACHINE_KERNEL_PR}"
 
 KERNEL_CONFIG_DIR = "${S}/ti_config_fragments"
Signature · 1 line
2.2.0