Contribute
There are many reasons you might want to put something into the kernel:
-
You’ve written some Raspberry Pi-specific code that you want everyone to benefit from
-
You’ve written a generic Linux kernel driver for a device and want everyone to use it
-
You’ve fixed a generic kernel bug
-
You’ve fixed a Raspberry Pi-specific kernel bug
For Raspberry Pi-specific changes or bug fixes, submit a pull request to the Raspberry Pi kernel. For general Linux kernel changes (for example, a new driver), submit a pull request to the upstream Linux kernel first. After the Linux kernel accepts your change, we’ll receive it.
Contribute to the Raspberry Pi Kernel
First, fork the Raspberry Pi kernel repository and clone it to your development device. You can then make your changes, test them, and commit them into your fork.
Then, submit a pull request containing your changes to the Raspberry Pi kernel repository. Raspberry Pi engineers review your contribution and suggest improvements. When approved, we merge in your changes, and they eventually make their way to the stable release of the Raspberry Pi kernel.
Contribute to the Linux kernel
First, clone the Linux kernel tree to your development device. You can then make your changes, test them, and commit them into your local tree.
When your change is ready you can submit it to the Linux kernel community. Linux kernel development happens on mailing lists, rather than on GitHub. For your change to become part of Linux, email it to the community as a patch. Follow Submitting patches: the essential guide to getting your code into the kernel and Linux kernel coding style in the Linux kernel documentation. Linux kernel contributors review your contribution and suggest improvements. When approved, they merge in your changes. Eventually, they make their way into a long-term release of the Linux kernel. After we’ve tested that long-term release for compatibility with the Raspberry Pi kernel, your changes make their way into a stable release of the Raspberry Pi kernel.