[Xperia Z2 Tablet Android Development] bam80:
Can't install this ROM as primary: [SGP521][23.5.A.1.291][6.0.1] VMo RU:UA:KZ flashable-prerooted.zip

ROM seems to install, but stuck on infinite boot animation. Installation log:

Starting ADB sideload feature...
RECOVERY_SDCARD_ON_DATA := true
TW_NO_USB_STORAGE := true
TW_INCLUDE_CRYPTO := true
I:TW_BRIGHTNESS_PATH := /sys/class/leds/lcd-backlight/brightness
I:Found brightness file at '/sys/class/leds/lcd-backlight/brightness'
I:TWFunc::Set_Brightness: Setting brightness control to 255
I:LANG: en
sideload-host file size 1649560979 block size 65536
Installing zip file '/sideload/package.zip'
I:Zip does not contain SELinux file_contexts file in its root.
I:Legacy property environment initialized.
Archive: /sideload/package.zip
inflating: META-INF/com/google/android/update-binary2
installing samsung updater extensions

===========================================
| |
| *** Pre-Rooted Firmware *** |
| SGP521_23.5.A.1.291_1281-7867_R3D(1) |
| |
| Created with PRFCreator |
| by zxz0O0 |
| |
===========================================

Extracting files...
about to run program [/tmp/create-uuidlinks.sh] with 2 args
about to run program [/tmp/busybox] with 3 args
PRF is using UUIDs
Installing firmware. This might take a while...
umount: can't umount /system: Invalid argument
run_program: child exited with status 1
about to run program [/tmp/busybox] with 3 args
/dev/block/platform/msm_sdcc.1/by-uuid/F9CDF7BA-B834-A72A-F1C9-D6E0C0983896
I:TWFunc::Set_Brightness: Setting brightness control to 5
I:TWFunc::Set_Brightness: Setting brightness control to 0
about to run program [/sbin/sh] with 3 args
__bionic_open_tzdata: couldn't find any tzdata when looking for CST6CDT,M3.2.0,M11.1.0!
__bionic_open_tzdata: couldn't find any tzdata when looking for posixrules!
lrwxrwxrwx 1 root root 21 Dec 31 19:32 9DE21554-8B13-4E7D-B1E4-0371EB92073F -> /dev/block/mmcblk0p18
LTALabel flashed.
about to run program [/sbin/sh] with 3 args
__bionic_open_tzdata: couldn't find any tzdata when looking for CST6CDT,M3.2.0,M11.1.0!
__bionic_open_tzdata: couldn't find any tzdata when looking for posixrules!
lrwxrwxrwx 1 root root 21 Dec 31 19:32 DBE0B276-4DB9-4A0D-ACA7-00684DE9C467 -> /dev/block/mmcblk0p16
FOTAKernel flashed.
about to run program [/sbin/sh] with 3 args
__bionic_open_tzdata: couldn't find any tzdata when looking for CST6CDT,M3.2.0,M11.1.0!
__bionic_open_tzdata: couldn't find any tzdata when looking for posixrules!
lrwxrwxrwx 1 root root 21 Dec 31 19:32 2F50DBC8-FC14-93E4-4A9D-496FBA338B45 -> /dev/block/mmcblk0p14
package_extract_file: no rpm.elf in package
Kernel flashed.
about to run program [/tmp/busybox] with 3 args
/dev/block/platform/msm_sdcc.1/by-uuid/02CE263F-A65F-FFD7-3722-3FC2C04EC394
about to run program [/tmp/busybox] with 5 args
1213+1 records in
1213+1 records out
621352 bytes (606.8KB) copied, 0.065296 seconds, 9.1MB/s
about to run program [/tmp/busybox] with 3 args
/dev/block/platform/msm_sdcc.1/by-uuid/195FF692-DD9F-D3A5-7FA1-5A9E5669FF4B
about to run program [/tmp/busybox] with 5 args
2+0 records in
2+0 records out
1024 bytes (1.0KB) copied, 0.000680 seconds, 1.4MB/s
about to run program [/tmp/busybox] with 3 args
/dev/block/platform/msm_sdcc.1/by-uuid/90D8F5F9-BB0A-F840-A12C-E69B426DA474
about to run program [/tmp/busybox] with 5 args
2+0 records in
2+0 records out
1024 bytes (1.0KB) copied, 0.000669 seconds, 1.5MB/s
Modem flashed.
about to run program [/tmp/busybox] with 3 args
Cleaning up...
Finished!
Launching SuperSU and Recovery zip

