[WIP ROM][UNOFFICIAL][owens] LineageOS 15.1 for Moto E4 Plus (Qualcomm)

Status
Not open for further replies.

FlagersXDA

Member
May 15, 2016
44
29
0
This project is a work in progress. I have gotten past the beginning stages of porting LineageOS 15.1 to Owens. Slowly ironing out the build issues. Thank you. I suck at git, so I will eventually upload all of my progress in one commit because I haven't been keeping track.

XDA:DevDB Information
LineageOS 15.1 for Moto E4 Plus (owens), ROM for the Moto E4 Plus

Contributors
FlagersXDA
ROM OS Version: 8.x Oreo
ROM Kernel: Linux 3.x
Based On: Lineage OS

Sources
Device Tree - https://github.com/flagersinc/android_device_motorola_owens-1
Kernel Source- https://github.com/flagersinc/android_kernel_motorola_msm8937
Vendor Blobs - https://github.com/flagersinc/proprietary_vendor_motorola

Version Information
Status: Snapshot

Created 2018-11-20
Last Updated 2018-11-20

EDIT:Added Device Tree, Kernel Source, and Vendor Blobs
 
Last edited:

FlagersXDA

Member
May 15, 2016
44
29
0
I used your condensed sources because they'd be easier to work on in the long run. I will be posting it to Github soon, however during building I am getting this error:
[979/979] including vendor/qcom/opensource/dataservices/Android.mk ...
hardware/qcom/display-caf/msm8996/libcopybit/../common.mk: error: copybit.msm8937 (SHARED_LIBRARIES android-arm) missing libmemalloc (SHARED_LIBRARIES android-arm)
You can set ALLOW_MISSING_DEPENDENCIES=true in your environment if this is intentional, but that may defer real problems until later in the build.
hardware/qcom/display-caf/msm8996/sdm/libs/hwc/../../../common.mk: error: hwcomposer.msm8937 (SHARED_LIBRARIES android-arm) missing libmemalloc (SHARED_LIBRARIES android-arm)
You can set ALLOW_MISSING_DEPENDENCIES=true in your environment if this is intentional, but that may defer real problems until later in the build.
build/make/core/main.mk:850: error: exiting from previous errors.
22:33:42 ckati failed with: exit status 1
 

FlagersXDA

Member
May 15, 2016
44
29
0
Right on! Glad to see other ppl picking up the pieces.
All I've done so far is done the necessary CM to Lineage rebrands and changes to apply the commit done to the Cedric Oreo device sources (https://github.com/Sohamlad7/androi...mmit/dc1f305971b232cece51705c04ec4d8a3dad2a08) to the Owens device sources.
I didn't and still done expect it to build properly for a while.
I added my current sources to the first post if you want to take a look, it still doesn't build properly so take it with a grain of salt lol.
 
Last edited:
  • Like
Reactions: bcrichster

bcrichster

Senior Member
Jun 6, 2013
1,218
833
143
All I've done so far is done the necessary CM to Lineage rebrands and changes to apply the commit done to the Cedric Oreo device sources (https://github.com/Sohamlad7/androi...mmit/dc1f305971b232cece51705c04ec4d8a3dad2a08) to the Owens device sources.
I didn't and still done expect it to build properly for a while.
I added my current sources to the first post if you want to take a look, it still doesn't build properly so take it with a grain of salt lol.
Right on.. So no zips yet. Did'ja ever get that tree to build Nougat and boot? I couldn't.. I was close on that tree but something was still broken because it'd build, just never booted so I went back to my other owens device tree, the one with 3 main folders in one. Hope that helps. JasonM has some tree updates I'm likely port, helps the govs and stuff

Sent from my Moto E (4) Plus using Tapatalk
 
Last edited:

FlagersXDA

Member
May 15, 2016
44
29
0
For now I still don't get a .zip, however we may be close. I hope that @CodeZero, or Sohamlad7 on GitHub can maybe help us port this. Hopefully we can increase the longevity of this device.

EDIT 11/23/2018: I've worked on the device trees some more and the vendor stuff and have been gaining leads. Most of my commits are ports from the Cedric trees. They seems to be progressing the build past those errors. :)
 
Last edited:

FlagersXDA

Member
May 15, 2016
44
29
0
So you gave up on Oreo/15.1?

