Patchwork [PATCHv2,1/2] image_types_fsl.bbclass: Add U-Boot NAND support for i.MX23/i.MX28

login
register
mail settings
Submitter Alexey Ignatov
Date June 5, 2014, 10:21 a.m.
Message ID <1401963720-23756-1-git-send-email-lexszero@gmail.com>
Download mbox | patch
Permalink /patch/73295/
State Accepted
Delegated to: Otavio Salvador
Headers show

Comments

Alexey Ignatov - June 5, 2014, 10:21 a.m.
This adds support to generate the U-Boot image for use with NAND
(uboot.mxsboot-nand) and allows for custom params to be given for
mxsboot using the MXSBOOT_NAND_ARGS variable which should be defined
in the machine definition file.

Signed-off-by: Alexey Ignatov <lexszero@gmail.com>
---
 classes/image_types_fsl.bbclass | 7 +++++++
 1 file changed, 7 insertions(+)

Patch

diff --git a/classes/image_types_fsl.bbclass b/classes/image_types_fsl.bbclass
index dfa55e4..c0fa9b6 100644
--- a/classes/image_types_fsl.bbclass
+++ b/classes/image_types_fsl.bbclass
@@ -10,6 +10,7 @@  UBOOT_SUFFIX_SDCARD ?= "${UBOOT_SUFFIX}"
 #
 # Handles i.MX mxs bootstream generation
 #
+MXSBOOT_NAND_ARGS ?= ""
 
 # IMX Bootlets Linux bootstream
 IMAGE_DEPENDS_linux.sb = "elftosb-native:do_populate_sysroot \
@@ -59,6 +60,12 @@  IMAGE_DEPENDS_uboot.mxsboot-sdcard = "u-boot-mxsboot-native:do_populate_sysroot
 IMAGE_CMD_uboot.mxsboot-sdcard = "mxsboot sd ${DEPLOY_DIR_IMAGE}/u-boot-${MACHINE}.${UBOOT_SUFFIX} \
                                              ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.uboot.mxsboot-sdcard"
 
+IMAGE_DEPENDS_uboot.mxsboot-nand = "u-boot-mxsboot-native:do_populate_sysroot \
+                                      u-boot:do_deploy"
+IMAGE_CMD_uboot.mxsboot-nand = "mxsboot ${MXSBOOT_NAND_ARGS} nand \
+                                             ${DEPLOY_DIR_IMAGE}/u-boot-${MACHINE}.${UBOOT_SUFFIX} \
+                                             ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.uboot.mxsboot-nand"
+
 # Boot partition volume id
 BOOTDD_VOLUME_ID ?= "Boot ${MACHINE}"