|
发表于 2022-3-9 18:16:33
|
显示全部楼层
FileX分两个分区要改驱动,他们的Demo里暂时还没有这个例子。没研究过文件系统的底层代码,所以也不知道咋改。下面是微软给我的答复:- Hi, the fx_media_open function opens one volume each time. The number of FATs does not mean volume count. The second volume needs to be opened by calling fx_media_open too.
- In current sample drivers, only the first partition is accessed. See the code in the driver:
- status = _fx_partition_offset_calculate(media_ptr -> fx_media_driver_buffer, 0,
- &partition_start, &partition_size);
- The driver reads partition 0 info only. To enable access to the second partition, you can modify the driver to support multiple partition access. Besides, you need to pay attention to thread safety issues as the driver may be called from different threads simultaneously.
复制代码 |
|