This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Getting an error while cross compiling mtd-utils for am335x

Hi all,

I am getting following error while cross compiling mtd-utils

arm-arago-linux-gnueabi-gcc: ftl_format.o: No such file or directory
make: *** [ftl_format] Error 1

I have followed the steps given in "http://processors.wiki.ti.com/index.php/MTD_Utilities#MTD-Utils_Compilation" link.

There are few corrections (I made those) in cross compiling "mtd-utils" steps. In "mtd-utils-d37fcc0/Makefile" , the above link says "CROSS=arm-none-linux-gnueabi-" but actually it is

"CROSS=arm-arago-linux-gnueabi-"

I am able to do make successfully, but I am not able to make install.

Please help me in this regard.

Regards,

Santhosh

 

 

  • Santosh,

    There are few corrections (I made those) in cross compiling "mtd-utils" steps. In "mtd-utils-d37fcc0/Makefile" , the above link says "CROSS=arm-none-linux-gnueabi-" but actually it is

    "CROSS=arm-arago-linux-gnueabi-"

    It cannot be CROSS=arm-arago-linux-gnueabi- , Did it really build ? I doubt It , Its the toolchain for compiling for ARM architectures, It should be,

    "CROSS=arm-none-linux-gnueabi-"  only, probably this should solve you install issue.

    Regards,

    --Prabhakar  Lad

    There are few corrections (I made those) in cross compiling "mtd-utils" steps. In "mtd-utils-d37fcc0/Makefile" , the above link says "CROSS=arm-none-linux-gnueabi-" but actually it is

    "CROSS=arm-arago-linux-gnueabi-"

  • Hi Prabhakar,

    I am using a tool chain, which I have received along with TI SDK for am335x.

    In that SDK I can notice that for ARM architectures the tool chain is "arm-arago-linux-gnueabi-"

    If I use "CROSS=arm-none-linux-gnueabi-" I am getting the following error,

    "make: arm-none-linux-gnueabi-gcc: Command not found
    make: *** [/home/user/MTD-Utils/install/mtd-utils-d37fcc0/arm-none-linux-gnueabi/ftl_format.o] Error 127"

    Due to this reason I have changed to "CROSS=arm-none-linux-gnueabi-" for cross compiling ARM architecture.

    I am able to do make successfully (I cross verified again). Find the attached log message for your reference.

    But not able to do "make install". I am getting the following error,

    "CHK     include/version.h
      LD      ftl_format
    arm-arago-linux-gnueabi-gcc: ftl_format.o: No such file or directory
    make: *** [ftl_format] Error 1"

    Regards,

    Santhosh

    1385.mtdutils_make.log

  • Both of the cross-compilers should work, Have you made any changes to the compilation steps listed in the wiki,

    Regards,

    Vaibhav

  • Hi,

    With "mtd-utils" 1.4.8v I am always getting error with those compilation steps.

    Later I have downloaded "mtd-utils" 1.4.9v(New version), I was able to successfully compile and build "mtd-utils" with "arm-arago-linux-gnueabi-" option.

    I am not sure why the compilation is failing with "mtd-utils" 1.4.8v.

     

    Regards,

    Santhosh

     

  • Santhosh Reddy said:
    "mtd-utils" 1.4.9v(New version), I was able to successfully compile and build "mtd-utils" with "arm-arago-linux-gnueabi-" option.

    That's good. Like you discovered, coming up with a working combination can be painful at times. If you are interested you could report this on linux-mtd@lists.infradead.org.

    Meanwhile we'll check if there's a need to add a note about 1.4.8 and arago toolchain.

    Regards,

    Vaibhav