otniel
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

Hello!

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
DougieLawson
Posts: 33785
Joined: Sun Jun 16, 2013 11:19 pm
Location: Basingstoke, UK
Contact: Website

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.
Microprocessor, Raspberry Pi & Arduino Hacker
Mainframe database troubleshooter
MQTT Evangelist
Twitter: @DougieLawson

2012-18: 1B*5, 2B*2, B+, A+, Z, ZW, 3Bs*3, 3B+

Any DMs sent on Twitter will be answered next month.

ShiftPlusOne
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 5303
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.
https://elinux.org/RPi_Upstream_Kernel_Compilation

swahren
Posts: 23
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
Bluetooth
BCM2835 aux irqchip driver

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

Return to “Linux Kernel”

Who is online

Users browsing this forum: No registered users and 3 guests