From my testing the different modules are roughly needed due to:
* Without the aes stuff unlock fails with
trusted_key: encrypted_key: failed to alloc_cipher (-2)
* Without i2c_brcmstb hdmi fails to come up due to
missing dependencies:
platform axi:gpu: deferred probe pending: (reason unknown)
* The sound stuff also seems to be a dependency of the drm hdmi driver
Part-of: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6536
We are already passing a list of modules through the modules-initfs
file. By dropping modules from cmdline we silence this dmesg warning:
[ 0.000000] Unknown kernel command line parameters "modules=loop,squashfs,sd-mod,usb-storage", will be passed to user space.
Out of the listed modules, only squashfs is actually built as a module
by linux-rpi, so most of them do not make sense in any case.
Part-of: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6536