The Mainline Kernel: Difference between revisions
Appearance
m Added link on how to build mainline for Xperia devices |
Nexplorer-3e (talk | contribs) merge the page to Mainlining_Guide Tag: New redirect |
||
(36 intermediate revisions by 17 users not shown) | |||
Line 1: | Line 1: | ||
#REDIRECT [[Mainlining_Guide]] | |||
== Introduction == | |||
Examples: | |||
* <code>qcom-msm8974-lge-nexus5-hammerhead.dts</code> | |||
* <code>qcom-msm8974-sony-xperia-honami.dts</code> | |||
* <code>qcom-apq8064-sony-xperia-yuga.dts</code> | |||
* <code>qcom-apq8064-asus-nexus7-flo.dts</code> | |||
When you don't have a result, try to find a <code>dts</code> file with the same chipset as your device (e.g. <code>msm8974</code>). Try to create a new one for your device based on that by [[How_to_create_a_patch_when_packaging_software|creating a patch]] for <code>linux-postmarketos-stable</code>. If there is not even a <code>dts</code> file for the same chipset, you need to create one from scratch (''no idea how to do that, good luck and please extend the wiki''). | |||
== | == Enable the mainline kernel for a new device == | ||
# | |||
# Set the kernel dependency to <code>linux-postmarketos</code> in the APKBUILD for the device package if you want to make it the default kernel ([https://github.com/postmarketOS/pmbootstrap/issues/91#issuecomment-318825285 more information]). | |||
# Add the name of the generated dtb file (without path or extension) to the <code>deviceinfo_dtb</code> file in the deviceinfo file. | |||
A good example of a device using a mainline kernel is the <code>device-nokia-n900</code> package. | |||
Latest revision as of 17:05, 19 June 2023
Redirect to:
Introduction
Examples:
qcom-msm8974-lge-nexus5-hammerhead.dts
qcom-msm8974-sony-xperia-honami.dts
qcom-apq8064-sony-xperia-yuga.dts
qcom-apq8064-asus-nexus7-flo.dts
When you don't have a result, try to find a dts
file with the same chipset as your device (e.g. msm8974
). Try to create a new one for your device based on that by creating a patch for linux-postmarketos-stable
. If there is not even a dts
file for the same chipset, you need to create one from scratch (no idea how to do that, good luck and please extend the wiki).
Enable the mainline kernel for a new device
- Set the kernel dependency to
linux-postmarketos
in the APKBUILD for the device package if you want to make it the default kernel (more information). - Add the name of the generated dtb file (without path or extension) to the
deviceinfo_dtb
file in the deviceinfo file.
A good example of a device using a mainline kernel is the device-nokia-n900
package.