Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 8C4B3E00DD2; Wed, 19 Oct 2016 06:31:22 -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: * -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 * -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no * trust * [209.85.217.196 listed in list.dnswl.org] * 0.5 RCVD_IN_SORBS_SPAM RBL: SORBS: sender is a spam source * [209.85.217.196 listed in dnsbl.sorbs.net] Received: from mail-ua0-f196.google.com (mail-ua0-f196.google.com [209.85.217.196]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 2FB58E00DAA for ; Wed, 19 Oct 2016 06:31:18 -0700 (PDT) Received: by mail-ua0-f196.google.com with SMTP id 10so430522ual.2 for ; Wed, 19 Oct 2016 06:31:18 -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=hozgjx7EKNpLV6T228uK2iQi1ybFhdZGhKTaIg+ubWU=; b=djtJ2CTGtLI+XwaxBURNQNaVMAO5feZNEqIzYvH8vKmxFyFgZbSC2o52ySfBUifmUN aIZCVB03gY5d4Wkc0HhB6UnkDpp+ZkOrpgN8TmL210w+6uujfGg+Fy6yaLnQp20JyCsh 3CTFmupOokK2VdToBIg+8Xro1ue/qUNb49yRw0TH5ql3sDHvJ2cqiGjPrP7t40I2JrFK 5lUg5vVmKlKOSc7YBG4BvoXmD8p9xwd1ysl62vwbjvq9Lu1RzSDmC7thFamjLXAKXXJg FJ0XbXGXhLGCdUA9IqPSJVD8VD3tw8DIOLoW8293yR1lQ0IAkiWTunKhjv7iK7nBBQNf tCJw== 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=hozgjx7EKNpLV6T228uK2iQi1ybFhdZGhKTaIg+ubWU=; b=JPSv5klrFzIuaEvV+uC1ru48aReUOaM5lEz2bMmQV4ZRqKmc3WM8NCHkmz1F0Imok1 Yb6+fBTyXMG2yX0HSQK2HdG008Fy6NqHLyBZqzXExntCP0yf7Hp3xFyNYkk5r7ubK42G GKiiD7kS9MadKA8kU79yEk9/tUjoVJepiXzLdukCI54epUChbYeBbw12DBNdWg03fdcq piLZIdbKumW4Su2wVOZF+STMvAkQRV7APApVRN8B83zdb4emzYqX24WUcje1CjH3W3k6 5WLJptuzEFBx26zi8+0O7g5XMwvPKWQR7lYnJiEVhntupyCE3iul71bNiLfuZZVA8IRH nKBw== X-Gm-Message-State: AA6/9RlMWr/ZeRn9KkQZNT5CrS7VHnqHwlH9Gj43JAlrtzWavgKQQhoW6RFH3ldr/FaNYg== X-Received: by 10.176.86.193 with SMTP id c1mr1979832uab.30.1476883877852; Wed, 19 Oct 2016 06:31:17 -0700 (PDT) Received: from berton.lab.ossystems.com.br ([187.23.155.148]) by smtp.gmail.com with ESMTPSA id p6sm15724859vkf.22.2016.10.19.06.31.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 19 Oct 2016 06:31:16 -0700 (PDT) From: Fabio Berton To: meta-freescale@yoctoproject.org Date: Wed, 19 Oct 2016 11:30:35 -0200 Message-Id: <1476883835-25776-3-git-send-email-fabio.berton@ossystems.com.br> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1476883835-25776-1-git-send-email-fabio.berton@ossystems.com.br> References: <1476883835-25776-1-git-send-email-fabio.berton@ossystems.com.br> Organization: O.S. Systems Software LTDA. Subject: [u-boot-fslc][PATCH 3/3] embestmx6boards: 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: Wed, 19 Oct 2016 13:31:22 -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. Also add CONFIG_BOOTCOMMAND to run finduuid function and distro_bootcmd. This change was made based on U-Boot commit: - ca4f338e2efece5196eb2178e5f7d07be828da6e Signed-off-by: Fabio Berton --- include/configs/embestmx6boards.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/include/configs/embestmx6boards.h b/include/configs/embestmx6boards.h index 08653a3..ba2e3d6 100644 --- a/include/configs/embestmx6boards.h +++ b/include/configs/embestmx6boards.h @@ -15,7 +15,6 @@ #define CONFIG_MXC_UART_BASE UART2_BASE #define CONFIG_CONSOLE_DEV "ttymxc1" -#define CONFIG_MMCROOT "/dev/mmcblk0p2" #define PHYS_SDRAM_SIZE (1u * 1024 * 1024 * 1024) @@ -154,6 +153,10 @@ func(PXE, pxe, na) \ func(DHCP, dhcp, na) +#define CONFIG_BOOTCOMMAND \ + "run finduuid; " \ + "run distro_bootcmd" + #include #define CONSOLE_STDIN_SETTINGS \ @@ -171,6 +174,7 @@ CONSOLE_ENV_SETTINGS \ MEM_LAYOUT_ENV_SETTINGS \ "fdtfile=" CONFIG_FDTFILE "\0" \ + "finduuid=part uuid mmc 0:1 uuid\0" \ BOOTENV #endif /* __RIOTBOARD_CONFIG_H */ -- 2.1.4