Changing Location of SD card detect pin [SOLVED]

Moderators: Oren.R, Eran.M

Eran.M
Posts: 140
Joined: Tue Jan 26, 2016 10:49 am

Re: Changing Location of SD card detect pin

Postby Eran.M » Mon Aug 21, 2017 9:28 pm

Please do the following two tests and let us know the results of each one:
1. Put "non-removable" instead of "cd-gpios = ..."
2. Put back the "cd-gpios = ..." instead of the "non-removable", and remove the "wp-gpios =..."

schluecj
Posts: 9
Joined: Fri Sep 16, 2016 6:47 pm

Re: Changing Location of SD card detect pin [SOLVED]

Postby schluecj » Tue Aug 22, 2017 8:12 pm

Thanks for the direction and all the assistance. Between the two posts regarding the read-only file system and leaving the wp line in the device tree I have been able to get the system to boot from the SD. I removed the wp-gpios line from the device tree so that the section for the usdhc2 looks like the following:

Code: Select all

&usdhc2 {   /* uSDHC2, MMC/SD card */
   pinctrl-names = "default";
   pinctrl-0 = <&pinctrl_usdhc2_2>;
   cd-gpios = <&gpio1 9 GPIO_ACTIVE_LOW>;
   no-1-8-v;
   keep-power-in-suspend;
   enable-sdio-wakeup;
   status = "okay";
};


The card detect pin was changing as expected and grounding the old pin and having it work was misleading. Grounding the old pin was additionally grounding the Tx line on the CAN chip which also would in turn ground the Rx line which was tied to the wp-gpios input which then removed the write protect and allowed the card to not be read-only.

Thanks again!!!

- John

Eran.M
Posts: 140
Joined: Tue Jan 26, 2016 10:49 am

Re: Changing Location of SD card detect pin

Postby Eran.M » Tue Aug 22, 2017 8:58 pm

That's what I suspected.
You are welcome. Great to know the issue is solved.


Return to “Yocto”

Who is online

Users browsing this forum: No registered users and 4 guests