Kernel Cross Compilation on Wheezy

2 posts
by zax__ » 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 ( 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://, 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.

Posts: 3
Joined: Mon Oct 29, 2012 8:55 am
by zia_7575 » Sat Nov 03, 2012 7:27 am
Hey Steve,

Try this link

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.

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