At this moment, DIR853 A4 have stock firmware, that I want to backup. In uboot I have tftpboot that can only boot from tftp not put firmware to tftp.
And at which location and what size the firmware is in routers flash.
When the router boots you need to select the option to load kernel into ram (Sorry I cannot recall which option number). You need a tftp server running on your computer.
You then load the file you downloaded and it should boot openwrt without changing anything
You can then log into Luci web interface and in the backp section you can select each partition and it will download them.
there is an option that will load from tftp directly into ram
it's part of the number you hit while booting uboot
1 > 5 are the options i think
I think it asks you confirm the tftp server IP & file name as you go
going by the DIR-1960 believing it's the same layout "not checked"
it's wise to save all the MTD's just in case while you are there
with importance on factory & config2
but the OEM firmware will be in firmware & it's backup in firmware2
to be nice you can prune off the empty blank space at the end in a hex editor
but it should give you an unencrypted firmware file that will flash
the same as the openwrt factory file
witch is how you would restore it
these are the names in the luci interface under "Save mtdblock"
this is from it's little brothers log DIR-878
different flash chip so do check but it look's something like this
you would hit "1" as the option
Please choose the operation:
1: Load system code to SDRAM via TFTP.
2: Load system code then write to Flash via TFTP.
3: Boot system code via Flash (default).
4: Entr boot command line interface.
6: System Enter UBoot to Update Img or Bin.
7: Load Boot Loader code then write to Flash via Serial.
9: Load Boot Loader code then write to Flash via TFTP.
default: 3
technically speaking I do not know which partition has firmware file. However, I am looking for a single stock firmware file, which can be upload via web browser to undo OpenWrt if needed. I hope you or someone else here can do this magic.
The partition should be mtd4 (the one labeled firmware). The small issue would be that it is the whole partiton (around 40mb) but the firmware part is around 17mb if I am not mistaken.
There is no harm if writing the whole 40mb with the "mtd" command.
I would advise @MianHannan to first test how it is done as he has console access and then maybe share the file + details (I cannot recall exactly the commands), If the flash is incorrect there will be now way to recover without UART.
I connected DIR-853-A4 with its serial connector pins (4=GND, 3=TX and 2=Rx) with help of attached picture "dlink-pinout.jpeg" and then used simple DB9 cable to connect router with PC serial port where used pins of DB9 cable (5=GND, 3=TX and 2=RX) with help of attached picture "DB9-pinout.jpg". then used putty and tried may different settings but still facing garbled issue. please check attached pictures "output.jpg" for error output and "settings-serial.jpg and serial-DB9.jpg" for putty settings and jtag to db9 connection.
I also tried RS323 adaptor but same issue no change to I decided to use direct db9 cable as I have serial port in PC.
@MianHannan could you also please help me in this?
thank you for your reply and suggestion but I did not used pin number 1 in router side and its for Vcc just connect TX,RXand GND. I tried on both RS323 USB to serial adaptor and simple DB9 cable. however, I do not know if DB9 works on 12v its not showing in its pinout diagram. please check attached file.