因为项目需要inand 从4G升到8G,但是通过UBOOT打印信息看到初始化的时候识别的容量比4G的还少,经过不断加打印信息调试发现在,Read and decode extended CSD.来识别容量。host->capacity = (host->ext_csd.sectors*512)/host->read_bl_len  原来在整除过程中很多数据被省掉。改为 host->capacity = host->ext_csd.sectors; 就OK。