Our bsp version is based on 4.14.98_2.0.1, I also tried 4.14.98_2.1.0, but still failed to synchronize files: ls command can't shows files created from Windows before rebooting board. Maybe remount should works, but shoundn't be synchronized once the file was created from Windows? I also tried refresh folder on Windows and sync from our board, but nothing happened.
Here are my settings. Is there something I missed?
Device Tree
udisk.sh
#!/bin/shfunction mount_udisk() {local img=/run/camel/fat.imglocal mpoint=/run/camel/udiskmkdir -p $mpointecho "mount_udisk($1, $2) to $mpoint"dd if=/dev/zero of=$img bs=$2 count=1mkfs.vfat $imgmount $img $mpointmkdir -p /sys/kernel/config/usb_gadget/$1cd /sys/kernel/config/usb_gadget/$1echo 0x066F > idVendorecho 0x37FF > idProductmkdir -p strings/0x409echo 0000000000000000 > strings/0x409/serialnumberecho "FSL i.MX Board" > strings/0x409/productmkdir -p configs/c.1echo 5 > configs/c.1/MaxPowermkdir -p functions/mass_storage.1# echo "" > functions/mass_storage.1/iSerialNumberecho 0 > functions/mass_storage.1/stallecho 1 > functions/mass_storage.1/lun.0/removableecho $img > functions/mass_storage.1/lun.0/fileln -s functions/mass_storage.1 configs/c.1/echo $1 > UDCreturn 0}mount_udisk ci_hdrc.0 16M
menuconfig:
console log, full debug log also attached
root@imx6qsabreauto:~# ./udisk.sh
[ 19.906909] Mass Storage Function, version: 2009/09/11
[ 19.912733] LUN: removable file: (no medium)
[ 20.105326] configfs-gadget gadget: high-speed config #1: c
Hi 计龙 杨
one can look on
Syncing folders and files between a Windows and Linux system - Super User
Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------