D1H读SD卡异常
-
D1H插卡后,能识别到容量,但是貌似没法挂载,日志如下,
[ 25.281593] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 0Hz bm PP pm UP vdd 21 width 1 timing LEGACY(SDR12) dt B [ 25.292997] sunxi-mmc 4020000.sdmmc: no vqmmc,Check if there is regulator [ 25.313240] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B [ 25.339164] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B [ 25.354011] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B [ 25.368087] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B [ 25.382862] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B [ 25.442018] mmc1: host does not support reading read-only switch, assuming write-enable [ 25.452953] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing SD-HS(SDR25) dt B [ 25.464694] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 50000000Hz bm PP pm ON vdd 21 width 1 timing SD-HS(SDR25) dt B [ 25.476811] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 50000000Hz bm PP pm ON vdd 21 width 4 timing SD-HS(SDR25) dt B [ 25.488707] mmc1: new high speed SDHC card at address 0007 [ 25.496422] mmcblk1: mmc1:0007 SD16G 14.5 GiB [ 25.505747] mmcblk1: p1 [ 33.121583] usb1-vbus: disabling [ 98.141648] random: crng init done [ 98.145444] random: 4 urandom warning(s) missed due to ratelimiting
相对于开板,自己做的板子SD卡检测引脚触发电平正好相反,
这俩对比日志,最后缺了[ 31.394765] FAT-fs (mmcblk0p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
可能是啥原因?
-
修改 board.dts 里面的 sdc0 的 det 定义
-
@whycan 刚找到原因了,这个spi nand固件得手动修改fab添加挂载点,我用emmc就没法默认挂载,得手动加
config 'mount' option target '/mnt/SDCARD' option device '/dev/mmcblk1p1' option options 'rw,async' option enabled '1'
-
你好,我的板子是D1s,也遇到了SD卡无法识别的问题,日志如下:
[ 6546.181311] sunxi-mmc 4020000.sdmmc: retry:re-send cmd
[ 6546.188017] sunxi-mmc 4020000.sdmmc: smc 0 p0 err, cmd 51, RD RTO !!
[ 6546.195156] sunxi-mmc 4020000.sdmmc: retry:start
[ 6546.200301] sunxi-mmc 4020000.sdmmc: retry:stop
[ 6546.205418] sunxi-mmc 4020000.sdmmc: retry:stop recover
[ 6546.212054] sunxi-mmc 4020000.sdmmc: send manual stop command failed 100
[ 6546.219683] sunxi-mmc 4020000.sdmmc: REG_DRV_DL: 0x00030000
[ 6546.225922] sunxi-mmc 4020000.sdmmc: REG_SD_NTSR: 0x81710330
[ 6546.232253] sunxi-mmc 4020000.sdmmc: REG_NTDL_HS400: 0x20000010
[ 6546.280360] sunxi-mmc 4020000.sdmmc: sunxi v5p3x retry give up
[ 6546.286923] sunxi-mmc 4020000.sdmmc: retry:set phase failed or over retry times
[ 6546.295153] sunxi-mmc 4020000.sdmmc: retry:give up
[ 6546.300562] mmc0: error -110 whilst initialising SD card
[ 6546.306636] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 0Hz bm PP pm OFF vdd 0 width 1 timing LEGACY(SDR12) dt B我想问一下您这个spi nand固件得手动修改fab添加挂载点,在哪里设置啊?
我是新手,懂的比较少。求助 -
@lgkgkfg 这个是加在那个文件里的???
-
@cbq123 target/allwinner/d1-h-nezha_prog/base-files/etc/config/fstab,这个路径,选择对你的产品就行
Copyright © 2024 深圳全志在线有限公司 粤ICP备2021084185号 粤公网安备44030502007680号