flashdisk erase before registering driver

Matthew J Fletcher amimjf at gmail.com
Mon Mar 18 09:26:58 UTC 2013


Hi,

Yes i think i will have to add code to my BSP to erase all flash sectors if
required.


On 15 March 2013 14:10, Sebastian Huber
<sebastian.huber at embedded-brains.de>wrote:

> 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<sebastian.huber at embedded-brains.de>
> PGP     : Public key available on request.
>
> Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.
>



-- 

regards
---
Matthew J Fletcher
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/users/attachments/20130318/9ddaa5a4/attachment.html>


More information about the users mailing list