Skip to contentSkip to conversation

change-file-endianess: keep 8 byte alignment

PATCH New [email protected] 1 participant 7 messages Jul 15, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/7 change-file-endianess: keep 8 byte alignment

From: Yuan Yao <[email protected]>

---
 .../change-file-endianess/change-file-endianess/byte_swap.tcl    | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)
recipes-bsp/change-file-endianess/change-file-endianess/byte_swap.tcl +8 -1
index aca956b..a4e8008 100755
@@ -11,6 +11,13 @@ fconfigure $fileid_o -translation {binary binary}
 
 set old_bin [read $fileid_i]
 set new_bin {}
+set old_length [string length $old_bin]
+set old_rem [expr $old_length % $num_b]
+if {$old_rem != 0} {
+	for {set i 0} {$i< [expr $num_b - $old_rem]} {incr i 1} {
+	        append old_bin y
+	}
+}
 for {set i 0} {$i<[string length $old_bin]} {incr i $num_b} {
         for {set j $num_b} {$j>0} {incr j -1} {
                 append new_bin [string index $old_bin [expr $i+($j-1)]]
@@ -20,7 +27,7 @@ for {set i 0} {$i<[string length $old_bin]} {incr i $num_b} {
 for {set i 0} {$i<[string length $old_bin]} {incr i $num_b} {
         set binValue [string range $old_bin [expr $i+0] [expr $i+($num_b-1)]]
         binary scan $binValue H[expr $num_b*2] hexValue
-        
+
         set binValue [string range $new_bin [expr $i+0] [expr $i+($num_b-1)]]
         binary scan $binValue H[expr $num_b*2] hexValue
 }
Signature · 1 line
1.9.2
#1 lore raw

PATCH 2/7 ppa: add recipe

From: Chunrong Guo <[email protected]>

---
 recipes-bsp/ppa/ppa/ppa.its | 23 ++++++++++++++++++++++
 recipes-bsp/ppa/ppa_git.bb  | 47 +++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 70 insertions(+)
 create mode 100644 recipes-bsp/ppa/ppa/ppa.its
 create mode 100644 recipes-bsp/ppa/ppa_git.bb
recipes-bsp/ppa/ppa/ppa.its new file +23 -0
new file mode 100644
index 0000000..c157b6e
@@ -0,0 +1,23 @@
+/dts-v1/;
+
+/{
+	description = "PPA Firmware";
+#address-cells = <1>;
+	images {
+		firmware@1 {
+			description = "PPA Firmware: Version 0.1";
+			data = /incbin/("obj/monitor.bin");
+			type = "firmware";
+			arch = "arm64";
+			compression = "none";
+		};
+	};
+
+	configurations {
+		default = "config@1";
+		config@1 {
+			description = "Boot PPA firmware";
+			firmware = "firmware@1";
+		};
+	};
+};
recipes-bsp/ppa/ppa_git.bb new file +47 -0

47 lines not on this page · raw message

Signature · 1 line
1.9.2
#2 lore raw

PATCH 3/7 restool: Add recipe

In reply to [email protected]

From: Zongchun Yu <[email protected]>

---
 recipes-dpaa2/restool/restool_git.bb | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)
 create mode 100644 recipes-dpaa2/restool/restool_git.bb
recipes-dpaa2/restool/restool_git.bb new file +18 -0
new file mode 100644
index 0000000..aad831f
@@ -0,0 +1,18 @@
+SUMMARY = "DPAA2 Resource Manager Tool"
+LICENSE = "BSD"
+LIC_FILES_CHKSUM = "file://COPYING;md5=e613b54e73c0e4a2a8918c61924bd623"
+
+RDEPENDS_${PN} += "bash"
+
+SRC_URI = "git://git.freescale.com/ppc/sdk/restool.git;branch=sdk-v2.0.x"
+SRCREV = "eba25cdfdccef45f7ba02dd2f829b9b55198fbb1"
+
+S = "${WORKDIR}/git"
+
+EXTRA_OEMAKE = 'CC="${CC}" EXTRA_CFLAGS="-Wno-missing-field-initializers -Wno-missing-braces"'
+
+do_install () {
+    oe_runmake install DESTDIR=${D}
+}
+
+COMPATIBLE_MACHINE = "(ls2080ardb)"
Signature · 1 line
1.9.2
#3 lore raw

PATCH 4/7 dpl-examples: Add recipe

In reply to [email protected]

From: Zongchun Yu <[email protected]>

---
 recipes-dpaa2/dpl-examples/dpl-examples_git.bb | 28 ++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)
 create mode 100644 recipes-dpaa2/dpl-examples/dpl-examples_git.bb
recipes-dpaa2/dpl-examples/dpl-examples_git.bb new file +28 -0
new file mode 100644
index 0000000..17296ff
@@ -0,0 +1,28 @@
+SUMMARY = "Datapath layout examples"
+LICENSE = "Freescale-EULA"
+LIC_FILES_CHKSUM = "file://EULA;md5=c9ae442cf1f9dd6c13dfad64b0ffe73f"
+
+DEPENDS = "dtc-native"
+
+inherit deploy
+
+SRC_URI = "git://git.freescale.com/ppc/sdk/dpl-examples.git;branch=sdk-v2.0.x"
+SRCREV = "2f8a6c2c0607b663afd69aa0477c2047f25031ca"
+
+S = "${WORKDIR}/git"
+
+do_install () {
+    install -d ${D}/boot
+    install -m 644 ${S}/ls2080a/RDB/*.dtb ${D}/boot
+}
+
+do_deploy () {
+    install -d ${DEPLOYDIR}/dpl-examples
+    install -m 644 ${S}/ls2080a/RDB/*.dtb ${DEPLOYDIR}/dpl-examples
+}
+addtask deploy before do_build after do_install
+
+PACKAGES += "${PN}-image"
+FILES_${PN}-image += "/boot"
+
+COMPATIBLE_MACHINE = "(ls2080ardb)"
Signature · 1 line
1.9.2
#4 lore raw

PATCH 5/7 ls2-rcw: Add recipe

In reply to [email protected]

From: Zongchun Yu <[email protected]>

---
 recipes-bsp/rcw/ls2-rcw_git.bb | 29 +++++++++++++++++++++++++++++
 1 file changed, 29 insertions(+)
 create mode 100644 recipes-bsp/rcw/ls2-rcw_git.bb
recipes-bsp/rcw/ls2-rcw_git.bb new file +29 -0
new file mode 100644
index 0000000..b6d9ccd
@@ -0,0 +1,29 @@
+SUMMARY = "Reset Configuration Word"
+DESCRIPTION = "Reset Configuration Word - hardware boot-time parameters for the QorIQ targets"
+LICENSE = "Freescale-EULA"
+LIC_FILES_CHKSUM = "file://EULA;md5=c9ae442cf1f9dd6c13dfad64b0ffe73f"
+
+inherit deploy
+
+INHIBIT_DEFAULT_DEPS = "1"
+PACKAGE_ARCH = "${MACHINE_ARCH}"
+
+SRC_URI = "git://git.freescale.com/ppc/sdk/ls2-rcw.git;branch=sdk-v2.0.x"
+SRCREV = "74ec3bcdf33fbbedf417b800e0d486d1e8031115"
+
+S = "${WORKDIR}/git"
+
+do_install () {
+    install -d ${D}/boot/rcw
+    cp -r ${S}/ls2080a/RDB/* ${D}/boot/rcw
+}
+
+do_deploy () {
+    install -d ${DEPLOYDIR}/rcw
+    cp -r ${S}/ls2080a/RDB/* ${DEPLOYDIR}/rcw
+}
+addtask deploy before do_build after do_install
+
+PACKAGES += "${PN}-image"
+FILES_${PN}-image += "/boot"
+COMPATIBLE_MACHINE = "(ls2080ardb)"
Signature · 1 line
1.9.2
#5 lore raw

PATCH 6/7 ls2-phy: Add recipe

In reply to [email protected]

From: Zongchun Yu <[email protected]>

---
 recipes-bsp/ls2-phy/ls2-phy_git.bb | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)
 create mode 100644 recipes-bsp/ls2-phy/ls2-phy_git.bb
recipes-bsp/ls2-phy/ls2-phy_git.bb new file +27 -0
new file mode 100644
index 0000000..422a922
@@ -0,0 +1,27 @@
+SUMMARY = "Firmwares and Standalone Applications"
+LICENSE = "Freescale-EULA"
+LIC_FILES_CHKSUM = "file://EULA;md5=c9ae442cf1f9dd6c13dfad64b0ffe73f"
+
+inherit deploy
+
+SRC_URI = "git://git.freescale.com/ppc/sdk/ls2-phy.git;branch=sdk-v2.0.x"
+SRCREV = "554f2648c6a4c6f974827ab326e8c1908dead6f1"
+
+S = "${WORKDIR}/git"
+
+do_install () {
+    install -d ${D}/boot
+    cp -fr ${S}/AQR405 ${D}/boot
+    cp -fr ${S}/CS4340 ${D}/boot
+}
+
+do_deploy () {
+    install -d ${DEPLOYDIR}/ls2-phy
+    cp -fr ${S}/AQR405 ${DEPLOYDIR}/ls2-phy
+    cp -fr ${S}/CS4340 ${DEPLOYDIR}/ls2-phy
+}
+addtask deploy before do_build after do_install
+
+PACKAGES += "${PN}-image"
+FILES_${PN}-image += "/boot"
+COMPATIBLE_MACHINE = "(ls2080ardb)"
Signature · 1 line
1.9.2
#6 lore raw

PATCH 7/7 management-complex: Add recipe

In reply to [email protected]

From: Zongchun Yu <[email protected]>

---
 .../management-complex/management-complex_0.8.4.bb | 33 ++++++++++++++++++++++
 1 file changed, 33 insertions(+)
 create mode 100644 recipes-dpaa2/management-complex/management-complex_0.8.4.bb
recipes-dpaa2/management-complex/management-complex_0.8.4.bb new file +33 -0
new file mode 100644
index 0000000..924a573
@@ -0,0 +1,33 @@
+SUMMARY = "DPAA2 Management Complex Firmware"
+LICENSE = "Freescale-Binary-EULA"
+LIC_FILES_CHKSUM = "file://Freescale-Binary-EULA;md5=da89ad557c4a497fb005e76c2600cda3"
+
+inherit deploy
+
+INHIBIT_DEFAULT_DEPS = "1"
+
+SRC_URI = "git://git.freescale.com/ppc/sdk/mc-binary.git;branch=sdk-v2.0.x"
+SRCREV = "40e7cc7bfc9b35488394450605d649cb7073051a"
+
+S = "${WORKDIR}/git"
+
+do_install () {
+    install -d ${D}/boot
+    install -m 755 ${S}/ls2080a/*.itb ${D}/boot
+}
+
+do_deploy () {
+    install -d ${DEPLOYDIR}/mc_app
+    install -m 755 ${S}/ls2080a/*.itb ${DEPLOYDIR}/mc_app
+    # make a symlink to the latest binary
+    for mc_binary in `ls ${DEPLOYDIR}/mc_app |sort`;do
+        ln -sfT ${mc_binary} ${DEPLOYDIR}/mc_app/mc.itb
+    done
+}
+addtask deploy before do_build after do_install
+
+PACKAGES += "${PN}-image"
+FILES_${PN}-image += "/boot"
+
+INHIBIT_PACKAGE_STRIP = "1"
+COMPATIBLE_MACHINE = "(ls2080ardb)"
Signature · 1 line
1.9.2