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: 
Highlighted
Explorer
Explorer
2,159 Views
Registered: ‎02-08-2017

sdhci0 is not detected

I had one board that is using two mmc interfaces connected with zynqMP. I tried to build u-boot from the Xilinx u-boot version.

I added the following line to the device tree compiled in u-boot

 

&sdhci0 {
    status = "okay";
    no-1-8-v;
    xlnx,mio_bank = <0>;
};

But When booting the system, this sdhci0 peripheral in not detected as shown below

 

sdhci0_error.PNG

 

I tried actually another source of u-boot here, It can acutally detect both sdhci0 and sdhci1

 

sdhci_detected.PNG

 

They the difference in the device tree definition as follows

&sdhci0 {
	status = "okay";
	no-1-8-v;	/* for 1.0 silicon */
	is_emmc;
};

and of course I tried to use it but with no hope.

Does any one have idea, what could be the problem. Why I can't detect sdhci0 when using xilinx u-boot version.

 

Thanks in advance

 

 

 

Tags (1)
0 Kudos
9 Replies
Moderator
Moderator
2,137 Views
Registered: ‎06-27-2017

Re: sdhci0 is not detected

Hi @moibrahim

 

Generally SD0 is used to configure with emmc & SD1 for SDcard. May I know is mmc configuration is using emmc + SD or how is it?

 

Best Regards
Kranthi
--------------------------
Don't forget to reply, kudo, and accept as solution.
0 Kudos
Explorer
Explorer
2,131 Views
Registered: ‎02-08-2017

Re: sdhci0 is not detected

@gudishak

Which mmc configuration?

My board is using sd0 for emmc indeed, that is why I tried to defined sdhci0 in device tree only as delcared in my question.

 

So I don't know if there is special configuration for emmc. Please help.

 

Thanks in advance

0 Kudos
Explorer
Explorer
2,096 Views
Registered: ‎02-08-2017

Re: sdhci0 is not detected

@gudishak

Any Help please.

What is the configuration needed for emmc devices please

0 Kudos
Moderator
Moderator
2,089 Views
Registered: ‎06-27-2017

Re: sdhci0 is not detected

Hi @moibrahim

 

Still looking for any known issues..

Can you try attached patch  and boot u-boot in latest xilinx u-boot code?

 

 

Best Regards
Kranthi
--------------------------
Don't forget to reply, kudo, and accept as solution.
0 Kudos
Adventurer
Adventurer
2,083 Views
Registered: ‎11-10-2017

Re: sdhci0 is not detected

you are getting Bad mmc 0 error

 

which means at that point it is not able to find out the device 

 

can you please check the devices listed 

 

ZynqMP> mmc info 

ZynqMP> mmc dev 0

ZynqMP> mmc dev 1 

 

??? and share the information ?

 

 

also  try switching off the &sdhci1 in system-user.dtsi  and check if it works ? Are you trying for a SD card boot ?

0 Kudos
Voyager
Voyager
2,068 Views
Registered: ‎09-14-2016

Re: sdhci0 is not detected

Same issue with Zynq UltraScale+ MPSoC zcu102 rev1.1 and files taken from XILINX 2017.4-zcu102-release... o.0

 

0 Kudos
Voyager
Voyager
2,064 Views
Registered: ‎09-14-2016

Re: sdhci0 is not detected

Hi @gudishak,

 

Thank you for your patch but it doesn't work.

 

Xilinx Zynq MP First Stage Boot Loader
Release 2017.4   Apr 13 2018  -  13:10:54
PMU Firmware 2017.4     Apr 13 2018   13:20:18
NOTICE:  ATF running on XCZU9EG/silicon v4/RTL5.1 at 0xfffea000, with PMU firmware
NOTICE:  BL31: Secure code at 0x0
NOTICE:  BL31: Non secure code at 0x8000000
NOTICE:  BL31: v1.3(release):47af34b
NOTICE:  BL31: Built : 18:37:52, Apr 12 2018
PMUFW:  v0.3


U-Boot 2017.01-dirty (Apr 13 2018 - 14:26:11 +0200) Xilinx ZynqMP ZCU102 rev1.0

I2C:   ready
DRAM:  4 GiB
EL Level:       EL2
Chip ID:        xczu9eg
MMC:   sdhci_send_command: MMC: 0 busy timeout increasing to: 200 ms.

Could you please provide us a working patch ?

 

Thx.

Trigger

 

0 Kudos
Voyager
Voyager
2,000 Views
Registered: ‎09-14-2016

Re: sdhci0 is not detected

Hi all,

 

For info no more issue with SD Card class 4 ...

 

Please advice to fix that ?

 

Cheers,

Trigger

0 Kudos
Explorer
Explorer
1,991 Views
Registered: ‎02-08-2017

Re: sdhci0 is not detected

@trigger

I don't know what is exactly your case, but as initial suggestion: If you want to work with both sdhc1 &sdhci 0 make sure of the following:

 - both sdhci 0 & 1 are enabled in the device tree file (arch>>arm>>dts>>"name of the device tree file")

- define CONFIG_ZYNQ_SDHCI0 in the file (include>>configs>>xilinx_zynqmp_zcu102.h)

 

P.S: in my case, I had to work with version xilinx-v2016.4 in order to be able to detect my emmc (with more tweaks in the sdhci driver).

 

@vish.bh30Thanks for your input, this was helpful

0 Kudos