Sdhc2 micron emmc



We are connected two emmc.sdhc1 -> emmc working ok & sdhc2 to emmc chip not working

my boot log is :-

root@linaro-developer:~# dmesg | grep mmc
[ 3.600880] mmc0: SDHCI controller on 7824900.sdhci [7824900.sdhci] using ADMA 64-bit
[ 3.668828] mmc1: SDHCI controller on 7864900.sdhci [7864900.sdhci] using ADMA 64-bit
[ 3.690585] mmc0: MAN_BKOPS_EN bit is not set
[ 3.970284] mmc0: new HS200 MMC card at address 0001
[ 3.994529] mmcblk0: mmc0:0001 H8G1e 7.28 GiB
[ 3.998886] mmcblk0boot0: mmc0:0001 H8G1e partition 1 4.00 MiB
[ 4.006960] mmcblk0boot1: mmc0:0001 H8G1e partition 2 4.00 MiB
[ 4.013738] mmcblk0rpmb: mmc0:0001 H8G1e partition 3 4.00 MiB
[ 4.033495] mmcblk0: p1 p2 p3 p4 p5 p6 p7 p8 p9 p10
[ 4.166974] mmc1: MAN_BKOPS_EN bit is not set
[ 4.234655] mmc1: mmc_select_hs200 failed, error -74
[ 4.234679] : switch to mmc1 failed
[ 4.236462] mmc1: new MMC card at address 0001
[ 4.243675] mmcblk1: mmc1:0001 R1J56L 13.8 GiB
[ 4.246990] mmcblk1boot0: mmc1:0001 R1J56L partition 1 4.00 MiB
[ 4.249082] mmcblk1boot1: mmc1:0001 R1J56L partition 2 4.00 MiB
[ 4.250884] mmcblk1rpmb: mmc1:0001 R1J56L partition 3 128 KiB

We are getting mmc1: mmc_select_hs200 failed, error -74 in mmc1 port. my dts setting is below :-

&sdhc_2 {
vmmc-supply = <&pm8916_l1>;
vqmmc-supply = <&pm8916_l5>;

    pinctrl-names = "default", "sleep";
    pinctrl-0 = &lt;&amp;sdc2_clk_on &amp;sdc2_cmd_on &amp;sdc2_data_on&gt;;
    pinctrl-1 = &lt;&amp;sdc2_clk_off &amp;sdc2_cmd_off &amp;sdc2_data_off&gt;;
    status = "okay";


but my device entry is
root@linaro-developer:~# ls -l /dev/mmcblk1
mmcblk1 mmcblk1boot0 mmcblk1boot1 mmcblk1rpmb

other partitions are not detected.



So… from the logs and the DT is looks like you are designing your own board (rather than trying to test and eMMC device via the DB410c uSD slot…

I can’t see anything wrong with the fragment sdhc_2 (the PMIC supplies are different compared to DB410C and I assume that is part of your board design) but I do not that the fragment is incomplete; You haven’t included the part from msm8916.dtsi . It would be good to see that for completeness but given we can read the boot partition sizes I’d be surprised if that had any errors in it.

In principle the error you report is no fatal (mmc sub-system will fall back to a slower mode) so I guess right now I am more interested to know a few more details:

  1. How you know that *are* other partitions on the eMMC to be detected (did you provision it before manufacturing the board)?
  2. Whether you can read/write to /dev/mmcblk1 with dd?
  3. Whether you can create partitions using fdisk?