Replies: 2 comments 2 replies
-
There is no point in making it static. This has to be detected at runtime, e.g. SDCARDs are not static media. We should not have another broken storage subsystem. |
Beta Was this translation helpful? Give feedback.
-
I agree that for most consumer applications, the partition information shall be extracted from MBR or GPT to be compatible with other devices like PCs. However, in deeply embedded applications which use eMMC instead of SD cards, static partitioning could be helpful for some specific use cases. We need for example more than one partition on eMMC and we must be able to automatically re-create the file system of the partitions on eMMC in case of an error. The requirement for recreation of the file systems is existing due to the limited data retention time of modern eMMC memories which may not be long enough to survive the storage time of our product. As the eMMC memory is non-removable, adding a MBR or GPT would just increase complexity and the MBR or GPT would also require automatic recreation in case of errors. In the meanwhile, a loopback disk driver has been added to Zephyr. Unfortunately, this loopback disk driver supports only creating a new loopback disk device backed by a file at the specified path: it cannot be used to create a new loopback disk device at a specific |
Beta Was this translation helpful? Give feedback.
-
@danieldegrasse @jfischer-no I am thinking about adding support for simple partitions on disks for zephyr. The idea would be to create a
zephyr,simple-fixed-disk-partition
that specifies the offset and size as sector multiples in the dtsAs a first step I was thinking about adding
uint32_t offset
anduint32_t sector_count
as variables to thedisk-info
structure (for a complete disk theoffset
would be zero and thesector_count
retrieved from the disk.As a second step the
zephyr,simple-fixed-disk-partition
would be introduced, which would then be a disk again but with theoffset
andsector_count
taken from the dts.What is your opinion on the idea ?
Beta Was this translation helpful? Give feedback.
All reactions