Help Reverting from OpenWrt to OEM Firmware on D-Link DIR-3040 A1

Hi everyone,

I’ve installed OpenWrt on my D-Link DIR-3040 A1, but I’d like to revert it back to the original D-Link (OEM) firmware. I've tried several approaches, but I haven't had success so far.

:wrench: What I’ve Tried:

  • Attempted to flash the official .bin firmware through LuCI (OpenWrt web interface) — it uploads and reboots, but the OEM interface doesn’t return.
  • Tried accessing the recovery mode by holding the reset button during boot — the LED doesn't blink or show the recovery page at 192.168.0.1.
  • Looked for a “factory” image of the OEM firmware that’s compatible, but not sure if I'm using the correct format.
  • The router currently boots into OpenWrt fine — I still have full access (SSH + LuCI).

:red_question_mark: My Questions:

  1. What’s the correct and safest method to revert back to D-Link OEM firmware on this model?
  2. Does the DIR-3040 A1 support recovery mode flashing or TFTP recovery with the stock bootloader?
  3. Do I need to convert the OEM .bin file to a specific format before flashing it via OpenWrt?
  4. Would serial access or mtd flashing be necessary in my case?

Any help or advice would be appreciated :folded_hands:

Thanks in advance!