From: Lokesh Vutla <lokeshvutla@ti.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v2 3/3] ti_armv7_common: env: Use partuuid for detecting mmc root fs
Date: Fri, 28 Aug 2015 13:35:08 +0530 [thread overview]
Message-ID: <1440749108-20355-4-git-send-email-lokeshvutla@ti.com> (raw)
In-Reply-To: <1440749108-20355-1-git-send-email-lokeshvutla@ti.com>
Linux kernel can enumerate mmc sd as either mmcblk0 or mmcblk1.
But u-boot default environment assumes that sd always populates
as mmcblk0. With this the root fs is not being mounted when
mmc sd is enumerated as mmcblk1.
So use partuuid to update root= option in default environment.
Reported-by: Yan Liu <yan-liu@ti.com>
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
---
include/configs/ti_armv7_common.h | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/include/configs/ti_armv7_common.h b/include/configs/ti_armv7_common.h
index 1a4b6d9..6dc6515 100644
--- a/include/configs/ti_armv7_common.h
+++ b/include/configs/ti_armv7_common.h
@@ -61,9 +61,10 @@
#define DEFAULT_MMC_TI_ARGS \
"mmcdev=0\0" \
"mmcrootfstype=ext4 rootwait\0" \
- "args_mmc=setenv bootargs console=${console} " \
+ "finduuid=part uuid mmc 0:2 uuid\0" \
+ "args_mmc=run finduuid;setenv bootargs console=${console} " \
"${optargs} " \
- "root=${mmcroot} " \
+ "root=PARTUUID=${uuid} rw " \
"rootfstype=${mmcrootfstype}\0"
/*
--
2.1.4
next prev parent reply other threads:[~2015-08-28 8:05 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-28 8:05 [U-Boot] [PATCH v2 0/3] ti_armv7_common: env: Use partuuid for detecting mmc root fs Lokesh Vutla
2015-08-28 8:05 ` [U-Boot] [PATCH v2 1/3] ti_omap4_common: use ext4 fs as default Lokesh Vutla
2015-09-12 12:47 ` [U-Boot] [U-Boot, v2, " Tom Rini
2015-08-28 8:05 ` [U-Boot] [PATCH v2 2/3] ti_armv7_common: env: Consolidate MMC args Lokesh Vutla
2015-09-12 12:47 ` [U-Boot] [U-Boot, v2, " Tom Rini
2015-08-28 8:05 ` Lokesh Vutla [this message]
2015-09-12 12:47 ` [U-Boot] [U-Boot, v2, 3/3] ti_armv7_common: env: Use partuuid for detecting mmc root fs Tom Rini
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1440749108-20355-4-git-send-email-lokeshvutla@ti.com \
--to=lokeshvutla@ti.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).