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 12 Jun 2007 10:50 AM by
Error building image
 4 Replies
You are not authorized to post a reply.
Author Messages
New Member
New Member

02 Jun 2007 09:33 PM
    Make fresh and make config-m5485afe-evb-romfs work fine.
    I have installed cygwin and the cross-tools from the CD that comes with the FreeScale package.
    This is whats happening when I am trying to create dependencies.

    D:\LinuxBSP-22012005-1.0.2\LinuxBSP-22012005>make dep
    make -C linux-2.4.26 dep
    make[1]: Entering directory `/cygdrive/d/LinuxBSP-22012005-1.0.2/LinuxBSP-220120
    gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -o scripts/mkdep scripts/
    gcc.exe: CreateProcess: No such file or directory
    make[1]: *** [scripts/mkdep] Error 1
    make[1]: Leaving directory `/cygdrive/d/LinuxBSP-22012005-1.0.2/LinuxBSP-2201200
    make: *** [dep] Error 2
    New Member
    New Member

    02 Jun 2007 10:03 PM
    I fixed it but new problems..
    After i build the dependencies, I do a make again. This is what I get

    B@bibhu /cygdrive/d/LinuxBSP-22012005-1.0.2/LinuxBSP-22012005
    $ make
    make -C linux-2.4.26 || exit 1
    make[1]: Entering directory `/cygdrive/d/LinuxBSP-22012005-1.0.2/LinuxBSP-220120
    gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -o scripts/split-include
    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__KE
    RNEL__ -I/cygdrive/d/LinuxBSP-22012005-1.0.2/LinuxBSP-22012005/linux-2.4.26/incl
    ude -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-g
    cc: Command not found
    make[1]: *** [init/main.o] Error 127
    make[1]: Leaving directory `/cygdrive/d/LinuxBSP-22012005-1.0.2/LinuxBSP-2201200
    make: *** [linux] Error 1
    New Member
    New Member

    03 Jun 2007 03:20 PM
    I am getting the following error while trying to build the tool chain.
    2.6.15-1.2054_FC5smp : This is the linux i am using.

    *** End of Linux kernel configuration.
    *** Check the top-level Makefile for additional configuration.
    *** Next, you may run 'make bzImage', 'make bzdisk', or 'make install'.

    make[1]: Leaving directory `/home/bibhu85/Desktop/LinuxTools-1.0.2/LinuxBSP-22012005/linux-2.4.26'
    ++ awk '/^VERSION =/ { print $3 }' /home/bibhu85/Desktop/LinuxTools-1.0.2/LinuxBSP-22012005/linux-2.4.26/Makefile
    + KERNEL_VERSION=$'2\r'
    ++ awk '/^PATCHLEVEL =/ { print $3 }' /home/bibhu85/Desktop/LinuxTools-1.0.2/LinuxBSP-22012005/linux-2.4.26/Makefile
    '4abort 'Unsupported kernel version 2
    + echo Unsupported kernel version $'2\r.4\r'
    .4supported kernel version 2
    + exec false
    make: *** [cross-toolchain] Error 1
    [bibhu85@localhost LinuxTools]$
    New Member
    New Member

    07 Jun 2007 01:26 PM
    I'm not sure that you'll be able to build the tools using Cygwin. I've only built the tools as well as the kernel/userland on a x86 Linux box.

    If Freescale has provided a set of ColdFire linux tools that run in Cygwin, you can try to use those instead of the default in /opt/logicpd/...

    To do this, modify LInuxBSP-22012005/Makefile and change DEFAULT_TOOLPATH to hold the directory where the compiler is located (i.e. one dir up from .../bin/m68k-linux-gcc), that is if Freescale's compiler is m68k-linux-gcc. If the compiler prefix is *not* "m68k-linux-" then modify the line in LinxuBSP22012005/Makefile that create cross-compile-prefix (should be near 268).

    Also remove LinuxBSP22012005/cross-compile-path and LinuxBSP22012005/cross-compile-prefix.

    Then a "make fresh" should get you back on your way. SInce I've never built the world using Cygwin, I have no idea if this suggestion will help or not...
    New Member
    New Member

    12 Jun 2007 10:50 AM
    Thanks Peter!!!
    You are not authorized to post a reply.