Re: [beagleboard] Building kernel for beaglebone black

1,863 views
Skip to first unread message

Micka

unread,
May 27, 2013, 9:40:55 AM5/27/13
to beagl...@googlegroups.com
Hi,

You should watch this tutorial => http://www.youtube.com/watch?v=HJ9nUqYMjqs

replace the version of the kernel by 3.8 ;)

It's working for my BBB.

Micka,

On Mon, May 27, 2013 at 3:29 PM, Anil kolli <kollia...@gmail.com> wrote:
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
-----------------------------------------------------------------------------------------------------------------------------------------------------------


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.

Can you please help me here.

Thanks & Regards,
Anil.

--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Koen Kooi

unread,
May 27, 2013, 9:43:37 AM5/27/13
to beagl...@googlegroups.com

Op 27 mei 2013, om 15:29 heeft Anil kolli <kollia...@gmail.com> het volgende geschreven:

> 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.

Anil kolli

unread,
May 29, 2013, 4:24:24 AM5/29/13
to beagl...@googlegroups.com
Hi All,

I have tried using angstrom toolchain from link below,

 it is giving this error ...

Error: unrecognized option -mauto-it 

Can you give the build procedure, where I can find the toolchain?

Thanks & Regards,
Anil Kolli.



On Monday, May 27, 2013 6:59:22 PM UTC+5:30, Anil kolli wrote:
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
-----------------------------------------------------------------------------------------------------------------------------------------------------------


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.

Anil kolli

unread,
May 29, 2013, 10:44:22 AM5/29/13
to beagl...@googlegroups.com, cwrse...@gmail.com
I want to use the latest kernel linux-3.8 version proved by angstrom.

please help me ..

Thanks ,
Anil.

On Wednesday, May 29, 2013 6:17:54 PM UTC+5:30, cwrse...@gmail.com wrote:


On Monday, May 27, 2013 2:29:22 PM UTC+1, Anil kolli wrote:
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
-----------------------------------------------------------------------------------------------------------------------------------------------------------

The best bet would be to download Robert Nelson's kernel build tools, and just run them.  They worked flawlessly
for me, but I'm not sure how you integrate them into Angstrom; I used the kernel to boot into an Ubuntu filesystem
(See http://eewiki.net/display/linuxonarm/BeagleBone)

Will
 

Gerald Coley

unread,
May 29, 2013, 10:45:30 AM5/29/13
to beagl...@googlegroups.com, cwrse...@gmail.com


--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Brent

unread,
May 29, 2013, 1:59:10 PM5/29/13
to beagl...@googlegroups.com, cwrse...@gmail.com
When you build the kernel, you should specify the toolchain you are using and the architecture.  For example, I use: make uImage ARCH=arm CROSS_COMPILE=/usr/bin/arm-linux-gnueabi-
 
You may use a different toolchain, I have just gotten into the habit of using the one above.

02alk...@gmail.com

unread,
May 7, 2016, 5:50:33 PM5/7/16
to BeagleBoard
hi 
i have problem to beaglebone black kernel compilation for git hub in linux 16.04, please suggest me what should i have to do? 

John Syne

unread,
May 7, 2016, 6:59:48 PM5/7/16
to beagl...@googlegroups.com
What is the problem?

Regards,
John




Reply all
Reply to author
Forward
0 new messages