[Moto Maxx General] calsurferpunk:
Hey again [MENTION=5747496]bhb27[/MENTION]. I just finished incorporating all of those changes and updating other files (mainly in the fs. directory). It still just starts to boot, but quickly goes back to the bootloader again. Any other suggestions on what I could check to see what causes that?

I'm leaning towards a file partition change that it doesn't recognize now, but just a random guess. It still doesn't install the .zip either (still error 7) unless I modify the device check assert (making me think it can't find the build.prop (due to some other format/partition change).

Here's a link to my repos and the .zip in case it helps. Thanks again for the help but I understand if you don't want to get too involved at this point.

Repo: https://github.com/calsurferpunk

Zips: https://androidfilehost.com/user/?w=settings-dev-files&flid=218810

Update 1: I'm also checking to see if there was anything specific about the cm-14.1 to lineage-15.0 device tree and it looks like there might be a little more.

https://github.com/LineageOS/android_device_moto_shamu/compare/lineage-15.0

Update 2: It looks like everything should be good with the device setup as well. I'm wondering if it's more of a TWRP issue since I've seen references of needing a custom version to install AOSP 8.0/LOS 15 in other device forums.

Update 3: I noticed there were a couple kernel config flags missing according to:

https://source.android.com/devices/architecture/kernel/modular-kernels#core-kernel-requirements

CONFIG_IKCONFIG=y

CONFIG_IKCONFIG_PROC=y

Added those, but still no luck. I've been comparing device/kernel files locally in hopes of finding a key difference, but after seeing the kernel requirements match I'm still pretty lost.

Update 4: I was able to find the failed kernel boot log under:

/sys/fs/pstore/console-ramoops

It looks like the error preventing booting is from these lines (attached):

...

1.586240,2] init: init first stage started!

[ 1.586318,2] init: First stage mount skipped (missing/incompatible fstab in device tree)

[ 1.586345,2] init: Skipped setting INIT_AVB_VERSION (not in recovery mode)

...

[ 2.131621,0] ueventd: fixup /sys/devices/virtual/stm401/stm401_as/rv_6axis_update_rate 1008 1008 660

[ 2.131679,0] ueventd: fixup /sys/devices/virtual/stm401/stm401_as/rv_9axis_update_rate 1008 1008 660

[ 2.145657,0] drv260x driver found: drv2605.

[ 2.146248,0] drv260x probe work succeeded[ 2.246181,0] ueventd: Coldboot took 0.310706 seconds

[ 2.255910,3] init: Command 'wait_for_coldboot_done' action=wait_for_coldboot_done returned 0 took 262.268ms.

[ 2.255959,3] init: processing action (mix_hwrng_into_linux_rng)

[ 2.256179,3] init: Mixed 512 bytes from /dev/hw_random into /dev/urandom

[ 2.256212,3] init: processing action (set_mmap_rnd_bits)

[ 2.256263,3] init: Cannot open for reading: /proc/sys/vm/mmap_rnd_bits

[ 2.256287,3] init: Unable to set adequate mmap entropy value!

[ 2.256303,3] init: Security failure...

[ 2.256318,3] init: panic: rebooting to bootloader

[ 2.256336,3] init: Reboot start, reason: reboot, rebootTarget: bootloader

[ 2.256367,3] init: android::WriteStringToFile open failed: No such file or directory

[ 2.256391,3] init: Shutdown timeout: 6

[ 2.256422,3] init: terminating init services

[ 2.256476,3] init: Terminating running services took 0.000134532 seconds with remaining services:0

[ 2.256892,3] init: vold not running, skipping vold shutdown

[ 2.357286,3] init: powerctl_shutdown_time_ms:100:0

[ 2.357305,3] init: Reboot ending, jumping to kernel

[ 2.658702,0] mdss_fb_release_all: try to close unopened fb 1! from pid:1 name:init

[ 2.658715,0] mdss_fb_release_all: try to close unopened fb 0! from pid:1 name:init

[ 2.659433,0] Restarting system with command 'bootloader'.

[ 2.659442,0] Current task:init(1) Parent task:swapper/0(0)

[ 2.659457,0] Going down for restart now

[ 2.660756,0] Calling SCM to disable SPMI PMIC arbiter

It appears to be related to not finding the file partitions and this: https://lkml.org/lkml/2015/12/21/336 and https://lkml.org/lkml/2015/10/28/828.