This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Issue while building Software from the Source

Hi All,

We are currently using TMDXEVM6670L for one of our project and following "Linux-c6x 2.0 Release" procedure to set up the configuration.

The host system being used is Ubuntu 10.4 as prescribed in the release notes.

During the build procedure we are facing following issues:

$ ./prj config
scripts/setup

Skip setup of CGT for BIOS & bare-metal (not needed)
Skip setup of BIOS, IPC, XDC, and XDAIS (not needed)
distro == Ubuntu
Package `git-core' is not installed.
Package `expect' is not installed.
Package `bison' is not installed.
Package `flex' is not installed.
Package `mtd-utils' is not installed.
Use dpkg --info (= dpkg-deb --info) to examine archive files,
and dpkg --contents (= dpkg-deb --contents) to list their contents.
needed packages missing and AUTO_INSTALL != yes
]0;root@test-desktop: ~/my-linux-c6x/linux-c6x-2.0.0.63/linux-c6x-project root@test-desktop:~/my-linux-c6x/linux-c6x-2.0.0.63/linux-c6x-project# ./prj bui ld
[ -d /home/test/my-linux-c6x/linux-c6x-2.0.0.63/product ] || mkdir -p /home/test/my-linux-c6x/linux-c6x-2.0.0.63/product
cp -a /home/test/my-linux-c6x/linux-c6x-2.0.0.63/linux-c6x-project/scripts/bootblob /home/test/my-linux-c6x/linux-c6x-2.0.0.63/product/
cp -a /home/test/my-linux-c6x/linux-c6x-2.0.0.63/linux-c6x-project/bootblob-templates /home/test/my-linux-c6x/linux-c6x-2.0.0.63/product/
cp -a /home/test/my-linux-c6x/linux-c6x-2.0.0.63/linux-c6x-project/scripts/make-filesystem /home/test/my-linux-c6x/linux-c6x-2.0.0.63/product/
[: 18: little: unexpected operator
[: 18: hard: unexpected operator
[: 7: little: unexpected operator
[: 7: hard: unexpected operator
[: 7: little: unexpected operator
[: 7: hard: unexpected operator
********** sdk0 ENDIAN=little FLOAT=hard
[: 6: little: unexpected operator
[: 6: little: unexpected operator
[: 6: little: unexpected operator
[ -d /home/test/my-linux-c6x/linux-c6x-2.0.0.63/product ] || mkdir -p /home/test/my-linux-c6x/linux-c6x-2.0.0.63/product
[: 6: little: unexpected operator
[: 6: little: unexpected operator
[: 6: evmc6670: unexpected operator
********** kernel evmc6670 ENDIAN=little
make -f /home/test/my-linux-c6x/linux-c6x-2.0.0.63/linux-c6x-project/Makefile -C /home/test/my-linux-c6x/linux-c6x-2.0.0.63/linux-c6x CROSS_COMPILE=/bin/c6x-uclinux- KNAME=evmc6670 kernel-sub ; \

[ -d /home/test/my-linux-c6x/linux-c6x-2.0.0.63/Build/kobjs/evmc6670.el ] || mkdir -p /home/test/my-linux-c6x/linux-c6x-2.0.0.63/Build/kobjs/evmc6670.el
cp arch/c6x/configs/ti_evmc6670_defconfig /home/test/my-linux-c6x/linux-c6x-2.0.0.63/Build/kobjs/evmc6670.el/.config
[ -z "" ] || patch -p1 -d /home/test/my-linux-c6x/linux-c6x-2.0.0.63/Build/kobjs/evmc6670.el -i /home/test/my-linux-c6x/linux-c6x-2.0.0.63/linux-c6x-project/kbuilds/
[ -z "" ] || /home/test/my-linux-c6x/linux-c6x-2.0.0.63/linux-c6x-project/kbuilds/ /home/test/my-linux-c6x/linux-c6x-2.0.0.63/Build/kobjs/evmc6670.el/.config
[ "little" == "little" ] || \
       sed -i -e 's,# CONFIG_CPU_BIG_ENDIAN is not set,CONFIG_CPU_BIG_ENDIAN=y,' /home/test/my-linux-c6x/linux-c6x-2.0.0.63/Build/kobjs/evmc6670.el/.config
[: 2: little: unexpected operator
[ "yes" != "yes" ] || \
       sed -i -e 's,CONFIG_TI_C6X_COMPILER=y,# CONFIG_TI_C6X_COMPILER is not set,' \
        -e 's,CONFIG_TI_C6X_LINKER=y,# CONFIG_TI_C6X_LINKER is not set,' \
        /home/test/my-linux-c6x/linux-c6x-2.0.0.63/Build/kobjs/evmc6670.el/.config
[ -z "-evmc6670.el-dev-root-20120816" ] || \
       sed -i -e 's,CONFIG_LOCALVERSION=.*,CONFIG_LOCALVERSION="-evmc6670.el-dev-root-20120816",' /home/test/my-linux-c6x/linux-c6x-2.0.0.63/Build/kobjs/evmc6670.el/.config
[ -z "console=ttyS0,115200 ip=dhcp root=/dev/nfs nfsroot=158.218.100.25:/opt/min-root-c6x-le-netcp,v3,tcp rw" ] || \
       sed -i -e 's%CONFIG_CMDLINE=.*%CONFIG_CMDLINE="console=ttyS0,115200 ip=dhcp root=/dev/nfs nfsroot=158.218.100.25:/opt/min-root-c6x-le-netcp,v3,tcp rw"%' /home/test/my-linux-c6x/linux-c6x-2.0.0.63/Build/kobjs/evmc6670.el/.config
make ARCH=c6x O=/home/test/my-linux-c6x/linux-c6x-2.0.0.63/Build/kobjs/evmc6670.el/ oldconfig
  GEN     /home/test/my-linux-c6x/linux-c6x-2.0.0.63/Build/kobjs/evmc6670.el/Makefile
scripts/kconfig/conf -o arch/c6x/Kconfig
#
# configuration written to .config
#
make ARCH=c6x O=/home/test/my-linux-c6x/linux-c6x-2.0.0.63/Build/kobjs/evmc6670.el/
make[5]: /bin/c6x-uclinux-gcc: Command not found
  GEN     /home/test/my-linux-c6x/linux-c6x-2.0.0.63/Build/kobjs/evmc6670.el/Makefile
scripts/kconfig/conf -s arch/c6x/Kconfig
make[5]: /bin/c6x-uclinux-gcc: Command not found
  Using /home/test/my-linux-c6x/linux-c6x-2.0.0.63/linux-c6x as source for kernel
  GEN     /home/test/my-linux-c6x/linux-c6x-2.0.0.63/Build/kobjs/evmc6670.el/Makefile
  CHK     include/linux/version.h
  CHK     include/generated/utsrelease.h
  UPD     include/generated/utsrelease.h
  CC      kernel/bounds.s
/bin/sh: /bin/c6x-uclinux-gcc: not found
make[6]: *** [kernel/bounds.s] Error 127
make[5]: *** [prepare0] Error 2
make[4]: *** [sub-make] Error 2
make[3]: *** [kernel-sub] Error 2
make[2]: *** [one-kernel] Error 2
Build of kernel evmc6670 Failed
make[1]: *** [one-kernels] Error 2
make: *** [kernels] Error 2
]0;root@test-desktop: ~/my-linux-c6x/linux-c6x-2.0.0.63/linux-c6x-project root@test-desktop:~/my-linux-c6x/linux-c6x-2.0.0.63/linux-c6x-project#
]0;root@test-desktop: ~/my-linux-c6x/linux-c6x-2.0.0.63/linux-c6x-project root@test-desktop:~/my-linux-c6x/linux-c6x-2.0.0.63/linux-c6x-project#
]0;root@test-desktop: ~/my-linux-c6x/linux-c6x-2.0.0.63/linux-c6x-project root@test-desktop:~/my-linux-c6x/linux-c6x-2.0.0.63/linux-c6x-project#

Because of these errors we are unable to set up the configuration.

Because of these issues we are totally blocked with further activities, please suggest some solutions to get out of these problems.

Thanks in advance..

Best Regards,

Shrinivas