-
Notifications
You must be signed in to change notification settings - Fork 108
rpi-source seems to pull the wrong kernel version on Raspbian 2018-03-13? #40
Comments
Well, I just looked into /usr/share/doc/raspberrypi-bootloader/changelog.Debian.gz and it says "Breaks utilities which use firmware commit to determine kernel commit" right at the top. This probably explains the issue (?) Is there another way to find out the correct commit id to download 4.9.80 sources?
|
What's the top of that changelog file? That's where rpi-source looks. I have just tried the latest raspbian and it works for me:
|
The changelog snippet I posted was the start if I remember correctly. Yes, rpi-source worked fine with any Raspbian version that I tried so far, only on version 2018-03-13 it pulls the wrong kernel sources. |
The only reason I can think of is that it's a copy/paste error in the changelog. |
@notro
Ah and what, if I am looking for a way, to assure that kernel and headers are assured to match in any case, within a WireGuard install script, if we don't know which kernel the user installed and how (Raspbian repo + rpi-update at least). |
rpi-source was made at a time where there were no kernel header package for the Pi. There is now (Raspbian), but for some reason people still use rpi-source. Maybe because of all the howto's that use it, or that their distro doesn't have a kernel header package. In this day and age rpi-source is really a companion to rpi-update. This is what rpi-source does:
I haven't tried, but I believe it should handle the next branch, since it only cares about the commit hash. |
@notro
|
Don't really have an explanation for this. I'm trying to pull the kernel sources using rpi-source on Raspbian 2018-03-13 which uses Kernel 4.9.80. However, rpi-source somehow pulls Kernel version 4.14.24. I have used rpi-source with other Raspbian versions in the past, it always pulled the correct corresponding kernel version so far.
Here is what's happening (fresh Raspbian 2018-03-13 image with no changes):
Running kernel is 4.9.80
rpi-source pulling commit 80a14a56dacb7cc2b40d5f37d00bedb0ceace130
Kernel sources downloaded and extracted:
Looking at the version shows 4.14.24:
But we're running Raspbian 2018-03-13 with kernel 4.9.80:
The text was updated successfully, but these errors were encountered: