[Bug 2190] New: an external fat16 image does not work properly, getcwd() fails

bugzilla-daemon at rtems.org bugzilla-daemon at rtems.org
Fri Oct 17 08:56:24 UTC 2014


https://www.rtems.org/bugzilla/show_bug.cgi?id=2190

             Bug #: 2190
           Summary: an external fat16 image does not work properly,
                    getcwd() fails
    Classification: Unclassified
           Product: RTEMS
           Version: 4.11
          Platform: sparc
        OS/Version: RTEMS
            Status: NEW
          Severity: normal
          Priority: P3
         Component: filesystem
        AssignedTo: chrisj at rtems.org
        ReportedBy: marco.hoefle at nanotronic.ch


getcwd() syscall fails when browsing deeper in the mounted filesystem.
A wrong path is returned (also in rtems4.10 which is our target platform)

Discussion was on mailing list:
http://lists.rtems.org/pipermail/users/2014-October/028297.html

Test case:
an external fat16 image is created with a default content using the following
tools:
dd
mkfs.vfat
mcopy
xxd

the mkfs generated image is converted to a C data array and compiled to an
object file.
This object file is then linked into the rtems application.

Steps to compile the test case:
The above tools need to be installed on a Linx build machine (debian wheezy
used here)

The top level Makefile in the src folder expects the sparc rtems 4.11 toolchain
in the $(project_root_dir)/build/toolchain/

Toolchain is not attached as it is very big. But if desired I can provide a
link to download it.


The top level Makefile calls the fatfs image generation Makefile and then the
application Makefile.


The test case app sets up two ramdisks.
One under /sdram -> this one id formated using rtems dosfs functions
and one under /mram -> this should contain the default content


then a dummy thread and the rtems shell is started.


We suppose it is getcwd() as we had this behaviour in our final application
using this system call.



If something is missing or so please contact me.

-- 
Configure bugmail: https://www.rtems.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the bugs mailing list