Might it be easier to get that working first (fewer changes from N)?
Honestly, if we get done with Pie first, it may be easier to back port these changes to Oreo.
EDIT: Made another commit that may get rid of a few build errors.
1. Condensed all the vendor trees "Owens, msm8937-common, qcom318-32" into one owens tree.
2. Copied all non existing vendor blobs from Cedric vendor trees to avoid build errors

For now this is what we're dealing with:
$ make -j4
build/make/core/combo/TARGET_linux-arm.mk:43: warning: cortex-a53 is armv8-a.
build/make/core/combo/TARGET_linux-arm.mk:45: warning: TARGET_ARCH_VARIANT, armv7-a-neon, ignored! Use armv8-a instead.
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=9
LINEAGE_VERSION=16.0-20181123-UNOFFICIAL-owens
TARGET_PRODUCT=lineage_owens
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv8-a
TARGET_CPU_VARIANT=cortex-a53
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=darwin
HOST_OS_EXTRA=Darwin-18.0.0-x86_64-10.14
HOST_BUILD_TYPE=release
BUILD_ID=PPR2.181005.003
OUT_DIR=/Volumes/build/WORK_DIR/out
PRODUCT_SOONG_NAMESPACES= hardware/qcom/audio-caf/msm8996 hardware/qcom/display-caf/msm8996 hardware/qcom/media-caf/msm8996
============================================
ninja: no work to do.
ninja: no work to do.
device/motorola/owens/device.mk was modified, regenerating...
build/make/core/combo/TARGET_linux-arm.mk:43: warning: cortex-a53 is armv8-a.
build/make/core/combo/TARGET_linux-arm.mk:45: warning: TARGET_ARCH_VARIANT, armv7-a-neon, ignored! Use armv8-a instead.
device/motorola/owens/device.mk was modified, regenerating...
build/make/core/combo/TARGET_linux-arm.mk:43: warning: cortex-a53 is armv8-a.
build/make/core/combo/TARGET_linux-arm.mk:45: warning: TARGET_ARCH_VARIANT, armv7-a-neon, ignored! Use armv8-a instead.
[2/977] including art/Android.mk ...
art/build/Android.common.mk:50: warning: unsupported HOST_ARCH=x86_64
[594/977] including system/sepolicy/Android.mk ...
system/sepolicy/Android.mk:79: warning: BOARD_SEPOLICY_VERS not specified, assuming current platform version
system/sepolicy/Android.mk:89: warning: Be careful when using the SELINUX_IGNORE_NEVERALLOWS flag. It does not work in user builds and using it will not stop you from failing CTS.
[977/977] including vendor/qcom/opensource/dataservices/Android.mk ...
art/build/Android.gtest.mk:121: warning: overriding commands for target `Uncompressed'
art/build/Android.gtest.mk:101: warning: ignoring old commands for target `Uncompressed'
build/make/core/Makefile:28: warning: overriding commands for target `/Volumes/build/WORK_DIR/out/target/product/owens/system/lib/hw/fingerprint.msm8937.so'
build/make/core/base_rules.mk:412: warning: ignoring old commands for target `/Volumes/build/WORK_DIR/out/target/product/owens/system/lib/hw/fingerprint.msm8937.so'
build/make/core/Makefile:28: warning: overriding commands for target `/Volumes/build/WORK_DIR/out/target/product/owens/system/vendor/lib/libOmxVdec.so'
build/make/core/base_rules.mk:412: warning: ignoring old commands for target `/Volumes/build/WORK_DIR/out/target/product/owens/system/vendor/lib/libOmxVdec.so'
ninja: error: 'vendor/motorola/owens/proprietary/vendor/lib/libOmxVdec.so', needed by '/Volumes/build/WORK_DIR/out/target/product/owens/system/vendor/lib/libOmxVdec.so', missing and no known rule to make it
18:49:32 ninja failed with: exit status 1

#### failed to build some targets (05:39 (mm:ss)) ####

 
Last edited:
  • Like
Reactions: bcrichster

bcrichster

Senior Member
Jun 6, 2013
1,218
833
143
Honestly, if we get done with Pie first, it may be easier to back port these changes to Oreo.
EDIT: Made another commit that may get rid of a few build errors.
1. Condensed all the vendor trees "Owens, msm8937-common, qcom318-32" into one owens tree.
2. Copied all non existing vendor blobs from Cedric vendor trees to avoid build errors

