[beagleboard]beaglebone ubuntu arm cross-compiler

Hi, how can I install a arm cross compiler in my beaglebone ubuntu?
I've done apt-get install gcc-arm-linux-gnueabi with no success..
E: Package 'gcc-arm-linux-gnueabi' has no installation candidate

I'm trying to build some wireless drivers but not good so far...

I add the following in Makefile:

CONFIG_PLATFORM_ARM_BEAGLE = y

ifeq ($(CONFIG_PLATFORM_ARM_BEAGLE), y)
EXTRA_CFLAGS += -DCONFIG_LITTLE_ENDIAN
ARCH := arm
CROSS_COMPILE := arm-linux-gnueabi-
KVER := 3.2.0-psp1
KSRC ?= /usr/src/linux-headers-3.2.0-psp1/
endif

Is the parameter CROSS_COMPILE := arm-linux-gnueabi- correct?

Don't know why I'm getting this error when trying to build:

make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- -C /usr/src/linux-
headers-3.2.0-psp1/ M=/home/ubuntu/
rtl8188C_8192C_8192D_usb_linux_v3.3.2_3192.20120103 modules
make[1]: Entering directory `/usr/src/linux-headers-3.2.0-psp1'
  CC [M] /home/ubuntu/
rtl8188C_8192C_8192D_usb_linux_v3.3.2_3192.20120103/core/rtw_cmd.o
In file included from include/linux/timex.h:174:0,
                 from include/linux/jiffies.h:8,
                 from include/linux/ktime.h:25,
                 from include/linux/timer.h:5,
                 from include/linux/workqueue.h:8,
                 from include/linux/kmod.h:26,
                 from include/linux/module.h:13,
                 from /home/ubuntu/
rtl8188C_8192C_8192D_usb_linux_v3.3.2_3192.20120103/include/
osdep_service.h:46,
                 from /home/ubuntu/
rtl8188C_8192C_8192D_usb_linux_v3.3.2_3192.20120103/core/rtw_cmd.c:23:
/usr/src/linux-headers-3.2.0-psp1/arch/arm/include/asm/timex.h:15:24:
fatal error: mach/timex.h: No such file or directory
compilation terminated.
make[2]: *** [/home/ubuntu/
rtl8188C_8192C_8192D_usb_linux_v3.3.2_3192.20120103/core/rtw_cmd.o]
Error 1
make[1]: *** [_module_/home/ubuntu/
rtl8188C_8192C_8192D_usb_linux_v3.3.2_3192.20120103] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-3.2.0-psp1'
make: *** [modules] Error 2

Any help is welcome
Regards

Hi, how can I install a arm cross compiler in my beaglebone ubuntu?
I've done apt-get install gcc-arm-linux-gnueabi with no success..
E: Package 'gcc-arm-linux-gnueabi' has no installation candidate

what are you 'cross'ing too? x86? sparc? :wink:

ON the bone running ubuntu, just run normal gcc "sudo apt-get install gcc"

I'm trying to build some wireless drivers but not good so far...

I add the following in Makefile:

CONFIG_PLATFORM_ARM_BEAGLE = y

ifeq ($(CONFIG_PLATFORM_ARM_BEAGLE), y)
EXTRA_CFLAGS += -DCONFIG_LITTLE_ENDIAN
ARCH := arm
CROSS_COMPILE := arm-linux-gnueabi-
KVER := 3.2.0-psp1
KSRC ?= /usr/src/linux-headers-3.2.0-psp1/
endif

Is the parameter CROSS_COMPILE := arm-linux-gnueabi- correct?

When running on the bone, in ubuntu just use "CROSS_COMPILE=" to
basicly just clear it out, most Makefiles incorrectly assume (due to
years of begin right), well if your building for arm you "Must" be
cross compiling.. But this isn't the case, and a just a call to "gcc"
is all that is needed..

Don't know why I'm getting this error when trying to build:

(see my other reply on this error)

Regards,