GL-MT300N-V2 GPIO pins 4 5 45 46 - solved

With this level of customization, you're past what the image builder can do.

I'd recommend the full build system.

How familiar are you with git and the like?

Edit: Seeing that it looks like you've successfully built the modules, I'd personally tackle it with:

  • Create a git branch of your own off master or openwrt-18.06 (as 19 isn't quite branched yet)
  • Make your modifications to the DTS
  • Run make menuconfig and select the packages you need/want
  • make, flash, and enjoy

This way you can rebase your changes on a later point in development, or another branch.