Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 2D4B6E00BE0; Thu, 5 Jun 2014 03:27:17 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 X-Spam-HAM-Report: * 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider * (lexszero[at]gmail.com) * -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low * trust * [209.85.215.49 listed in list.dnswl.org] * -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's * domain * 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily * valid * -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature Received: from mail-la0-f49.google.com (mail-la0-f49.google.com [209.85.215.49]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 2A01DE00B74 for ; Thu, 5 Jun 2014 03:27:15 -0700 (PDT) Received: by mail-la0-f49.google.com with SMTP id pv20so430146lab.8 for ; Thu, 05 Jun 2014 03:27:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=ZFvK7XLEZgzc79ZYpd2bbv8SCwqJqC6OPRHz7m3LLvg=; b=Zedf2nI4TE8QyP9xUoFESXMCLE8nTUWHyBE6KfMSCblxcgOrgORfQ7DIW4Nnlm99u6 9NeoeervnvJDscmudc+SK46WqwY9my1plzCS6A87FgAXc6qHdMTBOu4Z0Izw+sGw/PNt J2/Kw+CdLIvSRKZFm5MYp7SgXKf8Ga1lLVmFx060BDhhc3HSRoUzB1JIJqoELzTJkGmu YIj5Bfp+Z0W4P7QT+vhiuCFOVWgeYmfbyFuvPAkJOzy65k+UyM4PIYMqAs0AWj7kYstL w3kMDi0f9YVT7BMwwMEw5XYuqObgHX9EEDCDFpArr2H18q/JrIkNcTELn+vLCkEby71P iTWQ== X-Received: by 10.152.143.3 with SMTP id sa3mr19404788lab.53.1401964034074; Thu, 05 Jun 2014 03:27:14 -0700 (PDT) Received: from localhost (128-72-42-202.broadband.corbina.ru. [128.72.42.202]) by mx.google.com with ESMTPSA id lq20sm5310930lbb.24.2014.06.05.03.27.13 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 05 Jun 2014 03:27:13 -0700 (PDT) From: Alexey Ignatov To: meta-freescale@yoctoproject.org Date: Thu, 5 Jun 2014 14:21:59 +0400 Message-Id: <1401963720-23756-1-git-send-email-lexszero@gmail.com> X-Mailer: git-send-email 1.8.2.1 Cc: Alexey Ignatov Subject: [PATCHv2 1/2] image_types_fsl.bbclass: Add U-Boot NAND support for i.MX23/i.MX28 X-BeenThere: meta-freescale@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Usage and development list for the meta-fsl-* layers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Jun 2014 10:27:17 -0000 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 --- classes/image_types_fsl.bbclass | 7 +++++++ 1 file changed, 7 insertions(+) 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}" -- 1.8.2.1