oyama / pico-drive-sync

Pico Drive Sync facilitates seamless sharing of the littlefs on the Raspberry Pi Pico's onboard flash memory with a PC via USB, enhancing data management in embedded systems.
BSD 3-Clause "New" or "Revised" License
2 stars 0 forks source link

Larger file synchronisation #5

Open oyama opened 2 weeks ago

oyama commented 2 weeks ago

A loopback device has been added to pico-vfs: https://github.com/oyama/pico-vfs/issues/26

This allows any disk image file to be created on littlefs and used as a virtual block device. If the virtual block device is formatted in FAT and set to share with USB MSC, it can share up to about half of the physical storage.

oyama commented 2 weeks ago

Tested large files(512KB) with loopback device, but gave up because of unrealistic throughput: 2kBytes/sec. There are difficulties in handling large files with littlefs. Implementing a 'split-file loopback device' that treats directories with small files as virtual block devices might improve throughput.