<div dir="ltr">Dear Marco,<div><br></div><div>I created FATFS disk image using OSFMount tool. you can download OSFMount free version in below URL.</div><div><a href="http://www.osforensics.com/tools/mount-disk-images.html">http://www.osforensics.com/tools/mount-disk-images.html</a><br></div><div><br></div><div>In my case, I created FAT16 image and FAT32 image for 64MB using raw image type.</div><div><br></div><div>I did not test getcwd() directly. but, when I test in shell, there is no problem using pwd, cd, ls.</div><div>but, I still have a problem for using file I/O command(cp, mv, rm, etc).</div><div><br></div><div>On referencing, there is not this problem in original fileio code(ram disk area is allocated using malloc).</div><div><br></div><div>Best Regards,</div><div>Thomas.</div><div class="gmail_extra"><br><div class="gmail_quote">2014-10-21 17:14 GMT+09:00 Hoefle Marco <span dir="ltr"><<a href="mailto:Marco.Hoefle@nanotronic.ch" target="_blank">Marco.Hoefle@nanotronic.ch</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<u></u>
<u></u>
<u></u>
<div lang="EN-US" link="blue" vlink="blue">
<div>
<p class="MsoNormal"><font color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy">Hello Thomas,<u></u><u></u></span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy">How do you create the FATFS image? I have
also an issue with FAT image linked into the application.<u></u><u></u></span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy">In my case getcwd() is not working
correctly after being deeper than 3 subfolders.<u></u><u></u></span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy">But the rest seems to work ok.<u></u><u></u></span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy">I filed this bug<u></u><u></u></span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy"><a href="https://www.rtems.org/bugzilla/show_bug.cgi?id=2190" target="_blank">https://www.rtems.org/bugzilla/show_bug.cgi?id=2190</a><u></u><u></u></span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy">with a test case.<u></u><u></u></span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy"><u></u> <u></u></span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy">For us only Fat12 or FAT16 work, FAT32 didn’t
work with the image generation process described in the bug report.<u></u><u></u></span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy">Best regards,<u></u><u></u></span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy">Marco <u></u><u></u></span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy"><u></u> <u></u></span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy"><u></u> <u></u></span></font></p>
<div>
<div class="MsoNormal" align="center" style="text-align:center"><font size="3" face="Times New Roman"><span style="font-size:12.0pt">
<hr size="2" width="100%" align="center">
</span></font></div>
<p class="MsoNormal"><b><font face="Tahoma"><span style="font-size:10.0pt;font-family:Tahoma;font-weight:bold">From:</span></font></b><font face="Tahoma"><span style="font-size:10.0pt;font-family:Tahoma"> users
[mailto:<a href="mailto:users-bounces@rtems.org" target="_blank">users-bounces@rtems.org</a>] <b><span style="font-weight:bold">On Behalf Of
</span></b>Thomas Kim<br>
<b><span style="font-weight:bold">Sent:</span></b> Dienstag, 21. Oktober 2014
03:36<br>
<b><span style="font-weight:bold">To:</span></b> Sebastian Huber<br>
<b><span style="font-weight:bold">Cc:</span></b> <a href="mailto:rtems-users@rtems.org" target="_blank">rtems-users@rtems.org</a><br>
<b><span style="font-weight:bold">Subject:</span></b> Re: samples/fileio - ram
disk testing failure in case of restoring disk image from NAND to SRAM.</span></font><u></u><u></u></p>
</div>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:12.0pt"><u></u> <u></u></span></font></p>
<div>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:12.0pt">Dear Sebastian,<u></u><u></u></span></font></p>
<div>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:12.0pt"><u></u> <u></u></span></font></p>
</div>
<div>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:12.0pt">NAND flash is only used for storing FAT32 disk image. <u></u><u></u></span></font></p>
</div>
<div>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:12.0pt">After this disk image of flash is copied on SRAM by bootloader, RTEMS
DOS file system is mounted for disk clone image on SRAM.<u></u><u></u></span></font></p>
</div>
<div>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:12.0pt"><u></u> <u></u></span></font></p>
</div>
<div>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:12.0pt">Best Regards,<u></u><u></u></span></font></p>
</div>
<div>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:12.0pt">Thomas<u></u><u></u></span></font></p>
</div>
</div>
<div>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:12.0pt"><u></u> <u></u></span></font></p>
<div>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:12.0pt">2014-10-20 21:07 GMT+09:00 Sebastian Huber <<a href="mailto:sebastian.huber@embedded-brains.de" target="_blank">sebastian.huber@embedded-brains.de</a>>:<u></u><u></u></span></font></p>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:12.0pt">On 20/10/14 11:07, Thomas Kim wrote:<u></u><u></u></span></font></p>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:12.0pt"><br>
NAND Flash 64MB area have MS-DOS FAT32 Disk image.<u></u><u></u></span></font></p>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:12.0pt"><br>
FAT32 is unsuitable for NAND flash devises unless you use a flash translation
layer.<span class="HOEnZb"><font color="#888888"><font color="#888888"><span style="color:#888888"><br>
<br>
<span>-- </span><br>
<span>Sebastian Huber, embedded brains GmbH</span><br>
<br>
<span>Address : Dornierstr. 4, D-82178 <u></u><u></u>Puchheim<u></u>, <u></u>Germany<u></u><u></u></span><br>
<span>Phone : +49 89 189 47 41-16</span><br>
<span>Fax : +49 89 189 47 41-09</span><br>
<span>E-Mail : <a href="mailto:sebastian.huber@embedded-brains.de" target="_blank">sebastian.huber@embedded-brains.de</a></span><br>
<span>PGP : Public key available on request.</span><br>
<br>
<span>Diese Nachricht ist keine geschäftliche Mitteilung im Sinne
des EHUG.</span></span></font><u></u><u></u></font></span></span></font></p>
</div>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:12.0pt"><u></u> <u></u></span></font></p>
</div>
</div>
</div>
</blockquote></div><br></div></div>