mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-29 13:04:27 +01:00
linux kernel update: procedure is only for old patchset
This commit is contained in:
22
README.adoc
22
README.adoc
@@ -2600,6 +2600,18 @@ git log | grep -E ' Linux [0-9]+\.' | head
|
|||||||
|
|
||||||
==== Update the Linux kernel
|
==== Update the Linux kernel
|
||||||
|
|
||||||
|
During update all you kernel modules may break since the kernel API is not stable.
|
||||||
|
|
||||||
|
They are usually trivial breaks of things moving around headers or to sub-structs.
|
||||||
|
|
||||||
|
The userland, however, should simply not break, as Linus enforces strict backwards compatibility of userland interfaces.
|
||||||
|
|
||||||
|
This backwards compatibility is just awesome, it makes getting and running the latest master painless.
|
||||||
|
|
||||||
|
This also makes this repo the perfect setup to develop the Linux kernel.
|
||||||
|
|
||||||
|
When we had a local patchset on top of mainline, this is how we updated it:
|
||||||
|
|
||||||
....
|
....
|
||||||
# Last point before out patches.
|
# Last point before out patches.
|
||||||
last_mainline_revision=v4.15
|
last_mainline_revision=v4.15
|
||||||
@@ -2628,16 +2640,6 @@ git commit -m "linux: update to ${next_mainline_revision}"
|
|||||||
git push
|
git push
|
||||||
....
|
....
|
||||||
|
|
||||||
During update all you kernel modules may break since the kernel API is not stable.
|
|
||||||
|
|
||||||
They are usually trivial breaks of things moving around headers or to sub-structs.
|
|
||||||
|
|
||||||
The userland, however, should simply not break, as Linus enforces strict backwards compatibility of userland interfaces.
|
|
||||||
|
|
||||||
This backwards compatibility is just awesome, it makes getting and running the latest master painless.
|
|
||||||
|
|
||||||
This also makes this repo the perfect setup to develop the Linux kernel.
|
|
||||||
|
|
||||||
==== Downgrade the Linux kernel
|
==== Downgrade the Linux kernel
|
||||||
|
|
||||||
The kernel is not forward compatible, however, so downgrading the Linux kernel requires downgrading the userland too to the latest Buildroot branch that supports it.
|
The kernel is not forward compatible, however, so downgrading the Linux kernel requires downgrading the userland too to the latest Buildroot branch that supports it.
|
||||||
|
|||||||
Reference in New Issue
Block a user