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 */
>;
};
HG:
应该是部分驱动未加载或是加载错误,块设备应该有一个umount的过程。
zizhen hu:
回复 HG:
这个还有这种情况?我用的环境是SDK08,用singlecore-omap2plus_defconfig编译的,这个配置在kernel上SD卡驱动不完整?
Steven Liu1:
回复 zizhen hu:
这个实际问题是什么?是要解决USB不能用的问题,还是SD卡的什么问题?
你在系统已经运行的情况下,拔出SD卡的话,文件系统应该就在你的SD卡上,这时候无法sync,自然会报IO读写之类的错误。所以现在要解决的问题是什么?
zizhen hu:
回复 Steven Liu1:
你好:
板子上的问题有2个,
1.是USB无法识别,报-71错误
2.sd则文件系统经常出现错误,然后是拔掉SD卡后重新插入,依旧报IO读写错误
Jian Zhou:
回复 zizhen hu:
1. USB的硬件原理图是怎么设计的?
2.SD卡的cd脚改为gpio了?
zizhen hu:
回复 Jian Zhou:
SD卡的cd脚改成0x15c ( PIN_INPUT | MUX_MODE7 ) /* (A16) spi0_cs0.gpio0[5] */
USBd的原理图在http://www.deyisupport.com/question_answer/dsp_arm/sitara_arm/f/25/p/121821/337673.aspx#337673上最后贴出了原理图