Page 1 of 1

Re: Kernel recompilation [solved]

Posted: Sun May 06, 2012 9:10 am
by krischaplin
Hello All,

I'm sure that this must be documented somewhere - can someone please point me to where I can get and recompile the kernel source for the Debian distribution?  I could not see a good set of notes for this.  I need to turn on some kernel options, so will need to rebuild the kernel image.

Many thanks

Kris

Re: Kernel recompilation [solved]

Posted: Sun May 06, 2012 9:22 am
by shirro
The kernel source is on github at https://github.com/raspberrypi/linux

If you want to get the current kernel config you can zcat /proc/config.gz

Re: Kernel recompilation [solved]

Posted: Sun May 06, 2012 9:22 am
by dom

Re: Kernel recompilation [solved]

Posted: Sun May 06, 2012 9:35 am
by krischaplin
Thank you Shirro and Dom - I'll give that a go.

Regards

Kris

Re: Kernel recompilation [solved]

Posted: Sun May 06, 2012 11:26 am
by krischaplin
Thanks, that worked like a charm.  I've update the Wiki to add details about getting the .config from a running board.  That worked better for me than using the kernel cutdown defconfig.

Regards

Kris

Re: Kernel recompilation [solved]

Posted: Sun May 06, 2012 11:46 am
by pepedog
I would have thought this would give same result

make bcmrpi_defconfig

Re: Kernel recompilation [solved]

Posted: Sun May 06, 2012 10:41 pm
by shirro
@pepedog you would be trusting someone to keep bcmrpi_defconfig aligned with the current build and I don't think that is the case.

If you just want to change a couple of options it is much safer to zcat /proc/config.gz > .config to make sure you are starting from the same point as the kernel that currently ships.

Re: Kernel recompilation [solved]

Posted: Thu May 10, 2012 1:08 pm
by sleep lack
Help! Falling at the first hurdle just now:

$ git clone https://github.com/raspberrypi/linux.git
Initialized empty Git repository in /tmp/test/linux/.git/
error: The requested URL returned error: 403 while accessing https://github.com/raspberrypi/linux.git/info/refs

fatal: HTTP request failed

Re: Kernel recompilation [solved]

Posted: Thu May 10, 2012 2:29 pm
by krischaplin
Are you by any chance behind a firewall?

Re: Kernel recompilation [solved]

Posted: Thu May 10, 2012 2:36 pm
by krischaplin
Other valid modes if https:// does not work for you:

git clone http://github.com/raspberrypi/linux.git

git clone git://github.com/raspberrypi/linux.git

You may also be able to navigate with a browser to http://github.com/raspberrypi and download an archive also, but I have not tried that.

Just tried all three modes (https, http and git) and as of 15:30 today, they were working for me.

Regards

Kris

Re: Kernel recompilation [solved]

Posted: Thu May 10, 2012 3:44 pm
by sleep lack
Sorry, fixed now, was using an old version of Git (1.6.5). Upgraded to 1.7.2 and it's OK now.