chfakht
Posts: 30
Joined: Sat Jul 04, 2015 4:38 pm

Difference between linux kernel and the raspberry kernel

Sat Jan 30, 2016 3:21 pm

Hi,
can somoene tell me the differences between official linux kernel https://github.com/torvalds/linux and linux in raspberry repo https://github.com/raspberrypi/linux

Thanks :)

jdb
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 2393
Joined: Thu Jul 11, 2013 2:37 pm

Re: Difference between linux kernel and the raspberry kernel

Sat Jan 30, 2016 3:34 pm

The Raspberry Pi repo is used to build the kernel shipped with rpi-update and Raspbian.

The Raspberry Pi downstream kernel contains drivers and features not found in the upstream kernel. Things like the heavily modified USB driver, Videocore GPU (vchiq) driver and a few other bits and pieces are not upstreamable for a number of reasons.

Having a downstream kernel allows us to test experimental features or bug fixes on a much smaller turnaround time than would be the case if we'd have to submit upstream, wait for review and then wait for another point release of the kernel (~6 weeks or so).

Upstream Linux does work on a Pi, but several features available on the shipped kernel will be missing. This gap is growing steadily smaller now that the VC4 upstream driver has been merged in 4.5.
Rockets are loud.
https://astro-pi.org

User avatar
hansotten
Posts: 341
Joined: Fri Jul 13, 2012 6:01 am
Contact: Website

Re: Difference between linux kernel and the raspberry kernel

Sat Jan 30, 2016 3:35 pm

The RPi kernel is Linux kernel + Raspberry additions, like devices
http://duinorasp.hansotten.com for Raspberry Pi and Arduino and ESP8266
http://retro.hansotten.nl for retrocomputing with the 6502 cpu

User avatar
bstrobl
Posts: 97
Joined: Wed Jun 04, 2014 8:31 pm
Location: Germany

Re: Difference between linux kernel and the raspberry kernel

Sat Jan 30, 2016 7:00 pm

jdb wrote:The Raspberry Pi repo is used to build the kernel shipped with rpi-update and Raspbian.

The Raspberry Pi downstream kernel contains drivers and features not found in the upstream kernel. Things like the heavily modified USB driver, Videocore GPU (vchiq) driver and a few other bits and pieces are not upstreamable for a number of reasons.

Having a downstream kernel allows us to test experimental features or bug fixes on a much smaller turnaround time than would be the case if we'd have to submit upstream, wait for review and then wait for another point release of the kernel (~6 weeks or so).

Upstream Linux does work on a Pi, but several features available on the shipped kernel will be missing. This gap is growing steadily smaller now that the VC4 upstream driver has been merged in 4.5.
Will all features be upstreamed eventually?

jdb
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 2393
Joined: Thu Jul 11, 2013 2:37 pm

Re: Difference between linux kernel and the raspberry kernel

Sat Jan 30, 2016 7:08 pm

bstrobl wrote:
Will all features be upstreamed eventually?
This is an eventual goal, yes. Either by reimplementing features "the right way™" (as in drm/VC4) or improving upstream drivers to the point where there is no feature-set differential.
Rockets are loud.
https://astro-pi.org

Return to “General discussion”