mirror of
https://github.com/mudita/MuditaOS.git
synced 2026-04-20 15:07:17 -04:00
Fix UT linkage error when trying to link with libiosyscalls with inotify mechanism Signed-off-by: Lucjan Bryndza <lucjan.bryndza@mudita.com>
vfs for PurePhone
What does this module provide?
We use POSIX calls wrapper to have proper filesystem experience.
File systems in use
Right now we are able to use 2 file systems
- FAT-FS
- LittleFS
PurePhone partitions
PurePhone has 3 flash partitions:
- for update and backup
- FAT for phone data
- LittleFS for user data
LittleFS partition is needed to assert minimal to possibly no data loss in unexpected shutdown
how to use PurePhone partitions
Pure phone on reboot on option 4 will present itself with 3 partitions via USB, the first two should be auto mount.
mounting FAT-FS partitions
- check which devices are PurePhone block devices ie with:
dmesgorlsblk - mount them with i.e
udisksctl mount -b /dev/sdbXwhere X is number of block device
mounting LittleFS partitions
For LittleFS you will have to use fuse to mount partition. Tool is already build with release and is ready to use:
- Prepare mount point i.e. create catalog
mkdir mymount - Mount:
./lfsfuse --block_size=32768 /dev/sdb3 mymountwhere sdb3 is device where you expect Pure LittleFS partition - Enter here and play with user data
- Umount and eject the device i.e. with:
udisksctl power-off -b /dev/sdb - Phone will reboot with changed data