tom.k.cook
Posts: 47
Joined: Fri Jun 22, 2012 8:51 am

Kernel source for Raspbian image?

Thu Mar 09, 2017 5:48 pm

I've just downloaded 2017-03-02-raspbian-jessie.img. It's running kernel 4.4.50+. Where can I get the source for this kernel as built in the distribution?

The rpi-4.4.y branch of https://github.com/raspberrypi/linux doesn't include it - the HEAD of that branch is apparently still 4.4.48.

Is this tagged, or archived, or something, somewhere?

ktb
Posts: 1447
Joined: Fri Dec 26, 2014 7:53 pm

Re: Kernel source for Raspbian image?

Thu Mar 09, 2017 5:55 pm

Try this:
https://github.com/notro/rpi-source
https://github.com/notro/rpi-source/wiki

This question is asked and answered very frequently on this website.

EDIT: Sorry, I didn't read carefully. If you want a specific version of the entire kernel source, then you can use git checkout with a specific commit hash.

https://github.com/raspberrypi/linux/commits/rpi-4.4.y

DirkS
Posts: 10363
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: Kernel source for Raspbian image?

Thu Mar 09, 2017 7:56 pm

tom.k.cook wrote:The rpi-4.4.y branch of https://github.com/raspberrypi/linux doesn't include it - the HEAD of that branch is apparently still 4.4.48.
Are you sure? https://github.com/raspberrypi/linux/commits/rpi-4.4.y and https://github.com/raspberrypi/linux/co ... 232a7dc60d seems to suggest otherwise.

Return to “Raspberry Pi OS”