For now this is what we're dealing with:
$ make -j4
build/make/core/combo/TARGET_linux-arm.mk:43: warning: cortex-a53 is armv8-a.
build/make/core/combo/TARGET_linux-arm.mk:45: warning: TARGET_ARCH_VARIANT, armv7-a-neon, ignored! Use armv8-a instead.
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=9
LINEAGE_VERSION=16.0-20181123-UNOFFICIAL-owens
TARGET_PRODUCT=lineage_owens
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv8-a
TARGET_CPU_VARIANT=cortex-a53
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=darwin
HOST_OS_EXTRA=Darwin-18.0.0-x86_64-10.14
HOST_BUILD_TYPE=release
BUILD_ID=PPR2.181005.003
OUT_DIR=/Volumes/build/WORK_DIR/out
PRODUCT_SOONG_NAMESPACES= hardware/qcom/audio-caf/msm8996 hardware/qcom/display-caf/msm8996 hardware/qcom/media-caf/msm8996
============================================
ninja: no work to do.
ninja: no work to do.
device/motorola/owens/device.mk was modified, regenerating...
build/make/core/combo/TARGET_linux-arm.mk:43: warning: cortex-a53 is armv8-a.
build/make/core/combo/TARGET_linux-arm.mk:45: warning: TARGET_ARCH_VARIANT, armv7-a-neon, ignored! Use armv8-a instead.
device/motorola/owens/device.mk was modified, regenerating...
build/make/core/combo/TARGET_linux-arm.mk:43: warning: cortex-a53 is armv8-a.
build/make/core/combo/TARGET_linux-arm.mk:45: warning: TARGET_ARCH_VARIANT, armv7-a-neon, ignored! Use armv8-a instead.
[2/977] including art/Android.mk ...
art/build/Android.common.mk:50: warning: unsupported HOST_ARCH=x86_64
[594/977] including system/sepolicy/Android.mk ...
system/sepolicy/Android.mk:79: warning: BOARD_SEPOLICY_VERS not specified, assuming current platform version
system/sepolicy/Android.mk:89: warning: Be careful when using the SELINUX_IGNORE_NEVERALLOWS flag. It does not work in user builds and using it will not stop you from failing CTS.
[977/977] including vendor/qcom/opensource/dataservices/Android.mk ...
art/build/Android.gtest.mk:121: warning: overriding commands for target `Uncompressed'
art/build/Android.gtest.mk:101: warning: ignoring old commands for target `Uncompressed'
build/make/core/Makefile:28: warning: overriding commands for target `/Volumes/build/WORK_DIR/out/target/product/owens/system/lib/hw/fingerprint.msm8937.so'
build/make/core/base_rules.mk:412: warning: ignoring old commands for target `/Volumes/build/WORK_DIR/out/target/product/owens/system/lib/hw/fingerprint.msm8937.so'
build/make/core/Makefile:28: warning: overriding commands for target `/Volumes/build/WORK_DIR/out/target/product/owens/system/vendor/lib/libOmxVdec.so'
build/make/core/base_rules.mk:412: warning: ignoring old commands for target `/Volumes/build/WORK_DIR/out/target/product/owens/system/vendor/lib/libOmxVdec.so'
ninja: error: 'vendor/motorola/owens/proprietary/vendor/lib/libOmxVdec.so', needed by '/Volumes/build/WORK_DIR/out/target/product/owens/system/vendor/lib/libOmxVdec.so', missing and no known rule to make it
18:49:32 ninja failed with: exit status 1

#### failed to build some targets (05:39 (mm:ss)) ####

make -j4 ..needs be "make bacon -j4" or "mka bacon -j4". Bit I usually try to build the boot.img / kernel FIRST with " mka bootimage -j4" ..hope that helps
 

FlagersXDA

Member
May 15, 2016
44
29
0
Feel free to suggest commits to the repo, I'd love it lol.

EDIT: Fixed the above mentioned error. Was a typo that I looked over, no wonder nobody else had that issue lol.
 
Last edited:

ST Dog

Senior Member
Jun 22, 2013
1,122
341
0
Flagers,

You look at hector99's code for DotOS 2.5 on nicklaus?
It builds and boots. Might be helpful for your owens build.
 

hetor99

Senior Member
Sep 2, 2015
391
191
0
Flagers,

You look at hector99's code for DotOS 2.5 on nicklaus?
It builds and boots. Might be helpful for your owens build.
maybe i could help, but the code for nicklaus and owens is very different, basically, the trees are different also i have the mediatek variant, so i cant debug logs or test changes as soon i made.
 
  • Like
Reactions: soaringowl2145
Status
Not open for further replies.