krischaplin
Posts: 13
Joined: Fri Jan 13, 2012 1:52 pm

Re: Kernel recompilation [solved]

Sun May 06, 2012 9:10 am

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

shirro
Posts: 248
Joined: Tue Jan 24, 2012 4:54 am

Re: Kernel recompilation [solved]

Sun May 06, 2012 9:22 am

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

dom
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 5460
Joined: Wed Aug 17, 2011 7:41 pm
Location: Cambridge

Re: Kernel recompilation [solved]

Sun May 06, 2012 9:22 am


krischaplin
Posts: 13
Joined: Fri Jan 13, 2012 1:52 pm

Re: Kernel recompilation [solved]

Sun May 06, 2012 9:35 am

Thank you Shirro and Dom - I'll give that a go.

Regards

Kris

krischaplin
Posts: 13
Joined: Fri Jan 13, 2012 1:52 pm

Re: Kernel recompilation [solved]

Sun May 06, 2012 11:26 am

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

pepedog
Posts: 1043
Joined: Fri Oct 07, 2011 9:55 am

Re: Kernel recompilation [solved]

Sun May 06, 2012 11:46 am

I would have thought this would give same result

make bcmrpi_defconfig

shirro
Posts: 248
Joined: Tue Jan 24, 2012 4:54 am

Re: Kernel recompilation [solved]

Sun May 06, 2012 10:41 pm

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

sleep lack
Posts: 19
Joined: Thu Mar 08, 2012 3:33 pm

Re: Kernel recompilation [solved]

Thu May 10, 2012 1:08 pm

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

krischaplin
Posts: 13
Joined: Fri Jan 13, 2012 1:52 pm

Re: Kernel recompilation [solved]

Thu May 10, 2012 2:29 pm

Are you by any chance behind a firewall?

krischaplin
Posts: 13
Joined: Fri Jan 13, 2012 1:52 pm

Re: Kernel recompilation [solved]

Thu May 10, 2012 2:36 pm

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

sleep lack
Posts: 19
Joined: Thu Mar 08, 2012 3:33 pm

Re: Kernel recompilation [solved]

Thu May 10, 2012 3:44 pm

Sorry, fixed now, was using an old version of Git (1.6.5). Upgraded to 1.7.2 and it's OK now.

Return to “Troubleshooting”