EmbeddedRelated.com
Forums

Problem configuring monta vista linux kernel

Started by Hemal March 29, 2005
Hello friends,

  I am working on a project which has the short term goal of porting
Monta Vista Embedded Linux on a Intel PXA board (having ARM core). I
am facing the problem at the initial stage itself. I have installed
the Monta vista Linux on Windows platform.

   When i try to do make oldconfig (as per the kernel build guide) it
shows the warning

    /bin/sh: line 1: xscale_le-gcc: command not found.

 Although make oldconfig is successful. After that i try to do make
dep which gives me following error

720922@infva02366 /mykernel
$ make dep
/bin/sh: line 1: xscale_le-gcc: command not found
rm -f include/asm
( cd include ; ln -sf asm-arm asm)
make[1]: Entering directory `/mykernel/arch/arm/tools'
/mykernel/scripts/mkdep -D__KERNEL__ -I/mykernel/include -Wall
-Wstrict-prototypes -Wno-trigraphs -Os -fno-strict-aliasing
-fno-common -Uarm -pipe -mapcs -mno-sched-prolog -mapcs-3
2 -D__LINUX_ARM_ARCH__=5 -mcpu=xscale -mtune=xscale -mshort-load-bytes
-msoft-float  -- getconstants.c |\
 sed s,getconstants.o,constants.h, > .depend
make all
make[2]: Entering directory `/mykernel/arch/arm/tools'
xscale_le-gcc -D__KERNEL__ -I/mykernel/include -Wall
-Wstrict-prototypes -Wno-trigraphs -Os -fno-strict-aliasing
-fno-common -Uarm -pipe -mapcs -mno-sched-prolog -mapcs-32 -D__LINU
X_ARM_ARCH__=5 -mcpu=xscale -mtune=xscale -mshort-load-bytes
-msoft-float -S -o constants.h.tmp.1 getconstants.c
make[2]: *** [constants.h] Error 255
make[2]: Leaving directory `/mykernel/arch/arm/tools'
make[1]: *** [dep] Error 2
make[1]: Leaving directory `/mykernel/arch/arm/tools'
make: *** [archdep] Error 2


Any idea why this is happening?

regards
Hemal
Hy Hemal,

Hemal wrote:
> Hello friends, > ... > /bin/sh: line 1: xscale_le-gcc: command not found. > > Although make oldconfig is successful. After that i try to do make > dep which gives me following error > > 720922@infva02366 /mykernel > $ make dep > /bin/sh: line 1: xscale_le-gcc: command not found
what value have the variables ARCH and CROSS_COMPILE? Set them to "arm" and "<path_to_cross-gcc>/<prefix>-" (path & name of your cross-gcc without the "gcc"). I compile Kernel and userspace for PXA255 here with cross-compiler and -libs in my homedir, so my CROSS_COMPILE is set to "~/cross-pxa/bin/arm-linux-" greetings, micha