Jump to content

User:Operachi

From postmarketOS Wiki
GitLab logo This user's gitlab.com GitLab profile is @Operachi.
pmOS logo This user's pmOS GitLab profile is @Operachi.
Matrix logo This user is @operachi on matrix.org.
Codeberg logo This user's Codeberg profile is @Operachi.

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



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 but the MSM89x7 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 config work)/helpers/envkernel.sh
# cp $(pmbootstrap config aports)/device/testing/linux-postmarketos-qcom-msm89x7/config-postmarketos-qcom-msm89x7.aarch64 .output/.config

Fish shell users should use the envkernel.fish instead of envkernel.sh.

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 '78i dtb-$(CONFIG_ARCH_QCOM)\t+= msm8917-motorola-hannah.dtb' Makefile 
$ cd ../../../../../

Then run:

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

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