umount: can't umount /system: Invalid argument
run_program: child exited with status 1
about to run program [/tmp/busybox] with 4 args
about to run program [/tmp/busybox] with 3 args
about to run program [/tmp/busybox] with 3 args
about to run program [/tmp/busybox] with 5 args
Archive: /tmp/SuperSU.zip
inflating: META-INF/MANIFEST.MF
inflating: META-INF/CERT.SF
inflating: META-INF/CERT.RSA
inflating: META-INF/com/google/android/update-binary
inflating: META-INF/com/google/android/updater-script
inflating: arm/chattr
inflating: arm/chattr.pie
inflating: arm/libsupol.so
inflating: arm/su
inflating: arm/sukernel
inflating: arm/supolicy
inflating: arm64/chromeos/futility
inflating: arm64/libsupol.so
inflating: arm64/su
inflating: arm64/sukernel
inflating: arm64/supolicy
inflating: armv7/chattr.pie
inflating: armv7/libsupol.so
inflating: armv7/su
inflating: armv7/sukernel
inflating: armv7/supolicy
inflating: common/000000deepsleep
inflating: common/99SuperSUDaemon
inflating: common/Superuser.apk
inflating: common/chromeos/kernel.bootloader
inflating: common/chromeos/kernel.config
inflating: common/chromeos/kernel.keyblock
inflating: common/chromeos/kernel_data_key.vbprivk
inflating: common/file_contexts_image
inflating: common/init.supersu.rc
inflating: common/install-recovery.sh
inflating: common/launch_daemonsu.sh
inflating: mips/chattr.pie
inflating: mips/libsupol.so
inflating: mips/su
inflating: mips/sukernel
inflating: mips/supolicy
inflating: mips64/libsupol.so
inflating: mips64/su
inflating: mips64/sukernel
inflating: mips64/supolicy
inflating: x64/libsupol.so
inflating: x64/su
inflating: x64/sukernel
inflating: x64/supolicy
inflating: x86/chattr
inflating: x86/chattr.pie
inflating: x86/libsupol.so
inflating: x86/su
inflating: x86/su.pie
inflating: x86/sukernel
inflating: x86/supolicy
about to run program [/tmp/SuperSU_extracted/META-INF/com/google/android/update-binary] with 4 args

