Image builder and configuration automation for LTE with QMI

In an attempt to isolate problems with my D-Link DWR-921 version C3 and the LTE connection with QMI, I'd like to start from scratch with a clean install and configuration.

I need Image Builder to add to the image at least the needed packages to connect to the internet.

These look likes needed packages:

  • kmod-usb-net-qmi-wwan
  • uqmi

To send AT commands these are suggested packages

  • kmod-usb-serial-option
  • kmod-usb-serial
  • kmod-usb-serial-wwan

but what about the followings? do I still need them given the modem is not USB dongle but integrated in the router?

  • usb-modeswitch
  • kmod-mii
  • kmod-usb-net
  • kmod-usb-wdm
  • kmod-usb-net-qmi-wwan

I’d like also to automate the first configuration of QMI, VPN, Firewall, etc
I saw somewhere a github page with a kind of script to automate the configuration but I’m not able to find it again, do you know something similar?

PS: see this 3d for reference on the issues related to this router: