cmake build effectively assumes all platforms are little-endian
While dealing with ModemManager not starting on OpenWrt device running on big-endian processor, I've confirmed that the Hello message ModemManager sends to dbus-deamon is dropped and connection closed.
Diving into the problem, it seems that dbus-send
generates malformed Hello messages that dbus-daemon
accepts it anyway, on the other hand correctly generated Hello messages from ModemManager are dropped by same dbus-daemon.
AFAIK, ModemManager uses glib2 to generate dbus messages.
Please find here details and test buffers: https://github.com/openwrt/packages/issues/17284#issuecomment-1028573047
Please let me know if you prefer to move attachments here.
Thanks