*****************
SuperSU installer
*****************
- Mounting /system, /data and rootfs
mount: mounting /dev/block/mmcblk0p23 on /system failed: Device or resource busy
mount: mounting /dev/block/mmcblk0p23 on /system failed: Device or resource busy
mount: mounting /dev/block/mmcblk0p26 on /data failed: Device or resource busy
2+0 records in
2+0 records out
2 bytes (2B) copied, 0.007186 seconds, 278B/s
3+0 records in
3+0 records out
3 bytes (3B) copied, 0.004332 seconds, 692B/s
12+0 records in
12+0 records out
12 bytes (12B) copied, 0.004073 seconds, 2.9KB/s
3+0 records in
3+0 records out
3 bytes (3B) copied, 0.004609 seconds, 650B/s
/tmp/SuperSU_extracted/META-INF/com/google/android/update-binary: line 841: /system/toolbox: not found
- Extracting files
Archive: /tmp/SuperSU.zip
inflating: META-INF/MANIFEST.MF
inflating: META-INF/CERT.SF
inflating: META-INF/CERT.RSA
inflating: META-INF/com/google/android/update-binary
inflating: META-INF/com/google/android/updater-script
inflating: arm/chattr
inflating: arm/chattr.pie
inflating: arm/libsupol.so
inflating: arm/su
inflating: arm/sukernel
inflating: arm/supolicy
inflating: arm64/chromeos/futility
inflating: arm64/libsupol.so
inflating: arm64/su
inflating: arm64/sukernel
inflating: arm64/supolicy
inflating: armv7/chattr.pie
inflating: armv7/libsupol.so
inflating: armv7/su
inflating: armv7/sukernel
inflating: armv7/supolicy
inflating: common/000000deepsleep
inflating: common/99SuperSUDaemon
inflating: common/Superuser.apk
inflating: common/chromeos/kernel.bootloader
inflating: common/chromeos/kernel.config
inflating: common/chromeos/kernel.keyblock
inflating: common/chromeos/kernel_data_key.vbprivk
inflating: common/file_contexts_image
inflating: common/init.supersu.rc
inflating: common/install-recovery.sh
inflating: common/launch_daemonsu.sh
inflating: mips/chattr.pie
inflating: mips/libsupol.so
inflating: mips/su
inflating: mips/sukernel
inflating: mips/supolicy
inflating: mips64/libsupol.so
inflating: mips64/su
inflating: mips64/sukernel
inflating: mips64/supolicy
inflating: x64/libsupol.so
inflating: x64/su
inflating: x64/sukernel
inflating: x64/supolicy
inflating: x86/chattr
inflating: x86/chattr.pie
inflating: x86/libsupol.so
inflating: x86/su
inflating: x86/su.pie
inflating: x86/sukernel
inflating: x86/supolicy
(Android M policy compatibility mode)
supolicy v2.76 (ndk:armeabi-v7a) - Copyright (C) 2014-2016 - Chainfire

Patching policy ...
-permissive:adbd_socket=ok
-permissive:camera_socket=ok
................
- Success
- Detecting system compatibility
sukernel v2.76 (ndk:armeabi-v7a) - Copyright (C) 2014-2016 - Chainfire

Loading from [/dev/block/mmcblk0p14] ...
Could not find header
- System-less mode, boot image support required
- Creating image
Creating filesystem with parameters:
Size: 100663296
Block size: 4096
Blocks per group: 32768
Inodes per group: 6144
Inode size: 256
Journal blocks: 1024
Label:
Blocks: 24576
Block groups: 1
Reserved block group size: 7
Created filesystem with 11/6144 inodes and 1422/24576 blocks
/data/su.img: 11/6144 files (0.0% non-contiguous), 1422/24576 blocks
- Mounting image
mknod: /dev/block/loop0: File exists
- Creating paths
- Removing old files
- Placing files
rm: can't remove '/su/bin/su': No such file or directory
rm: can't remove '/su/bin/daemonsu': No such file or directory
rm: can't remove '/su/bin/supolicy_wrapped': No such file or directory
rm: can't remove '/su/lib/libsupol.so': No such file or directory
rm: can't remove '/su/bin/sukernel': No such file or directory
rm: can't remove '/data/SuperSU.apk': No such file or directory

******************
Boot image patcher
******************
- Finding boot image
--- Boot image: /dev/block/mmcblk0p14
sukernel v2.76 (ndk:armeabi-v7a) - Copyright (C) 2014-2016 - Chainfire

Loading from [/dev/block/mmcblk0p14] ...
Could not find header
- Extracting ramdisk
sukernel v2.76 (ndk:armeabi-v7a) - Copyright (C) 2014-2016 - Chainfire

Loading from [/dev/block/mmcblk0p14] ...
Could not find header
--- Failure, aborting

*************************
IMPORTANT NOTICES
*************************
First reboot may take a
few minutes. It can also
loop a few times. Do not
interrupt the process!
*************************

