Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 49D25E00B63; Tue, 18 Oct 2016 07:00:02 -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.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, RCVD_IN_DNSWL_NONE, RCVD_IN_SORBS_SPAM autolearn=no version=3.3.1 X-Spam-HAM-Report: * 0.5 RCVD_IN_SORBS_SPAM RBL: SORBS: sender is a spam source * [209.85.213.66 listed in dnsbl.sorbs.net] * -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no * trust * [209.85.213.66 listed in list.dnswl.org] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * 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-vk0-f66.google.com (mail-vk0-f66.google.com [209.85.213.66]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 64FFEE009E7 for ; Tue, 18 Oct 2016 06:59:59 -0700 (PDT) Received: by mail-vk0-f66.google.com with SMTP id b186so9754104vkb.3 for ; Tue, 18 Oct 2016 06:59:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ossystems-com-br.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:organization; bh=aa+3NwPFoEHtYXbrZCKKQvwECGPj3vuL5aY90Og1rSA=; b=pLQufPMuaEE3MsyHrNtlIpvfDx/MGlx1noPjOC+xsEyCahPHtzaEE49W++CLkYHHSU PjwzSVPTZwW3yj7ysYfAo0iwF/bQlDbtTjL9H+d1EnawFMP7n7rE0iUAjx9oGe9YVHhN 8WnaRohIvDILDi9ZUDPXo2coAL9ZMJ74/y5MZSOFKwgwxn/lyHD1UuMf/NJflaPnZk2B WFUdE6NSoHdAq4gOCWQsU3diHd29vNf4q6LjqYijupoosEbouU7DqsTSoBtxFp6ci8jO wvljEdXtzApy8VWkr5bbk8bATeViZNu3Colo6k0cJNksS285nxP93vD6jkEeowjID/J8 ucGw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:organization; bh=aa+3NwPFoEHtYXbrZCKKQvwECGPj3vuL5aY90Og1rSA=; b=HaAPtrl/EzHvOe/rO+cP+x+oke5srOX/Om2E02DtmYbvCvlx5M7yl2HU07vnGg7Vw3 k0tQsKXJTZrDjhpb6JFu5uABxsBwAniPOMvY0rY+Hmqfe3uB2yQTrCzgmjAf2Wr0Fx8C CH/nlWH2S3dvWdtYXP1MrlYMFoRn8OB2MSucOOMThQkU1HwvG5+decjjXG7bIDCpxvWg lVIm0V9PPFXxwyt4IND1nx3na0gXfAt3SIGoACWMLyIOgwhGlKIt5FLTj87SX0aEeU98 Alt0T7pUNtQbOrEzt1nuVDaU6LOSckGAkSKRTmkMwpbbKV+0aOt9+G5F9lRKh3r7R6uz SyFw== X-Gm-Message-State: AA6/9RlUYnwyamg3E6XyGWCIXt7lVQF7LBWZ7+JtT0YUxKz4K2BiKqesKVj+dnBW0KKTDg== X-Received: by 10.31.50.212 with SMTP id y203mr553258vky.29.1476799199367; Tue, 18 Oct 2016 06:59:59 -0700 (PDT) Received: from berton.lab.ossystems.com.br ([187.23.155.148]) by smtp.gmail.com with ESMTPSA id t198sm14150332vkc.6.2016.10.18.06.59.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 18 Oct 2016 06:59:58 -0700 (PDT) From: Fabio Berton To: meta-freescale@yoctoproject.org Date: Tue, 18 Oct 2016 11:59:35 -0200 Message-Id: <1476799176-25448-1-git-send-email-fabio.berton@ossystems.com.br> X-Mailer: git-send-email 2.1.4 Organization: O.S. Systems Software LTDA. Subject: [u-boot-fslc][PATCH 1/2] wandboard: Use PARTUUID to specify the rootfs location 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, 18 Oct 2016 14:00:02 -0000 Currently the rootfs location is passed via mmcblk number and the problem with this approach is that the mmcblk number for the eMMC changes depending on the kernel version. In order to avoid such issue, use UUID method to specify the rootfs location. This change was made based on U-Boot commit: - ca4f338e2efece5196eb2178e5f7d07be828da6e Signed-off-by: Fabio Berton --- include/configs/wandboard.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/include/configs/wandboard.h b/include/configs/wandboard.h index 801be39..f365d4f 100644 --- a/include/configs/wandboard.h +++ b/include/configs/wandboard.h @@ -93,6 +93,9 @@ #define CONFIG_IMX_HDMI #define CONFIG_IMX_VIDEO_SKIP +#define CONFIG_PARTITION_UUIDS +#define CONFIG_CMD_PART + #define CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG #define CONFIG_EXTRA_ENV_SETTINGS \ "console=ttymxc0,115200\0" \ @@ -105,7 +108,7 @@ "ip_dyn=yes\0" \ "mmcdev=" __stringify(CONFIG_SYS_MMC_ENV_DEV) "\0" \ "mmcpart=1\0" \ - "mmcroot=/dev/mmcblk2p2 rootwait rw\0" \ + "finduuid=part uuid mmc 0:2 uuid\0" \ "update_sd_firmware_filename=u-boot.imx\0" \ "update_sd_firmware=" \ "if test ${ip_dyn} = yes; then " \ @@ -173,6 +176,7 @@ #define CONFIG_BOOTCOMMAND \ "run findfdt; " \ + "run finduuid; " \ "run distro_bootcmd" #include -- 2.1.4