samples/fileio - ram disk testing failure in case of restoring disk image from NAND to SRAM.

Thomas Kim thomas73.kim at gmail.com
Tue Oct 21 08:32:48 UTC 2014


Dear Marco,

I created FATFS disk image using OSFMount tool. you can download OSFMount
free version in below URL.
http://www.osforensics.com/tools/mount-disk-images.html

In my case, I created FAT16 image and FAT32 image for 64MB using raw image
type.

I did not test getcwd() directly. but, when I test in shell, there is no
problem using pwd, cd, ls.
but, I still have a problem for using file I/O command(cp, mv, rm, etc).

On referencing, there is not this problem in original fileio code(ram disk
area is allocated using malloc).

Best Regards,
Thomas.

2014-10-21 17:14 GMT+09:00 Hoefle Marco <Marco.Hoefle at nanotronic.ch>:

>     Hello Thomas,
>
> How do you create the FATFS image? I have also an issue with FAT image
> linked into the application.
>
> In my case getcwd() is not working correctly after being deeper than 3
> subfolders.
>
> But the rest seems to work ok.
>
> I filed this bug
>
> https://www.rtems.org/bugzilla/show_bug.cgi?id=2190
>
> with a test case.
>
>
>
> For us only Fat12 or FAT16 work, FAT32 didn’t work with the image
> generation process described in the bug report.
>
> Best regards,
>
> Marco
>
>
>
>
>  ------------------------------
>
> *From:* users [mailto:users-bounces at rtems.org] *On Behalf Of *Thomas Kim
> *Sent:* Dienstag, 21. Oktober 2014 03:36
> *To:* Sebastian Huber
> *Cc:* rtems-users at rtems.org
> *Subject:* Re: samples/fileio - ram disk testing failure in case of
> restoring disk image from NAND to SRAM.
>
>
>
> Dear Sebastian,
>
>
>
> NAND flash is only used for storing FAT32 disk image.
>
> After this disk image of flash is copied on SRAM by bootloader, RTEMS DOS
> file system is mounted for disk clone image on SRAM.
>
>
>
> Best Regards,
>
> Thomas
>
>
>
> 2014-10-20 21:07 GMT+09:00 Sebastian Huber <
> sebastian.huber at embedded-brains.de>:
>
> On 20/10/14 11:07, Thomas Kim wrote:
>
>
> NAND Flash 64MB area have MS-DOS FAT32 Disk image.
>
>
> FAT32 is unsuitable for NAND flash devises unless you use a flash
> translation layer.
>
> --
> 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.
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/users/attachments/20141021/0634b3b9/attachment-0002.html>


More information about the users mailing list