一. 问题原因:
github上释放的镜像并没有开启TF卡的读写功能!需要自行更改board.dts并编译打包烧录!

二. 解决方法

修改board.dts如下位置 sdc0_pins_a: sdc0@0 { allwinner,pins = "PF0", "PF1", "PF2", "PF3", "PF4", "PF5"; allwinner,function = "sdc0"; allwinner,muxsel = <2>; - allwinner,drive = <1>; + allwinner,drive = <3>; - allwinner,pull = <0>; + allwinner,pull = <1>; }; &sdc0 { - /*cd-gpios = <&pio PF 6 6 1 3 0xffffffff>;*/ + cd-gpios = <&pio PF 6 6 1 3 0xffffffff>; - /*cd-used-24M;*/ + cd-used-24M; }; 检查Kernel Configuration是否设置正确,这些选项已在docker镜像中默认配置好
i. 确认Device Drivers的设置下的MMC/SD/SDIO card support设置为开启
ii. 设置 MMC/SD/SDIO card support ——> Number of minors per block device 为 8
iii. 确认MMC/SD/SDIO card support ——> MMC block device driver 和 Allwinner sunxi SD/MMC Host Controller support设置为开启
iv. 确认File systems下开启对ext4文件系统和VFAT文件系统的支持

三. 仍存在问题

tf卡不支持热插拔,一但拔出需要重启系统 sdc1仍然报错,但是wifi部分正常 tf卡时不时就报以下错误 [ 45.129171] sunxi-mmc sdc0: smc 0 p0 err, cmd 24, WR EBE !! [ 45.135471] sunxi-mmc sdc0: retry:start [ 45.139819] sunxi-mmc sdc0: retry:stop [ 45.144066] sunxi-mmc sdc0: retry:stop recover [ 45.149076] sunxi-mmc sdc0: send manual stop command failed 100 [ 45.155839] sunxi-mmc sdc0: REG_DRV_DL: 0x00030000 [ 45.161253] sunxi-mmc sdc0: REG_SD_NTSR: 0x81710110 [ 45.166717] sunxi-mmc sdc0: REG_NTDL_HS400: 0x20000110 [ 45.172514] sunxi-mmc sdc0: *****retry:re-send cmd***** [ 45.178362] 1,end