Skip to content
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

Bootloop with EROFS system partition ... #7716

Closed
Huexxx opened this issue Jan 15, 2024 · 9 comments
Closed

Bootloop with EROFS system partition ... #7716

Huexxx opened this issue Jan 15, 2024 · 9 comments

Comments

@Huexxx
Copy link

Huexxx commented Jan 15, 2024

Device: Xiaomi Mi Mix 2 (Chiron)
Android version: 14
Magisk version name: 65207f9
Magisk version code: 26404

Since I introduced EROFS support on my rom, I cannot make it work with EROFS system partition.

Same problem since first A13 roms with EROFS support.

Rom with EROFS system partition bootloops on MIX logo (no bootanim, no adb). Exactly same rom with EXT4 system partition flawlessly works.

Boot images always patched within specified Magisk debug app.

The errors seem linked to cp_link and cp_afc ops...

Magisk  : cp_link : /debug_ramdisk/.magisk/worker/system/bin/[ <- /debug_ramdisk/.magisk/mirror/system/bin/[
Magisk  : cp_afc /debug_ramdisk/.magisk/mirror/system/bin/[ -> /debug_ramdisk/.magisk/worker/system/bin/[ failed: Invalid argument (os error 22)

Regards.

@yujincheng08
Copy link
Collaborator

Try #7685...

@Huexxx
Copy link
Author

Huexxx commented Jan 15, 2024

Hi, thanks for your advice, but it keeps failing.

pmsg-ramoops-0.txt
console-ramoops-0.txt

Same error but without mirror...

Magisk  : cp_link : /debug_ramdisk/.magisk/worker/system/bin/[ <- /system/bin/[
Magisk  : cp_afc /system/bin/[ -> /debug_ramdisk/.magisk/worker/system/bin/[ failed: Invalid argument (os error 22)

@yujincheng08
Copy link
Collaborator

app-debug.apk.zip
Then use this to grab the log

@Huexxx
Copy link
Author

Huexxx commented Jan 15, 2024

Hi again.

pmsg-ramoops-0.txt
console-ramoops-0.txt

Thanks so much for your work.

@yujincheng08
Copy link
Collaborator

Hmm, readlink says Invalid argument.

@vvb2060
Copy link
Collaborator

vvb2060 commented Jan 15, 2024

I introduced EROFS support on my rom

fix your kernel

@vvb2060 vvb2060 closed this as not planned Won't fix, can't repro, duplicate, stale Jan 15, 2024
@Huexxx
Copy link
Author

Huexxx commented Jan 15, 2024

Well, understood, but maybe you can point me a bit to where the problem is...

EROFS is working without problems, I have just problems with magisk.

Please, point me to the code where Magisk do the readlink and get Invalid argument to see how to patch my kernel to work as intended.

@dakkshesh07
Copy link

Hey any follow ups on this issue? I've been facing similar issues with my erofs builds. Seeing similar readlink failures in magisk log.

@Huexxx
Copy link
Author

Huexxx commented Feb 2, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants