Hi all,
Im trying to build an image for a couple of days without any success. I downloaded the latest software with the ltib files, (L2.6.35_11.09.01_ER_source), and also ran the recommend script in other forum, "Ubuntu_LTIB_Android_Setup.sh". Also, I'm following the steps provided in Linux_BSP_UserGuide.pdf"
First, I ran the command:
$./ltib -m config
And could configure ltib with the packages it requieres.
Then, I ran
$./ltib -c
After 20 minutes of compilation, there is an error about "base_libs", which is:
+ cp -dpf /opt/freescale/usr/local/gcc-4.4.4-glibc-2.11.1-multilib-1.0/arm-fsl-linux-gnueabi/bin/arm-none-linux-gnueabi-gcc/arm-none-linux-gnueabi//bin/localedef /home/mario/ltib/ltib/tmp/base_libs//opt/freescale/rootfs/arm/usr/bin
cp: cannot stat `/opt/freescale/usr/local/gcc-4.4.4-glibc-2.11.1-multilib-1.0/arm-fsl-linux-gnueabi/bin/arm-none-linux-gnueabi-gcc/arm-none-linux-gnueabi//bin/localedef': Not a directory
+ [ XTOOL = XTOOL ]
+ cp -dpf /opt/freescale/usr/local/gcc-4.4.4-glibc-2.11.1-multilib-1.0/arm-fsl-linux-gnueabi/bin/arm-none-linux-gnueabi-gcc/arm-none-linux-gnueabi//bin/rpcgen /home/mario/ltib/ltib/tmp/base_libs//opt/freescale/rootfs/arm/usr/bin
cp: cannot stat `/opt/freescale/usr/local/gcc-4.4.4-glibc-2.11.1-multilib-1.0/arm-fsl-linux-gnueabi/bin/arm-none-linux-gnueabi-gcc/arm-none-linux-gnueabi//bin/rpcgen': Not a directory
+ [ XTOOL = XTOOL ]
+ cp -dpf /opt/freescale/usr/local/gcc-4.4.4-glibc-2.11.1-multilib-1.0/arm-fsl-linux-gnueabi/bin/arm-none-linux-gnueabi-gcc/arm-none-linux-gnueabi//bin/sprof /home/mario/ltib/ltib/tmp/base_libs//opt/freescale/rootfs/arm/usr/bin
cp: cannot stat `/opt/freescale/usr/local/gcc-4.4.4-glibc-2.11.1-multilib-1.0/arm-fsl-linux-gnueabi/bin/arm-none-linux-gnueabi-gcc/arm-none-linux-gnueabi//bin/sprof': Not a directory
+ [ XTOOL = XTOOL ]
+ cp -dpf /opt/freescale/usr/local/gcc-4.4.4-glibc-2.11.1-multilib-1.0/arm-fsl-linux-gnueabi/bin/arm-none-linux-gnueabi-gcc/arm-none-linux-gnueabi//bin/tzselect /home/mario/ltib/ltib/tmp/base_libs//opt/freescale/rootfs/arm/usr/bin
cp: cannot stat `/opt/freescale/usr/local/gcc-4.4.4-glibc-2.11.1-multilib-1.0/arm-fsl-linux-gnueabi/bin/arm-none-linux-gnueabi-gcc/arm-none-linux-gnueabi//bin/tzselect': Not a directory
+ cp -dpf /opt/freescale/usr/local/gcc-4.4.4-glibc-2.11.1-multilib-1.0/arm-fsl-linux-gnueabi/bin/arm-none-linux-gnueabi-gcc/arm-none-linux-gnueabi//sbin/ldconfig /home/mario/ltib/ltib/tmp/base_libs//opt/freescale/rootfs/arm/sbin
cp: cannot stat `/opt/freescale/usr/local/gcc-4.4.4-glibc-2.11.1-multilib-1.0/arm-fsl-linux-gnueabi/bin/arm-none-linux-gnueabi-gcc/arm-none-linux-gnueabi//sbin/ldconfig': Not a directory
+ cp -dpf /opt/freescale/usr/local/gcc-4.4.4-glibc-2.11.1-multilib-1.0/arm-fsl-linux-gnueabi/bin/arm-none-linux-gnueabi-gcc/arm-none-linux-gnueabi//sbin/sln /home/mario/ltib/ltib/tmp/base_libs//opt/freescale/rootfs/arm/sbin
cp: cannot stat `/opt/freescale/usr/local/gcc-4.4.4-glibc-2.11.1-multilib-1.0/arm-fsl-linux-gnueabi/bin/arm-none-linux-gnueabi-gcc/arm-none-linux-gnueabi//sbin/sln': Not a directory
+ [ XTOOL = XTOOL ]
+ cp -dpf /opt/freescale/usr/local/gcc-4.4.4-glibc-2.11.1-multilib-1.0/arm-fsl-linux-gnueabi/bin/arm-none-linux-gnueabi-gcc/arm-none-linux-gnueabi//sbin/convconfig /home/mario/ltib/ltib/tmp/base_libs//opt/freescale/rootfs/arm/usr/sbin
cp: cannot stat `/opt/freescale/usr/local/gcc-4.4.4-glibc-2.11.1-multilib-1.0/arm-fsl-linux-gnueabi/bin/arm-none-linux-gnueabi-gcc/arm-none-linux-gnueabi//sbin/convconfig': Not a directory
+ [ XTOOL = XTOOL ]
+ cp -dpf /opt/freescale/usr/local/gcc-4.4.4-glibc-2.11.1-multilib-1.0/arm-fsl-linux-gnueabi/bin/arm-none-linux-gnueabi-gcc/arm-none-linux-gnueabi//sbin/build-locale-archive /home/mario/ltib/ltib/tmp/base_libs//opt/freescale/rootfs/arm/usr/sbin
cp: cannot stat `/opt/freescale/usr/local/gcc-4.4.4-glibc-2.11.1-multilib-1.0/arm-fsl-linux-gnueabi/bin/arm-none-linux-gnueabi-gcc/arm-none-linux-gnueabi//sbin/build-locale-archive': Not a directory
+ [ XTOOL = XTOOL ]
+ cp -dpf /opt/freescale/usr/local/gcc-4.4.4-glibc-2.11.1-multilib-1.0/arm-fsl-linux-gnueabi/bin/arm-none-linux-gnueabi-gcc/arm-none-linux-gnueabi//sbin/rpcinfo /home/mario/ltib/ltib/tmp/base_libs//opt/freescale/rootfs/arm/usr/sbin
cp: cannot stat `/opt/freescale/usr/local/gcc-4.4.4-glibc-2.11.1-multilib-1.0/arm-fsl-linux-gnueabi/bin/arm-none-linux-gnueabi-gcc/arm-none-linux-gnueabi//sbin/rpcinfo': Not a directory
+ [ XTOOL = XTOOL ]
+ cp -dpf /opt/freescale/usr/local/gcc-4.4.4-glibc-2.11.1-multilib-1.0/arm-fsl-linux-gnueabi/bin/arm-none-linux-gnueabi-gcc/arm-none-linux-gnueabi//sbin/zdump /home/mario/ltib/ltib/tmp/base_libs//opt/freescale/rootfs/arm/usr/sbin
cp: cannot stat `/opt/freescale/usr/local/gcc-4.4.4-glibc-2.11.1-multilib-1.0/arm-fsl-linux-gnueabi/bin/arm-none-linux-gnueabi-gcc/arm-none-linux-gnueabi//sbin/zdump': Not a directory
+ [ XTOOL = XTOOL ]
+ cp -dpf /opt/freescale/usr/local/gcc-4.4.4-glibc-2.11.1-multilib-1.0/arm-fsl-linux-gnueabi/bin/arm-none-linux-gnueabi-gcc/arm-none-linux-gnueabi//sbin/zic /home/mario/ltib/ltib/tmp/base_libs//opt/freescale/rootfs/arm/usr/sbin
cp: cannot stat `/opt/freescale/usr/local/gcc-4.4.4-glibc-2.11.1-multilib-1.0/arm-fsl-linux-gnueabi/bin/arm-none-linux-gnueabi-gcc/arm-none-linux-gnueabi//sbin/zic': Not a directory
+ set -e
+ [ -n ]
+ [ -n ]
+ [ -n ]
+ [ -n ]
+ [ -n y ]
+ set +e
+ cp -dp /opt/freescale/usr/local/gcc-4.4.4-glibc-2.11.1-multilib-1.0/arm-fsl-linux-gnueabi/bin/../arm-fsl-linux-gnueabi/multi-libs/armv7-a/neon/lib/libstdc++.so /opt/freescale/usr/local/gcc-4.4.4-glibc-2.11.1-multilib-1.0/arm-fsl-linux-gnueabi/bin/../arm-fsl-linux-gnueabi/multi-libs/armv7-a/neon/lib/libstdc++.so.6 /opt/freescale/usr/local/gcc-4.4.4-glibc-2.11.1-multilib-1.0/arm-fsl-linux-gnueabi/bin/../arm-fsl-linux-gnueabi/multi-libs/armv7-a/neon/lib/libstdc++.so.6.0.13 /home/mario/ltib/ltib/tmp/base_libs//opt/freescale/rootfs/arm/lib/
+ set -e
+ [ -n y ]
+ [ XTOOL = CSL -a -d /opt/freescale/usr/local/gcc-4.4.4-glibc-2.11.1-multilib-1.0/arm-fsl-linux-gnueabi/bin/arm-none-linux-gnueabi-gcc/arm-none-linux-gnueabi/include/c++ ]
+ [ XTOOL = UCLIBC-SYSROOT ]
+ i=
+ cp -a /opt/freescale/usr/local/gcc-4.4.4-glibc-2.11.1-multilib-1.0/arm-fsl-linux-gnueabi/bin/arm-none-linux-gnueabi-gcc//include/c++ /home/mario/ltib/ltib/tmp/base_libs//opt/freescale/rootfs/arm/usr/include
cp: cannot stat `/opt/freescale/usr/local/gcc-4.4.4-glibc-2.11.1-multilib-1.0/arm-fsl-linux-gnueabi/bin/arm-none-linux-gnueabi-gcc//include/c++': Not a directory
error: Bad exit status from /home/mario/ltib/ltib/tmp/rpm-tmp.66795 (%install)
RPM build errors:
Bad exit status from /home/mario/ltib/ltib/tmp/rpm-tmp.66795 (%install)
Build time for base_libs: 0 seconds
Failed building base_libs
--------
Looks like it is not pointing to the correct directory in the "cp" command. Ran afterwards a few commands to verify this directory:
mario@mario-HP:~$ ls -l /opt/freescale/usr/local/gcc-4.4.4-glibc-2.11.1-multilib-1.0/arm-fsl-linux-gnueabi/bin/arm-none-linux-gnueabi-gcc
lrwxrwxrwx 1 root root 25 2012-02-15 13:51 /opt/freescale/usr/local/gcc-4.4.4-glibc-2.11.1-multilib-1.0/arm-fsl-linux-gnueabi/bin/arm-none-linux-gnueabi-gcc -> arm-fsl-linux-gnueabi-gcc
mario@mario-HP:~$ file /opt/freescale/usr/local/gcc-4.4.4-glibc-2.11.1-multilib-1.0/arm-fsl-linux-gnueabi/bin/arm-none-linux-gnueabi-gcc
/opt/freescale/usr/local/gcc-4.4.4-glibc-2.11.1-multilib-1.0/arm-fsl-linux-gnueabi/bin/arm-none-linux-gnueabi-gcc: symbolic link to `arm-fsl-linux-gnueabi-gcc'
mario@mario-HP:~$ file /opt/freescale/usr/local/gcc-4.4.4-glibc-2.11.1-multilib-1.0/arm-fsl-linux-gnueabi/bin/arm-fsl-linux-gnueabi-gcc
/opt/freescale/usr/local/gcc-4.4.4-glibc-2.11.1-multilib-1.0/arm-fsl-linux-gnueabi/bin/arm-fsl-linux-gnueabi-gcc: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.0, stripped
Another thing, i searched within /opt/freescale/usr/local for a file that was not previously found (rpcinfo). And there, I could see that the route indeed is different. This is what I found:
ORIGINAL PATH(THAT IS SHOWN IN THE ERROR):
/opt/freescale/usr/local/gcc-4.4.4-glibc-2.11.1-multilib-1.0/arm-fsl-linux-gnueabi/bin/arm-none-linux-gnueabi-gcc/arm-none-linux-gnueabi//sbin/rpcinfo
ALTERNATIVE PATH (WHERE FILE WAS FOUND)
/opt/freescale/usr/local/gcc-4.4.4-glibc-2.11.1-multilib-1.0/arm-fsl-linux-gnueabi/arm-fsl-linux-gnueabi/multi-libs/usr/sbin/rpcinfo
Does anybody know if this can be the cause for the failure in ltib? and if it is, where can these paths be updated?
Thanks in advance,
Regards
Mario Medina
I was able to build the kernel image finally. I had to get rid of most of the packages I initially chose, and just focused on enabling in the kernel the drives I needed, which were the USB-Serial drivers for FTDI.
Build was successful afterwards.