Forum Discussion

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

make_flash_image_script.sh error

Hi all,

I use advanced_boot_copier of Altera, I try to make software image with make_flash_image_script. I put make_flash_image_script.sh, make_header.pl, read_flash_image.pl files into the same folder as elf file and run script from Nios2 Command Shell GCC 4 (Version 15.0, build 145). But there is no srec file after script executing.

The text of warning:

BFD: factory.elf.tmp.elf: warning: Empty loadable segment detected, is this intentional?

./make_flash_image_script.sh: line 156: conv: command not found.

I have no idea how i can resolve this. Please, help.

2 Replies

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

    I found a solution.

    It's working with gcc3. I use Command Shell of Quartus 11.1 and script works.
  • IMS's avatar
    IMS
    Icon for New Contributor rankNew Contributor

    Hi,

    this file uses an outdatet gcc3 function "conv".

    I changed the code from:

    conv -D $fake_copier ;

    To:

    iconv -c -s $fake_copier ;

    Now it will use a function from gcc4 and should work well for your purpose.