Jump to: navigation, search

Motorola Moto G4 Play (motorola-harpia)

2,044 bytes removed, 1 February
Add information relevant to mainline distribution in pmaports
| status_touch = Y
| status_screen = Y
| status_wifi = Y| status_xwayland = Y
| status_fde =
| status_mainline = Y
| status_battery =
| status_3d = N
| status_accel =
| status_audio =
| status_gps =
| status_mobiledata =
| status_sms = P
| status_calls =
| booting = yes
== Users owning this device ==
{{Device owners}}
== Contributors ==
* the-returning-voidSorixelle
== How to enter flash mode ==
Hold down POWER + Vol Down while booting to enter Flash Mode.
== Wifi Installation ==Configure your As some features are still in development for this device, the kernel and enable the prima wifi staging driver <needs to be built from source>pmbootstrap menuconfig motorola-harpiapmbootstrap build linux-motorola-harpia</source> On the device <source>apk add wcnss-wlan/etc/initusing envkernel.d/wcnss-wlan startTo do this, you'll need a copy of</source> == Firmware {Wifi/Modem} (TODO[https: package it) ==On the device extract firmware<source>cd /lib/firmwaremkdir postmarketoscd postmarketosmount master/mntcp -ap helpers/mnt/etc/firmware/* /lib/firmware/postmarketosumount /mntmount /dev/disk/by-partlabel/fsg /mntcp -ap /mnt/* /lib/firmware/postmarketosumount /mntmount /dev/disk/by-partlabel/modem /mntcp -ap /mnt/image/* /lib/firmware/postmarketosumount /mntmount /dev/disk/by-partlabel/persist /mntmkdir -p wlan/primacp -ap /mnt/ envkernel.dat wlan/prima/umount /mnt</source> Make a link in case sh], and the firmware path doesn't include [https:/lib/firmware/postmarketos <source>cd msm8916-s /lib/firmware/postmarketos/* /lib/firmwaremainline/linux latest kernel tree]</source>  == Modem ==Make the necesary links for qcom_rmtfs <source>cd /bootln -s /dev/disk/by-partlabel/modemst1 modem_fs1ln -s /dev/disk/by-partlabel/modemst2 modem_fs2ln -s /dev/disk/by-partlabel/fsg modem_fsg</source> Install necessary software<source>apk add modem-qcom-msm-downstream-common qcom_rmtfs libsmdpkt_wrapper libqipcrtr4msmipc ofono</source> Start the wcnss-wlan service to initialize the wifi card (helps the modem?)<source>/etc/initdevice.d/wcnss-wlan start</source> Start a tmux for multiple windowsOnce you have those, and you have run <code>tmuxpmbootstrap init</code> Start qcom_rmtfs on a terminal <source>export LD_PRELOAD=/usr/lib/preload/libqipcrtr4msmipc.soqcom_rmtfs -v</source> Start ofonod on another terminal <source>export LD_PRELOAD=/usr/lib/preload/libsmdpkt_wrapper.soofonod -d -n</source> Send an SMS!, run the following commands:
export PHONE_NUMBER="<number cd /path/to send sms to ex: 1234567890>"</code>linux/kernelsudo dbus-send --print-reply --system --dest=org.ofono source /path/to/gobi_0 org.ofono.Modemenvkernel.SetProperty string:"Powered" variant:boolean:"true"shsudo dbus-send --print-reply --system --dest=org.ofono /gobi_0 orgmake msm8916_defconfig pmos.ofono.Modem.GetPropertiesconfigsudo dbusmake -send --print-reply --system --dest=org.ofono /gobi_0 org.ofono.Modem.SetProperty string:"Online" variant:boolean:"true"j<cores>sudo dbus-send --system -pmbootstrap build -print-reply envkernel linux-postmarketos-dest=org.ofono /gobi_0 org.ofono.MessageManager.SendMessage string:"$PHONE_NUMBER" string:"Hello world! qcom-postmarketOS"msm8916
Receive SMS like this (might be spammy if you have other DBus apps):<code>sudo dbus-monitor</code>After that, proceed with [[Installation_guide#Installation_and_flashing|installation]] as usual.
== See also ==
* Device requires msm-refresher to get a display past the boot splash, even though <code>cat [https:/sys/ > tree/sysmaster/classdevice/graphics/fb0/mode</code> doesn't fix the displaydevice-motorola-harpia Device package]* Steps outlined for [[Troubleshootinghttps:display#Screen_is_blank_outside_of_Weston|Screen is blank outside of Weston]// Development kernel tree] is still required to get a display after the boot splash* Xorg starts with a blank display, to make the screen show ssh into the device and run <code>sudo osk-sdl -t</code> to fix display

Navigation menu