• Join
  • Sign In with my.TI Login
Texas Instruments
  • Products
  • Applications
  • Tools & Software
  • Support & Community
  • Sample & Buy
  • About TI
Sample & Purchase Cart Sample & Purchase Cart
  • Search
  • Advanced
TI E2E™ Community
  • Support Forums
  • Blogs
  • Groups
  • Videos
  • 简体中文
  • More ...
TI Home » TI E2E Community » Support Forums » Embedded Software » Linux » Linux forum » Issue while building Software from the Source
Share
Linux
  • Forum
Options
  • Subscribe via RSS

Issue while building Software from the Source

Issue while building Software from the Source

This question is answered
Shrinivas Deshpande
Posted by Shrinivas Deshpande
on Aug 15 2012 23:40 PM
Prodigy60 points

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

Report Abuse
  • Reply
You have posted to a forum that requires a moderator to approve posts before they are publicly available.
All Replies
  • Kirill Brilliantov
    Posted by Kirill Brilliantov
    on Aug 17 2012 00:06 AM
    Genius3460 points

    Shrinivas Deshpande
    /bin/sh: /bin/c6x-uclinux-gcc: not found

    You should set full path to c6x-uclinux-gcc

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Rex Chang
    Posted by Rex Chang
    on Aug 20 2012 10:37 AM
    Intellectual2220 points

    Please install those missing packages mentioned when you ran ./prj config on Ubuntu machine. You can see the auto_install stopped because of these missing packages.

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Shrinivas Deshpande
    Posted by Shrinivas Deshpande
    on Jan 07 2013 06:50 AM
    Prodigy60 points

    Hi Kirill,

    Thanks for the response. I have installed "c6x-uclinux-gcc" and now could able to proceed.

    But still i have many compilation and linking errors.....will post in next mail.

    Regards,

    Shrinivas

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Shrinivas Deshpande
    Posted by Shrinivas Deshpande
    on Jan 07 2013 06:56 AM
    Prodigy60 points

    Hi Rex,

    Before the /.prj config cmd, i did set auto_install=yes;

    But i am facing some issue with "wget", which i believe issue with network.

    I am checking with network team to get it resolved.

    I will update my next findings in this post.

    BTB, the build and installation procedure is tested by any one on ubuntu 10.04 with LTE L2-L3 applications?

    Regards,

    Shrinivas

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Rex Chang
    Posted by Rex Chang
    on Jan 07 2013 09:51 AM
    Intellectual2220 points

    Hi, Shrinivas,

    Are you saying that LTE L2-L3 application is running on a Ubuntu 10.04 desktop communicating to the C6670 running Linux-c6x? What application is running on theC6670 Linux-c6x? LTE L2-L3 also? If this is the configuration, no, I don't believe it has been run this way.

    Rex

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Shrinivas Deshpande
    Posted by Shrinivas Deshpande
    on Jan 07 2013 21:59 PM
    Prodigy60 points

    Hi Rex,

    Thanks for the response.

    I will clarify your queries.

    1. I am compiling LTE L2-L3 code for c6x on host Ubuntu (10.04) using c6x-uclinux-gcc. We are using Nyquist TI board.

    2. Objs need to be downloaded to Nyquist (not aware of procedure??)

    3. But got the support link : http://processors.wiki.ti.com/index.php/C6000_Linux_Support, which describes step by step procedure.

    Please let me know if I missed out any point or your suggestions.

    -Shrinivas

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Rex Chang
    Posted by Rex Chang
    on Jan 17 2013 09:32 AM
    Verified Answer
    Verified by Shrinivas Deshpande
    Intellectual2220 points

    Hi, Shrinivas,

    C6670 has not run any LTE application. I am not sure what issues you may encounter.  There is a ftpget command in linux-c6x which allows you to ftp files from server onto c6670.

    Rex

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
TI E2E™ Community
  • Support Forums
  • Blogs
  • Videos
  • Groups
  • Site Support & Feedback
  • Settings
TI E2E™ Community Groups
  • TI University Program
  • Make the Switch
  • Microcontroller Projects
  • Motor Drive & Control
Other Communities
  • Deyisupport
  • Designsomething.org
  • beagleboard.org
  • TI on Element 14
  • TI on TechXchangeSM
Other Technical & Support Resources
  • WEBENCH® Design Center
  • Product Information Centers
  • Technical Documents
  • TI Design Network
  • TI Technical Articles
  • TI Training

All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.

Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms of Use of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms of Use of this site. TI, its suppliers and providers of content reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.

Follow Us Texas Instruments on Facebook Texas Instruments on Twitter Texas Instruments on LinkedIn Texas Instruments on Google+
TI Worldwide | Contact Us | my.TI Login | Site Map | Corporate Citizenship | mobile m.ti.com (Mobile Version)

TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs and
embedded processors, along with software, tools and the industry’s largest sales/support staff.

© Copyright 1995-2013 Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy Policy | Terms of Use