
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On 10/08/2013 11:34 AM, Robert P. J. Day wrote:
On Tue, 8 Oct 2013, Tom Rini wrote:
Upon further inspection and review and chatting with kernel folks, what happens here is that what mmcblk# a device gets is based on probe order. So a system with an SD card inserted with place eMMC on mmcblk1, but without an SD card, it will be on mmcblk0. So U-boot can only provide a best guess. In this case, if no SD card is present, we would want to pass mmcblk0p2 still. If an SD card is present, it woudl be able to provide a uEnv.txt that would be loaded (even if the kernel is NOT there) which can still update mmcroot variable.
This reverts commit 827512fb1154c05c6eb1e2259e936df55c98a535.
Cc: Robert P. J. Day rpjday@crashcourse.ca Signed-off-by: Tom Rini trini@ti.com
include/configs/am335x_evm.h | 1 - 1 file changed, 1 deletion(-)
diff --git a/include/configs/am335x_evm.h b/include/configs/am335x_evm.h index e8e5275..f746e48 100644 --- a/include/configs/am335x_evm.h +++ b/include/configs/am335x_evm.h @@ -171,7 +171,6 @@ "run mmcboot;" \ "setenv mmcdev 1; " \ "setenv bootpart 1:2; " \
- "setenv mmcroot /dev/mmcblk1p2 ro; " \ "run mmcboot;" \ "run nandboot;"
-- 1.7.9.5
are you sure about this? note that, in the above, you've *already* tried to mmcboot off of device mmcblk0 and, for one reason or another, that failed. so u-boot then *explicitly* switches to mmc dev 1 with:
setenv mmcdev 1 setenv bootpart 1:2
why would it not make sense to also switch mmcroot there as well?
Yes, I'm very sure after talking with the kernel folks and playing with a tree with all of the EDMA stuff fixed up so we can use modern kernels again. But you can see this on the vendor kernel BBB ships with too. If you have an SD card and eMMC, SD card will be mmcblk0 and eMMC mmcblk1. If you however just root from eMMC, it will become mmcblk0. The only time you have mmcblk1 is when you have both SD card inserted and eMMC present.
Note that omap5 uevm has a different issue I shall be posting a patch for soon, need to get the board back into my setup.
- -- Tom