我使用 IP TE4395 为完全定制的板编写了 SD 主机控制器 Linux 驱动程序。
用我写的驱动程序,
- 我可以安装SD卡,读写。
- 安装后,一旦 I
umount
,下一个mount
将失败。 - 命令
mount -o remount /dev/mmcblk0p1
正常工作....
# ls /mnt/
aaa.txt lost+found
# mount -o remount /dev/mmcblk0p1
EXT4-fs (mmcblk0p1): re-mounted. Opts: block_validity,delalloc,barrier,user_xattr,acl
# echo adfaf >/mnt/bbb.txt
# ls /mnt/
aaa.txt bbb.txt lost+found
# cat /mnt/bbb.txt
adfaf
# sync
# ls /mnt/
aaa.txt bbb.txt lost+found
# umount /mnt/
# mount /dev/mmcblk0p1 /mnt
mount: mounting /dev/mmcblk0p1 on /mnt failed: Invalid argument