rpi2-fedora-image-builder icon indicating copy to clipboard operation
rpi2-fedora-image-builder copied to clipboard

Kernel updates

Open bartmichu opened this issue 9 years ago • 9 comments

What is the best solution to kernel updates? dnf tries hard with kernels from the official repo but it won't work at the moment.

bartmichu avatar Jul 05 '15 05:07 bartmichu

Because the RPi kernel contains out of tree drivers, updates will need to come from the raspberrypi/firmware repo for now.

To handle the "dnf update" case, we could add exclude=kernel* to the dnf.conf so that it doesn't try to update the kernel packages.

Might be handy to write a script that would pull the new /boot contents from github, like "update-rpi-boot" or something. PRs welcome!

sjenning avatar Jul 07 '15 16:07 sjenning

@spartacus06 you being a RH guy, do you have any knowledge - or an educated guess - about RPi support landing into the tree any time soon?

bartmichu avatar Jul 07 '15 17:07 bartmichu

I have not looked closely to see what RPi is carrying out of tree and what the effort is to get those parts upstream.

A quick look, they have about 106 commits out of tree vs 4.1.1

$ git log v4.1.1..rpi/rpi-4.1.y | wc -l
106

Looking at the diff, they still have the majority of their device tree, arch platform/machine tree, and device drivers out of tree. A lot of work still left to do getting all that upstream :-/

They also have some commits in the tree which tune the kernel for the raspberry pi, such as disabling memory cgroups unless explicitly enabled on the cmdline, which would not be acceptable as-is upstream.

Looking at the silver lining though, it is nice that they continue to rebase :)

sjenning avatar Jul 07 '15 18:07 sjenning

Right, I'm not holding my breath then :) Thank you very much.

bartmichu avatar Jul 08 '15 05:07 bartmichu

@sjenning Any improvement on the situation with kernel 4.5?

Conan-Kudo avatar Mar 08 '16 05:03 Conan-Kudo

@Conan-Kudo

$ git log v4.5-rc6..rpi/rpi-4.5.y | wc -l
140
$ git diff --stat v4.5-rc6..rpi/rpi-4.5.y
...
401 files changed, 116468 insertions(+), 2899 deletions(-)

The out of tree changes are still quite significant, unfortunately.

sjenning avatar Mar 08 '16 15:03 sjenning

@sjenning AFAIK, it should be significant because the approach being done for upstream is not the same as what the RPi people are doing. According to Eric Anholt, he's doing work in a branch he forked from rpi2 4.5.y kernel.

Conan-Kudo avatar Mar 08 '16 16:03 Conan-Kudo

@Conan-Kudo that project seems to be largely focused on the graphics related components (drm/vc4). It doesn't seem like that tree is any closer to upstream.

sjenning avatar Mar 08 '16 17:03 sjenning

@sjenning it also has updated code for initializing the device (hence the -boot at the end of the name).

Conan-Kudo avatar Mar 13 '16 14:03 Conan-Kudo