-
Notifications
You must be signed in to change notification settings - Fork 12.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Boot delay of 60s caused by Magisk #7511
Comments
Good catch! I was experiencing the same issue, but couldn't find what it was. |
it test already the latest action. Are you a bot? You write always the same message. |
This comment was marked as off-topic.
This comment was marked as off-topic.
I can confirm same issue. |
It seems related to Android 13, as I've not been able to reproduce the issue on Android 12. |
|
|
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
@Unknown78 , @topjohnwu here are all the logs: last_kmsg.log |
If needed, we can arrange a TeamViewer session, so I can show you. |
This comment was marked as off-topic.
This comment was marked as off-topic.
Unfortunately, my issue was closed two times before this; I was quite close to giving up. |
Just tested it on Magisk v24.0 / Android 13, delay of 60 seconds still reproduces. If someone can provide the Magisk v24 debug apk, I can provide correct logs |
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
Update @topjohnwu @yujincheng08 @TotallyAvailable @Unknown78 [ 70.257910] [6: init: 1] init: Command 'mount ext4 /dev/block/by-name/cpefs /mnt/vendor/cpefs nosuid nodev noatime noauto_da_alloc,discard,journal_checksum,data=ordered,errors=panic' action=post-fs-data (/vendor/etc/init/init.baseband.rc:13) took 60007ms and failed: mount() failed: I/O error adb shell I've removed the above file, and there are no more delays on the boot. init.baseband.rc is exactly same file on Android 12 and Android 13, but on android 13 with Magisk it causes 60 sec delay |
Since in /vendor/etc/fstab.s5e8825 there is already a following line /dev/block/by-name/cpefs /mnt/vendor/cpefs ext4 noatime,nosuid,nodev,noauto_da_alloc,discard,journal_checksum,data=ordered,errors=panic wait,check,nofail Is it really necessary to have a similar line in init.baseband.rc (because the bottom line makes a 60s delay with magisk)
|
This comment was marked as off-topic.
This comment was marked as off-topic.
Device wasn't used before, its stock android without any changes,and with/without magisk patch Output when trying to execute this command: '/dev/block/by-name/cpefs' is read-only If I flash the boot image without Magisk, this error won't happen. Update: |
If it wasn't for the fact that it appears on v24.3 as well, the narrowing down would've been somewhat easier. The Device isn't brand new either.
Just a thought - what if you add " wait,check,nofail" to the end of that command like in the fstab entry, assuming that one of the 2 has to actually work. Maybe even add it to the baseband.rc entry instead of deleting that line completely and reboot...what could possibly go wrong here. And the RO only seems given: took 60007ms and failed: mount() You know the feeling missing the most obvious? (Totally not this Issue popping up in Google while searching for "jbd2 recovery failed", I'm sure I'll help myself with that one) Anyway probably time to just wait for someone with the required knowledge. |
This actually removes 60s delay, but the cpefs mount still doesn't work, and it is not accessible in /mnt/vendor/cpefs
Just tried the older Android 13 version, same behaviour, so its not latest security patch |
While progress, there's obviously more going on. The wrong recent Security Patch guess doesn't help either. I still want that one more step though, just piecing together what was already mentioned.
(This bit right here. Still doesn't answer the initial question.
Can apparently always get worse than "just" 60s And with no one else jumping in on possible causes or solutions they found... that's not really something I'd like to do either, knowing how much it sucks to see stuff potentially end without a (quick) solution. |
Should this 'cpefs' mount be visible in /proc/mounts? This could mean that the following line can be easily removed from init.baseband.rc ?
cpefs doesn't ever get mounted on a stock OS, with stock boot. With magisk patched boot it makes the boot delay of 60s, it seems that it can deleted from init.baseband.rc to avoid 60s delay. |
So Where are all the other users with similar problems ? There's the whole thought about "stuff no longer available when rooted" playing into it of course, given that you come across vbmeta, dm-verity and selinux pretty early on. |
Yes |
Any news about that? |
[ 70.503041]I[6: swapper/6: 0] sd 0:0:0:3: [sdd] tag#2 timing out command, waited 60s
[ 70.503083]I[6: swapper/6: 0] sd 0:0:0:3: [sdd] tag#2 UNKNOWN(0x2003) Result: hostbyte=0x00 driverbyte=0x08 cmd_age=60s
[ 70.503098]I[6: swapper/6: 0] sd 0:0:0:3: [sdd] tag#2 Sense Key : 0x7 [current]
[ 70.503110]I[6: swapper/6: 0] sd 0:0:0:3: [sdd] tag#2 ASC=0x27 ASCQ=0x1
[ 70.503124]I[6: swapper/6: 0] sd 0:0:0:3: [sdd] tag#2 CDB: opcode=0x2a 2a 00 00 00 00 28 00 00 01 00
[ 70.503138]I[6: swapper/6: 0] blk_update_request: I/O error, dev sdd, sector 320 op 0x1:(WRITE) flags 0x800 phys_seg 1 prio class 0
[ 70.503153]I[6: swapper/6: 0] Buffer I/O error on dev sdd1, logical block 34, lost async page write
[ 70.503395] [6: init: 1] JBD2: recovery failed
[ 70.503420] [6: init: 1] EXT4-fs (sdd1): error loading journal
last_kmsg_without_magisk.log
last_kmsg_magisk_patched.log
Device: a53x
Android version: Android 13
Magisk version name: Magisk v26.4
Magisk version code: 26401 (568c5187)
Update, new logs with the latest magisk debug version:
Device: a53x
Android version: Android 13
Magisk version name: Magisk debug latest
Magisk version code: 26401 (568c5187)
magisk_log_2023-11-15T20.15.34.log
proc_mounts.log
dmesg.log
last_kmsg.log
logcat_a53_android_13_latest_debug_magisk.log
The text was updated successfully, but these errors were encountered: