-
Notifications
You must be signed in to change notification settings - Fork 16.3k
Description
Device: Sony Xperia Z2 Tablet Wi-Fi (castor_windy)
Android version: 11 (/e/OS v2.3)
Magisk version name: 30.6 (30600) (D)
Magisk version code: 30600
Unofficial /e/OS image from: https://community.e.foundation/t/unofficial-build-sony-xperia-z2-tablet-castor-castor-windy-for-e-os-r/60806
Kernel: 3.4.113-g322115d47d8 #1 SMP PREEMPT Wed Mar 6 08:02:42 UTC 2024 armv7l
Patching boot.img creates a log with several suspicious messages; I tried with both initial setup and also with SELinux disabled (setenforce 0)
[boot/compress.rs:288] invalid data after stream
[...]
Loading dtbs from [kernel_dtb]
Failed to patch
Failed to patch
Failed to patch
After flashing the patched image, the device gets stuck in a boot loop with Xperia logo. Suspicious messages:
magiskinit: [base/xwrap.rs:93] open '/proc/bootconfig': ENOENT: No such file or directory
magiskinit: [base/cxx_extern.rs:152] lstat '/sbin': ENOENT: No such file or directory
magiskinit: [base/files.rs:493] lstat '/sbin': ENOENT: No such file or directory
magiskinit: [base/xwrap.rs:103] openat 'init.rc': ENOENT: No such file or directory
[...]
init: Switching root to '/system'
init: Unable to move mount at '/magisk': No such file or directory
Attached requested files:
(PS: I already have root on the device (via adb root), I would have thought making the root accessible to apps would be trivial. Not so! Perhaps there would be a way be able to start magisk daemon by root on a running system?)
Relevant section from `last_kmsg`
[ 2.949034] msm8974-asoc-taiko fe02c000.sound: msm8974_asoc_machine_probe(): hdmi audio support present
[ 2.949134] Freeing init memory: 56K
[ 2.949208] platform fe02c000.sound: Driver msm8974-asoc-taiko requests probe deferral
[ 2.949603] spi spi0.2: Driver ks8851 requests probe deferral
[ 2.949962] magiskinit: [base/xwrap.rs:93] open '/proc/bootconfig': ENOENT: No such file or directory
[ 2.950197] magiskinit: Device config:
[ 2.950255] magiskinit: skip_initramfs=[false]
[ 2.950336] magiskinit: force_normal_boot=[false]
[ 2.950382] magiskinit: rootwait=[false]
[ 2.950433] magiskinit: slot=[]
[ 2.950510] magiskinit: dt_dir=[/proc/device-tree/firmware/android]
[ 2.950555] magiskinit: fstab_suffix=[]
[ 2.950599] magiskinit: hardware=[qcom]
[ 2.950672] magiskinit: hardware.platform=[]
[ 2.950716] magiskinit: emulator=[false]
[ 2.950761] magiskinit: partition_map=[[]]
[ 2.951585] magiskinit: RootFS Init
[ 2.951639] magiskinit: Setup data tmp
[ 2.953870] magiskinit: [base/cxx_extern.rs:152] lstat '/sbin': ENOENT: No such file or directory
[ 2.953961] magiskinit: [base/files.rs:493] lstat '/sbin': ENOENT: No such file or directory
[ 2.954449] magiskinit: [base/xwrap.rs:103] openat 'init.rc': ENOENT: No such file or directory
[ 2.954613] magiskinit: Setup Magisk tmp at /magisk/tmp
[ 2.964536] magiskinit: Found userdata: [mmcblk0p26] (179, 26)
[ 3.017983] EXT4-fs (mmcblk0p26): mounted filesystem with ordered data mode. Opts: (null)
[ 3.020722] magiskinit: preinit: .magisk/mirror/adb
[ 3.057673] magiskinit: SePatchStrategy: LEGACY
[ 3.057757] magiskinit: Hijack [/selinux_version]
[ 3.059282] magiskinit: Unmount [/data]
[ 3.065757] magiskinit: Unmount [/sys]
[ 3.065826] magiskinit: Unmount [/proc]
[ 3.147248] mmc0: SDIO interrupt recieved without function driver claiming an irq
[ 6.160905] init: init first stage started!
[ 6.161116] init: Unable to open /lib/modules, skipping module loading.
[ 6.162098] init: Using Android DT directory /proc/device-tree/firmware/android/
[ 6.163349] init: [libfs_mgr]ReadDefaultFstab(): failed to find device default fstab
[ 6.260621] magiskinit: Hijack [/sys/fs/selinux/load]
[ 6.260745] magiskinit: Hijack [/sys/fs/selinux/checkreqprot]
[ 6.272190] dwc3 f9200000.dwc3: dwc3_otg_init_sm: completion timeout
[ 6.277634] msm-dwc3 msm_dwc3: DWC3 in low power mode
[ 6.295712] init: DSU not detected, proceeding with normal boot
[ 6.299981] init: [libfs_mgr]superblock s_max_mnt_count:65535,/dev/block/platform/msm_sdcc.1/by-name/system
[ 6.303768] EXT4-fs (mmcblk0p23): mounted filesystem without journal. Opts: barrier=1,discard
[ 6.303911] init: [libfs_mgr]__mount(source=/dev/block/platform/msm_sdcc.1/by-name/system,target=/system,type=ext4)=0: Success
[ 6.304325] init: Switching root to '/system'
[ 6.304718] init: Unable to move mount at '/magisk': No such file or directory
[ 6.305106] init: InitFatalReboot: signal 6
[ 6.339179] init: #00 pc 000cb708 /init (UnwindStackCurrent::UnwindFromContext(unsigned int, void*)+84)
[...]
[ 6.340244] init: #13 pc 0011f07f /init (__real_libc_init(void*, void (*)(), int (*)(int, char**, char**), structors_array_t const*, bionic_tcb*)+402)
[ 6.340359] init: Reboot ending, jumping to kernel
[ 6.340408] Disabling non-boot CPUs ...
[ 6.345772] mdss_fb_release_all: try to close unopened fb 2! from init
[ 6.345856] mdss_fb_release_all: try to close unopened fb 1! from init
[ 6.345898] mdss_fb_release_all: try to close unopened fb 0! from init
[ 6.346376] Restarting system with command 'bootloader'.
[ 6.346449]
[ 6.346490] Restarting Linux version 3.4.113-g322115d47d8 (root@6e4af5820bcd) (gcc version 4.9.x 20150123 (prerelease) (GCC) ) #1 SMP PREEMPT Wed Mar 6 08:02:42 UTC 2024
[ 6.346490]
[ 6.346564] Going down for restart now
[ 6.347324] Calling SCM to disable SPMI PMIC arbiter