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.

Transfer and Run "Hello World!" application to LCDK problem in minicom

Other Parts Discussed in Thread: OMAPL138

Hai,

I am using OMAPL138 LCDK presently  i am generated hello file. Then after i am connected board through minicom serial terminal.

Based on Reference Manual:-processors.wiki.ti.com/.../OMAP-L138_LCDK_Linux_SDK_Getting_Started_Guide

Actually in Minicom i am using ttyS0 and 115200 buard rate. but not displaying anything could you give any suggestions for debugging.

Thanks

  • Can you please tell me what you are trying to do ?
    Want to run helloworld code on OMAPL138 LCDK ?
    If yes, how did you compile ?
    If you compile it using arago toolchain you should boot Linux and run the code.
    If you compile the code using CCS then run the code using emulator.
    What is the hello world code and where did you get from ?
    Please clarify me what you are trying to do.
  • i just want to cross compile helloword code in arago tool chain, i got it
    but i am stucked in building deconfig and makeconfig that i have posted in last post please help me through it
  • Hai ,
    I am doing these below steps till Failures coming could you give some suggestions
    1.root@caravel:/home/ram/Desktop/ti-sdk-omapl138-lcdk-01.00.00# ls
    2.ram@caravel:~/Desktop/ti-sdk-omapl138-lcdk-01.00.00$ export TI_SDK_PATH=/home/ram/Desktop/ti-sdk-omapl138-lcdk-01.00.00  
    3.ram@caravel:~/Desktop/ti-sdk-omapl138-lcdk-01.00.00$ source linux-devkit/environment-setup
    4.[linux-devkit]:~/Desktop/ti-sdk-omapl138-lcdk-01.00.00> echo $PATH
    /home/ram/Desktop/ti-sdk-omapl138-lcdk-01.00.00/linux-devkit/bin:/home/ram/Desktop/ti-sdk-omapl138-lcdk-01.00.00/linux-devkit/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
    5.[linux-devkit]:~/Desktop/ti-sdk-omapl138-lcdk-01.00.00> arm-arago-linux-gnueabi-gcc --version
    arm-arago-linux-gnueabi-gcc (GCC) 4.5.3 20110311 (prerelease)
    Copyright (C) 2010 Free Software Foundation, Inc.
    This is free software; see the source for copying conditions.  There is NO
    warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
    6.[linux-devkit]:~/Desktop/ti-sdk-omapl138-lcdk-01.00.00/board-support> tar jxf linux-3.1.10-lcdk_v0.bz2
    7.[linux-devkit]:~/Desktop/ti-sdk-omapl138-lcdk-01.00.00/board-support> cd linux-3.1.10/
    8.[linux-devkit]:~/Desktop/ti-sdk-omapl138-lcdk-01.00.00/board-support/linux-3.1.10> make distclean
      CLEAN   scripts/basic
    10.[linux-devkit]:~/Desktop/ti-sdk-omapl138-lcdk-01.00.00/board-support/linux-3.1.10> arm-arago-linux-gnueabi-gcc --version
    arm-arago-linux-gnueabi-gcc (GCC) 4.5.3 20110311 (prerelease)
    Copyright (C) 2010 Free Software Foundation, Inc.
    This is free software; see the source for copying conditions.  There is NO
    warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
    11.[linux-devkit]:~/Desktop/ti-sdk-omapl138-lcdk-01.00.00/board-support/linux-3.1.10> make omapl138_lcdk_defconfig
      HOSTCC  scripts/basic/fixdep
    In file included from /home/ram/Desktop/ti-sdk-omapl138-lcdk-01.00.00/linux-devkit/arm-arago-linux-gnueabi/usr/include/sys/types.h:26:0,
    ----------------------------------------
    ----------------------------------------
    ----------------------------------------
    ----------------------------------------
    /home/ram/Desktop/ti-sdk-omapl138-lcdk-01.00.00/linux-devkit/arm-arago-linux-gnueabi/usr/include/bits/socket.h:427:23: warning: its scope is only this definition or declaration, which is probably not what you want [enabled by default]
    fixdep: error fstat'ing depfile: scripts/basic/.fixdep.d: Invalid argument
    make[1]: *** [scripts/basic/fixdep] Error 2
    make: *** [scripts_basic] Error 2
    [linux-devkit]:~/Desktop/ti-sdk-omapl138-lcdk-01.00.00/board-support/linux-3.1.10> 
    Could you give any suggestion
  • Can you try this ?
    [linux-devkit]:~/Desktop/ti-sdk-omapl138-lcdk-01.00.00/board-support/linux-3.1.10> make distclean ARCH=arm CROSS_COMPILE=arm-arago-linux-gnueabi-
  • .[linux-devkit]:~/Desktop/ti-sdk-omapl138-lcdk-01.00.00/board-support/linux-3.1.10>  make distclean ARCH=arm CROSS_COMPILE=arm-arago-linux-gnueabi-

     CLEAN   scripts/basic

    2.[linux-devkit]:~/Desktop/ti-sdk-omapl138-lcdk-01.00.00/board-support/linux-3.1.10> make omapl138_lcdk_defconfig ARCH=arm CROSS_COMPILE=arm-arago-linux-gnueabi-

     HOSTCC  scripts/basic/fixdep

    In file included from /home/ram/Desktop/ti-sdk-omapl138-lcdk-01.00.00/linux-devkit/arm-arago-linux-gnueabi/usr/include/sys/types.h:26:0,

                    from scripts/basic/fixdep.c:106:

    /home/ram/Desktop/ti-sdk-omapl138-lcdk-01.00.00/linux-devkit/arm-arago-linux-gnueabi/usr/include/features.h:325:0: warning: "__STDC_ISO_10646__" redefined [enabled by default]

    #define __STDC_ISO_10646__  200009L

    ^

    In file included from <command-line>:0:0:

    /usr/include/stdc-predef.h:54:0: note: this is the location of the previous definition

    #define __STDC_ISO_10646__  201103L

    ^

    In file included from /home/ram/Desktop/ti-sdk-omapl138-lcdk-01.00.00/linux-devkit/arm-arago-linux-gnueabi/usr/include/features.h:355:0,

                    from /home/ram/Desktop/ti-sdk-omapl138-lcdk-01.00.00/linux-devkit/arm-arago-linux-gnueabi/usr/include/sys/types.h:26,

                    from scripts/basic/fixdep.c:106:

    /home/ram/Desktop/ti-sdk-omapl138-lcdk-01.00.00/linux-devkit/arm-arago-linux-gnueabi/usr/include/bits/stdlib.h:65:8: warning: no previous prototype for ‘ptsname_r’ [-Wmissing-prototypes]

    __NTH (ptsname_r (int __fd, char *__buf, size_t __buflen))

           ^

    /home/ram/Desktop/ti-sdk-omapl138-lcdk-01.00.00/linux-devkit/arm-arago-linux-gnueabi/usr/include/sys/cdefs.h:48:52: note: in definition of macro ‘__NTH’

    #  define __NTH(fct) __attribute__ ((__nothrow__)) fct

                                                       ^

    In file included from /home/ram/Desktop/ti-sdk-omapl138-lcdk-01.00.00/linux-devkit/arm-arago-linux-gnueabi/usr/include/netinet/in.h:24:0,

                    from /home/ram/Desktop/ti-sdk-omapl138-lcdk-01.00.00/linux-devkit/arm-arago-linux-gnueabi/usr/include/arpa/inet.h:23,

                    from scripts/basic/fixdep.c:116:

    /home/ram/Desktop/ti-sdk-omapl138-lcdk-01.00.00/linux-devkit/arm-arago-linux-gnueabi/usr/include/stdint.h:153:0: warning: "__INT64_C" redefined [enabled by default]

    #  define __INT64_C(c) c ## LL

    ^

    <built-in>:0:0: note: this is the location of the previous definition

    In file included from /home/ram/Desktop/ti-sdk-omapl138-lcdk-01.00.00/linux-devkit/arm-arago-linux-gnueabi/usr/include/netinet/in.h:24:0,

                    from /home/ram/Desktop/ti-sdk-omapl138-lcdk-01.00.00/linux-devkit/arm-arago-linux-gnueabi/usr/include/arpa/inet.h:23,

                    from scripts/basic/fixdep.c:116:

    /home/ram/Desktop/ti-sdk-omapl138-lcdk-01.00.00/linux-devkit/arm-arago-linux-gnueabi/usr/include/stdint.h:154:0: warning: "__UINT64_C" redefined [enabled by default]

    #  define __UINT64_C(c) c ## ULL

    ^

    <built-in>:0:0: note: this is the location of the previous definition

    In file included from /home/ram/Desktop/ti-sdk-omapl138-lcdk-01.00.00/linux-devkit/arm-arago-linux-gnueabi/usr/include/sys/socket.h:40:0,

                    from /home/ram/Desktop/ti-sdk-omapl138-lcdk-01.00.00/linux-devkit/arm-arago-linux-gnueabi/usr/include/netinet/in.h:25,

                    from /home/ram/Desktop/ti-sdk-omapl138-lcdk-01.00.00/linux-devkit/arm-arago-linux-gnueabi/usr/include/arpa/inet.h:23,

                    from scripts/basic/fixdep.c:116:

    /home/ram/Desktop/ti-sdk-omapl138-lcdk-01.00.00/linux-devkit/arm-arago-linux-gnueabi/usr/include/bits/socket.h:427:23: warning: ‘struct mmsghdr’ declared inside parameter list [enabled by default]

           __const struct timespec *__tmo);

                          ^

    /home/ram/Desktop/ti-sdk-omapl138-lcdk-01.00.00/linux-devkit/arm-arago-linux-gnueabi/usr/include/bits/socket.h:427:23: warning: its scope is only this definition or declaration, which is probably not what you want [enabled by default]

    fixdep: error fstat'ing depfile: scripts/basic/.fixdep.d: Invalid argument

    make[1]: *** [scripts/basic/fixdep] Error 2

    make: *** [scripts_basic] Error 2

    [linux-devkit]:~/Desktop/ti-sdk-omapl138-lcdk-01.00.00/board-support/linux-3.1.10>

  • Can you please try the below commands and don't use the "source linux-devkit/environment-setup" command.

    root@caravel:/home/ram/Desktop/ti-sdk-omapl138-lcdk-01.00.00#
    root@caravel:/home/ram/Desktop/ti-sdk-omapl138-lcdk-01.00.00# export PATH=/home/ram/Desktop/ti-sdk-omapl138-lcdk-01.00.00/linux-devkit/bin:$PATH
    root@caravel:/home/ram/Desktop/ti-sdk-omapl138-lcdk-01.00.00# arm-arago-linux-gnueabi-gcc -v
    root@caravel:/home/ram/Desktop/ti-sdk-omapl138-lcdk-01.00.00# make distclean ARCH=arm CROSS_COMPILE=arm-arago-linux-gnueabi-
    root@caravel:/home/ram/Desktop/ti-sdk-omapl138-lcdk-01.00.00# make omapl138_lcdk_defconfig ARCH=arm CROSS_COMPILE=arm-arago-linux-gnueabi-
    root@caravel:/home/ram/Desktop/ti-sdk-omapl138-lcdk-01.00.00# make uImage ARCH=arm CROSS_COMPILE=arm-arago-linux-gnueabi-
  • hai sir , thankyou very much now i can capture image from web cam

    i am trying ti build Mplayer but i am getting following error


    root@caravel:/home/ram/Desktop/ti-sdk-omapl138-lcdk-01.00.00/filesystem/MPlayer-1.0rc2# arm-arago-linux-gnueabi-gcc -v
    Using built-in specs.
    COLLECT_GCC=arm-arago-linux-gnueabi-gcc
    Target: arm-arago-linux-gnueabi
    Configured with: /sim/scratch_a0850442/arago-tmp-arago/work/i686-armv5te-sdk-arago-linux-gnueabi/gcc-cross-sdk-4.5-r41.2+svnr170880/gcc-4_5-branch/configure --build=i686-linux --host=i686-linux --target=arm-arago-linux-gnueabi --prefix=/arago-2011.09/armv5te --exec_prefix=/arago-2011.09/armv5te --bindir=/arago-2011.09/armv5te/bin --sbindir=/arago-2011.09/armv5te/bin --libexecdir=/arago-2011.09/armv5te/libexec --datadir=/arago-2011.09/armv5te/share --sysconfdir=/arago-2011.09/armv5te/etc --sharedstatedir=/arago-2011.09/armv5te/share/com --localstatedir=/arago-2011.09/armv5te/var --libdir=/arago-2011.09/armv5te/lib --includedir=/arago-2011.09/armv5te/include --oldincludedir=/arago-2011.09/armv5te/include --infodir=/arago-2011.09/armv5te/share/info --mandir=/arago-2011.09/armv5te/share/man --enable-largefile --disable-nls --enable-ipv6 --with-gnu-ld --enable-shared --enable-languages=c,c++,objc,fortran --enable-threads=posix --disable-multilib --enable-c99 --enable-long-long --enable-symvers=gnu --enable-libstdcxx-pch --program-prefix=arm-arago-linux-gnueabi- --enable-target-optspace --enable-lto --enable-libssp --disable-bootstrap --disable-libgomp --disable-libmudflap --with-float=soft --with-sysroot=/arago-2011.09/armv5te/arm-arago-linux-gnueabi --with-build-time-tools=/sim/scratch_a0850442/arago-tmp-arago/sysroots/i686-linux/usr/armv5te/arm-arago-linux-gnueabi/bin --with-build-sysroot=/sim/scratch_a0850442/arago-tmp-arago/sysroots/armv5te-arago-linux-gnueabi --disable-libunwind-exceptions --with-mpfr=/sim/scratch_a0850442/arago-tmp-arago/sysroots/i686-linux/usr --with-system-zlib --enable-__cxa_atexit
    Thread model: posix
    gcc version 4.5.3 20110311 (prerelease) (GCC)
    2.root@caravel:/home/ram/Desktop/ti-sdk-omapl138-lcdk-01.00.00/filesystem#tar -jxvf MPlayer-1.0rc2.tar.bz2
    3.root@caravel:/home/ram/Desktop/ti-sdk-omapl138-lcdk-01.00.00/filesystem#cd MPlayer-1.0rc2
    4.root@caravel:/home/ram/Desktop/ti-sdk-omapl138-lcdk-01.00.00/filesystem/MPlayer-1.0rc2# ./configure --prefix=/usr/local/filesystem_omapl138 --enable-cross-compile --cc=arm-arago-linux-gnueabi-gcc --host-cc=gcc --as=arm-arago-linux-gnueabi-as --ar=arm-arago-linux-gnueabi-ar --ranlib=arm-arago-linux-gnueabi-ranlib --target=arm-linux --disable-ivtv
    Detected operating system: Linux
    Detected host architecture: arm
    Checking for arm-arago-linux-gnueabi-gcc version ... 4.5.3, ok
    Checking for host cc ... gcc
    Checking for cross compilation ... yes
    Checking for assembler support of -pipe option ... yes
    Checking for compiler support of named assembler arguments ... yes
    Checking for .align is a power of two ... yes
    Checking for ARMv5TE (Enhanced DSP Extensions) ... no
    Checking for ARMv6 (SIMD instructions) ... no
    Checking for iWMMXt (Intel XScale SIMD instructions) ... no
    Checking for -lposix ... no
    Checking for -lm ... yes
    Checking for langinfo ... yes
    Checking for language ... using en (man pages: en )
    Checking for enable sighandler ... yes
    Checking for runtime cpudetection ... no
    ----------------------------------------------------------
    ----------------------------------------------------------
    Install prefix: /usr/local/filesystem_omapl138
    Data directory: /usr/local/filesystem_omapl138/share/mplayer
    Config direct.: /usr/local/filesystem_omapl138/etc/mplayer
    ----------------------------------------------------------
    NOTE: The --enable-* parameters unconditionally force options on, completely
    skipping autodetection. This behavior is unlike what you may be used to from
    autoconf-based configure scripts that can decide to override you. This greater
    level of control comes at a price. You may have to provide the correct compiler
    and linker flags yourself.
    If you used one of these options (except --enable-gui and similar ones that
    turn on internal features) and experience a compilation or linking failure,
    make sure you have passed the necessary compiler/linker flags to configure.
    If you suspect a bug, please read DOCS/HTML/en/bugreports.html.

    5.root@caravel:/home/ram/Desktop/ti-sdk-omapl138-lcdk-01.00.00/filesystem/MPlayer-1.0rc2# make
    ./version.sh `arm-arago-linux-gnueabi-gcc -dumpversion`
    arm-arago-linux-gnueabi-gcc -I./libavcodec -I./libavformat -Wdisabled-optimization -Wno-pointer-sign -Wdeclaration-after-statement -I. -I. -I./libavutil -Wall -Wno-switch -Wpointer-arith -Wredundant-decls -O4 -pipe -ffast-math -fomit-frame-pointer -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -DHAVE_CONFIG_H -c -o mplayer.o mplayer.c
    libvo/font_load.h:97:13: warning: 'render_one_glyph' defined but not used
    libvo/font_load.h:98:12: warning: 'kerning' defined but not used
    ----------------------------------------------------------
    ----------------------------------------------------------
    ----------------------------------------------------------
    ----------------------------------------------------------
    ve_x264.c:235:36: error: 'x264_param_t' has no member named 'b_bframe_pyramid'
    ve_x264.c: In function 'control':
    ve_x264.c:245:20: warning: unused variable 'mod'
    make[1]: *** [ve_x264.o] Error 1
    make[1]: Leaving directory `/home/ram/Desktop/ti-sdk-omapl138-lcdk-01.00.00/filesystem/MPlayer-1.0rc2/libmpcodecs'
    make: *** [libmpcodecs/libmpcodecs.a] Error 2
    root@caravel:/home/ram/Desktop/ti-sdk-omapl138-lcdk-01.00.00/filesystem/MPlayer-1.0rc2#


    please help me to get through it
  • Able to build the kernel with given commands ?

    Please refer to the below which I had used to build the mplayer.
    e2e.ti.com/.../328619