Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
14 years ago

eCos lib tree building mounting problems

Hallo everyone!

I have a little, but strange problem:

I installed Altera Quartus II and Nios II v5.1 onto my computer (Windows XP Professional SP3). I installed an ecos to it.

I start the command line. (Start Menu -> Programs -> Altera -> NIOS II -> nios ii sdk shell)

type the following: mount -tf c:\\ /ecos-c

then the following: ecosconfig --prefix=/ecos-c/source/embedded/nios/project/software/project_ecoslib/debug/project_install --config=/ecos-c/source/embedded/nios/project/software/project_ecoslib/project_release.ecc tree

i receive the following error messages:

c:\altera\kits\nios2_51

c:\ecos-c\source\embedded\nios\project\software\project_ecoslib\project_release.ecc: error

couldn't read file "c:\ecos-c\source\embedded\nios\project\software\project_ecoslib\project_release.ecc": no such file or directory

invalid savefile "c:\ecos-c\source\embedded\nios\project\software\project_ecoslib\project_release.ecc".

1 error occurred while reading in the savefile data.

/ecos-c/source/embedded/nios/project/software/project_ecoslib

The question is: WHY adds it automatically an "ecos-c" folder to the path. This .ecc file is at c:\Source\Embedded\Nios\Project\software\Project_EcosLib\Project_Release.ecc

Where and which option can be corrupt/bad? Why does this ecosconfig program add this "ecos-c" as addition to the path?

Please, help me to find out this thing. I tried to look up at many different places, haven't found anything

in addition to this strange thing: if i change the mounting point name from ecos-c to e.g. drive-c then the error will be the following:

c:\altera\kits\nios2_51

c:\drive-c\source\embedded\nios\project\software\project_ecoslib\project_release.ecc: error

couldn't read file "c:\drive-c\source\embedded\nios\project\software\project_ecoslib\project_release.ecc": no such file or directory

invalid savefile "c:\drive-c\source\embedded\nios\project\software\project_ecoslib\project_release.ecc".

1 error occurred while reading in the savefile data.

/drive-c/source/embedded/nios/project/software/project_ecoslib

It is clearly seen, that there is a problem with the paths/mounts. Please, help me about this mount-issue. It can be clearly seen that the files are at place (where they should be located), only some mounting settings must be checked/set/removed/etc.

Could You please give me any ideas(s)?

14 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    looks like a script generated by ecosconfig is still looking in /ecos-c/ even after it is unmounted...

    If you have a more recent version of Quartus/Nios, could you at least try to generate eCos on that? Just to see if it is a bug in cygwin or if it is coming from somewhere else...
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    I installed the version 7.1 of Altera/Quartus/Nios II. After setting up the environment, I get the following (right after trying to launch ecosconfig):

    makefile:147: /ecos-c/altera/kits/nios2_71/components/ecos/ecos-current/packages/pkgconf/rules.mak: no such file or directory

    make[3]: *** no rule to make target `/ecos-c/altera/kits/nios2_71/components/ecos/ecos-current/packages/pkgconf/rules.mak'. stop.

    make[2]: *** [headers] error 2

    make[1]: *** [/cygdrive/c/source/embedded/nios/project/software/project_ecoslib/release/project_install/lib/libtarget.a] error 2
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Finally, I have found out the solution: There was a NetBeans installed on my machine, which also included a cygwin dll to my system.

    This .dll was unluckyly with some bugs, so I can tell You Daixiwen: You were right, it was cygwin-bug at the end. Now it is working perfectly. Thanks for your assistance. :cool:
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    This one was really tricky to find! I'm glad you were able to solve it.