Skip to contentSkip to conversation

tisdk-image: add packaging of skern and k2-fw-initrd to prebuilt-images/

PATCH In review Denys Dmytriyenko 3 participants 3 messages Feb 3, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tisdk-image: add packaging of skern and k2-fw-initrd to prebuilt-images/

From: Denys Dmytriyenko <[email protected]>

---
 meta-arago-distro/classes/tisdk-image.bbclass | 26 +++++++++++++++++++++++++-
 1 file changed, 25 insertions(+), 1 deletion(-)
meta-arago-distro/classes/tisdk-image.bbclass +25 -1
index e5d5e50..86fbb58 100644
@@ -56,6 +56,12 @@ DEPLOY_SPL_UART_NAME ?= "u-boot-spl.bin-${MACHINE}"
 # Variable to specify the name of the TI SCI firmware
 DEPLOY_TISCI_FW_NAME ?= "ti-sci-firmware-k2g.bin"
 
+# Variable to specify the name of Keystone skern file (it has SOC in the name, not MACHINE)
+DEPLOY_K2_SKERN_NAME ?= "skern-*.bin"
+
+# Variable to specify the name of Keystone initramfs with FW images
+DEPLOY_K2_FW_INITRD_NAME ?= "k2-fw-initrd.cpio.gz"
+
 # Manifest file location which will be created as part of the image build
 # process.
 # This manifest follows the TI manifest format requirements which is why
