What ‘information’ are you talking about? I’m still hopeful in there being some way to flash the router through the terminal and possibly force it to ignore the header. Anyways, this has moved from DD-WRT development discussion to OpenWRT. I might make a post on the OpenWRT forums and if I do I will be sure to link it here in a future edit.
Joined: 08 May 2018 Posts: 12417 Location: Texas, USA
Posted: Mon Dec 06, 2021 23:53 Post subject:
What ‘information’ are you talking about?
The first 128 bytes of the stock firmware image, as noted in the information you linked. You aren't even following your own bouncing red ball. Sorry, trying very hard *not* to be rude here. This information may be available elsewhere. Not sure exactly what "version" information the header refers to (firmware, board, what?), region... essentially the first 4 lines (if you are viewing 32 bytes per row) of information when you open the file up in HxD or other hex editor. Wondering if it is the last two bytes of the header or the two bytes after the header that are supposed to be 0xFF or if they mean the absolute end of the firmware image file. (https://gist.github.com/aplocher/7d717925fe00c6602bed)
IRT to backing up your stock firmware, this is of interest:
The partition should likely be whatever "fullflash" is on and should align with the output of cat /proc/mtd and ls /dev | grep mtd, if I am not losing my mind. I guess I didn't see this before and it definitely is not something that registers all the time. I think there are a few ways of retrieving this file as well.
Do a quick system backup :
dd if=/dev/mtdblock5 of=/tmp/sysbackup.bin
Copy the file /tmp/sysbackup.bin to a relatively safe place on your PC with something like WinSCP or Filezilla.
Whenever you need to restore the backup you can use the following command :
mtd -r write /tmp/sysbackup.bin firmware
Or you can also use DD-WRTs web GUI to upload and flash sysbackup.bin without the 1337 command line.