Go to previous topic
Go to next topic
Last Post 12 Jun 2007 10:50 AM by  bibhu85@gmail.com
Error building image
 4 Replies
Author Messages
bibhu85@gmail.com
New Member
New Member
Posts:


--
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
    05/linux-2.4.26'
    gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -o scripts/mkdep scripts/
    mkdep.c
    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
    5/linux-2.4.26'
    make: *** [dep] Error 2
    bibhu85@gmail.com
    New Member
    New Member
    Posts:


    --
    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
    05/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__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
    5/linux-2.4.26'
    make: *** [linux] Error 1
    bibhu85@gmail.com
    New Member
    New Member
    Posts:


    --
    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.
    Help!!!!


    *** 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
    + KERNEL_PATCHLEVEL=$'4\r'
    + case "$KERNEL_VERSION.$KERNEL_PATCHLEVEL.x" in
    '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]$
    peter.barada@logicpd.com
    New Member
    New Member
    Posts:72


    --
    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...
    bibhu85@gmail.com
    New Member
    New Member
    Posts:


    --
    12 Jun 2007 10:50 AM
    Thanks Peter!!!


    ---