Writing to absolute sectors on SD Card

Sebastian Huber sebastian.huber at embedded-brains.de
Wed Nov 19 10:30:43 UTC 2008


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?

[...]

-- 
Sebastian Huber, Embedded Brains GmbH

Address : Obere Lagerstr. 30, D-82178 Puchheim, Germany
Phone   : +49 89 18 90 80 79-6
Fax     : +49 89 18 90 80 79-9
E-Mail  : sebastian.huber at embedded-brains.de
PGP     : Public key available on request

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.



More information about the users mailing list