flashdisk erase before registering driver
Sebastian Huber
sebastian.huber at embedded-brains.de
Fri Mar 15 14:10:47 UTC 2013
On 03/14/2013 05:03 PM, Matthew J Fletcher wrote:
> The blank check code in am29lv160, called from rtems_disk_inititialize tests if
> a read of flash is not 0xff, the only way to set flash to that state is to
> erase the sector, but I don't see how rtems can do that before
> rtems_disk_initialize has not finished yet.
>
> I am confused why flashdisk is marking the segment as failed in
> rtems_fdisk_recover_block_mappings but its not attempting to call
> rtems_fdisk_seg_erase.
>
I think we need an operation that erases the complete device and re-initializes
the driver data structures afterward.
--
Sebastian Huber, embedded brains GmbH
Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone : +49 89 189 47 41-16
Fax : +49 89 189 47 41-09
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