[Nexus 4 Android Development] voron00:
I tried to get some debug from magisk canary build but the only thing i could get was only magiskinit kernel cmdline:

02-08 00:04:40.495 0 0 I : ALSA device list:
02-08 00:04:40.495 0 0 I : #0: apq8064-tabla-snd-card
02-08 00:04:40.495 0 0 W : Warning: unable to open an initial console.
02-08 00:04:40.496 0 0 I : Freeing init memory: 1036K
02-08 00:04:40.497 0 0 W magiskinit: cmdline: [console]=[ttyHSL0,115200,n8]
02-08 00:04:40.497 0 0 W magiskinit: cmdline: [androidboot.hardware]=[mako]
02-08 00:04:40.498 0 0 W magiskinit: cmdline: [lpj]=[67677]
02-08 00:04:40.498 0 0 W magiskinit: cmdline: [user_debug]=[31]
02-08 00:04:40.498 0 0 W magiskinit: cmdline: [vmalloc]=[340M]
02-08 00:04:40.498 0 0 W magiskinit: cmdline: [buildvariant]=[userdebug]
02-08 00:04:40.498 0 0 W magiskinit: cmdline: [uart_console]=[enable]
02-08 00:04:40.498 0 0 W magiskinit: cmdline: [lcd_maker_id]=[primary]
02-08 00:04:40.498 0 0 W magiskinit: cmdline: [lge.hreset]=[off]
02-08 00:04:40.498 0 0 W magiskinit: cmdline: [lge.reset]=[mode_reset]
02-08 00:04:40.498 0 0 W magiskinit: cmdline: [gpt]=[enable]
02-08 00:04:40.498 0 0 W magiskinit: cmdline: [lge.kcal]=[0|0|0|x]
02-08 00:04:40.498 0 0 W magiskinit: cmdline: [lge.rev]=[rev_11]
02-08 00:04:40.498 0 0 W magiskinit: cmdline: [androidboot.emmc]=[true]
02-08 00:04:40.499 0 0 W magiskinit: cmdline: [androidboot.serialno]=[0227c45c0f8a4dcc]
02-08 00:04:40.499 0 0 W magiskinit: cmdline: [androidboot.bootloader]=[MAKOZ30f]
02-08 00:04:40.499 0 0 W magiskinit: cmdline: [androidboot.baseband]=[mdm]
02-08 00:04:40.499 0 0 W magiskinit: cmdline: [bootreason]=[reboot]
02-08 00:04:40.499 0 0 W magiskinit: skip_initramfs=[0]
02-08 00:04:40.499 0 0 W magiskinit: force_normal_boot=[0]
02-08 00:04:40.499 0 0 W magiskinit: slot=[]
02-08 00:04:40.499 0 0 W magiskinit: dt_dir=[/proc/device-tree/firmware/android]
02-08 00:04:40.500 0 0 W magiskinit: Unmount [/proc]
02-08 00:04:40.560 0 0 W magiskinit: Unmount [/sys]
02-08 00:04:40.563 0 0 I init : init first stage started!
02-08 00:04:40.565 0 0 I init : Using Android DT directory /proc/device-tree/firmware/android/
02-08 00:04:40.566 0 0 I init : [libfs_mgr]ReadDefaultFstab(): failed to find device default fstab
02-08 00:04:40.618 0 0 I : msm_otg msm_otg: chg_type = USB_SDP_CHARGER
02-08 00:04:40.619 0 0 I : msm_otg msm_otg: Avail curr from USB = 500
02-08 00:04:40.619 0 0 I : msm_otg msm_otg: current: 0 -> 500 (mA)
02-08 00:04:40.619 0 0 I pm_power_set_property_usb: usb_target_ma 0
02-08 00:04:40.622 0 0 I : msm_hsusb msm_hsusb: CI13XXX_CONTROLLER_RESET_EVENT received
02-08 00:04:40.694 0 0 I init : [libfs_mgr]superblock s_max_mnt_count:65535,/dev/block/platform/msm_sdcc.1/by-name/system
02-08 00:04:40.698 0 0 I EXT4-fs (mmcblk0p21): mounted filesystem without journal. Opts:
02-08 00:04:40.698 0 0 I init : [libfs_mgr]__mount(source=/dev/block/platform/msm_sdcc.1/by-name/system,target=/system,type=ext4)=0: Success
02-08 00:04:40.698 0 0 I init : Switching root to '/system'
02-08 00:04:40.705 0 0 I init : Skipped setting INIT_AVB_VERSION (not in recovery mode)
02-08 00:04:40.900 0 0 I init : Loading SELinux policy
02-08 00:04:40.919 0 0 I unplug_check_worker: Stopping Unplug Check Worker USB == 500mA
02-08 00:04:40.921 0 0 D SELinux : 2048 avtab hash slots, 41978 rules.
02-08 00:04:40.951 0 0 D SELinux : 2048 avtab hash slots, 41978 rules.
02-08 00:04:40.951 0 0 D SELinux : 1 users, 4 roles, 2061 types, 0 bools, 1 sens, 1024 cats
02-08 00:04:40.951 0 0 D SELinux : 97 classes, 41978 rules
02-08 00:04:40.955 0 0 I SELinux : Permission transition in class filesystem not defined in policy.
02-08 00:04:40.955 0 0 I SELinux : Permission swapon in class file not defined in policy.
02-08 00:04:40.956 0 0 I SELinux : Permission swapon in class dir not defined in policy.
02-08 00:04:40.956 0 0 I SELinux : Permission swapon in class lnk_file not defined in policy.
02-08 00:04:40.956 0 0 I SELinux : Permission swapon in class chr_file not defined in policy.
02-08 00:04:40.956 0 0 I SELinux : Permission swapon in class blk_file not defined in policy.
02-08 00:04:40.956 0 0 I SELinux : Permission swapon in class sock_file not defined in policy.
02-08 00:04:40.956 0 0 I SELinux : Permission swapon in class fifo_file not defined in policy.
02-08 00:04:40.956 0 0 I SELinux : Permission recv_msg in class socket not defined in policy.
02-08 00:04:40.956 0 0 I SELinux : Permission send_msg in class socket not defined in policy.
02-08 00:04:40.956 0 0 I SELinux : Permission recv_msg in class tcp_socket not defined in policy.
02-08 00:04:40.956 0 0 I SELinux : Permission send_msg in class tcp_socket not defined in policy.
02-08 00:04:40.956 0 0 I SELinux : Permission connectto in class tcp_socket not defined in policy.
02-08 00:04:40.957 0 0 I SELinux : Permission newconn in class tcp_socket not defined in policy.
02-08 00:04:40.957 0 0 I SELinux : Permission acceptfrom in class tcp_socket not defined in policy.
02-08 00:04:40.957 0 0 I SELinux : Permission recv_msg in class udp_socket not defined in policy.
02-08 00:04:40.957 0 0 I SELinux : Permission send_msg in class udp_socket not defined in policy.
02-08 00:04:40.957 0 0 I SELinux : Permission recv_msg in class rawip_socket not defined in policy.
02-08 00:04:40.957 0 0 I SELinux : Permission send_msg in class rawip_socket not defined in policy.
02-08 00:04:40.957 0 0 I SELinux : Permission tcp_recv in class node not defined in policy.
02-08 00:04:40.957 0 0 I SELinux : Permission tcp_send in class node not defined in policy.
02-08 00:04:40.957 0 0 I SELinux : Permission udp_recv in class node not defined in policy.
02-08 00:04:40.957 0 0 I SELinux : Permission udp_send in class node not defined in policy.
02-08 00:04:40.957 0 0 I SELinux : Permission rawip_recv in class node not defined in policy.
02-08 00:04:40.957 0 0 I SELinux : Permission rawip_send in class node not defined in policy.
02-08 00:04:40.958 0 0 I SELinux : Permission enforce_dest in class node not defined in policy.
02-08 00:04:40.958 0 0 I SELinux : Permission dccp_recv in class node not defined in policy.
02-08 00:04:40.958 0 0 I SELinux : Permission dccp_send in class node not defined in policy.
02-08 00:04:40.958 0 0 I SELinux : Permission tcp_recv in class netif not defined in policy.
02-08 00:04:40.958 0 0 I SELinux : Permission tcp_send in class netif not defined in policy.
02-08 00:04:40.958 0 0 I SELinux : Permission udp_recv in class netif not defined in policy.
02-08 00:04:40.958 0 0 I SELinux : Permission udp_send in class netif not defined in policy.
02-08 00:04:40.958 0 0 I SELinux : Permission rawip_recv in class netif not defined in policy.
02-08 00:04:40.958 0 0 I SELinux : Permission rawip_send in class netif not defined in policy.
02-08 00:04:40.958 0 0 I SELinux : Permission dccp_recv in class netif not defined in policy.
02-08 00:04:40.958 0 0 I SELinux : Permission dccp_send in class netif not defined in policy.
02-08 00:04:40.959 0 0 I SELinux : Permission recv_msg in class netlink_socket not defined in policy.
02-08 00:04:40.959 0 0 I SELinux : Permission send_msg in class netlink_socket not defined in policy.
02-08 00:04:40.959 0 0 I SELinux : Permission recv_msg in class packet_socket not defined in policy.
02-08 00:04:40.959 0 0 I SELinux : Permission send_msg in class packet_socket not defined in policy.
02-08 00:04:40.959 0 0 I SELinux : Permission recv_msg in class key_socket not defined in policy.
02-08 00:04:40.959 0 0 I SELinux : Permission send_msg in class key_socket not defined in policy.
02-08 00:04:40.959 0 0 I SELinux : Permission recv_msg in class unix_stream_socket not defined in policy.
02-08 00:04:40.959 0 0 I SELinux : Permission send_msg in class unix_stream_socket not defined in policy.
02-08 00:04:40.959 0 0 I SELinux : Permission newconn in class unix_stream_socket not defined in policy.
02-08 00:04:40.959 0 0 I SELinux : Permission acceptfrom in class unix_stream_socket not defined in policy.
02-08 00:04:40.959 0 0 I SELinux : Permission recv_msg in class unix_dgram_socket not defined in policy.
02-08 00:04:40.960 0 0 I SELinux : Permission send_msg in class unix_dgram_socket not defined in policy.
02-08 00:04:40.960 0 0 I SELinux : Permission recv_msg in class netlink_route_socket not defined in policy.
02-08 00:04:40.960 0 0 I SELinux : Permission send_msg in class netlink_route_socket not defined in policy.
02-08 00:04:40.960 0 0 I SELinux : Class netlink_firewall_socket not defined in policy.
02-08 00:04:40.960 0 0 I SELinux : Permission recv_msg in class netlink_tcpdiag_socket not defined in policy.
02-08 00:04:40.960 0 0 I SELinux : Permission send_msg in class netlink_tcpdiag_socket not defined in policy.
02-08 00:04:40.960 0 0 I SELinux : Permission recv_msg in class netlink_nflog_socket not defined in policy.
02-08 00:04:40.960 0 0 I SELinux : Permission send_msg in class netlink_nflog_socket not defined in policy.
02-08 00:04:40.960 0 0 I SELinux : Permission recv_msg in class netlink_xfrm_socket not defined in policy.
02-08 00:04:40.960 0 0 I SELinux : Permission send_msg in class netlink_xfrm_socket not defined in policy.
02-08 00:04:40.960 0 0 I SELinux : Permission recv_msg in class netlink_selinux_socket not defined in policy.
02-08 00:04:40.961 0 0 I SELinux : Permission send_msg in class netlink_selinux_socket not defined in policy.
02-08 00:04:40.961 0 0 I SELinux : Permission recv_msg in class netlink_audit_socket not defined in policy.
02-08 00:04:40.961 0 0 I SELinux : Permission send_msg in class netlink_audit_socket not defined in policy.
02-08 00:04:40.961 0 0 I SELinux : Class netlink_ip6fw_socket not defined in policy.
02-08 00:04:40.961 0 0 I SELinux : Permission recv_msg in class netlink_dnrt_socket not defined in policy.
02-08 00:04:40.961 0 0 I SELinux : Permission send_msg in class netlink_dnrt_socket not defined in policy.
02-08 00:04:40.961 0 0 I SELinux : Permission recv_msg in class netlink_kobject_uevent_socket not defined in policy.
02-08 00:04:40.961 0 0 I SELinux : Permission send_msg in class netlink_kobject_uevent_socket not defined in policy.
02-08 00:04:40.961 0 0 I SELinux : Permission recv_msg in class appletalk_socket not defined in policy.
02-08 00:04:40.961 0 0 I SELinux : Permission send_msg in class appletalk_socket not defined in policy.
02-08 00:04:40.961 0 0 I SELinux : Permission recv_msg in class dccp_socket not defined in policy.
02-08 00:04:40.961 0 0 I SELinux : Permission send_msg in class dccp_socket not defined in policy.
02-08 00:04:40.962 0 0 I SELinux : Permission recv_msg in class tun_socket not defined in policy.
02-08 00:04:40.962 0 0 I SELinux : Permission send_msg in class tun_socket not defined in policy.
02-08 00:04:40.962 0 0 I SELinux : the above unknown classes and permissions will be denied
02-08 00:04:40.962 0 0 D SELinux : Completing initialization.
02-08 00:04:40.962 0 0 D SELinux : Setting up existing superblocks.
02-08 00:04:40.962 0 0 D SELinux : initialized (dev sysfs, type sysfs), uses genfs_contexts
02-08 00:04:40.962 0 0 D SELinux : initialized (dev rootfs, type rootfs), uses genfs_contexts
02-08 00:04:40.962 0 0 D SELinux : initialized (dev bdev, type bdev), not configured for labeling
02-08 00:04:40.962 0 0 D SELinux : initialized (dev proc, type proc), uses genfs_contexts
02-08 00:04:40.962 0 0 D SELinux : initialized (dev tmpfs, type tmpfs), uses transition SIDs
02-08 00:04:40.962 0 0 D SELinux : initialized (dev debugfs, type debugfs), uses genfs_contexts
02-08 00:04:41.063 0 0 D SELinux : initialized (dev sockfs, type sockfs), uses task SIDs
02-08 00:04:41.063 0 0 D SELinux : initialized (dev pipefs, type pipefs), uses task SIDs
02-08 00:04:41.063 0 0 D SELinux : initialized (dev anon_inodefs, type anon_inodefs), not configured for labeling
02-08 00:04:41.063 0 0 D SELinux : initialized (dev devpts, type devpts), uses transition SIDs
02-08 00:04:41.063 0 0 D SELinux : initialized (dev configfs, type configfs), uses genfs_contexts
02-08 00:04:41.063 0 0 D SELinux : initialized (dev selinuxfs, type selinuxfs), uses genfs_contexts
02-08 00:04:41.063 0 0 D SELinux : initialized (dev tmpfs, type tmpfs), uses transition SIDs
02-08 00:04:41.063 0 0 D SELinux : initialized (dev sysfs, type sysfs), uses genfs_contexts
02-08 00:04:41.115 0 0 D SELinux : initialized (dev tmpfs, type tmpfs), uses transition SIDs
02-08 00:04:41.115 0 0 I chatty : uid=0(root) logd identical 1 line
02-08 00:04:41.115 0 0 D SELinux : initialized (dev tmpfs, type tmpfs), uses transition SIDs
02-08 00:04:41.115 0 0 D SELinux : initialized (dev mmcblk0p21, type ext4), uses xattr
02-08 00:04:41.126 0 0 I selinux : SELinux: Loaded policy from /vendor/etc/selinux/precompiled_sepolicy
02-08 00:04:41.143 0 0 I selinux : SELinux: Loaded file_contexts
02-08 00:04:41.205 0 0 I init : init second stage started!
02-08 00:04:41.245 0 0 I init : Using Android DT directory /proc/device-tree/firmware/android/
02-08 00:04:41.258 0 0 I selinux : SELinux: Loaded file_contexts
02-08 00:04:41.258 0 0 I init : Running restorecon...

There is nothing else in kernel log that is related to magisk.

Nexus 4 has no device-tree so it has to create fake /proc/device-tree entries to boot.

Also fstab in dt only exposes system and/or vendor partition (Example: https://github.com/LineageOS/androi...mmit/e5941773773b841718ab17d45aa5fb7382e6aac4)

And fake dt driver does the same, otherwise system would not even boot.

So, i've no idea what goes wrong there, but the process seems to be stuck at magiskinit.

But if magisk wants a dtb files to boot, there is no solution then, unless magisk developer adds support for devices with no device-tree.