Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 8DA5CE009DC; Thu, 26 Apr 2018 09:53:14 -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=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no * trust * [209.85.216.196 listed in list.dnswl.org] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] Received: from mail-qt0-f196.google.com (mail-qt0-f196.google.com [209.85.216.196]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id DC526E00831 for ; Thu, 26 Apr 2018 09:53:13 -0700 (PDT) Received: by mail-qt0-f196.google.com with SMTP id w12-v6so32390355qti.4 for ; Thu, 26 Apr 2018 09:53:13 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:organization; bh=FchFtUvk4j56EInP0cErHWaMaytzjCh1GT5nWmMLp30=; b=ZNtfpUfTOY2k6LFLk+wiFW88/Pwn8YNlHtuW+FD4GQ0E5ytELt533URv7nhn4pNuIq 01sTGP45VRx5BvXRB0G0G2s7bHkD2luVUbmo+f2gO0zx9sVrA1vLnMXGKPLKls8Uuzm0 OhNb98II99PnQcsAlYXc8WWrBNXfEDV6727A1XFu0ua4r3xnnMjkiF/QhZWsc1zPARS5 GvGelaKHOAWKgrrCs0dzVHF3oFa79iP9bEBq9VWbAOOMPVJt404Fv2XcTlU5vn483d/Y ePhQcTd0cR3mSeUSC0DvqIORa7w9ioMPInsKdUfZO+xJ/VvxzBe7+KV66ZgdQgG/yqhU cNRg== X-Gm-Message-State: ALQs6tDFPFh/itmEm/oMwNBWiWtSHq47RyRyXCeLSCVakCrO9nCAaMhY BZ16hXOGa9Ctm7aISq+vUIiWhQ== X-Google-Smtp-Source: AIpwx4+aMX9MR9e3HmO5LWrZqrKlz0Aa9BxDfU4wfaI0yQs0SrwHOtX7BdO538APisB4NJtDNn/JTg== X-Received: by 2002:aed:2962:: with SMTP id s89-v6mr36104141qtd.162.1524761592607; Thu, 26 Apr 2018 09:53:12 -0700 (PDT) Received: from localhost.localdomain ([177.194.217.140]) by smtp.gmail.com with ESMTPSA id j7-v6sm15528551qth.32.2018.04.26.09.53.09 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 26 Apr 2018 09:53:11 -0700 (PDT) Received: by localhost.localdomain (sSMTP sendmail emulation); Thu, 26 Apr 2018 13:53:05 -0300 From: Otavio Salvador To: meta-freescale Mailing List Date: Thu, 26 Apr 2018 13:52:55 -0300 Message-Id: <20180426165255.15623-2-otavio@ossystems.com.br> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180426165255.15623-1-otavio@ossystems.com.br> References: <20180426165255.15623-1-otavio@ossystems.com.br> Organization: O.S. Systems Software LTDA. Cc: Otavio Salvador Subject: [PATCH v2 2/2] wic: Fix image generation for i.MX MXS SoC family 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, 26 Apr 2018 16:53:14 -0000 The image needs to use the U-Boot generated, for the uSD card, so a dependency on that must be added to ensure the file is available prior 'wic' uses it. Besides that, the fstype needs to be changed so it sets the partition mark allowing the bootrom to find it. Signed-off-by: Otavio Salvador --- Changes in v2: - rework commit log classes/image_types_fsl.bbclass | 5 +++++ conf/machine/include/imx-base.inc | 2 +- ...-uboot-mxs-bootpart.wks => imx-uboot-mxs-bootpart.wks.in} | 2 +- wic/{imx-uboot-mxs.wks => imx-uboot-mxs.wks.in} | 2 +- 4 files changed, 8 insertions(+), 3 deletions(-) rename wic/{imx-uboot-mxs-bootpart.wks => imx-uboot-mxs-bootpart.wks.in} (83%) rename wic/{imx-uboot-mxs.wks => imx-uboot-mxs.wks.in} (79%) diff --git a/classes/image_types_fsl.bbclass b/classes/image_types_fsl.bbclass index 4709af95..65b2a9a8 100644 --- a/classes/image_types_fsl.bbclass +++ b/classes/image_types_fsl.bbclass @@ -312,3 +312,8 @@ IMAGE_TYPEDEP_sdcard_append = " \ ${@bb.utils.contains('IMAGE_FSTYPES', 'uboot-mxsboot-sdcard', 'uboot-mxsboot-sdcard', '', d)} \ ${@bb.utils.contains('IMAGE_FSTYPES', 'barebox-mxsboot-sdcard', 'barebox-mxsboot-sdcard', '', d)} \ " + +do_image_wic[depends] += " \ + ${@bb.utils.contains('IMAGE_FSTYPES', 'uboot-mxsboot-sdcard', \ + '${IMAGE_BASENAME}:do_image_uboot_mxsboot_sdcard', '', d)} \ +" diff --git a/conf/machine/include/imx-base.inc b/conf/machine/include/imx-base.inc index ab9fcf30..50de9a70 100644 --- a/conf/machine/include/imx-base.inc +++ b/conf/machine/include/imx-base.inc @@ -257,7 +257,7 @@ WKS_FILE_DEPENDS ?= " \ " SOC_DEFAULT_WKS_FILE ?= "imx-uboot-bootpart.wks" -SOC_DEFAULT_WKS_FILE_mxs ?= "imx-uboot-mxs-bootpart.wks" +SOC_DEFAULT_WKS_FILE_mxs ?= "imx-uboot-mxs-bootpart.wks.in" WKS_FILE ?= "${SOC_DEFAULT_WKS_FILE}" diff --git a/wic/imx-uboot-mxs-bootpart.wks b/wic/imx-uboot-mxs-bootpart.wks.in similarity index 83% rename from wic/imx-uboot-mxs-bootpart.wks rename to wic/imx-uboot-mxs-bootpart.wks.in index 0e96ab3a..29fe1a50 100644 --- a/wic/imx-uboot-mxs-bootpart.wks +++ b/wic/imx-uboot-mxs-bootpart.wks.in @@ -12,7 +12,7 @@ # | | | | # 0 1kiB 4MiB 16MiB + rootfs + IMAGE_EXTRA_SPACE (default 10MiB) # -part u-boot --source rawcopy --sourceparams="file=u-boot.sb" --ondisk mmcblk --no-table --align 1 +part u-boot --source rawcopy --sourceparams="file=${IMAGE_NAME}.rootfs.uboot-mxsboot-sdcard" --ondisk mmcblk --fstype=ontrackdm6aux3 --align 1 part /boot --source bootimg-partition --ondisk mmcblk --fstype=vfat --label boot --active --align 4096 --size 16 part / --source rootfs --ondisk mmcblk --fstype=ext4 --label root --align 4096 diff --git a/wic/imx-uboot-mxs.wks b/wic/imx-uboot-mxs.wks.in similarity index 79% rename from wic/imx-uboot-mxs.wks rename to wic/imx-uboot-mxs.wks.in index 0f5c51d4..ae30c903 100644 --- a/wic/imx-uboot-mxs.wks +++ b/wic/imx-uboot-mxs.wks.in @@ -12,7 +12,7 @@ # | | | | # 0 1kiB 4MiB + rootfs + IMAGE_EXTRA_SPACE (default 10MiB) # -part u-boot --source rawcopy --sourceparams="file=u-boot.sb" --ondisk mmcblk --no-table --align 1 +part u-boot --source rawcopy --sourceparams="file=${IMAGE_NAME}.rootfs.uboot-mxsboot-sdcard" --ondisk mmcblk --fstype=ontrackdm6aux3 --align 1 part / --source rootfs --ondisk mmcblk --fstype=ext4 --label root --align 4096 bootloader --ptable msdos -- 2.17.0