shaik459
Posts: 2
Joined: Tue Jun 27, 2017 6:23 am

CROSS COMPILE KERNEL

Tue Jun 27, 2017 6:40 am

Hi,

I am new to raspberry pi. I recently bought "Raspbery PI 2 Model B V1.2." I am trying to build custom kernel for it. I want kernel 3.10.17 or any kernel below 3.13 on my PI. I tried downloading the kernel from "https://github.com/raspberrypi/linux" and also from kernel.org, when I try cross compiling them it gives me the below error,

Error:
make[1]: *** [kernel/bounds.s] Error 1
Makefile:835: recipe for target 'prepare0' failed
make: *** [prepare0] Error 2.

I don't get this error when i compile any kernel version above 4.*.
The steps i followed were,

1.wget to get the source
2.cd to source file
3.make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- bcm2835_defconfig
4.make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi-
:roll:


Thanks In advance.

jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 20266
Joined: Sat Jul 30, 2011 7:41 pm

Re: CROSS COMPILE KERNEL

Tue Jun 27, 2017 8:37 am

Sorry it's not an answer to your question, but why do you need such an old kernel version? It may be easier to try and figure out how to use newer kernel than fix the build problem.
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Please direct all questions to the forum, I do not do support via PM.

shaik459
Posts: 2
Joined: Tue Jun 27, 2017 6:23 am

Re: CROSS COMPILE KERNEL

Fri Jun 30, 2017 6:01 am

Hi,

Thank you for the reply. But why I need the old kernel is because my drivers work on that kernel only. I was successful in running my pi with the latest raspbian image. Is there any way i can cross compile any older kernel version between 2.6.32 to 3.17.

Please help me with the procedure. May I also know what are the kernel version raspberry pi supports.

Return to “Linux Kernel”

Who is online

Users browsing this forum: No registered users and 1 guest