How to build rspamd Gl-iNet MT6000 Flint 2?

Hi I would like to cross compile spam filter rspamd.
Is there any ready SDK or any cross development environment for Debian Linux (Debian 13), allowing building external programs running on Flint 2?

Best regards
Tom

Hi,

For this use case, we recommend using the GL.iNet OP firmware for Flint 2, then cross-compiling Rspamd with the corresponding upstream (vanilla) OpenWrt SDK on your Debian PC.

Match the SDK to the firmware’s underlying OpenWrt version, rather than its GL.iNet 4.x version number. Rspamd and its dependencies may require additional porting work. Please back up your configuration before switching firmware branches.

Additionally, if Docker works for you, you could consider installing it on the OP firmware and pulling the Rspamd image directly to avoid the hassle of compiling.

Hallo!
Thanks a lot for your replay. I will try Flip2 OP firmware. If I install it, can I assume, my current settings data will remain unchanged, and I will still be able to use my backups?
Having read more about rspamd in the meantime I will rather outsource it to a host in LAN and use bogofilter as local fallback, but anyway I am planning to build postfix in order to introduce UTF-8 support.
Thanks you in advance.

Hi Tom, OP25 introduces substantial underlying changes compared with the OpenWrt 21.02-based firmware, so some existing settings may not carry over correctly. We suggest the following:

  1. Export a configuration backup before upgrading, following our backup guide. If you need to roll back, return to the exact firmware version used to create the backup, with Keep Settings disabled during the downgrade, then restore that backup. Please do not import it directly into OP25.

  2. You can try upgrading to OP25 with Keep Settings enabled. If everything works normally afterward, you can continue using the retained settings.

  3. If you encounter problems, reset to factory settings and configure the router again manually. This clears your current settings, installed applications and user data.

  4. Third-party plug-ins will need to be reinstalled after the upgrade. Custom scripts are not automatically preserved unless included in the backup list, so save separate copies beforehand and check their compatibility with OP25 before restoring them.

Hi Will!
Thanks a lot.
I built Postfix package with UTF-8 support for OP25 and having installed according packages I have been transferring my setting from G-iNet's standard OpenWRT to vanilla OP25 manually, as I assumed the jump from very old OpenWRT 21.xx to the newest one would be too big in order to be able to take them over automatically.