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 30 Apr 2008 04:19 PM by  DrOctavius
LTIB V3 (2.6.19) problem with LEAVE SOURCES
 6 Replies
Sort:
You are not authorized to post a reply.
Author Messages
tombrus
New Member
New Member
Posts:


--
15 Apr 2008 11:37 PM
    The LEAVE SOURCES option does not work for me on the LTIB V3 (Linux 2.6.19) iso.

    What I do:
    • mount ISO
    • run install
    • ltib -c
    • select "Leave the sources after building"


    what I get is:
    Quote:
    + make ARCH=arm CROSS_COMPILE= HOSTCC=/usr/bin/gcc -B/usr/bin// zImage
    scripts/kconfig/conf -s arch/arm/Kconfig
    CHK include/linux/version.h
    SYMLINK include/asm-arm/arch -> include/asm-arm/arch-mxc
    make[1]: `include/asm-arm/mach-types.h' is up to date.
    CHK include/linux/utsrelease.h
    CC arch/arm/kernel/asm-offsets.s
    [b]/bin/sh: Can't open gcc
    make[1]: *** [arch/arm/kernel/asm-offsets.s] Error 2
    make: *** [prepare0] Error 2
    error: Bad exit status from /home/tom/arm/linux-3/ltib-imx31ads-20070128/tmp/rpm-tmp.23868 (%build)


    RPM build errors:
    Bad exit status from /home/tom/arm/linux-3/ltib-imx31ads-20070128/tmp/rpm-tmp.23868 (%build)
    Build time for kernel-2.6.19-mx: 1 seconds

    Failed building kernel-2.6.19-mx


    f_buildrpms() returned an error, exiting

    Started: Wed Apr 16 07:25:56 2008
    Ended: Wed Apr 16 07:26:50 2008
    Elapsed: 54 seconds

    These packages failed to build:
    kernel-2.6.19-mx
    Build Failed
    Is there something wrong with my machine or with the iso or do I do something wrong? Any ideas?

    Oh, when I run 'ltib -c' and do not select the leave sources option, the build is successful.

    -Tom
    macneibfallon
    New Member
    New Member
    Posts:


    --
    16 Apr 2008 10:22 AM
    I caught this one early.

    # ls -al /bin/sh
    lrwxrwxrwx 1 root root 4 2006-09-20 10:10 /bin/sh -> dash

    You have to change the default shell (if you are under Ubuntu especially), dash is incompatible in ltib.
    Change the symbolic link
    Should take care of that issue.
    Best Regards
    Blair
    tombrus
    New Member
    New Member
    Posts:


    --
    16 Apr 2008 01:31 PM
    Woopie! That saved me a lot of time, thanks Blair.

    Risky business by the way, linking /bin/sh wrongly will probably cause havoc. Not the right time for typos, I guess

    BTW: they seem to have fixed that in LTIB V5b, I build that one a zillion times without this problem.

    -Tom
    dsanders16@gmail.com
    New Member
    New Member
    Posts:


    --
    29 Apr 2008 10:31 AM
    I still can't get this to compile, on either V3 or V5, it gets to the same point as yours did and fails. I changed the /bin/sh to point to bash instead of dash.

    Actually, this is where it is failing at:

    *
    * Library routines
    *
    CRC-CCITT functions (CRC_CCITT) [M/y/?] m
    CRC16 functions (CRC16) [N/m/y/?] n
    CRC32 functions (CRC32) [Y/?] y
    CRC32c (Castagnoli, et al) Cyclic Redundancy-Check (LIBCRC32C) [N/m/y/?] n
    #
    # configuration written to .config
    #
    + cp ./.config /iMX31/ltib-imx31ads-20070128/config/platform/imx31ads/linux-2.6.19-mx31ads.config.dev
    + '[' . '!=' . ']'
    + '[' '%{kernel_series}' = 2.4 ']'
    + make ARCH=arm CROSS_COMPILE= 'HOSTCC=/usr/bin/gcc -B/usr/bin//' zImage
    Can't exec "arm-none-linux-gnueabi-gcc": No such file or directory at /opt/freescale/ltib/usr/spoof/gcc line 74.
    exec(arm-none-linux-gnueabi-gcc -B /iMX31/ltib-imx31ads-20070128/rootfs/usr/lib// -idirafter /iMX31/ltib-imx31ads-20070128/rootfs/usr/include -iwithprefix include -Wl,-rpath-link,/iMX31/ltib-imx31ads-20070128/rootfs/lib:/iMX31/ltib-imx31ads-20070128/rootfs/usr/lib -O2 -fsigned-char -mabi=aapcs-linux -mfpu=vfp -mfloat-abi=softfp -print-file-name=include) at /opt/freescale/ltib/usr/spoof/gcc line 74.
    scripts/kconfig/conf -s arch/arm/Kconfig
    Can't exec "arm-none-linux-gnueabi-gcc": No such file or directory at /opt/freescale/ltib/usr/spoof/gcc line 74.
    exec(arm-none-linux-gnueabi-gcc -B /iMX31/ltib-imx31ads-20070128/rootfs/usr/lib// -idirafter /iMX31/ltib-imx31ads-20070128/rootfs/usr/include -iwithprefix include -Wl,-rpath-link,/iMX31/ltib-imx31ads-20070128/rootfs/lib:/iMX31/ltib-imx31ads-20070128/rootfs/usr/lib -O2 -fsigned-char -mabi=aapcs-linux -mfpu=vfp -mfloat-abi=softfp -print-file-name=include) at /opt/freescale/ltib/usr/spoof/gcc line 74.
    CHK include/linux/version.h
    UPD include/linux/version.h
    SYMLINK include/asm-arm/arch -> include/asm-arm/arch-mxc
    Generating include/asm-arm/mach-types.h
    CHK include/linux/utsrelease.h
    UPD include/linux/utsrelease.h
    SYMLINK include/asm -> include/asm-arm
    CC arch/arm/kernel/asm-offsets.s
    Can't exec "arm-none-linux-gnueabi-gcc": No such file or directory at /opt/freescale/ltib/usr/spoof/gcc line 74.
    exec(arm-none-linux-gnueabi-gcc -B /iMX31/ltib-imx31ads-20070128/rootfs/usr/lib// -idirafter /iMX31/ltib-imx31ads-20070128/rootfs/usr/include -iwithprefix include -O2 -fsigned-char -mabi=aapcs-linux -mfpu=vfp -mfloat-abi=softfp -Wp,-MD,arch/arm/kernel/.asm-offsets.s.d -nostdinc -isystem -D__KERNEL__ -Iinclude -include include/linux/autoconf.h -mlittle-endian -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Os -fno-omit-frame-pointer -mapcs -mno-sched-prolog -mabi=aapcs-linux -mno-thumb-interwork -D__LINUX_ARM_ARCH__=6 -march=armv5t -Wa,-march=armv6 -mtune=strongarm -msoft-float -Uarm -fno-omit-frame-pointer -DKBUILD_STR(s)=#s -DKBUILD_BASENAME=KBUILD_STR(asm_offsets) -DKBUILD_MODNAME=KBUILD_STR(asm_offsets) -fverbose-asm -S -o arch/arm/kernel/asm-offsets.s arch/arm/kernel/asm-offsets.c) at /opt/freescale/ltib/usr/spoof/gcc line 74.
    make[1]: *** [arch/arm/kernel/asm-offsets.s] Error 2
    make: *** [prepare0] Error 2
    error: Bad exit status from /iMX31/ltib-imx31ads-20070128/tmp/rpm-tmp.59790 (%build)


    RPM build errors:
    Bad exit status from /iMX31/ltib-imx31ads-20070128/tmp/rpm-tmp.59790 (%build)
    Build time for kernel-2.6.19-mx: 101 seconds

    Failed building kernel-2.6.19-mx


    f_buildrpms() returned an error, exiting

    Started: Tue Apr 29 11:40:49 2008
    Ended: Tue Apr 29 11:42:39 2008
    Elapsed: 110 seconds

    These packages failed to build:
    kernel-2.6.19-mx
    Build Failed

    Exiting on error or interrupt
    macneibfallon
    New Member
    New Member
    Posts:


    --
    29 Apr 2008 04:19 PM
    dsanders:
    As a disclaimer, I might totally demonstrate true idiocy here but:
    Looking at the dump, I see that you're using linux-2.6.19-mx

    Perhaps you could try a vanilla kernel,
    http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.19.2.tar.gz
    patched with DrOctavius' mega patch.
    http://myfreefilehosting.com/f/2565780551_2.29MB

    As for case of the missing GCCs, I'd strip it all out again and reinstall.
    I usually install Ltib to my /home/username directory and I haven't really had any failures at that level.
    Run a pure ADS build once first to see if it will build.

    If that fails then you might want to tell me a little bit more about your OS.
    I apologize if it this isn't that helpful.
    dsanders16@gmail.com
    New Member
    New Member
    Posts:


    --
    30 Apr 2008 10:58 AM
    Posted By macneibfallon on 29 Apr 2008 4:19 PM
    dsanders:
    As a disclaimer, I might totally demonstrate true idiocy here but:
    Looking at the dump, I see that you''re using linux-2.6.19-mx

    Perhaps you could try a vanilla kernel,
    http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.19.2.tar.gz
    patched with DrOctavius'' mega patch.
    http://myfreefilehosting.com/f/2565780551_2.29MB

    As for case of the missing GCCs, I''d strip it all out again and reinstall.
    I usually install Ltib to my /home/username directory and I haven''t really had any failures at that level.
    Run a pure ADS build once first to see if it will build.

    If that fails then you might want to tell me a little bit more about your OS.
    I apologize if it this isn''t that helpful.




    Yea, I am not even doing anything to their .iso, I am mounting it, running ./install and then ./ltib and that is the result I get on both V3 and V5b.

    I am running Ubuntu 8.04 Hardy Heron with the 64 bit version on a Core 2 Duo CPU.
    DrOctavius
    New Member
    New Member
    Posts:


    --
    30 Apr 2008 04:19 PM
    Quote:
    Can't exec "arm-none-linux-gnueabi-gcc": No such file or directory at /opt/freescale/ltib/usr/spoof/gcc line 74.


    This msg is saying that you have a problem with the gcc tools installation!
    You are not authorized to post a reply.