I wrote an SD host-controller Linux driver for a totally customized board, using IP TE4395.
With the driver I wrote,
- I can mount an SD card, read and write.
- when mounted, once I
umount
, the nextmount
will fail. - command
mount -o remount /dev/mmcblk0p1
worked normally....
# 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