Cross-Compiling Kernel Problem

Hi,
I hope someone please can help me with my problem. I’m trying to build the uImage for a Beagleboard-xM Rev C, but I have a problem when I compile the kernel, I followed this guide “http://www.ibm.com/developerworks/library/l-arm-toolchain/” to install the toolchain and when I execute this command “#make ARCH=arm CROSS_COMPILE=arm-angstrom-linux-gnueabi- distclean” I got this mesage:

make: arm-angstrom-linux-gnueabi-gcc: No se encontró el programa
make[2]: arm-angstrom-linux-gnueabi-gcc: No se encontró el programa

I checked out the route to this command and it’s ok, I run: “#which arm-angstrom-linux-gnueabi-gcc” and the answer was: “/usr/local/angstrom/arm/bin/arm-angstrom-linux-gnueabi-gcc”, also my path (echo $PATH) was like this: “/usr/local/angstrom/arm/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games” so everything is ok, but I don’t understand why this arm-angstrom-linux-gnueabi-gcc error.

Please someone give me a hand with this, I don’t have much experience with the beagleboard.

Thanks.

I hope someone please can help me with my problem. I'm trying to
build the uImage for a Beagleboard-xM Rev C, but I have a problem
when I compile the kernel, I followed this guide "
http://www.ibm.com/developerworks/library/l-arm-toolchain/" to

That link talks about installing Code Sourcery's (quite old) toolchain.
You're then talking about Angstrom's toolchain. I'm a bit confused.
Which one would you like to use?

install the toolchain and when I execute this command "#make ARCH=arm
CROSS_COMPILE=arm-angstrom-linux-gnueabi- distclean" I got this
mesage:

Is that '#' the root prompt? Or just an example?
If so, please don't build kernels as root. It's not needed.

*make: arm-angstrom-linux-gnueabi-gcc: No se encontró el programa*
*make[2]: arm-angstrom-linux-gnueabi-gcc: No se encontró el programa*

I checked out the route to this command and it's ok, I run: "#which
arm-angstrom-linux-gnueabi-gcc" and the answer was: "
/usr/local/angstrom/arm/bin/arm-angstrom-linux-gnueabi-gcc", also my
path (echo $PATH) was like this: "*/usr/local/angstrom/arm/bin*
:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games"
so everything is ok, but I don't understand why this
arm-angstrom-linux-gnueabi-gcc error.

What happens if you pass the full path to your cross compiler angstrom
toolchain binaries like:

CROSS_COMPILE=/usr/local/angstrom/arm/bin/arm-angstrom-linux-gnueabi-

when you 'make'?

-Andrew

Hi Andrew, thanks for answering so fast.

In that guide I just follow the steps, I don’t use those files, the toolchain I’m using is “angstrom-2011.03-i686-linux-armv7a-linux-gnueabi-toolchain.tar.bz2”.

The # is the root prompt, I thought it didn’t matter. I’ve just made all the process as user, as you suggest, (as $, not #) and the result is the same.

When I use the complete address: “CROSS_COMPILE=/usr/local/angstrom/arm/bin/arm-angstrom-linux-gnueabi-” as you said I got this:

make: /usr/local/angstrom/arm/bin/arm-angstrom-linux-gnueabi-gcc: No se encontró el programa
make[2]: /usr/local/angstrom/arm/bin/arm-angstrom-linux-gnueabi-gcc: No se encontró el programa

There’s no change and I did it as root and user, I don’t know what else I can do, please help.

2012/12/27 Andrew Bradford <andrew@bradfordembedded.com>

In that guide I just follow the steps, I don't use those files, the
toolchain I'm using is "
angstrom-2011.03-i686-linux-armv7a-linux-gnueabi-toolchain.tar.bz2".

The # is the root prompt, I thought it didn't matter. I've just made
all the process as user, as you suggest, (as $, not #) and the result
is the same.

When I use the complete address: "
CROSS_COMPILE=/usr/local/angstrom/arm/bin/arm-angstrom-linux-gnueabi-"
as you said I got this:

*make: /usr/local/angstrom/arm/bin/arm-angstrom-linux-gnueabi-gcc: No
se encontró el programa*
*make[2]: /usr/local/angstrom/arm/bin/arm-angstrom-linux-gnueabi-gcc:
No se encontró el programa*

Are you sure you have untarred the tarball correctly as per the
instructions on the angstrom site?

When I download and extract to my home dir, it works fine for me.
I made a gist [1]. If you don't extract the tarball like the
instructions say, gcc may get confused later in the kernel build
process (I stopped it short) but you should get past doing a 'make
distclean' without issue.

[1]: https://gist.github.com/4397281

I'm sorry, I'm not sure how much more I can help you.

There's no change and I did it as root and user, I don't know what
else I can do, please help.

Being root or not shouldn't impact this, it's just not safe nor required
to be root in order to build a kernel.

-Andrew

In the instructions say:

$ **bunzip2** angstrom-2011.03-i686-linux-armv7a-linux-gnueabi-toolchain.tar.bz2
$ **tar -xvf** angstrom-2011.03-i686-linux-armv7a-linux-gnueabi-toolchain.tar

and that’s what I did, then I apply a enviroment-setup file wich modified the PATH. I did this at work and everything worked fine but when I tried it in my home PC I got this problems and both PCs have the same OS Ubuntu 11.04.

Thanks anyway for your help Andrew, I’ll keep trying to resolve this.

2012/12/28 Andrew Bradford <andrew@bradfordembedded.com>