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.
Uh oh!
There was an error while loading. Please reload this page.
-
@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-partitionthat specifies the offset and size as sector multiples in the dtsAs a first step I was thinking about adding
uint32_t offsetanduint32_t sector_countas variables to thedisk-infostructure (for a complete disk theoffsetwould be zero and thesector_countretrieved from the disk.As a second step the
zephyr,simple-fixed-disk-partitionwould be introduced, which would then be a disk again but with theoffsetandsector_counttaken from the dts.What is your opinion on the idea ?
Beta Was this translation helpful? Give feedback.
All reactions