Adding the debug message between SD/eMMC device and host in u-boot.

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Adding the debug message between SD/eMMC device and host in u-boot.

Adding the debug message between SD/eMMC device and host in u-boot.

Sometimes you encoutner thisSD/eMMC issue ,"Card did notrespond to voltage select! ". You could add debug message to see the communication between SD/eMMC and host.

#define  DEBUG

#define CONFIG_MMC_TRACE 

& add debug message in mmc.c (driver/mmc)

int mmc_send_cmd(struct mmc
*mmc, struct mmc_cmd *cmd, struct mmc_data *data)

{

..

printf("CMD_SEND:%d\n",cmd->cmdidx);

printf("\t\tARG\t\t\t0x%08X\n", cmd->cmdarg);

..

}

=> mmcinfo

CMD_SEND:0

              
ARG                    
0x00000000
            
MMC_RSP_NONE

CMD_SEND:8
ARG                    
0x000001AA
          
MMC_RSP_R1,5,6,7       
0x00000001

CMD_SEND:55

ARG                    
0x00000000

MMC_RSP_R1,5,6,7         0x00000001

CMD_SEND:0

ARG                    
0x00000000

MMC_RSP_NONE

100% 有帮助 (1/1)
版本历史
最后更新:
‎07-21-2016 06:19 PM
更新人: