pbatard / EfiFs

EFI FileSystem drivers
https://efi.akeo.ie
GNU General Public License v3.0
506 stars 77 forks source link

Dose it work on mobile devices? #39

Closed ChenQian17 closed 1 year ago

ChenQian17 commented 1 year ago

I tried to apply f2fs to UEFI on mobile device, but failed. I found that the program runs to the function grub_f2fs_check_dentries and return after looping the function grub_f2fs_test_bit_le 27 times. I printed value of ctx->bitmap, all zero. How should I debug it?

pbatard commented 1 year ago

How should I debug it?

By continuing what you're doing and investigating why the code doesn't see what you expect.

You should also attempt to boot the latest GRUB and see if it can access your partition (since the EfiFs file system drivers are directly derivated from GRUB, so they have the same limitations as the current GRUB driver)

Please bear in mind that the f2fs driver in GRUB is very recent, so it's possible it may not support all versions of f2fs. It looks to me like if ctx->bitmap is all zero, then it means that either you're not accessing the right f2fs partition, or you f2fs partition is created in a way that GRUB does not support, and therefore EfiFs does not support either.

pbatard commented 1 year ago

Since there has not been any update I will close this issue.