[beagleboard] Building kernel for beaglebone black

Hi All,

I have started using beaglebone black. I tried compiling kernel beaglebone black. I got the following error.

-----------------------------------------------------------------------------------------------------------------------------------------------------------
  LD init/built-in.o
kernel/built-in.o: In function `sched_clock_cpu':
/home/anil/projects/wap/beaglebone_black/sources/tars/kernel-3.8/kernel/kernel/sched/clock.c:360: relocation truncated to fit: R_ARM_THM_JUMP11 against symbol `sched_clock' defined in .text section in arch/arm/kernel/built-in.o
kernel/built-in.o: In function `show_interrupts':
/home/anil/projects/wap/beaglebone_black/sources/tars/kernel-3.8/kernel/kernel/irq/proc.c:431: relocation truncated to fit: R_ARM_THM_JUMP11 against symbol `arch_show_interrupts' defined in .text section in arch/arm/kernel/built-in.o
make: *** [vmlinux] Error 1
-----------------------------------------------------------------------------------------------------------------------------------------------------------

That looks like a broken toolchain...

I have downloaded kernel patches from the git https://github.com/beagleboard/kernel.git
Then I have followed README.

git checkout origin/3.8 -b 3.8
./patch.sh

Here what is origin, Can you please send me link.

1. I have not done git checkout.

2. Then I run ./patch.sh , It has checkout kernel from git, applied patches.

3. cd kernel
cp ../configs/beaglebone .config
make uImage dtbs

I have used "arm-arago-linux-gnueabi-gcc" version 4.5.3, which i got from am335x_evm sdk.

... and confirmed, that's a broken toolchain. As usual, the angstrom toolchain does work.