Writing to absolute sectors on SD Card

Chris Johns chrisj at rtems.org
Wed Nov 19 23:40:39 UTC 2008


Sebastian Huber wrote:
> Chris Johns wrote:
>> Robert S. Grimes wrote:
>>> Is it possible to write to absolute sectors using the spi-sd-card driver?
>> Yes but you are on your own with how this interacts with the cache. I wonder 
>> why the SD card is implemented this way. I would have thought the 
>> rtems_blkdev_generic_* calls such as rtems_blkdev_generic_write was the way to 
>> do this. This removes the need for sd_card_driver_read and 
>> sd_card_driver_write. Maybe Thomas could help here.
> 
> I used the sd_card_driver_* stuff for testing and debugging.  Maybe it
> is better to remove it and provide only the LibBlock interface.  Can I
> just add these rtems_blkdev_generic_* functions to the sd_card_disk_ops
> and only provide a custom initialization function?
> 

I think it would be a good idea to bring this driver inline with the others. 
It helps prompt and strengthen the API.

Regards
Chris



More information about the users mailing list