zax__
Posts: 3
Joined: Mon Oct 29, 2012 8:55 am

Kernel Cross Compilation on Wheezy

Mon Oct 29, 2012 9:53 am

Hi all,

I'm running Chris Boot's Debian Wheezy on my Pi. Until recently I've used his kernel packages but now have a requirement to compile my own.

Chris has some nice instructions on his website for building an Arm Cross-Compiler (http://www.bootc.net/archives/2012/05/2 ... pberry-pi/). I've successfully followed these and now have a Pi compatible compiler on a PC. Next I've extracted the .config from my active Pi but the next steps elude me.

I assume I want the kernel from git://github.com/raspberrypi/linux.git, rather than the stock linux kernel?

Next, copy in the .config and run:
make ARCH=arm CROSS_COMPILE=path/to/armgcc oldconfig
make ARCH=arm CROSS_COMPILE=path/to/armgcc menuconfig

Normally I'd then run make-kpkg to compile the kernel into a Debian Package but I can't find any information on this step or any prerequisites to it. I'd really appreciate some guidance.

Steve

zia_7575
Posts: 11
Joined: Thu Oct 18, 2012 6:39 am

Re: Kernel Cross Compilation on Wheezy

Sat Nov 03, 2012 7:27 am

Hey Steve,

Try this link

http://wiki.gentoo.org/wiki/Raspberry_Pi

It will give u little bit more detail how to compile the resources and how to generate kernel.img.
I followed all this, everything goes fine. Kernel boots up successfully but it failed to load any module even keyboard and mouse are not working. Try this and share with me if u have the same problem.

Regards,
Zia

Return to “Debian”

Who is online

Users browsing this forum: No registered users and 3 guests