DIR-825 has strange stock mtd layout.
It includes unused 1.5 Mb partition
Older releases supported -fat firmware. It deletes unused partition and moves caldata to the end of the flash.
Partition layout was defined in kernel-embedded command line.
ath79 target do not use this technique anymore and hardcodes mtd layout in device tree.
Its fine but fat support was dropped. Now only minimal flash size is available.
I fixed this myself. Edited ar7161_dlink_dir-825-b1.dts :
But this requires recompiling firmware.
It would be good to reenable fat target in official builds
Also to note.
New kernel cant get ethernet MAC addresses from the flash. They must be specified in /etc/config/network. Why ?
If country code is '00' then hostapd tends not to run (exit with error), especially if multiple SSIDs are configured. I spent some time to figure it out. Setting any valid country fixes this. '00' worked in earlier releases
I'm not sure if this will work with around a non erasable partition but I did see something used here
about "mtd-concat " may not be able to make an image bigger then the 1st partition & problems recover page etc I don't know enough
but it may be what you are looking for to reclam space without moving the cal data
Moving caldata is not a problem.
If I understand correctly In ar71xx there was special script for DIR-825 that auto moved caldata during sysupgrade between standard and fat versions.
In ath79 this funcion was dropped leaving only standard layout option.
none of my units have a 2nd copy to loose this is only added if you put it there or via BIG
& you run the risk of loosening it if something brakes & you have to recover
so it's just safer not to touch it
for my 2 devices layer 1 is correct for the OEM layout
in my first backup's that I do you know "just in case"
& the full "mtd6 unkown 1600KiB" was blank in both
Well, it doesn't matter which way to do it really. I did a full dump of a stock firmware long ago, and the "unknown" wasn't empty. Your concat solution is good. It is worth making a PR.
I have all but given up trying to put in pull requests
they just sit the for months & months
I did plan to after the current one but well that was 3 mouths ago
& it's still sitting there
so if someone want to do it go for it
I don't have a patience anymore
Please send this PR, I am a sort of maintainer of this device, because I added it to ath79, I will do a review.
The only question is to make another target, or update the main target.
Did you check if recovery works OK with an empty "unknown"? I will build and check too.
I'm not sure how to with out braking the current one sitting there
something about only able to fork openwrt once
I did test upgrading from current ath97 & the older fat image
it all seemed to work & keep it's cal data
I think I installed samba & DLNA so should have written over cal data in the fat image but not 100%
last time I had to recover one it was a challenge
I think I needed windows XP with IE on it to work
but no I have not tested recovery
I never installed the "fat" image to the current device, so I have the original "unknown".
My only concern is that that the "unknown" has something to do with that recovery http server.
Yes, it needs XP to work properly, but there is a C program that can do it without any browser from any OS.
If you have you build installed now, can you check if you can get into the recovery web page? You don't need XP for that. Other browsers won't accept files, but you can still check if you can get there.