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.

[HELP] Trouble in building SC-MCSDK image for tci6614 platform



Dear sir,

     I followed the SC-MCSDK_User_Guide in http://software-dl.ti.com/sdoemb/sdoemb_public_sw/sc_mcsdk/latest/index_FDS.html to build image but got trouble.

 Code Sourcery and  Linaro toolchain are installed in my Ubuntu 10.04, and Arago repositories is cloned by git.

When I tried to build Arago image by the following commands, the error message ""FATAL: No valid toolchain in PATH" is occurred.

---

$ cd $HOME/sc-mcsdk
$ source arago/setenv
$ MACHINE=tci6614-evm bitbake arago-sc-mcsdk-base-image

FATAL: No valid toolchain in PATH

---

The global environment is as below. arm-none-linux-gnueabi-gcc and arm-linux-gnueabi-gcc can be found in the command line.

---

$ echo $PATH
/home/chiching/sc-mcsdk/arago-bitbake/bin/:/home/chiching/sc-mcsdk/arago-utils/:/home/chiching/smallcell/gcc-linaro-arm-linux-gnueabi-2012.03-20120326_linux/bin/:/home/chiching/CodeSourcery/Sourcery_G++_Lite/bin/:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games


$ echo $CROSS_COMPILE
arm-none-linux-gnueabi-


$ echo $ARCH
arm

---

