Jump to content

User:Operachi: Difference between revisions

From postmarketOS Wiki
Operachi (talk | contribs)
No edit summary
Operachi (talk | contribs)
m Remove branch option
(7 intermediate revisions by the same user not shown)
Line 4: Line 4:
{{User GitLab|Operachi}}
{{User GitLab|Operachi}}
{{User GitLab|Operachi|gitlab.postmarketos.org}}
{{User GitLab|Operachi|gitlab.postmarketos.org}}
{{User Matrix|@operachi:matrix.org}}
{{User Gitea|Operachi|codeberg.org}}
}}
}}
AboutMe Website: https://operachi061.github.io/aboutme
AboutMe Website: https://operachi061.github.io


== List of devices I own ==
== List of devices I own ==
{{My devices}}
{{My devices}}
{{Owns device|Motorola_Moto_E5_Plus_(motorola-hannah)| PostmarketOS |}}
{{Owns device|OnePlus_6_(oneplus-enchilada)| Android + PostmarketOS (Main PostmarketOS Phone) |}}
{{Owns device|Samsung_Galaxy_A5_2015_(samsung-a5)| PostmarketOS Server |}}  
{{Owns device|Samsung_Galaxy_A5_2015_(samsung-a5)| PostmarketOS Server |}}  
{{Owns device|Motorola_Moto_E5_Plus_(motorola-hannah)| Porting PostmarketOS |}}
{{Owns device|Xiaomi_Redmi_Note_8_Pro_(xiaomi-begonia)| Droidian Phosh |}}
{{Owns device|Xiaomi_Redmi_Note_8_Pro_(xiaomi-begonia)| Droidian Phosh |}}
{{Owns device|OnePlus_6_(oneplus-enchilada)| Android + PostmarketOS Plasma Mobile (Main PostmarketOS Phone) |}}
 
== Notes ==
There's port for Motorola Moto E5 Plus (hannah), but this model has 3 variants with different CPU's.
 
The official port is for MSM8937, because the kernel doesn't have the Device Tree file of the MSM8917 version.
If you want to install port for MSM8917, you must build kernel manually to lk2nd detect the device tree.
 
To do this, run:
<syntaxhighlight lang="shell-session">
$ git clone https://github.com/msm89x7-mainline/linux.git --depth 1
$ cd linux
$ source <pmbootstrap-folder>/helpers/envkernel.sh
# cp <pmports-folder>/device/testing/linux-postmarketos-qcom-msm89x7/config-postmarketos-qcom-msm89x7.aarch64 .output/.config
</syntaxhighlight>
While running the <code>source</code> command, if you are using Fish shell, replace the <code>envkernel.sh</code> with the <code>envkernel.fish</code>
 
Kernel doesn't have MSM8917 variant Device Tree file. To add this, run:
<syntaxhighlight lang="shell-session">
$ cd arch/arm64/boot/dts/qcom/
$ cp msm8937-motorola-hannah.dts msm8917-motorola-hannah.dts
$ sed -i 's/"msm8937.dtsi"/"msm8917.dtsi"/g; s/"qcom,msm8937"/"qcom,msm8917"/g; s/<QCOM_ID_MSM8937 0>/<QCOM_ID_MSM8917 0>/g' msm8917-motorola-hannah.dts
$ sed -i '74i dtb-$(CONFIG_ARCH_QCOM) += msm8917-motorola-hannah.dtb' Makefile
$ cd ../../../../../
$ curl https://pastebin.com/raw/AiVWj55z -o 001-msm8917-camera-bringup.patch
$ patch -p1 < 001-msm8917-camera-bringup.patch
</syntaxhighlight>
Then run:
<syntaxhighlight lang="shell-session">
$ make -j$(nproc)  
$ pmbootstrap build linux-postmarketos-qcom-msm89x7 --envkernel
</syntaxhighlight>
 
After building the kernel, install port from [[Generic_MSM89x7_(qcom-msm89x7)#Installation]].
 
[[Category:Guide]]

Revision as of 19:51, 19 March 2025

This user has ported postmarketOS to 1 device.
pmOS logo This user has a pmOS's GitLab profile.
Element logo This user has a Matrix account.
Codeberg logo This user has a Codeberg profile.

AboutMe Website: https://operachi061.github.io

List of devices I own

Device Notes
Motorola Moto E5 Plus (motorola-hannah) PostmarketOS
OnePlus 6 (oneplus-enchilada) Android + PostmarketOS (Main PostmarketOS Phone)
Samsung Galaxy A5 2015 (samsung-a5) PostmarketOS Server
Xiaomi Redmi Note 8 Pro (xiaomi-begonia) Droidian Phosh




Notes

There's port for Motorola Moto E5 Plus (hannah), but this model has 3 variants with different CPU's.

The official port is for MSM8937, because the kernel doesn't have the Device Tree file of the MSM8917 version. If you want to install port for MSM8917, you must build kernel manually to lk2nd detect the device tree.

To do this, run:

$ git clone https://github.com/msm89x7-mainline/linux.git --depth 1
$ cd linux
$ source <pmbootstrap-folder>/helpers/envkernel.sh
# cp <pmports-folder>/device/testing/linux-postmarketos-qcom-msm89x7/config-postmarketos-qcom-msm89x7.aarch64 .output/.config

While running the source command, if you are using Fish shell, replace the envkernel.sh with the envkernel.fish

Kernel doesn't have MSM8917 variant Device Tree file. To add this, run:

$ cd arch/arm64/boot/dts/qcom/
$ cp msm8937-motorola-hannah.dts msm8917-motorola-hannah.dts
$ sed -i 's/"msm8937.dtsi"/"msm8917.dtsi"/g; s/"qcom,msm8937"/"qcom,msm8917"/g; s/<QCOM_ID_MSM8937 0>/<QCOM_ID_MSM8917 0>/g' msm8917-motorola-hannah.dts
$ sed -i '74i dtb-$(CONFIG_ARCH_QCOM) += msm8917-motorola-hannah.dtb' Makefile 
$ cd ../../../../../
$ curl https://pastebin.com/raw/AiVWj55z -o 001-msm8917-camera-bringup.patch
$ patch -p1 < 001-msm8917-camera-bringup.patch

Then run:

$ make -j$(nproc) 
$ pmbootstrap build linux-postmarketos-qcom-msm89x7 --envkernel

After building the kernel, install port from Generic_MSM89x7_(qcom-msm89x7)#Installation.