Posts: 2
Joined: Mon Jan 29, 2018 11:28 am

kernel from kernel.org for raspberry pi 3

Mon Jan 29, 2018 11:45 am


I want to know if there is a way to get a kernel from kernel.org and put it on Raspberry pi 3. What i would need to do? Do i need a patch or not?

User avatar
Posts: 36177
Joined: Sun Jun 16, 2013 11:19 pm
Location: Basingstoke, UK
Contact: Website Twitter

Re: kernel from kernel.org for raspberry pi 3

Mon Jan 29, 2018 9:04 pm

You'll have more success with the forked kernel from https://github.com/raspberrypi/linux which includes all the pieces you need to boot a Raspberry Pi. That repo tracks the kernel.org kernel, but only 4.9.y & 4.14.y have all the support. You may get 4.15.y to boot but it's not blessed by the RPF folks.
Note: Having anything humorous in your signature is completely banned on this forum. Wear a tin-foil hat and you'll get a ban.

Any DMs sent on Twitter will be answered next month.

This is a doctor free zone.

Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 5969
Joined: Fri Jul 29, 2011 5:36 pm
Location: The unfashionable end of the western spiral arm of the Galaxy

Re: kernel from kernel.org for raspberry pi 3

Tue Jan 30, 2018 9:09 am

If you want to try upstream, you're mostly on your own when you run into issues. The downstream kernel works a lot better, especially when it comes to USB support.

Posts: 109
Joined: Mon Sep 19, 2016 5:24 pm
Location: Germany

Re: kernel from kernel.org for raspberry pi 3

Sat Feb 03, 2018 9:40 am

I dislike the elinux upstream guide because it's more confusing and complicated (U-Boot is not necessary). I suggest to use a default raspbian stretch lite, add the upstream DT blob and replace the kernel7.img with your build zImage. In order to use the upstream DT blob you will need to modify the config.txt like here. More helpful information: https://github.com/anholt/linux/wiki/Ra ... nvironment

I suggest to use the latest upstream kernel 4.15, but there are still missing features:
CPU frequency driver
GPIO expander
BCM2835 aux irqchip driver

In case of issues you can contact linux-rpi-kernel (moderated list).

Return to “Linux Kernel”