- Unmounting /system
- Done !
about to run program [/tmp/busybox] with 3 args
about to run program [/tmp/busybox] with 5 args
Archive: /tmp/dualrecovery.zip
creating: files/
inflating: files/adb.exe
inflating: files/AdbWinApi.dll
inflating: files/AdbWinUsbApi.dll
inflating: files/boot_twrp_recovery.sh
inflating: files/busybox
inflating: files/chargemon.sh
inflating: files/install_twrp_recovery.sh
inflating: files/recbox
inflating: files/recovery.twrp.cpio.lzma
inflating: install.bat
creating: META-INF/
creating: META-INF/com/
creating: META-INF/com/google/
creating: META-INF/com/google/android/
inflating: META-INF/com/google/android/update-binary
inflating: META-INF/com/google/android/updater-script
creating: RXSW/
creating: RXSW/Recovery/
inflating: RXSW/Recovery/boot_twrp_recovery.sh
inflating: RXSW/Recovery/busybox
inflating: RXSW/Recovery/chargemon.sh
inflating: RXSW/Recovery/install_twrp_recovery.sh
inflating: RXSW/Recovery/recbox
inflating: RXSW/Recovery/recovery.twrp.cpio.lzma
creating: RXSW/Root/
inflating: RXSW/Root/byeselinux.ko
creating: RXSW/Root/utils/
inflating: RXSW/Root/utils/busybox
inflating: RXSW/Root/utils/installbyeselinux.sh
inflating: RXSW/Root/utils/installmount.sh
inflating: RXSW/Root/utils/modulecrcpatch
inflating: RXSW/Root/wp_mod.ko
creating: RXSW/Script/
inflating: RXSW/Script/RXSW.sh
creating: RXSW/SuperSU/
inflating: RXSW/SuperSU/SuperSU.zip
about to run program [/tmp/dualrecovery_extracted/META-INF/com/google/android/update-binary] with 4 args

===================================
Installing RecRoot
Version 4.0.0 by Wolfbreak
about to run program [/sbin/busybox] with 3 args
===================================

Installing RecRoot...
about to run program [/tmp/RXSW.sh] with 1 args

Installing Root and Recovery...
minzip: Extracted file "/tmp/SuperSU/SuperSU.zip"
about to run program [/sbin/busybox] with 6 args
Archive: /tmp/SuperSU/SuperSU.zip
inflating: META-INF/com/google/android/update-binary
inflating: META-INF/com/google/android/updater-script
about to run program [/sbin/busybox] with 6 args

