Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 131CCE00D3F; Tue, 18 Oct 2016 07:00:05 -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.67 listed in dnsbl.sorbs.net] * -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no * trust * [209.85.213.67 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-f67.google.com (mail-vk0-f67.google.com [209.85.213.67]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id BA17AE009E7 for ; Tue, 18 Oct 2016 07:00:02 -0700 (PDT) Received: by mail-vk0-f67.google.com with SMTP id 83so8696038vkd.0 for ; Tue, 18 Oct 2016 07:00:02 -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:in-reply-to:references :organization; bh=QTLV1YUIwaKGcd/fpf4y/ZUUC3VFFhH5OywfMW6tUDs=; b=jG61R+PzIyuMp5qy8SQTmuOTsr2PzRqGTiodWdXdvevZygLuWE6Wk6srkE3mORy1Bu h5PEwTcU7FWYPOgiWLMqj0SHY5vQ4NQ4Pn9RPPSGKefSEwRtRIkKdr1zdW5osbvTborl GvV4ircxmlSznOtxTDPuk4OKlTSbUX7VmOG7OiGa+8ahXhseVjUYQtR7hi4gqIcNrUTV dgujJClQiEoVql146+S9KDahDZ9lz+RVdnuz93hw3t6jR8qXnQS/9lp4pNDxKWVGzYzT MlVLQskH/ZTnW0h28GEHF68UwgOYzob+dnTz2hNTXQjPs8r9bUh4XVeVuNT6trzzamuW 1Cnw== 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:in-reply-to :references:organization; bh=QTLV1YUIwaKGcd/fpf4y/ZUUC3VFFhH5OywfMW6tUDs=; b=RDDgR50X5b5TE09myrstHvLEeSQxWLUGJSH8HxICOu6HYvp2nc1bfBrPriLQyslD5l Bu0/EzQYutizSPPDm6NTKVapq7txWDke/h28LUDKbxushjYUGZgJIBFQ7BRt8HoPLw6b hwUnd6uXAW9bNytf03BiWLChKF5xEmHT+2Rp5ekJbOlwcnWKheTWSydVwIEP4UB5L1q0 8c09W6hWfPf4qlb5TyuNUyUoEdtRrau+2M3vfg/ZkECmI8FABXIKFE2Syj0mfWki/Zab vTnyH4MVOt8Ao0COTIn4Lbfrq09ICGZa5KurTLt+SDMnxPi1gib6g1mIQY6bZDJiy3ZF kF9A== X-Gm-Message-State: AA6/9Rnb0ziQVRyCgdrZWuLfTAFmHHPX4x7yATkPaEtRl5+V7TRyoK0kJtl2Ny/yMrlTDg== X-Received: by 10.31.73.71 with SMTP id w68mr457089vka.13.1476799201352; Tue, 18 Oct 2016 07:00:01 -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.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 18 Oct 2016 07:00:00 -0700 (PDT) From: Fabio Berton To: meta-freescale@yoctoproject.org Date: Tue, 18 Oct 2016 11:59:36 -0200 Message-Id: <1476799176-25448-2-git-send-email-fabio.berton@ossystems.com.br> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1476799176-25448-1-git-send-email-fabio.berton@ossystems.com.br> References: <1476799176-25448-1-git-send-email-fabio.berton@ossystems.com.br> Organization: O.S. Systems Software LTDA. Subject: [u-boot-fslc][PATCH 2/2] mx6cuboxi: 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:05 -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/mx6cuboxi.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/configs/mx6cuboxi.h b/include/configs/mx6cuboxi.h index 366b5b9..cf2a504 100644 --- a/include/configs/mx6cuboxi.h +++ b/include/configs/mx6cuboxi.h @@ -80,6 +80,9 @@ #define CONFIG_SYS_FSL_USDHC_NUM 1 #define CONFIG_SYS_MMC_ENV_DEV 0 /* SDHC2 */ +#define CONFIG_PARTITION_UUIDS +#define CONFIG_CMD_PART + #define CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG #ifndef CONFIG_SPL_BUILD #define CONFIG_EXTRA_ENV_SETTINGS \ @@ -97,6 +100,7 @@ "console=" CONFIG_CONSOLE_DEV "\0" \ "bootm_size=0x10000000\0" \ "mmcdev=" __stringify(CONFIG_SYS_MMC_ENV_DEV) "\0" \ + "finduuid=part uuid mmc 0:2 uuid\0" \ "update_sd_firmware=" \ "if test ${ip_dyn} = yes; then " \ "setenv get_cmd dhcp; " \ @@ -125,6 +129,7 @@ #define CONFIG_BOOTCOMMAND \ "run findfdt; " \ + "run finduuid; " \ "run distro_bootcmd" #define BOOT_TARGET_DEVICES(func) \ -- 2.1.4