Forum Discussion

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

install.ptf missing

The following error is generated whenever image (happens on ecos and linux) is

tried to flash into the nios2 cyclone evaluation board.

no install.ptf file found at /cygdrive/u/altera/quartus42/sopc_builder/bin/europ

a/europa_utils.pm line 1756.

And the file is really missing in my insallation directory.

Beacuse of this Iam able to build the projects (ecos and linux), but cannot download

to the board.

Any help please ?

If you have the install.ptf file in your system, can u mail me?

6 Replies

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

    install.ptf is generated by SOPC builder, and contains the location of all components installed on your system. If you start and stop SOPC builder that will create the file for you.

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

    I tried starting and starting SOPC Builder, still same problem

    When I tried to Generate System from the SOPC Builder the following message is reported

    Altera SOPC Builder Version 4.20 Build 178

    Copyright © 1999-2004 Altera Corporation. All rights reserved.

    # 2005.04.06 10:26:12 (*) mk_custom_sdk starting# 2005.04.06 10:26:12 (*) Reading project U:/altera/kits/nios2/examples/verilog/niosII_cyclone_1c20/standard/std_1c20.ptf.

    # 2005.04.06 10:26:13 (*) Finding all CPUs# 2005.04.06 10:26:13 (*) Finding all available components

    no install.ptf file found at u:/altera/quartus42/sopc_builder/bin/europa/europa_utils.pm line 1756.

    Error in processing. System NOT successfully generated.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    install.ptf file is created in folder where current desktop directory is located

    which is normally Documents and Settings\<current user> .

    The tools search for install.ptf always in Documents and Settings\<current user>

    directory

    Once I used a multi desktop software, which set the current desktop directory in some

    other folder. install.ptf was created in that folder, but the tool searched in

    Documents and Settings\<current user>

    Now I reset the current desktop to the orginal directory and the error vanished.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    java problems while generating install.ptf

    I get the following message when I try to rebuild

    <div class='quotetop'>QUOTE </div>

    --- Quote Start ---

    make -s all

    Creating C:Documents...

    sopc_builder: unable to locate Java runtime environment at - line 417.

    Creating and...

    sopc_builder: unable to locate Java runtime environment at - line 417.

    Creating Settingswehrch3b.sopc_builder/install.ptf...

    sopc_builder: unable to locate Java runtime environment at - line 417.[/b]

    --- Quote End ---

    The clean removes install.ptf but the rule for creating it again can has problems

    while calling &#39;sopc_builder&#39;

    <div class='quotetop'>QUOTE </div>

    --- Quote Start ---

    my $javax = "";

    if ($jre_dir eq "") { $jre_dir = get_quartus_jre($quartus_dir); }

    if ($jre_dir ne "") { $javax = get_java_exe($jre_dir,$shelled); }

    if (! -x $javax )

    {

    $javax = get_java_exe($sopc_builder . "/bin/jre1.4",$shelled);

    }

    if (! -x $javax )

    {

    die "sopc_builder: unable to locate Java runtime environment";

    }[/b]

    --- Quote End ---

    On the other hand if I open Quartus and the sopc_builder the install.ptf file

    is generated correctly.

    All my colleagues have the same problem. What&#39;s wrong in our installation.

    We use Quartus 4.2 + Service Pack 1 and Nios 1.1.0
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    I found the solution.

    alteras sopc_builder is not correct !

    In the perl-file usually located in C:\altera\quartus42\sopc_builder\bin\sopc_builder replace:

    <div class='quotetop'>QUOTE </div>

    --- Quote Start ---

    if (! -x $javax )

    {

    $javax = get_java_exe($sopc_builder . "/bin/jre1.4",$shelled);

    }[/b]

    --- Quote End ---

    by

    <div class='quotetop'>QUOTE </div>

    --- Quote Start ---

    if (! -x $javax )

    {

    $javax = get_java_exe("$quartus_dir"."/bin/jre",$shelled);

    }[/b]

    --- Quote End ---

    Open the Nios IDE shell and execute the following line

    chmod +x /cygdrive/altera/quartus42/bin/jre/bin/java.exe

    Now the rebuild should work.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    I was wrong

    The sopc_builder script is already working fine.

    The only thing that has to be changed is the access-right

    of java.exe like described above.

    This seems to be a fault of Nios installation.

    I was told that this problem will be solved in the next version (5.0)

    of Nios IDE