@@ -758,15 +764,33 @@ tisdk_image_build () {
         fi
     fi
 
+    # Copy TI SCI firmware if it exists
     if [ "${DEPLOY_TISCI_FW_NAME}" != "" ]
     then
-        # Copy TI SCI firmware if it exists
         if [ -e ${DEPLOY_DIR_IMAGE}/${DEPLOY_TISCI_FW_NAME} ]
         then
             cp ${DEPLOY_DIR_IMAGE}/${DEPLOY_TISCI_FW_NAME} ${prebuilt_dir}/
         fi
     fi
 
+    # Copy skern/boot-monitor image if it exists
+    if [ "${DEPLOY_K2_SKERN_NAME}" != "" ]
+    then
+        if [ -e ${DEPLOY_DIR_IMAGE}/${DEPLOY_K2_SKERN_NAME} ]
+        then
+            cp ${DEPLOY_DIR_IMAGE}/${DEPLOY_K2_SKERN_NAME} ${prebuilt_dir}/
+        fi
+    fi
+
+    # Copy Keystone FW initramfs image if it exists
+    if [ "${DEPLOY_K2_FW_INITRD_NAME}" != "" ]
+    then
+        if [ -e ${DEPLOY_DIR_IMAGE}/${DEPLOY_K2_FW_INITRD_NAME} ]
+        then
+            cp ${DEPLOY_DIR_IMAGE}/${DEPLOY_K2_FW_INITRD_NAME} ${prebuilt_dir}/
+        fi
+    fi
+
     # Add the EXTRA_TISDK_FILES contents if they exist
     # Make sure EXTRA_TISDK_FILES is not empty so we don't accidentaly
     # copy the root directory.
Signature · 1 line
2.2.0
#1 lore raw

I have a similar bbappend in meta-processor-sdk (http://arago-project.org/git/projects/?p=meta-processor-sdk.git;a=blob;f=recipes-core/images/arago-core-tisdk-image.bbappend;h=f404874b03b090dd25ccb5a1459941d0d6f33e93;hb=HEAD). I have not yet tried upstreaming it because I was hoping to think of a better way to copy the increasing number of images to "prebuilt-images".

One thing missing here from what I have is copying the "u-boot.gph" to prebuilt images. This is needed for keystone to be flashed to the board.

Quoted 80 lines

-----Original Message-----
From: [email protected] [mailto:meta-arago- [email protected]] On Behalf Of Denys Dmytriyenko
Sent: Wednesday, February 03, 2016 3:59 PM
To: [email protected]
Subject: [meta-arago] [PATCH] tisdk-image: add packaging of skern and k2- fw-initrd to prebuilt-images/

From: Denys Dmytriyenko <[email protected]>

---
 meta-arago-distro/classes/tisdk-image.bbclass | 26
+++++++++++++++++++++++++-
 1 file changed, 25 insertions(+), 1 deletion(-)
meta-arago- renamed from meta-arago-distro/classes/tisdk-image.bbclass +0 -0

distro/classes/tisdk-image.bbclass
index e5d5e50..86fbb58 100644

meta-arago-distro/classes/tisdk-image.bbclass +0 -0
@@ -56,6 +56,12 @@ DEPLOY_SPL_UART_NAME ?= "u-boot-spl.bin-

${MACHINE}"
# Variable to specify the name of the TI SCI firmware
DEPLOY_TISCI_FW_NAME ?= "ti-sci-firmware-k2g.bin"

meta-arago-distro/classes/tisdk-image.bbclass +6 -0
+# Variable to specify the name of Keystone skern file (it has SOC in
+the name, not MACHINE) DEPLOY_K2_SKERN_NAME ?= "skern-*.bin"
+
+# Variable to specify the name of Keystone initramfs with FW images
+DEPLOY_K2_FW_INITRD_NAME ?= "k2-fw-initrd.cpio.gz"
+
 # Manifest file location which will be created as part of the image build  #

process.
# This manifest follows the TI manifest format requirements which is why

meta-arago-distro/classes/tisdk-image.bbclass +1 -1
@@ -758,15 +764,33 @@ tisdk_image_build () {
         fi
     fi
 
+    # Copy TI SCI firmware if it exists
     if [ "${DEPLOY_TISCI_FW_NAME}" != "" ]
     then
-        # Copy TI SCI firmware if it exists
         if [ -e ${DEPLOY_DIR_IMAGE}/${DEPLOY_TISCI_FW_NAME} ]
         then
             cp ${DEPLOY_DIR_IMAGE}/${DEPLOY_TISCI_FW_NAME}

${prebuilt_dir}/
fi
fi

meta-arago-distro/classes/tisdk-image.bbclass +6 -0
+    # Copy skern/boot-monitor image if it exists
+    if [ "${DEPLOY_K2_SKERN_NAME}" != "" ]
+    then
+        if [ -e ${DEPLOY_DIR_IMAGE}/${DEPLOY_K2_SKERN_NAME} ]
+        then
+            cp ${DEPLOY_DIR_IMAGE}/${DEPLOY_K2_SKERN_NAME}

${prebuilt_dir}/

meta-arago-distro/classes/tisdk-image.bbclass +9 -0
+        fi
+    fi
+
+    # Copy Keystone FW initramfs image if it exists
+    if [ "${DEPLOY_K2_FW_INITRD_NAME}" != "" ]
+    then
+        if [ -e ${DEPLOY_DIR_IMAGE}/${DEPLOY_K2_FW_INITRD_NAME} ]
+        then
+            cp ${DEPLOY_DIR_IMAGE}/${DEPLOY_K2_FW_INITRD_NAME}

${prebuilt_dir}/

meta-arago-distro/classes/tisdk-image.bbclass +3 -1
+        fi
+    fi
+
     # Add the EXTRA_TISDK_FILES contents if they exist
     # Make sure EXTRA_TISDK_FILES is not empty so we don't accidentaly
     # copy the root directory.
--

2.2.0

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

#2 lore raw

I have an immediate need to test Keystone nightly images with OpenTest, thus I'm adding missing artifacts to be able to do that.

I'm open to more generic approach in the future, of course.

Signature · 1 line
Denys
Quoted 92 lines · Jacob

I have a similar bbappend in meta-processor-sdk
(http://arago-project.org/git/projects/?p=meta-processor-sdk.git;a=blob;f=recipes-core/images/arago-core-tisdk-image.bbappend;h=f404874b03b090dd25ccb5a1459941d0d6f33e93;hb=HEAD).
I have not yet tried upstreaming it because I was hoping to think of a better way to copy the increasing number of images to "prebuilt-images".

One thing missing here from what I have is copying the "u-boot.gph" to prebuilt images. This is needed for keystone to be flashed to the board.

Quoted 76 lines

-----Original Message-----
From: [email protected] [mailto:meta-arago- [email protected]] On Behalf Of Denys Dmytriyenko
Sent: Wednesday, February 03, 2016 3:59 PM
To: [email protected]
Subject: [meta-arago] [PATCH] tisdk-image: add packaging of skern and k2- fw-initrd to prebuilt-images/

From: Denys Dmytriyenko <[email protected]>

---
 meta-arago-distro/classes/tisdk-image.bbclass | 26
+++++++++++++++++++++++++-
 1 file changed, 25 insertions(+), 1 deletion(-)
meta-arago- renamed from meta-arago-distro/classes/tisdk-image.bbclass +0 -0

distro/classes/tisdk-image.bbclass
index e5d5e50..86fbb58 100644

meta-arago-distro/classes/tisdk-image.bbclass +0 -0
@@ -56,6 +56,12 @@ DEPLOY_SPL_UART_NAME ?= "u-boot-spl.bin-

${MACHINE}"
# Variable to specify the name of the TI SCI firmware
DEPLOY_TISCI_FW_NAME ?= "ti-sci-firmware-k2g.bin"

meta-arago-distro/classes/tisdk-image.bbclass +6 -0
+# Variable to specify the name of Keystone skern file (it has SOC in
+the name, not MACHINE) DEPLOY_K2_SKERN_NAME ?= "skern-*.bin"
+
+# Variable to specify the name of Keystone initramfs with FW images
+DEPLOY_K2_FW_INITRD_NAME ?= "k2-fw-initrd.cpio.gz"
+
 # Manifest file location which will be created as part of the image build  #

process.
# This manifest follows the TI manifest format requirements which is why

meta-arago-distro/classes/tisdk-image.bbclass +1 -1
@@ -758,15 +764,33 @@ tisdk_image_build () {
         fi
     fi
 
+    # Copy TI SCI firmware if it exists
     if [ "${DEPLOY_TISCI_FW_NAME}" != "" ]
     then
-        # Copy TI SCI firmware if it exists
         if [ -e ${DEPLOY_DIR_IMAGE}/${DEPLOY_TISCI_FW_NAME} ]
         then
             cp ${DEPLOY_DIR_IMAGE}/${DEPLOY_TISCI_FW_NAME}

${prebuilt_dir}/
fi
fi

meta-arago-distro/classes/tisdk-image.bbclass +6 -0
+    # Copy skern/boot-monitor image if it exists
+    if [ "${DEPLOY_K2_SKERN_NAME}" != "" ]
+    then
+        if [ -e ${DEPLOY_DIR_IMAGE}/${DEPLOY_K2_SKERN_NAME} ]
+        then
+            cp ${DEPLOY_DIR_IMAGE}/${DEPLOY_K2_SKERN_NAME}

${prebuilt_dir}/

meta-arago-distro/classes/tisdk-image.bbclass +9 -0
+        fi
+    fi
+
+    # Copy Keystone FW initramfs image if it exists
+    if [ "${DEPLOY_K2_FW_INITRD_NAME}" != "" ]
+    then
+        if [ -e ${DEPLOY_DIR_IMAGE}/${DEPLOY_K2_FW_INITRD_NAME} ]
+        then
+            cp ${DEPLOY_DIR_IMAGE}/${DEPLOY_K2_FW_INITRD_NAME}

${prebuilt_dir}/

meta-arago-distro/classes/tisdk-image.bbclass +3 -1
+        fi
+    fi
+
     # Add the EXTRA_TISDK_FILES contents if they exist
     # Make sure EXTRA_TISDK_FILES is not empty so we don't accidentaly
     # copy the root directory.
--

2.2.0

Quoted 4 lines

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

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