This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

SD卡无法支持插拔



am335x,参考am335x-evm和am335x-evmsk自制的板子,加载kernel之后,USB0和USB1无法工作

SDK版本ti-sdk-am335x-evm-08.00.00.00

cd pin改为/* (A16) spi0_cs0.gpio0[5] */ 。

是不是mmc1的cd是作为中断检测?可否作为轮询检测?

插拔后提示

[ 62.996180] mmcblk0: error -110 sending status command, retrying
[ 63.034016] mmcblk0: error -110 sending status command, retrying
[ 63.072534] mmcblk0: error -110 sending status command, aborting
[ 63.080538] end_request: I/O error, dev mmcblk0, sector 2246648
[ 63.088981] EXT4-fs error (device mmcblk0p2): ext4_find_entry:1302: inode #65059: comm wkup_m3_rproc_l: reading directory lblock 0
[ 63.195359] mmcblk0: error -110 sending status command, retrying
[ 63.230279] mmcblk0: error -110 sending status command, retrying
[ 63.264421] mmcblk0: error -110 sending status command, aborting
[ 63.272291] end_request: I/O error, dev mmcblk0, sector 145408
[ 63.279933] Buffer I/O error on device mmcblk0p2, logical block 0
[ 63.287889] lost page write due to I/O error on mmcblk0p2
[ 63.374660] mmcblk0: error -110 sending status command, retrying
[ 63.408808] mmcblk0: error -110 sending status command, retrying
[ 63.442945] mmcblk0: error -110 sending status command, aborting
[ 63.450796] end_request: I/O error, dev mmcblk0, sector 2246648

dts配置如下:

mmc1_pins_default: pinmux_mmc1_pins {
pinctrl-single,pins = <
0x0F0 (PIN_INPUT_PULLUP | MUX_MODE0) /* mmc0_dat3.mmc0_dat3 */
0x0F4 (PIN_INPUT_PULLUP | MUX_MODE0) /* mmc0_dat2.mmc0_dat2 */
0x0F8 (PIN_INPUT_PULLUP | MUX_MODE0) /* mmc0_dat1.mmc0_dat1 */
0x0FC (PIN_INPUT_PULLUP | MUX_MODE0) /* mmc0_dat0.mmc0_dat0 */
0x100 (PIN_INPUT_PULLUP | MUX_MODE0) /* mmc0_clk.mmc0_clk */
0x104 (PIN_INPUT_PULLUP | MUX_MODE0) /* mmc0_cmd.mmc0_cmd */
0x15C (PIN_INPUT_PULLUP | MUX_MODE7) /* spi0_cs1.gpio0_5 */
>;
};