Would anyone please help me figure out what the problem is? Thanks!

  • Hi,

    I'm away from SC-MCSDK for a while but could you please comfirm the following?

    1. Are the environment variables "export"ed?  Please try the export command prior to run bitbake.

    $ export PATH CROSS_COMPILE ARCH

    2. When running bitbake, could you add -v and -DDD options to get much diagnostic?  I mean

    $ MACHINE=tci6614-evm bitbake -v -DDD arago-sc-mcsdk-base-image

    Regards,
    Atsushi

  • Hi Atsushi,

    1. Yes, the environment variables are exported. I have tried the following export command again prior to run bitbake, but the result is the same.

    export PATH CROSS_COMPILE ARCH

    The total export variable is confirmed as below

    ----

    chiching@ubuntu:~/sc-mcsdk$ export
    declare -x ARCH="arm"
    declare -x BBPATH="/home/chiching/sc-mcsdk/arago:/home/chiching/sc-mcsdk/arago-oe-dev"
    declare -x BB_ENV_EXTRAWHITE="OEBASE MACHINE META_SDK_PATH TOOLCHAIN_TYPE TOOLCHAIN_BRAND http_proxy https_proxy ftp_proxy no_proxy GIT_PROXY_COMMAND"
    declare -x COLORTERM="gnome-terminal"
    declare -x CROSS_COMPILE="arm-none-linux-gnueabi-"
    declare -x DBUS_SESSION_BUS_ADDRESS="unix:abstract=/tmp/dbus-8NQePlr7hM,guid=014596708dcb89ddfb01855a51dbb381"
    declare -x DEFAULTS_PATH="/usr/share/gconf/gnome.default.path"
    declare -x DESKTOP_SESSION="gnome"
    declare -x DISPLAY=":0.0"
    declare -x GDMSESSION="gnome"
    declare -x GDM_KEYBOARD_LAYOUT="us"
    declare -x GDM_LANG="en_US.utf8"
    declare -x GNOME_DESKTOP_SESSION_ID="this-is-deprecated"
    declare -x GNOME_KEYRING_CONTROL="/tmp/keyring-g2cyTc"
    declare -x GNOME_KEYRING_PID="1909"
    declare -x GTK_IM_MODULE="ibus"
    declare -x GTK_MODULES="canberra-gtk-module"
    declare -x HOME="/home/chiching"

    declare -x PATH="/home/chiching/sc-mcsdk/arago-bitbake/bin/:/home/chiching/sc-mcsdk/arago-utils/:/home/chiching/smallcell/gcc-linaro-arm-linux-gnueabi-2012.03-20120326_linux/bin/:/home/chiching/CodeSourcery/Sourcery_G++_Lite/bin/:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games"

    declare -x PWD="/home/chiching/sc-mcsdk"
    declare -x QT_IM_MODULE="xim"
    declare -x SESSION_MANAGER="local/ubuntu:@/tmp/.ICE-unix/1927,unix/ubuntu:/tmp/.ICE-unix/1927"
    declare -x SHELL="/bin/bash"
    declare -x SHLVL="1"
    declare -x SPEECHD_PORT="7560"
    declare -x SSH_AGENT_PID="1965"
    declare -x SSH_AUTH_SOCK="/tmp/keyring-g2cyTc/ssh"
    declare -x TERM="xterm"
    declare -x USER="chiching"
    declare -x USERNAME="chiching"
    declare -x WINDOWID="65011715"
    declare -x XAUTHORITY="/var/run/gdm/auth-for-chiching-XhHLch/database"
    declare -x XDG_CONFIG_DIRS="/etc/xdg/xdg-gnome:/etc/xdg"
    declare -x XDG_DATA_DIRS="/usr/share/gnome:/usr/local/share/:/usr/share/"
    declare -x XDG_SESSION_COOKIE="61ae85ad8477212de268c9194c25c50b-1373352833.205264-519771174"
    declare -x XMODIFIERS="@im=ibus"

    ----

    2.The -v and -DDD options is added with the bitbake command, it seems no more message is displayed.

    --

    $ MACHINE=tci6614-evm bitbake -v -DDD arago-sc-mcsdk-base-image
    FATAL: No valid toolchain in PATH


    $ MACHINE=tci6614-sim bitbake -v -DDD arago-base-image
    FATAL: No valid toolchain in PATH

    ---

    Best regards,

    Kenny

  • Hi Atsushi,

    1.Yes, the environment variables are exported in ~/.bashrc. I have tried the following export command again prior to run bitbake, it still doesn't work.

    export PATH CROSS_COMPILE ARCH


    2. The options -v and -DDD are added with bitbake command, but it seems no more message.

    $ MACHINE=tci6614-evm bitbake -v -DDD arago-sc-mcsdk-base-image

    FATAL: No valid toolchain in PATH

    Best regards,

    Kenny


  • Kenny,

    I'm afraid that the -v and -DDD did not help...

    At the moment, I have removed SC-MCSDK evaluation environment from my PC, so please allow me to reinstall it.  Or, I hope other employees answer soon.

    Regards,
    Atsushi

  • Kenny,

    Please allow a simple question.

    At the bash command prompt, can you run arm-none-linux-gnueabi-gcc for example?  I mean

    $ arm-none-linux-gnueabi-gcc
    arm-none-linux-gnueabi-gcc: no input files

    Regards,
    Atsushi

  • Hi Atsushi,

          Yes, I can execute arm-none-linux-gnueabi-gcc from the console window.

    chiching@ubuntu:~$ arm-none-linux-gnueabi-gcc
    arm-none-linux-gnueabi-gcc: no input files

    The arm-none-linux-gnueabi-gcc is installed in the path: 

    /home/chiching/CodeSourcery/Sourcery_G++_Lite/bin

    The file below in arago looks like it would try to check toolchain path, but I don't understand python script, maybe some environment variables is required?

    $HOME/sc-mcsdk/arago/conf/distro/include/toolchain-common-external.inc

    --

    TOOLCHAIN_SYSPATH := "${@os.path.abspath(os.path.dirname(bb.which(bb.data.getVar('PATH', d, 1), bb.data.getVar('TARGET_PREFIX', d, 1)+'cpp'))+'/../'+bb.data.getVar('TARGET_SYS', d, 1))}"
    TOOLCHAIN_PATH := "${@bool(bb.data.getVar('TOOLCHAIN_SYSPATH', d, 1)) and (os.path.exists(bb.data.getVar('TOOLCHAIN_SYSPATH', d, 1)) and os.path.dirname(bb.data.getVar('TOOLCHAIN_SYSPATH', d, 1)) or bb.fatal('No valid toolchain in PATH')) or ''}"

    ---


  • Kenny,

    I have reinstalled the SC-MCSDK and reevaluated bitbake build.  Following is the exact procedure which I took.  I didn't see any errors.  Could you double check?  BTW, I needed git proxy due to the firewall reason of my site.

    1. Prepared Ubuntu 10.04 LTS installed PC.

    2. Install arm-2009q1-203-arm-none-linux-gnueabi.bin .

    3. Set environment variables in $HOME/.profile .

    export PATH=/root/CodeSourcery/Sourcery_G++_Lite/bin:$PATH
    export CROSS_COMPILE=arm-none-linux-gnueabi-
    export ARCH=arm
    export http_proxy=...  # To define for your site
    export ftp_proxy=...   # ditto
    export https_proxy=... # ditto

    4. After logout/login Ubuntu to reflect the .profile, check the tools.

    $ ls /root/CodeSourcery/Sourcery_G++_Lite/bin

    arm-none-linux-gnueabi-addr2line
    arm-none-linux-gnueabi-ar
    arm-none-linux-gnueabi-as
    arm-none-linux-gnueabi-c++
    ...

    5. sudo apt-get install git-core bitbake, and required tools...

    6. And the followings.

    $ mkdir $HOME/sc-mcsdk
    $ cd $HOME/sc-mcsdk
    $ git clone git://arago-project.org/git/arago-oe-dev.git
    $ cd arago-oe-dev
    $ git checkout 2011.09  # checkout'ed by my own preference
    $ cd ..
    $ git clone git://arago-project.org/git/arago-bitbake.git
    $ cd arago-bitbake
    $ git checkout 1.10.2-arago1  # ditto
    $ cd ..
    $ git clone git://arago-project.org/git/projects/arago-tci6614.git arago
    $ cd arago
    $ git checkout DEV.SC-MCSDK-02.01.00.01P2  # ditto
    $ cd ..

    7. And also

    $ cd $HOME/sc-mcsdk
    $ cp arago/setenv.sample arago/setenv

    8. Edited arago/setenv to change OEBASE to $HOME/sc-mcsdk

    9. And also

    $ cp arago/conf/local.conf.sample arago/conf/local.conf

    10. Finally

    $ cd $HOME/sc-mcsdk
    $ source arago/setenv
    $ MACHINE=tci6614-evm bitbake arago-sc-mcsdk-base-image

    11. I got the following output (still working...)

    NOTE: Psyco JIT Compiler (http://psyco.sf.net) not available. Install it to increase performance.
    NOTE: Handling BitBake files: / (7687/7687) [100 %]
    Parsing of 7687 .bb files complete (0 cached, 7687 parsed). 7880 targets, 460 skipped, 585 masked, 0 errors.
    ...

    Do you see differences?

    Regards,
    Atsushi

  • Hi Atsushi,

          Thanks for your reply. I will try to follow your steps and install again in new Ubuntu 10.04 environment.

    There are two additional steps in my environment, and some little difference.

    1. I have also installed Linaro toolchain 2012.03 for cross compiling (after your step 2)

    and export PATH=<path-to-linaro-toolchain-bin>:$PATH

    2. I have modified arago/conf/local.conf (after your step 9)

    BB_NUMBER_THREADS = "4"

    LINARO_PREFIX = "arm-linux-gnueabi-"
    KERNEL_CC = "${LINARO_PREFIX}gcc ${HOST_CC_KERNEL_ARCH}"
    KERNEL_LD = "${LINARO_PREFIX}ld ${HOST_LD_KERNEL_ARCH}"
    KERNEL_NM = "${LINARO_PREFIX}nm ${HOST_NM_KERNEL_ARCH}"
    KERNEL_AR = "${LINARO_PREFIX}ar ${HOST_AR_KERNEL_ARCH}"
    KERNEL_OBJCOPY = "${LINARO_PREFIX}objcopy ${HOST_OBJCOPY_KERNEL_ARCH}"
    export PATH=<path-to-linaro-toolchain>/bin/:$PATH

    3.SC-MCSDK version is a little different while cloning Arago repositories

    $ git clone git://arago-project.org/git/arago-oe-dev.git
    $ cd arago-oe-dev
    $ git reset --hard 2011.09
    $ cd ..
    $ git clone git://arago-project.org/git/arago-bitbake.git
    $ cd arago-bitbake

    $ git reset --hard 1.10.2-arago1
    $ cd ..
    $ git clone git://arago-project.org/git/projects/arago-tci6614.git arago
    $ cd arago
    $ git reset --hard DEV.SC-MCSDK-02.01.00.01   # not 02.01.00.01P2
    $ cd ..

    4. The environment variables are export in ~/.bashrc

  • Hi Atsushi,

         I have followed your steps and it really works. Thanks a lot!

    As I described in the last post, there are two additional steps in my original environment.

    1. I have also installed Linaro toolchain 2012.03 for cross compiling (after your step 2)

    and export PATH=<path-to-linaro-toolchain-bin>:$PATH

    2. I have enabled BB_NUMBER_THREADS option and pasted the remain lines below to end of file arago/conf/local.conf (after your step 9)

    ---

    BB_NUMBER_THREADS = "4"

    LINARO_PREFIX = "arm-linux-gnueabi-"
    KERNEL_CC = "${LINARO_PREFIX}gcc ${HOST_CC_KERNEL_ARCH}"
    KERNEL_LD = "${LINARO_PREFIX}ld ${HOST_LD_KERNEL_ARCH}"
    KERNEL_NM = "${LINARO_PREFIX}nm ${HOST_NM_KERNEL_ARCH}"
    KERNEL_AR = "${LINARO_PREFIX}ar ${HOST_AR_KERNEL_ARCH}"
    KERNEL_OBJCOPY = "${LINARO_PREFIX}objcopy ${HOST_OBJCOPY_KERNEL_ARCH}"
    export PATH=<path-to-linaro-toolchain>/bin/:$PATH

    --

    If I try to add the two additional steps, the message "FATAL: No valid toolchain in PATH" will display again.

    I found that if  the last line with export command in arago/conf/local.conf is removed, it could go ahead without that fatal message!

    So, is Linaro toolchain setting is necessary for building the image?

    Best regards,

    Kenny

  • Hi Atsushi,

         Although the problem of "FATAL: No valid toolchain in PATH" is solved, there is a new problem during compiling.

    Below is a part of last output message. The build process stoped because of some errors.

    ---

    --2013-07-11 19:03:06-- http://xorg.freedesktop.org/releases/individual/proto/xproto-7.0.20.tar.bz2
    Resolving xorg.freedesktop.org... NOTE: package xproto-1_7.0.20-r2.0: task do_setscene: Succeeded
    131.252.210.176
    Connecting to xorg.freedesktop.org|131.252.210.176|:80... connected.
    HTTP request sent, awaiting response... NOTE: Running task 410 of 2306 (ID: 2208, /home/chiching/sc-mcsdk/arago-oe-dev/recipes/xorg-proto/xproto_7.0.20.bb, do_fetch)
    NOTE: package xproto-1_7.0.20-r2.0: task do_fetch: Started
    NOTE: fetch http://xorg.freedesktop.org/releases/individual/proto/xproto-7.0.20.tar.bz2
    200 OK
    Length: 277229 (271K) [application/x-bzip2]
    Saving to: `/home/chiching/sc-mcsdk/downloads/xproto-7.0.20.tar.bz2'

    0K .......... .......... .......... .......... .......... 18% 50.0K 4s
    50K .......... .......... .......... .......... .......... 36% 220K 2s
    100K .......... .......... .......... .......... .......... 55% 116K 1s
    150K .......... .......... .......... .......... .......... 73% 104K 1s
    200K .......... .......... .......... .......... .......... 92% 100K 0s
    250K .......... .......... 100% 110K=2.8s

    2013-07-11 19:03:10 (95.8 KB/s) - `/home/chiching/sc-mcsdk/downloads/xproto-7.0.20.tar.bz2' saved [277229/277229]

    NOTE: package xproto-1_7.0.20-r2.0: task do_fetch: Succeeded
    NOTE: Running task 411 of 2306 (ID: 2201, /home/chiching/sc-mcsdk/arago-oe-dev/recipes/xorg-proto/xproto_7.0.20.bb, do_unpack)
    NOTE: package xproto-1_7.0.20-r2.0: task do_unpack: Started
    NOTE: Unpacking downloads/xproto-7.0.20.tar.bz2 to arago-tmp/work/armv7a-none-linux-gnueabi/xproto-1_7.0.20-r2.0/
    NOTE: package xproto-1_7.0.20-r2.0: task do_unpack: Succeeded
    NOTE: Running task 412 of 2306 (ID: 122, /home/chiching/sc-mcsdk/arago/recipes/linux/linux-tci6614-evm_git.bb, do_qa_configure)
    NOTE: package linux-tci6614-evm-3.3-r0: task do_qa_configure: Started
    NOTE: package linux-tci6614-evm-3.3-r0: task do_qa_configure: Succeeded
    NOTE: Running task 413 of 2306 (ID: 123, /home/chiching/sc-mcsdk/arago/recipes/linux/linux-tci6614-evm_git.bb, do_compile)
    NOTE: package linux-tci6614-evm-3.3-r0: task do_compile: Started
    ERROR: TaskFailed event exception, aborting
    ERROR: Build of /home/chiching/sc-mcsdk/arago/recipes/linux/linux-tci6614-evm_git.bb do_compile failed
    ERROR: Task 123 (/home/chiching/sc-mcsdk/arago/recipes/linux/linux-tci6614-evm_git.bb, do_compile) failed with exit code 1
    ERROR: '/home/chiching/sc-mcsdk/arago/recipes/linux/linux-tci6614-evm_git.bb' failed
    ERROR: Function do_compile failed
    NOTE: Task failed: ('function do_compile failed', '/home/chiching/sc-mcsdk/arago-tmp/work/tci6614-evm-none-linux-gnueabi/linux-tci6614-evm-3.3-r0/temp/log.do_compile.7666')
    ERROR: Logfile of failure stored in: /home/chiching/sc-mcsdk/arago-tmp/work/tci6614-evm-none-linux-gnueabi/linux-tci6614-evm-3.3-r0/temp/log.do_compile.7666
    Log data follows:
    | NOTE: make KALLSYMS_EXTRA_PASS=1 EXTRAVERSION=-02.01.00.01-p2 include/linux/version.h AR=arm-none-linux-gnueabi-ar CC=arm-none-linux-gnueabi-gcc -mno-thumb-interwork -mno-thumb LD=arm-none-linux-gnueabi-ld --sysroot=/home/chiching/sc-mcsdk/arago-tmp/sysroots/armv7a-none-linux-gnueabi NM=arm-none-linux-gnueabi-nm OBJCOPY=arm-none-linux-gnueabi-objcopy
    | CHK include/linux/version.h
    | UPD include/linux/version.h
    | NOTE: make KALLSYMS_EXTRA_PASS=1 EXTRAVERSION=-02.01.00.01-p2 dep AR=arm-none-linux-gnueabi-ar CC=arm-none-linux-gnueabi-gcc -mno-thumb-interwork -mno-thumb LD=arm-none-linux-gnueabi-ld --sysroot=/home/chiching/sc-mcsdk/arago-tmp/sysroots/armv7a-none-linux-gnueabi NM=arm-none-linux-gnueabi-nm OBJCOPY=arm-none-linux-gnueabi-objcopy
    | scripts/kconfig/conf --silentoldconfig Kconfig
    | *** Warning: make dep is unnecessary now.
    | NOTE: make KALLSYMS_EXTRA_PASS=1 EXTRAVERSION=-02.01.00.01-p2 uImage AR=arm-none-linux-gnueabi-ar CC=arm-none-linux-gnueabi-gcc -mno-thumb-interwork -mno-thumb LD=arm-none-linux-gnueabi-ld --sysroot=/home/chiching/sc-mcsdk/arago-tmp/sysroots/armv7a-none-linux-gnueabi NM=arm-none-linux-gnueabi-nm OBJCOPY=arm-none-linux-gnueabi-objcopy
    | WRAP arch/arm/include/generated/asm/auxvec.h
    | WRAP arch/arm/include/generated/asm/bitsperlong.h
    | WRAP arch/arm/include/generated/asm/cputime.h
    | WRAP arch/arm/include/generated/asm/emergency-restart.h
    | WRAP arch/arm/include/generated/asm/errno.h
    | WRAP arch/arm/include/generated/asm/ioctl.h
    | WRAP arch/arm/include/generated/asm/irq_regs.h
    | WRAP arch/arm/include/generated/asm/kdebug.h
    | WRAP arch/arm/include/generated/asm/local.h
    | WRAP arch/arm/include/generated/asm/local64.h
    | WRAP arch/arm/include/generated/asm/percpu.h
    | WRAP arch/arm/include/generated/asm/poll.h
    | WRAP arch/arm/include/generated/asm/resource.h
    | WRAP arch/arm/include/generated/asm/sections.h
    | WRAP arch/arm/include/generated/asm/siginfo.h
    | WRAP arch/arm/include/generated/asm/sizes.h
    | CHK include/linux/version.h
    | CHK include/generated/utsrelease.h
    | UPD include/generated/utsrelease.h
    | Generating include/generated/mach-types.h
    | CC kernel/bounds.s
    | GEN include/generated/bounds.h
    | CC arch/arm/kernel/asm-offsets.s
    | GEN include/generated/asm-offsets.h
    | CALL scripts/checksyscalls.sh
    | HOSTCC scripts/dtc/checks.o
    | HOSTCC scripts/dtc/data.o
    | SHIPPED scripts/dtc/dtc-lexer.lex.c
    | SHIPPED scripts/dtc/dtc-parser.tab.h
    | HOSTCC scripts/dtc/dtc-lexer.lex.o
    | SHIPPED scripts/dtc/dtc-parser.tab.c
    | HOSTCC scripts/dtc/dtc-parser.tab.o
    | HOSTCC scripts/dtc/dtc.o
    | HOSTCC scripts/dtc/flattree.o
    | HOSTCC scripts/dtc/fstree.o
    | HOSTCC scripts/dtc/livetree.o
    | HOSTCC scripts/dtc/srcpos.o
    | HOSTCC scripts/dtc/treesource.o
    | HOSTCC scripts/dtc/util.o
    | HOSTLD scripts/dtc/dtc
    | HOSTCC scripts/genksyms/genksyms.o
    | SHIPPED scripts/genksyms/lex.lex.c
    | SHIPPED scripts/genksyms/keywords.hash.c
    | SHIPPED scripts/genksyms/parse.tab.h
    | HOSTCC scripts/genksyms/lex.lex.o
    | SHIPPED scripts/genksyms/parse.tab.c
    | HOSTCC scripts/genksyms/parse.tab.o
    | HOSTLD scripts/genksyms/genksyms
    | CC scripts/mod/empty.o
    | HOSTCC scripts/mod/mk_elfconfig
    | MKELF scripts/mod/elfconfig.h
    | HOSTCC scripts/mod/file2alias.o
    | HOSTCC scripts/mod/modpost.o
    | HOSTCC scripts/mod/sumversion.o
    | HOSTLD scripts/mod/modpost
    | HOSTCC scripts/kallsyms
    | HOSTCC scripts/bin2c
    | CC init/main.o
    | CHK include/generated/compile.h
    | UPD include/generated/compile.h
    | CC init/version.o
    | CC init/do_mounts.o
    | CC init/do_mounts_initrd.o
    | LD init/mounts.o
    | CC init/initramfs.o
    | CC init/calibrate.o
    | LD init/built-in.o
    | HOSTCC usr/gen_init_cpio
    | GEN usr/initramfs_data.cpio
    | AS usr/initramfs_data.o
    | LD usr/built-in.o
    | CC arch/arm/vfp/vfpmodule.o
    | AS arch/arm/vfp/entry.o
    | AS arch/arm/vfp/vfphw.o
    | CC arch/arm/vfp/vfpsingle.o
    | CC arch/arm/vfp/vfpdouble.o
    | LD arch/arm/vfp/vfp.o
    | LD arch/arm/vfp/built-in.o
    | CC arch/arm/kernel/elf.o
    | AS arch/arm/kernel/entry-armv.o
    | AS arch/arm/kernel/entry-common.o
    | CC arch/arm/kernel/irq.o
    | CC arch/arm/kernel/opcodes.o
    | CC arch/arm/kernel/process.o
    | CC arch/arm/kernel/ptrace.o
    | CC arch/arm/kernel/return_address.o
    | arch/arm/kernel/return_address.c:62:2: warning: #warning "TODO: return_address should use unwind tables"
    | arch/arm/kernel/return_address.c:62:2: warning: #warning "TODO: return_address should use unwind tables"
    | CC arch/arm/kernel/setup.o
    | CC arch/arm/kernel/signal.o
    | CC arch/arm/kernel/sys_arm.o
    | CC arch/arm/kernel/stacktrace.o
    | CC arch/arm/kernel/time.o
    | CC arch/arm/kernel/traps.o
    | CC arch/arm/kernel/armksyms.o
    | CC arch/arm/kernel/module.o
    | CC arch/arm/kernel/machine_kexec.o
    | /tmp/ccn2PUtd.s: Assembler messages:
    | /tmp/ccn2PUtd.s:199: Warning: value stored for r4 is UNPREDICTABLE
    | AS arch/arm/kernel/relocate_kernel.o
    | arch/arm/kernel/relocate_kernel.S: Assembler messages:
    | arch/arm/kernel/relocate_kernel.S:10: Error: invalid offset, value too big (0xFFFFFFFC)
    | arch/arm/kernel/relocate_kernel.S:11: Error: invalid offset, value too big (0xFFFFFFFC)
    | arch/arm/kernel/relocate_kernel.S:58: Error: invalid offset, value too big (0xFFFFFFFC)
    | arch/arm/kernel/relocate_kernel.S:59: Error: invalid offset, value too big (0xFFFFFFFC)
    | make[1]: *** [arch/arm/kernel/relocate_kernel.o] Error 1
    | make: *** [arch/arm/kernel] Error 2
    | FATAL: oe_runmake failed
    | ERROR: Function do_compile failed
    NOTE: package linux-tci6614-evm-3.3-r0: task do_compile: Failed
    ERROR: TaskFailed event exception, aborting
    ERROR: Build of /home/chiching/sc-mcsdk/arago/recipes/linux/linux-tci6614-evm_git.bb do_compile failed
    ERROR: Task 123 (/home/chiching/sc-mcsdk/arago/recipes/linux/linux-tci6614-evm_git.bb, do_compile) failed with exit code 1
    ERROR: '/home/chiching/sc-mcsdk/arago/recipes/linux/linux-tci6614-evm_git.bb' failed
    ERROR: '/home/chiching/sc-mcsdk/arago/recipes/linux/linux-tci6614-evm_git.bb' failed
    chiching@ubuntu:~/sc-mcsdk$

    ----

    Could you complete the image building process in your environment, or would you please help check what the problem is?

    Thanks in advance!

  • Hi.

    Hmm, I'm afraid but I can't answer to the question.

    My recommendation is, to simply the question and isolate if it's an Arago bitbake issue, a kernel design issue, or a compiler issue, you try to build the kernel outside Arago bitbake environment.

    But I sitll understand that the Arago bitbake may be essential to you even a prebuilt filesystem image is attached to the SC-MCSDK binary distribution.  In the case, I hope some guru may help you.

    Sorry...

    Regards,
    Atsushi

  • Atsushi,

    I am having exactly the same problems as described here. My final build resulted in the same errors. Since I am using the Advantech eval board and asked them, but they said they are unable to help and that I should ask here.

    Have you made any progress on this, or is there a known solution? Does the 2.01.00.01 build work for you?

    I have looked into this in a little more detail and found that the kernel is being compiled with the CSL toolchain instead of Linaro even though the local.conf specifies Linaro (those are the extra lines added at the end of the conf file). So, the build appears to be ignoring the KERNEL_CC setting.

    In your previous post you mentioned "gurus" -- do you have any specific contacts? Are these TI people you mean? I am using the files from the TI website, so I assume that these have been tested and known to work. Can we get in touch with whoever created/maintains this package or someone for whom it actually worked?

    Thank you

    Lance