[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Writing to absolute sectors on SD Card
- Date: Wed, 19 Nov 2008 11:30:43 +0100
- From: sebastian.huber at embedded-brains.de (Sebastian Huber)
- Subject: Writing to absolute sectors on SD Card
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.