Full disk encryption not working on asus-grouper: pointercal and libaes.ko missing
Describe your issue
I'd like to use --fde
on a grouper device.
What's the expected behaviour?
On boot a keyboard prompt appears on which I can type a password to decrypt the device.
What's the current behaviour?
The prompt appears, however the keys are not responsive. Tapping further up on the screen can cause some random key presses. Hard to figure out what they do though.
Furthermore, once I fixed this, decrypting still failed, always claimed wrong password.
How to reproduce your issue?
What device are you using?
asus-grouper
On what postmarketOS version did you encounter the issue?
-
edge ( master
branch) -
v21.06
On what environment did you encounter the issue?
Phone environments
-
Phosh -
Plasma Mobile -
Sxmo
Other
-
No environment -
GNOME -
KDE Plasma -
Kodi -
MATE -
Shelli -
Sway -
Weston -
Xfce4 -
fbkeyboard -
i3wm
How did you get postmarketOS image?
-
from https://images.postmarketos.org -
I built it using pmbootstrap -
It was preinstalled on my device
What's the build date of the image? (in yyyy-mm-dd format)
2021-10-04
Additional information
Done some troubleshooting; figured out root causes are:
- Missing pointer calibration file for grouper
- For some reason aes_generic.ko is on the initfs but libaes.ko is not, which makes cryptsetup luksOpen fail.
I managed to fix it by hacking around locally as follows:
- increased pkgver of device-asus-grouper APKBUILD
- added a pointercal file to its directory with contents "41811 0 -771172 220 39984 -1046512 65536 800 1280 0" generated by running ts_calibrate.
- added deviceinfo_modules_initfs="libaes" to deviceinfo (modprobe aes_generic told me that this is what's missing)
The pointercal part can probably be added as is; my deviceinfo change pretty sure isn't the proper way to fix this, but rather --fde
should make sure to always include this module on every device. Not sure how to do that though.
Patch attached anyway so others with the same problem can already use it.