Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 979A6E00AD8; Tue, 24 Apr 2018 11:51: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=-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.194 listed in list.dnswl.org] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] Received: from mail-qt0-f194.google.com (mail-qt0-f194.google.com [209.85.216.194]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 94D5DE00A4F for ; Tue, 24 Apr 2018 11:51:16 -0700 (PDT) Received: by mail-qt0-f194.google.com with SMTP id m16-v6so125577qtg.13 for ; Tue, 24 Apr 2018 11:51:16 -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=Mc++j0Yh3sgmgtkRPdpZIpqASBc1v/+7i33hIqWJX8U=; b=iUUW3i/ZrueCwEekgdFYgUxxovzAla8HbRbItNs5wI6O9LBn/CzN2wnnMWHepdq5QK cYH3HgQOc0ZsoT0U9rQvfqJODRoLawl3zE1oYwAUr/7RI63UgOxwOzSay28RVf0CSugG vJ+q9dz+8jSXXk1obwZUI6WIQdeblz71uQ1ItLAEWCTIuPFDwy/zGhpmkfg400SQ2q4I fXq4H/+X237DTOB/Vxv7YcKZc/RLh2CqAKFMv4lrv7Mt01loxH7ibg1u4xxZD+gaAsKK ilgstlm4yycDE0ruGoqtu13DGZUq5vEYIEvlar+Nd3SyJyUiG1FBq2jfwxWVMrmS+9He LwVw== X-Gm-Message-State: ALQs6tCtc93dknYwigoCejvu6XUvx5gwtd25FIWNW8Qt0kehk1bspGSi IKeiHf2lUTsLrwNJSQT/zqvZMw== X-Google-Smtp-Source: AB8JxZrh6gLqSff0X2G/XQo8lxuukhvkKmlrQoOiKV16xWPvtOsT8Qsd1EXShWq7abK9GGFcp6kyyA== X-Received: by 2002:ac8:186f:: with SMTP id n44-v6mr27650757qtk.241.1524595875426; Tue, 24 Apr 2018 11:51:15 -0700 (PDT) Received: from localhost.localdomain ([177.194.217.140]) by smtp.gmail.com with ESMTPSA id s67sm12774445qki.58.2018.04.24.11.51.12 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 24 Apr 2018 11:51:14 -0700 (PDT) Received: by localhost.localdomain (sSMTP sendmail emulation); Tue, 24 Apr 2018 15:51:10 -0300 From: Otavio Salvador To: meta-freescale Mailing List Date: Tue, 24 Apr 2018 15:51:03 -0300 Message-Id: <20180424185103.7352-2-otavio@ossystems.com.br> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180424185103.7352-1-otavio@ossystems.com.br> References: <20180424185103.7352-1-otavio@ossystems.com.br> Organization: O.S. Systems Software LTDA. Cc: Otavio Salvador Subject: [PATCH 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: Tue, 24 Apr 2018 18:51:17 -0000 The image needs to use the U-Boot, bootstream, generated for the uSD card and a dependency on that must be added so we get it deployed before using the file. 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 --- 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