Why would you want firmware.bin?
Also gateway's original payload was for 4.x so that's the first place I'd look or try surge's port
https://github.com/dukesrg/Spider3DSTools
Compiled with "make 17498" that should give you all the stuff for 4.x firmware but the code.c won't work offsets are...