From: Alexey Ignatov Date: Thu, 5 Jun 2014 10:21:59 +0000 (+0400) Subject: image_types_fsl.bbclass: Add U-Boot NAND support for i.MX23/i.MX28 X-Git-Tag: 2.1~919 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=61d9046560b42ea15760d2690cb094e08b2d8370;p=meta-freescale.git image_types_fsl.bbclass: Add U-Boot NAND support for i.MX23/i.MX28 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 Signed-off-by: Otavio Salvador --- diff --git a/meta-fsl-arm/classes/image_types_fsl.bbclass b/meta-fsl-arm/classes/image_types_fsl.bbclass index dfa55e46..c0fa9b6b 100644 --- a/meta-fsl-arm/classes/image_types_fsl.bbclass +++ b/meta-fsl-arm/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}"