UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Explorer
Explorer
708 Views
Registered: ‎02-08-2017

mmc0 & mmc1 are switched in U-boot and Kernel

I have in my device tree in U-boot two sdhci interfaces defined as below

mmc_01.PNG

 

Consequently, I defined boot arguments in u-boot to boot from mmc 0 as this is my primary sd card.

 

However when kernel is booting, the sdhci devices are switched so my primary sd card became at mmc1

 

mmc_02.PNG

 

Does anyone have idea how to control or define mmc order in the kernel? or in general how to make the kernel capture the same mmc order as in u-boot?

 

Thanks in Advance

0 Kudos
2 Replies
Explorer
Explorer
676 Views
Registered: ‎02-08-2017

Re: mmc0 & mmc1 are switched in U-boot and Kernel

I tried to define mmc 0 & 1 in the device tree for the kernel with the same naming but not changing.

 

Any support please

0 Kudos
Explorer
Explorer
660 Views
Registered: ‎02-08-2017

Re: mmc0 & mmc1 are switched in U-boot and Kernel

For who is interested.

This blog explains another workaround.

 

So instead of defining sdroot0=..... root=/dev/mmcblk0p2, we can use UUID number of the file system.

So first get the UUID (using command part uuid mmc $sdbootdev:2 founduuid)

then use founduuid to boot (sdboot= ......root=PARTUUID=$founduuid).

 

If anyone sees limitations or restrictions or drawbacks using UUID, please advise

 

0 Kudos