*****************
SuperSU installer
*****************
- Mounting /system, /data and rootfs
mount: mounting /dev/block/mmcblk0p23 on /system failed: Device or resource busy
mount: mounting /dev/block/mmcblk0p23 on /system failed: Device or resource busy
mount: mounting /dev/block/mmcblk0p26 on /data failed: Device or resource busy
2+0 records in
2+0 records out
2 bytes (2B) copied, 0.007307 seconds, 273B/s
3+0 records in
3+0 records out
3 bytes (3B) copied, 0.004548 seconds, 659B/s
12+0 records in
12+0 records out
12 bytes (12B) copied, 0.004516 seconds, 2.6KB/s
3+0 records in
3+0 records out
3 bytes (3B) copied, 0.005491 seconds, 546B/s
/tmp/SuperSU/META-INF/com/google/android/update-binary: line 841: /system/toolbox: not found
- Extracting files
mkdir: can't create directory 'supersu': File exists
Archive: /tmp/SuperSU/SuperSU.zip
inflating: META-INF/MANIFEST.MF
inflating: META-INF/CERT.SF
inflating: META-INF/CERT.RSA
inflating: META-INF/com/google/android/update-binary
inflating: META-INF/com/google/android/updater-script
inflating: arm/chattr
inflating: arm/chattr.pie
inflating: arm/libsupol.so
inflating: arm/su
inflating: arm/sukernel
inflating: arm/supolicy
inflating: arm64/chromeos/futility
inflating: arm64/libsupol.so
inflating: arm64/su
inflating: arm64/sukernel
inflating: arm64/supolicy
inflating: armv7/chattr.pie
inflating: armv7/libsupol.so
inflating: armv7/su
inflating: armv7/sukernel
inflating: armv7/supolicy
inflating: common/000000deepsleep
inflating: common/99SuperSUDaemon
inflating: common/Superuser.apk
inflating: common/chromeos/kernel.bootloader
inflating: common/chromeos/kernel.config
inflating: common/chromeos/kernel.keyblock
inflating: common/chromeos/kernel_data_key.vbprivk
inflating: common/file_contexts_image
inflating: common/init.supersu.rc
inflating: common/install-recovery.sh
inflating: common/launch_daemonsu.sh
inflating: mips/chattr.pie
inflating: mips/libsupol.so
inflating: mips/su
inflating: mips/sukernel
inflating: mips/supolicy
inflating: mips64/libsupol.so
inflating: mips64/su
inflating: mips64/sukernel
inflating: mips64/supolicy
inflating: x64/libsupol.so
inflating: x64/su
inflating: x64/sukernel
inflating: x64/supolicy
inflating: x86/chattr
inflating: x86/chattr.pie
inflating: x86/libsupol.so
inflating: x86/su
inflating: x86/su.pie
inflating: x86/sukernel
inflating: x86/supolicy
(Android M policy compatibility mode)
supolicy v2.76 (ndk:armeabi-v7a) - Copyright (C) 2014-2016 - Chainfire

Patching policy ...
-permissive:adbd_socket=ok
-permissive:camera_socket=ok
.........
- Success
- Detecting system compatibility
sukernel v2.76 (ndk:armeabi-v7a) - Copyright (C) 2014-2016 - Chainfire

Loading from [/dev/block/mmcblk0p14] ...
Could not find header
- System mode
- Disabling OTA survival
/tmp/supersu/armv7/chattr.pie: No such file or directory while trying to stat /system/bin/su
/tmp/supersu/armv7/chattr.pie: No such file or directory while trying to stat /system/xbin/su
/tmp/supersu/armv7/chattr.pie: No such file or directory while trying to stat /system/bin/.ext/.su
/tmp/supersu/armv7/chattr.pie: No such file or directory while trying to stat /system/sbin/su
/tmp/supersu/armv7/chattr.pie: No such file or directory while trying to stat /vendor/sbin/su
/tmp/supersu/armv7/chattr.pie: No such file or directory while trying to stat /vendor/bin/su
/tmp/supersu/armv7/chattr.pie: No such file or directory while trying to stat /vendor/xbin/su
/tmp/supersu/armv7/chattr.pie: No such file or directory while trying to stat /system/xbin/daemonsu
/tmp/supersu/armv7/chattr.pie: No such file or directory while trying to stat /system/xbin/sugote
/tmp/supersu/armv7/chattr.pie: No such file or directory while trying to stat /system/xbin/sugote_mksh
/tmp/supersu/armv7/chattr.pie: No such file or directory while trying to stat /system/xbin/supolicy
/tmp/supersu/armv7/chattr.pie: No such file or directory while trying to stat /system/xbin/ku.sud
/tmp/supersu/armv7/chattr.pie: No such file or directory while trying to stat /system/xbin/.ku
/tmp/supersu/armv7/chattr.pie: No such file or directory while trying to stat /system/xbin/.su
/tmp/supersu/armv7/chattr.pie: No such file or directory while trying to stat /system/lib/libsupol.so
/tmp/supersu/armv7/chattr.pie: No such file or directory while trying to stat /system/lib64/libsupol.so
/tmp/supersu/armv7/chattr.pie: No such file or directory while trying to stat /system/etc/install-recovery.sh
- Removing old files
rm: can't remove '/cache/su.img': No such file or directory
- Creating space
- Placing files
rm: can't remove '/system/bin/.ext/.su': No such file or directory
rm: can't remove '/system/xbin/su': No such file or directory
rm: can't remove '/system/xbin/daemonsu': No such file or directory
rm: can't remove '/system/xbin/supolicy': No such file or directory
rm: can't remove '/system/lib/libsupol.so': No such file or directory
rm: can't remove '/system/app/SuperSU/SuperSU.apk': No such file or directory
rm: can't remove '/system/etc/install-recovery.sh': No such file or directory
rm: can't remove '/system/bin/app_process_init': No such file or directory
rm: can't remove '/system/etc/init.d/99SuperSUDaemon': No such file or directory
/tmp/SuperSU/META-INF/com/google/android/update-binary: line 1386: can't create /system/etc/init.d/99SuperSUDaemon: nonexistent directory
chown: /system/etc/init.d/99SuperSUDaemon: No such file or directory
chown: /system/etc/init.d/99SuperSUDaemon: No such file or directory
chmod: /system/etc/init.d/99SuperSUDaemon: No such file or directory
- Restoring files
rm: can't remove '/system/app/Maps/Maps.apk': No such file or directory
rm: can't remove '/system/app/YouTube/YouTube.apk': No such file or directory
- Post-installation script
rm: can't remove '/system/toybox': No such file or directory
rm: can't remove '/system/toolbox': No such file or directory
- Unmounting /system
- Done !
unmount of /system failed; no such volume
about to run program [/sbin/busybox] with 4 args
about to run program [/sbin/busybox] with 3 args
about to run program [/tmp/install_twrp_recovery.sh] with 1 args
about to run program [/tmp/installbyeselinux.sh] with 1 args
mount: mounting /dev/block/mmcblk0p23 on /system failed: Device or resource busy
mount: mounting /dev/block/platform/msm_sdcc.1/by-name/system on /system failed: Device or resource busy

