Search

Technical Discussion Group Forum

This forum is provided for user discussion. While Beacon EmbeddedWorks support staff and engineers participate, Beacon EmbeddedWorks does not guarantee the accuracy of all information within in the Technical Discussion Group (TDG).

The "Articles" forums provide brief Articles written by Beacon EmbeddedWorks engineers that address the most frequently asked technical questions.

To receive email notifications when updates are posted for a Beacon EmbeddedWorks product download, please subscribe to the TDG Forum of interest.

TDG Forum

PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 18 Oct 2006 09:09 AM by  ashwinb@logicpd.com
make toolchain and build the kernel for MCF5475EVB
 6 Replies
Sort:
You are not authorized to post a reply.
Author Messages
connie
New Member
New Member
Posts:


--
15 Oct 2006 11:19 PM
    Hello,

    I downloaded Coldfire Linux BSP (v1.0.2) and Coldfire Linux Toolchain (v1.0.2) from http://www.logicpd.com and try to build it.

    By reading the readme and Freescale AN2950, I did below steps: (I am using Red Hat 9, login as root. The target board is MCF5475EVB)

    1. uncompress two tar.bz2 files into folders /LinuxBSP-22012005 and /LinuxTools
    2. create the /opt/logicpd and set the 775 permission for that folder
    3. run "make toolchain"
    4. run "make fresh"
    5. run "make config-m5475cfe-evb-romfs"
    6. run "make dep"
    7. run "make"

    It looks okay from the step 1 to step 6. However, at step 7, I got the error message as below:

    # make
    make -C linux-2.4.26 || exit 1
    make[1]: Entering directory `/home/seamore/Logic/LinuxBSP-22012005/linux-2.4.26'gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -o scripts/split-include
    scripts/split-include.c
    scripts/split-include include/linux/autoconf.h include/config
    /opt/logicpd/ColdFire/m68k-linux/gcc-3.4.3-glibc-2.3.5/bin/m68k-linux-gcc -D__KERNEL__ -I/home/seamore/Logic/LinuxBSP-22012005/linux-2.4.26/include -Wall -Wstrict-prototypes -Wno-trigraphs -O1 -fno-strict-aliasing -fno-common -pipe -ffixed-a2 -mcfv4e -fno-builtin -g -ggdb -DKBUILD_BASENAME=main -c -o init/main.o init/main.c
    make[1]: /opt/logicpd/ColdFire/m68k-linux/gcc-3.4.3-glibc-2.3.5/bin/m68k-linux-gcc: Command not found
    make[1]: *** [init/main.o] Error 127
    make[1]: Leaving directory `/home/seamore/Logic/LinuxBSP-22012005/linux-2.4.26'
    make: *** [linux] Error 1

    Please help.

    Thanks,

    Connie
    ashwinb@logicpd.com
    New Member
    New Member
    Posts:


    --
    16 Oct 2006 02:58 PM
    Quote:
    /opt/logicpd/ColdFire/m68k-linux/gcc-3.4.3-glibc-2.3.5/bin/m68k-linux-gcc: Command not found


    You need to add the path /opt/logicpd/ColdFire/m68k-linux/gcc-3.4.3-glibc-2.3.5/bin to your PATH variable.

    Regards
    connie
    New Member
    New Member
    Posts:


    --
    16 Oct 2006 05:29 PM
    I have added it into the PATH, but it still tells me /opt/logicpd/ColdFire/m68k-linux/gcc-3.4.3-glibc-2.3.5/bin/m68k-linux-gcc: Command not found

    I tried to search the m68k-linux-gcc in the system and couldn't find it.

    Please help. Thanks.
    ashwinb@logicpd.com
    New Member
    New Member
    Posts:


    --
    17 Oct 2006 07:41 AM
    Connie,

    Your step #3 should have built and installed the toolchain. Did you confirm that that particular build went without a hitch? You will want to check out the file build.log to see how things went.

    Regards
    connie
    New Member
    New Member
    Posts:


    --
    17 Oct 2006 11:05 AM
    Hi, I found the build.log as below. Please advise. Thanks.
    Connie

    ++ pwd
    + TARBALLS_DIR=/home/seamore/Logic/LinuxTools/crosstool/downloads
    + RESULT_TOP=/opt/logicpd/ColdFire
    + export TARBALLS_DIR RESULT_TOP
    + GCC_LANGUAGES=c,c++
    + export GCC_LANGUAGES
    + mkdir -p /opt/logicpd/ColdFire
    ++ cat m68k.dat gcc-3.4.3-glibc-2.3.5.dat
    ++ cat gdb-6.3.dat
    + eval 'KERNELCONFIG=`pwd`/m68k.config' TARGET=m68k-linux 'TARGET_CFLAGS="-mcfv4e' -O2 '-g"' 'TARGET_LDFLAGS="-mcfv4e' '-g"' 'EXTRA_TARGET_CFLAGS="-mcfv4e' '-g"' BINUTILS_DIR=binutils-2.15 GCC_DIR=gcc-3.4.3 GLIBC_DIR=glibc-2.3.5 GLIBC_CONFIG_VERBOSE=--verbose GLIBC_ADDON_PORT=ports 'LINUX_DIR=`pwd`/../../LinuxBSP-22012005/linux-2.4.26' GLIBCTHREADS_FILENAME=glibc-linuxthreads-2.3.5 GLIBC_TARGET=coldfire-linux 'SHARED_MODE="--enable-shared"' GDB_DIR=gdb-6.3 sh all.sh --notest --nounpack
    +++ pwd
    ++ KERNELCONFIG=/home/seamore/Logic/LinuxTools/crosstool/m68k.config
    ++ TARGET=m68k-linux
    ++ TARGET_CFLAGS=-mcfv4e -O2 -g
    ++ TARGET_LDFLAGS=-mcfv4e -g
    ++ EXTRA_TARGET_CFLAGS=-mcfv4e -g
    ++ BINUTILS_DIR=binutils-2.15
    ++ GCC_DIR=gcc-3.4.3
    ++ GLIBC_DIR=glibc-2.3.5
    ++ GLIBC_CONFIG_VERBOSE=--verbose
    ++ GLIBC_ADDON_PORT=ports
    +++ pwd
    ++ LINUX_DIR=/home/seamore/Logic/LinuxTools/crosstool/../../LinuxBSP-22012005/linux-2.4.26
    ++ GLIBCTHREADS_FILENAME=glibc-linuxthreads-2.3.5
    ++ GLIBC_TARGET=coldfire-linux
    ++ SHARED_MODE=--enable-shared
    ++ GDB_DIR=gdb-6.3
    ++ sh all.sh --notest --nounpack
    DEJAGNU not set, so not running any regression tests
    GCC_EXTRA_CONFIG not set, so not passing any extra options to gcc's configure script
    GLIBC_ADDON_OPTIONS not set, so building all glibc add-on's
    + TOOLCOMBO=gcc-3.4.3-glibc-2.3.5
    ++ pwd
    + BUILD_DIR=/home/seamore/Logic/LinuxTools/crosstool/build/m68k-linux/gcc-3.4.3-glibc-2.3.5
    ++ pwd
    + TOP_DIR=/home/seamore/Logic/LinuxTools/crosstool
    + test -z ''
    + SRC_DIR=/home/seamore/Logic/LinuxTools/crosstool/build/m68k-linux/gcc-3.4.3-glibc-2.3.5
    + echo 'SRC_DIR not set, so source tarballs will be unpacked in the build directory'
    SRC_DIR not set, so source tarballs will be unpacked in the build directory
    + abort 'Don'\''t run all.sh or crosstool.sh as root, it'\''s dangerous'
    + echo 'Don'\''t' run all.sh or crosstool.sh as root, 'it'\''s' dangerous
    Don't run all.sh or crosstool.sh as root, it's dangerous
    + exec false
    connie
    New Member
    New Member
    Posts:


    --
    18 Oct 2006 02:21 AM
    Hi, I have fixed it. Run the "make toolchain" as a normal user, instead of root, it works now. Thank you.
    ashwinb@logicpd.com
    New Member
    New Member
    Posts:


    --
    18 Oct 2006 09:09 AM
    There ya go, glad it worked.

    Regards
    You are not authorized to post a reply.