BeagleBone : Problem while compiling Linux

Hi,

I’m trying to activate SPI on bone. I made changes and i wanted to compile Linux which is in TI PSP SDK 04.06.00.07.

When i tried to compile , i gave these errors,

`
scripts/kconfig/conf --silentoldconfig Kconfig
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
UPD include/linux/version.h
CHK include/generated/utsrelease.h
UPD include/generated/utsrelease.h
Generating include/generated/mach-types.h
CC kernel/bounds.s
cc1: error: unrecognized command line option “-mlittle-endian”
cc1: error: unrecognized command line option “-mapcs”
cc1: error: unrecognized command line option “-mno-sched-prolog”
cc1: error: unrecognized command line option “-mabi=aapcs-linux”
cc1: error: unrecognized command line option “-mno-thumb-interwork”
kernel/bounds.c:1: error: bad value (armv5t) for -march= switch
kernel/bounds.c:1: error: bad value (armv5t) for -mtune= switch
make[1]: *** [kernel/bounds.s] Error 1
make: *** [prepare0] Error 2

`

I never seen such errors before , how can i solve this?

make ARCH=arm CROSS_COMPILE=<...> ?

Regards,

I used,

make uImage ARCH=arm CROSS-COMPILE=arm-none-linux-gnueabi-

also i tried,

make all ARCH=arm CROSS-COMPILE=arm-none-linux-gnueabi-

both gives same outputs

"CROSS-COMPILE" is not the same as "CROSS_COMPILE"

You have to spell it exactly as specified in the Makefile..

http://git.kernel.org/?p=linux/kernel/git/torvalds/linux.git;a=blob;f=Makefile;hb=HEAD#l196

Regards,

Upps, yes you’re correct.

Thank you,

I HAVE A PROLBLEM WHEN I COMPILE THE LINUX OMAP KERNEL .

Looks like you need a new keyboard too.. It's stuck...

i set the path :
PATH=$HOME/CodeSourcery/Sourcery_G++_Lite/bin:$PATH
export PATH

I use the following commands :

make distclean
make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- omap2plus_defconfig
make all ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- uImage

I get the following error :

Kernel: arch/arm/boot/Image is ready
  Kernel: arch/arm/boot/zImage is ready
multiple (or no) load addresses:
This is incompatible with uImages
Specify LOADADDR on the commandline to build an uImage

                ^^^^^^^^^^^^

make all ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi-
LOADADDR=0x80008000 uImage

Regards,