modulecrcpatch (by zxz0O0)

module_layout: patched to 0x2067C442
memcmp: not found
kallsyms_lookup_name: not found
__aeabi_unwind_cpp_pr0: match
call_usermodehelper_exec: not found
call_usermodehelper_setfns: not found
call_usermodehelper_setup: not found
printk: match

........

Stock mount does not exist. Creating dir and link
Installing of mount.sh finished

================================
Thanks for your Support of RXSW
================================

script succeeded: result was [/system]about to run program [/tmp/busybox] with 3 args
about to run program [/tmp/busybox] with 5 args
Archive: /tmp/Z2-6.0.1_570_bootloop_fix.zip
creating: META-INF/
creating: META-INF/com/
creating: META-INF/com/google/
creating: META-INF/com/google/android/
inflating: META-INF/com/google/android/update-binary
inflating: META-INF/com/google/android/updater-script
creating: system/
creating: system/etc/
creating: system/etc/firmware/
...........
inflating: system/usr/xperia_keyboard_dictionaries/en_US.zip
about to run program [/tmp/Z2-6.0.1_570_bootloop_fix_extracted/META-INF/com/google/android/update-binary] with 4 args
==================================
updating..
minzip: Extracted 293 file(s)
Done!!!
script succeeded: result was [Done!!!]
about to run program [/tmp/busybox] with 3 args
mount: mounting /dev/block/mmcblk0p26 on /data failed: Device or resource busy
run_program: child exited with status 111
about to run program [/tmp/busybox] with 4 args
about to run program [/tmp/busybox] with 3 args
about to run program [/tmp/flash_apps.sh] with 2 args
Error: Could not find busybox
run_program: child exited with status 1
script result was []
I:Updater process ended with RC=0
I:Legacy property environment disabled.
I:Install took 412 second(s).
I:Signaling child sideload process to exit.
sideload_host finished
I:Waiting for child sideload process to exit.
I:Set page: 'action_complete'
I:TWFunc::Set_Brightness: Setting brightness control to 255
I:operation_end - status=0

Any thoughts?

Thanks