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.

Study Sitara Linux Software Developer’s Guide meet some issue

Other Parts Discussed in Thread: AM3359

Dear all

I am reading this page to study how to develop my am3359 platform. In chapter "Start your Linux Development", I have finished steps from step 1 to step 4, now I am going to reading chapter "Bootloaders - How to Build & Install".

I'm trying to building MLO and u-boot, when I use the following cross_comple, I get some error, I have no idea to solve it. Is there someone could give me the advice to solve this issue? Thanks :-)

$ make CROSS_COMPILE=arm-linux-gnueabihf- ARCH=arm distclean


 



  • Tu Kuolun,

    It looks like you are in your Desktop folder when you try to execute make. make will look for a Makefile in that directory, which is not what you want in this case, I believe. You need to be in the source directory of the code you are trying to build. That's why you get this error, as there is probably no Makefile at all in your Desktop folder, or if there is, it does not have the appropriate distclean build target and make doesn't know what to do.

    Change to your U-Boot source directory and try this again. In the TI SDK, this is "install-dir"/board-support/u-boot...where install-dir is where you installed the SDK and u-boot is the U-Boot source folder for that SDK.

  • Hi RonB,

    Thanks your reply, your suggestion help me to make it work, thank you :-)

    Now I am compiling the MLO and u-boot, unfortunately, something error happens, could you give me the advice to solve this problem?

  • Just kidding? :)

    When people say "any key" they mean not a particular key but just any.

    If said is "the name from the table above" it is not the literal name but the name from the table in question.

    Also:

    have you exported necessary parameters?

    (Type "echo $PATH" and show us what is there)

     

    http://en.wikipedia.org/wiki/Any_key

     

  • The basic commands for building u-boot from a freshly opened terminal are

    dev@elinux-dev-03:~
    $ cd builds/ti-sdk-am335x-evm-07.00.00.00/
    dev@elinux-dev-03:~/builds/ti-sdk-am335x-evm-07.00.00.00
    $ source linux-devkit/environment-setup 
    [linux-devkit]:~/builds/ti-sdk-am335x-evm-07.00.00.00> cd board-support/u-boot-2013.10-ti2013.12.01/
    [linux-devkit]:~/builds/ti-sdk-am335x-evm-07.00.00.00/board-support/u-boot-2013.10-ti2013.12.01> make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- distclean
    [linux-devkit]:~/builds/ti-sdk-am335x-evm-07.00.00.00/board-support/u-boot-2013.10-ti2013.12.01> make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- am335x_evm_config
    Configuring for am335x_evm - Board: am335x_evm, Options: SERIAL1,CONS_INDEX=1,NAND
    [linux-devkit]:~/builds/ti-sdk-am335x-evm-07.00.00.00/board-support/u-boot-2013.10-ti2013.12.01> make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf-

    Notes: 

    • The "source linux-devkit/environment-setup" command sets up the compiler paths and what not. (this is the stuff that sviss was referring to)
    • The "make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- distclean" command is only needed when you want to ensure you are building from scratch.
    • The "make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- am335x_evm_config" command is only needed the first time, or after a distclean, or when you want to switch configurations. 
    • The "make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- " command does the actual build. 
    • If you get tired of typing ARCH=arm and CROSS_COMPILE=arm-linux-gnueabihf- you can set these in your environment like so "export ARCH=arm" and "export=CROSS_COMPILE=arm-linux-gnueabihf-"

    It sounds like is a new thing for you, perhaps you ought to research it a little, maybe create a very basic make just to get the feel.

    Matt S.  

  • Hi, sviss

    Thanks for your help, I have exported the $PATH parameter, I'm sure this error not from the $PATH parameter :-)

  • Hi, Matt S.

    Your right, I am new for this, when I post this question, I feel ashamed, because I think these questions perhaps very easy, thank you for your help, I'm appreciated :-)